1 #LyX 1.5.5svn 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}}{}
15 % link all cross references and URLs
17 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
18 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
19 pdfpagelayout=OneColumn, pdfnewwindow=true,
20 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
21 pdfauthor={LyX Team}, pdftex,
22 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
23 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
24 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
26 \else % if dvi or ps is produced
28 % link all cross references and URLs in DVI output
29 \usepackage[ps2pdf, colorlinks=true,
30 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
32 \fi % end if pdflatex is used
34 % that links to image floats jumps
35 % to the beginning of the float and
37 \usepackage[figure]{hypcap}
39 % the pages of the TOC are numbered roman
40 % and a PDF-bookmark for the TOC is added
42 \let\myTOC\tableofcontents
43 \renewcommand{\tableofcontents}{%
44 \pdfbookmark[1]{Contents}{}
47 \pagenumbering{arabic}}
49 % provides caption formatting
50 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
52 % provides commands to set caption
53 % beside tables/images
56 \newcommand{\TabBesBeg}{%
58 \let\MyEndtable\endtable
59 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
61 \newcommand{\TabBesEnd}{%
63 \let\endtable\MyEndtable}
65 \newcommand{\FigBesBeg}{%
67 \let\MyEndfigure\endfigure
68 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
70 \newcommand{\FigBesEnd}{%
72 \let\endfigure\MyEndfigure}
74 % enables calculation of values,
77 % provides special table cell alignments
80 % increase the bottom float placement fraction
81 \renewcommand{\bottomfraction}{0.5}
83 % avoids that floats are placed before their
84 % corresponding section starts
85 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
87 % speed up the longtable calculation
88 \setcounter{LTchunksize}{100}
90 % used for scaled and rotated boxes
91 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
93 % used for colored tables
94 \@ifundefined{textcolor}
95 {\usepackage{color}}{}
96 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
97 \definecolor{lightgrey}{gray}{0.8}
99 % check for package colortbl
100 % used for colored table cells
101 \newboolean{colortbl}
102 \IfFileExists{colortbl.sty}
103 {\usepackage{colortbl}
104 \setboolean{colortbl}{true}}
105 {\setboolean{colortbl}{false}}
108 \usepackage{multirow}
109 %\renewcommand{\multirowsetup}{\centering}
111 % used for book-style tables
112 \usepackage{booktabs}
114 % used to have extra space in table cells
115 \@ifundefined{extrarowheight}
116 {\usepackage{array}}{}
117 \setlength{\extrarowheight}{2pt}
119 % used for customized tables
122 {>{\centering\hspace{0pt}}m{#1}}
125 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
128 {>{\columncolor{#1}\hspace{0pt}}c}
130 \newcolumntype{V}{!{\vrule width 1.5pt}}
132 \newcolumntype{W}{!{\color{green}\vline}}
135 % insert additional vertical space of
136 % 1.5 mm between footnotes
138 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
140 % enable algorithm floats to be referenced
141 \newfloat{Xalgorithm}{tbp}{loa}
142 \floatname{Xalgorithm}{Algorithm}
143 \newcommand{\theHalgorithm}{\theHXalgorithm}
144 \renewenvironment{algorithm}[1][tbp]
145 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
147 % number algorithm floats within chapters
148 \numberwithin{Xalgorithm}{chapter}
150 % redefine the greyed out note
151 \renewenvironment{lyxgreyedout}
152 {\textcolor{blue}\bgroup}{\egroup}
154 % ------------------------------------
155 % used to check for needed LaTeX packages
158 % check for package arydshln
159 % used for tables with dashed lines
160 \newboolean{arydshln}
161 \IfFileExists{arydshln.sty}
162 {\usepackage{arydshln}
163 \setboolean{arydshln}{true}}
164 {\setboolean{arydshln}{false}}
166 % check for package marginnote
167 % used for margin notes
168 \newboolean{marginnote}
169 \IfFileExists{marginnote.sty}
170 {\usepackage{marginnote}
171 \let\marginpar\marginnote
172 \setboolean{marginnote}{true}}
173 {\setboolean{marginnote}{false}}
175 % check for package sidecap
176 % used for captions on the side
178 \IfFileExists{sidecap.sty}
179 {\usepackage{sidecap}
180 \let\marginpar\marginnote
181 \setboolean{sidecap}{true}}
182 {\setboolean{sidecap}{false}}
184 % redefine the \LyX macro for PDF bookmarks
185 \def\LyX{\texorpdfstring{%
186 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
189 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
194 \font_typewriter default
195 \font_default_family default
209 \paperorientation portrait
212 \paragraph_separation skip
214 \quotes_language english
217 \paperpagestyle default
221 \tracking_changes false
222 \output_changes false
230 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
239 \begin_layout Standard
241 If you have comments or error corrections, please send them to the LyX Documenta
248 \begin_layout Standard
252 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
257 lyx-docs@lists.lyx.org
261 \begin_layout Standard
274 \begin_inset Note Note
277 \begin_layout Standard
292 \begin_layout Standard
293 \begin_inset LatexCommand tableofcontents
300 \begin_layout Standard
301 \begin_inset Note Note
304 \begin_layout Standard
305 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
323 If they are not installed you can export the document anyway but the sections
324 where the packages are required won't appear in the output.
327 \begin_layout Standard
328 The latest PDF-version of this document can be found here:
332 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
340 \begin_layout Chapter
342 \begin_inset LatexCommand label
348 \begin_inset LatexCommand index
354 \begin_inset LatexCommand index
355 name "Graphics|see{Figures}"
362 \begin_layout Section
364 \begin_inset LatexCommand index
365 name "Figures ! Graphics Dialog"
370 \begin_inset LatexCommand label
371 name "sec:Graphics-Dialog"
378 \begin_layout Standard
379 To insert an image into your document, place the cursor at the text position
380 you want and click on the toolbar icon
381 \begin_inset Graphics
382 filename ../images/dialog-show-new-inset_graphics.png
390 Insert\SpecialChar \menuseparator
394 Then a dialog will appear to choose the file to load.
395 The image will appear in the output exactly at the position where it is
399 \begin_layout Standard
400 The graphics dialog can be called at any time by right-clicking on an image.
401 This dialog has three tabs:
404 \begin_layout Description
409 Here you can choose an image file and adjust its appearance in the output.
410 The available units for the image size are explained in appendix\InsetSpace ~
412 \begin_inset LatexCommand ref
413 reference "cha:Units-available-in"
420 \begin_inset LatexCommand index
421 name "Figures ! rotated"
425 You can rotate images counter-clockwise by setting a rotation angle and
427 The image will also be rotated inside LyX.
430 \begin_inset LatexCommand index
431 name "Figures ! scaled"
435 Images can be scaled by using a percentage value or by setting the width
436 and height explicitly.
437 If you set only the width or only the height, the other size will be determined
439 If you set both, then the image will be transformed to the given size,
440 possibly distorting it.
441 To prevent the image from distortion, use the option
443 Maintain aspect ratio
446 The image will then be scaled so that its width and height don't exceed
447 the specified dimensions.
449 Images can be opened in a program of your choice
455 The program can be set for every image format in the file format settings
456 in LyX's preferences.
459 \begin_layout Description
464 Alternatively to the usage of scaling units it is possible to set image
465 coordinates to adjust the height and width of the image in the output.
466 The coordinates can also be calculated automatically by pressing the button
478 bounding\InsetSpace ~
481 will only print the image region within the given coordinates.
482 Normally you don't need to take care about image coordinates and can ignore
486 \begin_layout Description
492 In this tab you can modify the appearance of the image within LyX and set
493 the image to be a subfigure of a figure float with an own caption.
494 Subfigures are explained in section\InsetSpace ~
496 \begin_inset LatexCommand ref
497 reference "sec:Figure-Floats"
503 LaTeX experts can also specify on this tab additional LaTeX options.
511 makes the image appear in the output only as a frame with the size of the
521 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
528 When the option is used the images will not be unzipped on export, since
529 LaTeX can handle them as they are.
531 Zipped EPS-graphics are useful to save
532 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
534 \begin_inset LatexCommand ref
535 reference "sec:PostScript"
540 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
551 zgrep %%Bounding x.eps.gz > x.eps.bb
555 The second command creates the bounding box file
556 \begin_inset Quotes eld
560 \begin_inset Quotes erd
563 that is needed by LaTeX for zipped graphics.
566 \begin_layout Standard
567 \begin_inset VSpace bigskip
573 \begin_layout Standard
574 This is an example image in EPS format
578 \begin_layout Standard
579 Image formats are explained in section\InsetSpace ~
581 \begin_inset LatexCommand ref
582 reference "sec:Image-Formats"
591 within a separate, horizontally centered paragraph:
594 \begin_layout Standard
596 \begin_inset Graphics
597 filename clipart/mobius.eps
608 \begin_layout Standard
609 This is the same image like the one above but in draft mode:
612 \begin_layout Standard
614 \begin_inset Graphics
615 filename clipart/mobius.eps
627 \begin_layout Section
629 \begin_inset LatexCommand label
630 name "sec:Figure-Floats"
635 \begin_inset LatexCommand index
636 name "Floats ! Figures"
641 \begin_inset LatexCommand index
642 name "Figures ! Floats"
649 \begin_layout Standard
650 For general explanations about floats, have a look at section\InsetSpace ~
652 \begin_inset LatexCommand ref
653 reference "sec:FloatIntroduction"
660 \begin_layout Standard
662 \begin_inset Graphics
663 filename ../images/float-insert_figure.png
671 Insert\SpecialChar \menuseparator
672 Float\SpecialChar \menuseparator
675 inserts a float with a caption that has the label
676 \begin_inset Quotes eld
681 \begin_inset Quotes erd
684 (# is the actual number).
685 You can insert the image above the caption, like in Figure\InsetSpace ~
687 \begin_inset LatexCommand ref
688 reference "fig:kill-plat"
692 or below the caption, like in Figure\InsetSpace ~
694 \begin_inset LatexCommand ref
695 reference "fig:escher"
700 More about the caption placement is described in section\InsetSpace ~
702 \begin_inset LatexCommand ref
703 reference "sec:Caption-Placement"
710 \begin_layout Standard
711 \begin_inset Float figure
716 \begin_layout Standard
718 \begin_inset Graphics
719 filename clipart/platypus.eps
730 \begin_layout Standard
733 \begin_layout Standard
734 \begin_inset LatexCommand label
739 A severely distorted platypus in a float.
752 \begin_layout Standard
753 \begin_inset Float figure
758 \begin_layout Standard
761 \begin_layout Standard
762 \begin_inset LatexCommand label
776 \begin_layout Standard
778 \begin_inset Graphics
779 filename clipart/escher-lsd.eps
795 \begin_layout Standard
796 \begin_inset LatexCommand index
797 name "References ! to Figures"
803 \begin_inset LatexCommand ref
804 reference "fig:kill-plat"
809 \begin_inset LatexCommand ref
810 reference "fig:escher"
814 are examples of referenced figures.
815 Figures can be referenced in the text by referencing their label.
816 To do this insert a label in the caption using the menu
818 Insert\SpecialChar \menuseparator
821 or the toolbar button
822 \begin_inset Graphics
823 filename ../images/label-insert.png
830 You can now refer to the label using the menu
832 Insert\SpecialChar \menuseparator
836 or the toolbar button
837 \begin_inset Graphics
838 filename ../images/dialog-show-new-inset_ref.png
845 It is important to use references to floats, rather than using vague references
847 \begin_inset Quotes eld
851 \begin_inset Quotes erd
854 , because as LaTeX will reposition the floats in the final document, it
856 \begin_inset Quotes eld
860 \begin_inset Quotes erd
865 Referencing is explained in detail in section\InsetSpace ~
867 \begin_inset LatexCommand ref
868 reference "sec:Referencing-Floats"
875 \begin_layout Standard
876 Normally only one image is inserted to a figure float, but sometimes you
877 might want to use two images with separate subcaptions.
878 This can be set in the tab
883 of the graphics dialog.
884 Choose there the option
888 and enter the subcaption for the image in the caption field.
889 Note that only the main caption of the float is added to the List of Figures.
892 erencing subfigures is explained in section\InsetSpace ~
894 \begin_inset LatexCommand ref
895 reference "sub:Referencing-Subfigures"
902 \begin_layout Standard
905 \begin_inset LatexCommand ref
906 reference "fig:Two-distorted-images"
910 is an example of a figure float with two images set side by side.
911 You can also set the images one below the other.
914 \begin_layout Standard
915 \begin_inset Float figure
920 \begin_layout Standard
924 \begin_inset Graphics
925 filename clipart/escher-lsd.eps
929 subcaptionText "Undefinable structure"
936 \begin_inset Graphics
937 filename clipart/platypus.eps
942 subcaptionText "\label{fig:Platypus} Platypus"
951 \begin_layout Standard
954 \begin_layout Standard
955 \begin_inset LatexCommand label
956 name "fig:Two-distorted-images"
960 Two distorted images.
973 \begin_layout Section
975 \begin_inset LatexCommand label
976 name "sec:Image-Formats"
981 \begin_inset LatexCommand index
987 \begin_inset LatexCommand index
988 name "Figures ! Image Formats"
995 \begin_layout Standard
996 You can insert images in any known file format.
997 But as explained in appendix\InsetSpace ~
999 \begin_inset LatexCommand ref
1000 reference "cha:Output-File-Formats"
1004 , every output document format allows only a few image formats.
1005 LyX uses therefore the program
1009 in the background to convert the images to the right format.
1010 To increase your work flow by avoiding these conversions in the background,
1011 you can use only the image formats that can directly be embedded in the
1013 The output file formats are explained in appendix\InsetSpace ~
1015 \begin_inset LatexCommand ref
1016 reference "cha:Output-File-Formats"
1023 \begin_layout Standard
1024 Similar to fonts there are two types of image formats:
1027 \begin_layout Description
1029 images consist of pixel values, often in a compressed form.
1030 They are therefore not fully scalable and look pixeled in large zooms.
1031 Well-known bitmap image formats are
1032 \begin_inset Quotes eld
1035 Graphics Interchange Format
1036 \begin_inset Quotes erd
1039 (GIF, file extension
1040 \begin_inset Quotes eld
1048 \begin_inset Quotes erd
1052 \begin_inset LatexCommand index
1053 name "GIF|see{Image formats}"
1058 \begin_inset Quotes eld
1061 Portable Network Graphics
1062 \begin_inset Quotes erd
1065 (PNG, file extension
1066 \begin_inset Quotes eld
1074 \begin_inset Quotes erd
1078 \begin_inset LatexCommand index
1079 name "PNG|see{Image formats}"
1084 \begin_inset Quotes eld
1087 Joint Photographic Experts Group
1088 \begin_inset Quotes erd
1091 (JPG, file extension
1092 \begin_inset Quotes eld
1100 \begin_inset Quotes erd
1104 \begin_inset Quotes eld
1112 \begin_inset Quotes erd
1116 \begin_inset LatexCommand index
1117 name "JPG|see{Image formats}"
1124 \begin_layout Description
1126 images consist of vectors and can therefore be scaled to any size
1128 The scaling ability is necessary if you want to create presentations, because
1129 presentations are always scaled by the video projector.
1130 Scaling is also useful for online documents to let the user zoom into diagrams.
1133 ell-known scalable image formats are
1134 \begin_inset Quotes eld
1137 Scalable Vector Graphics
1138 \begin_inset Quotes erd
1141 (SVG, file extension
1142 \begin_inset Quotes eld
1150 \begin_inset Quotes erd
1154 \begin_inset LatexCommand index
1155 name "SVG|see{Image formats}"
1160 \begin_inset Quotes eld
1163 Encapsulated PostScript
1164 \begin_inset Quotes erd
1167 (EPS, file extension
1168 \begin_inset Quotes eld
1176 \begin_inset Quotes erd
1180 \begin_inset LatexCommand index
1181 name "EPS|see{Image formats}"
1186 \begin_inset Quotes eld
1189 Portable Document Format
1190 \begin_inset Quotes erd
1193 (PDF, file extension
1194 \begin_inset Quotes eld
1202 \begin_inset Quotes erd
1206 \begin_inset LatexCommand index
1212 \begin_inset Quotes eld
1216 \begin_inset Quotes erd
1219 (WMF, file extension
1220 \begin_inset Quotes eld
1228 \begin_inset Quotes erd
1232 \begin_inset LatexCommand index
1233 name "SVG|see{Image formats}"
1239 \begin_inset Quotes eld
1243 \begin_inset Quotes erd
1246 , because you can convert any bitmap image to a PDF or EPS-image and the
1247 result will still be a bitmap image.
1248 In this cases only a header with the image properties is added to the original
1253 \begin_layout Standard
1254 In the case of PDF, the original image is additionally compressed.
1260 The PDF-files generated by
1264 are for example bitmap images.
1267 \begin_layout Standard
1268 Normally it is not possible to convert a bitmap image into a scalable one,
1270 Only the image formats PDF and EPS can directly be embedded to PDF and
1271 PostScript output files, respectively.
1272 SVG and WMF-images are recalculated to bitmaps when the output file is
1273 generated because there is currently no adequate WMF/SVG
1274 \begin_inset Formula $\to$
1277 PDF/EPS converter available.
1280 \begin_layout Chapter
1282 \begin_inset LatexCommand label
1288 \begin_inset LatexCommand index
1296 \begin_layout Section
1298 \begin_inset LatexCommand index
1299 name "Table ! Introduction"
1306 \begin_layout Standard
1307 You can insert a table using either the toolbar button
1308 \begin_inset Graphics
1309 filename ../images/tabular-insert.png
1317 Insert\SpecialChar \menuseparator
1321 The toolbar button offers you a graphical selection: Move the mouse to
1322 set the column/row number of the table that should be created and then
1323 press a mouse button.
1324 When you use the menu to create a table, a dialog will appear, asking you
1325 for the number of rows and columns.
1327 The default table has lines around any
1328 cell and the first row appears separated from the rest of the table.
1329 This separation occurs due to a double line: The cells of the first row
1330 have a line below them and the cells of the second row have a line above
1332 Here is an example table:
1335 \begin_layout Standard
1337 \begin_inset Tabular
1338 <lyxtabular version="3" rows="4" columns="4">
1340 <column alignment="center" valignment="top" leftline="true" width="0">
1341 <column alignment="center" valignment="top" leftline="true" width="0">
1342 <column alignment="center" valignment="top" leftline="true" width="0">
1343 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1344 <row topline="true" bottomline="true">
1345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1348 \begin_layout Standard
1354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1357 \begin_layout Standard
1372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1375 \begin_layout Standard
1381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1384 \begin_layout Standard
1391 <row topline="true">
1392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1395 \begin_layout Standard
1410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1413 \begin_layout Standard
1419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1422 \begin_layout Standard
1428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1431 \begin_layout Standard
1438 <row topline="true">
1439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1442 \begin_layout Standard
1457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1460 \begin_layout Standard
1466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1469 \begin_layout Standard
1475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1478 \begin_layout Standard
1485 <row topline="true" bottomline="true">
1486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1489 \begin_layout Standard
1504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1507 \begin_layout Standard
1513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1516 \begin_layout Standard
1522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1525 \begin_layout Standard
1539 \begin_layout Section
1541 \begin_inset LatexCommand index
1542 name "Table ! Dialog"
1549 \begin_layout Standard
1550 You can alter a table by clicking on it with the right mouse button, which
1551 brings up the table dialog.
1552 Here you can adjust the settings of that cell and row/column respectively
1553 where the cursor is currently placed.
1554 Most of the dialog options also work on selections.
1555 This means if you select more cells, columns or rows, the action is done
1556 for the whole selection.
1557 Note that there is a difference between selecting the
1561 of the cell, and the cell itself.
1562 You can alter tables with the following tabs of the table dialog:
1565 \begin_layout Description
1571 Here you can set the horizontal alignment and the width of the current
1573 When you have set a width you can also adjust the vertical alignment of
1575 A given width will allow the cell to have line breaks and multiple paragraphs
1576 of text, see section\InsetSpace ~
1578 \begin_inset LatexCommand ref
1579 reference "sub:Multiple-Lines-in"
1584 If you set no width, the column is as wide as their widest cell content
1587 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1588 cell, see section\InsetSpace ~
1590 \begin_inset LatexCommand ref
1591 reference "sub:Multicolumns"
1597 The rotate check boxes rotates the current cell, a selection, or the whole
1598 table counter-clockwise by 90°.
1599 The rotation is not shown within LyX, only in the output.
1602 \begin_inset Note Greyedout
1605 \begin_layout Standard
1610 Not all DVI-viewers are able to display rotations.
1617 It is also possible to enter a LaTeX-argument which is needed for special
1618 table formattings, see section\InsetSpace ~
1620 \begin_inset LatexCommand ref
1621 reference "sub:Multicolumn-Calculations"
1626 \begin_inset LatexCommand ref
1627 reference "sec:Colored-Tables"
1634 \begin_layout Description
1639 In this tab you can add and delete border lines for the current row/column.
1646 will convert the table to a formal table as described in section\InsetSpace ~
1648 \begin_inset LatexCommand ref
1649 reference "sec:Formal-Tables"
1655 You can also add here space to table rows as decribed in section\InsetSpace ~
1657 \begin_inset LatexCommand ref
1658 reference "sub:Row-Spacing"
1665 \begin_layout Description
1670 This tab is to make a table a so called
1671 \begin_inset Quotes eld
1679 \begin_inset Quotes erd
1682 that can run over several pages.
1683 Section\InsetSpace ~
1685 \begin_inset LatexCommand ref
1686 reference "sec:Longtables"
1691 \begin_inset LatexCommand ref
1692 reference "sec:Special-Longtable-Issues"
1696 describe the longtable features in detail.
1699 \begin_layout Standard
1700 When the table toolbar is opened, you can move the cursor with the arrow
1701 keys from cell to cell and the property of the current cell will immediately
1702 be displayed in the dialog.
1705 \begin_layout Section
1707 \begin_inset LatexCommand index
1708 name "Table ! Toolbar"
1715 \begin_layout Standard
1716 The table toolbar is an alternative to the table dialog to be able to alter
1718 It should normally appear at the bottom of LyX's main window when the cursor
1720 You can alternatively switch it on to appear always, by right-clicking
1721 in LyX's main menu bar.
1724 \begin_layout Standard
1725 The toolbar has the following icons:
1728 \begin_layout Labeling
1729 \labelwidthstring 00.00.0000
1730 \begin_inset Graphics
1731 filename ../images/tabular-feature_append-row.png
1736 adds a row below the current cell or selection
1739 \begin_layout Labeling
1740 \labelwidthstring 00.00.0000
1741 \begin_inset Graphics
1742 filename ../images/tabular-feature_append-column.png
1747 adds a column right beside the current cell or selection
1750 \begin_layout Labeling
1751 \labelwidthstring 00.00.0000
1752 \begin_inset Graphics
1753 filename ../images/tabular-feature_delete-row.png
1758 deletes the current row or selection
1761 \begin_layout Labeling
1762 \labelwidthstring 00.00.0000
1763 \begin_inset Graphics
1764 filename ../images/tabular-feature_delete-column.png
1769 deletes the current column or selection
1772 \begin_layout Labeling
1773 \labelwidthstring 00.00.0000
1774 \begin_inset Graphics
1775 filename ../images/tabular-feature_toggle-line-top.png
1780 adds a line at the top of the current cell / row or of a selection
1783 \begin_layout Labeling
1784 \labelwidthstring 00.00.0000
1785 \begin_inset Graphics
1786 filename ../images/tabular-feature_toggle-line-bottom.png
1791 adds a line at the bottom of the current cell / row or of a selection
1794 \begin_layout Labeling
1795 \labelwidthstring 00.00.0000
1796 \begin_inset Graphics
1797 filename ../images/tabular-feature_toggle-line-left.png
1802 adds a line at the left side of the current cell / row or of a selection
1805 \begin_layout Labeling
1806 \labelwidthstring 00.00.0000
1807 \begin_inset Graphics
1808 filename ../images/tabular-feature_toggle-line-right.png
1813 adds a line at the right side of the current cell / row or of a selection
1816 \begin_layout Labeling
1817 \labelwidthstring 00.00.0000
1818 \begin_inset Graphics
1819 filename ../images/tabular-feature_set-all-lines.png
1824 adds lines around the current or selected cells - if the current cell no
1825 multicolumn this also affects the current row and column
1828 \begin_layout Labeling
1829 \labelwidthstring 00.00.0000
1830 \begin_inset Graphics
1831 filename ../images/tabular-feature_unset-all-lines.png
1836 deletes all lines of the current or selected cells - if the current cell
1837 no multicolumn this also affects the current row and column
1840 \begin_layout Labeling
1841 \labelwidthstring 00.00.0000
1842 \begin_inset Graphics
1843 filename ../images/tabular-feature_align-left.png
1848 left-aligns the content of the current cell / column
1851 \begin_layout Labeling
1852 \labelwidthstring 00.00.0000
1853 \begin_inset Graphics
1854 filename ../images/tabular-feature_align-center.png
1859 centers the content of the current cell / column horizontally
1862 \begin_layout Labeling
1863 \labelwidthstring 00.00.0000
1864 \begin_inset Graphics
1865 filename ../images/tabular-feature_align-right.png
1870 right-aligns the content of the current cell / column
1873 \begin_layout Labeling
1874 \labelwidthstring 00.00.0000
1875 \begin_inset Graphics
1876 filename ../images/tabular-feature_valign-top.png
1881 aligns the content of the current cell vertically to the top
1884 \begin_layout Labeling
1885 \labelwidthstring 00.00.0000
1886 \begin_inset Graphics
1887 filename ../images/tabular-feature_valign-middle.png
1892 centers the content of the current cell vertically
1895 \begin_layout Labeling
1896 \labelwidthstring 00.00.0000
1897 \begin_inset Graphics
1898 filename ../images/tabular-feature_valign-bottom.png
1903 aligns the content of the current cell vertically to the bottom
1906 \begin_layout Labeling
1907 \labelwidthstring 00.00.0000
1908 \begin_inset Graphics
1909 filename ../images/tabular-feature_set-rotate-cell.png
1914 rotates the current cell or selection counter-clockwise by 90°
1917 \begin_layout Labeling
1918 \labelwidthstring 00.00.0000
1919 \begin_inset Graphics
1920 filename ../images/tabular-feature_set-rotate-tabular.png
1925 rotates the whole table counter-clockwise by 90°
1928 \begin_layout Labeling
1929 \labelwidthstring 00.00.0000
1930 \begin_inset Graphics
1931 filename ../images/tabular-feature_multicolumn.png
1936 sets the current cell or selection as a multicolumn
1939 \begin_layout Standard
1940 \begin_inset Note Greyedout
1943 \begin_layout Standard
1948 For the output the vertical alignment of the first cell in a row is used
1949 for all following cells in the row.
1957 \begin_layout Section
1959 \begin_inset LatexCommand index
1960 name "Table ! Edit Menu"
1967 \begin_layout Standard
1968 Additionally to the table dialog and toolbar, the menu
1970 Edit\SpecialChar \menuseparator
1973 allows you to add and delete border lines for the current row/column and
1974 to set the current selection as multicolumn.
1975 The menu is only available when the cursor is inside a table.
1978 \begin_layout Section
1980 \begin_inset LatexCommand label
1981 name "sec:Table-Floats"
1986 \begin_inset LatexCommand index
1987 name "Floats ! Tables"
1992 \begin_inset LatexCommand index
1993 name "Table ! Floats"
2000 \begin_layout Standard
2001 For general explanations about floats, have a look at section\InsetSpace ~
2003 \begin_inset LatexCommand ref
2004 reference "sec:FloatIntroduction"
2011 \begin_layout Standard
2012 \begin_inset Float table
2018 \begin_layout Standard
2019 \begin_inset Caption
2021 \begin_layout Standard
2022 \begin_inset LatexCommand label
2023 name "tab:a table float"
2035 \begin_layout Standard
2037 \begin_inset Tabular
2038 <lyxtabular version="3" rows="3" columns="3">
2040 <column alignment="center" valignment="top" leftline="true" width="0pt">
2041 <column alignment="center" valignment="top" leftline="true" width="0pt">
2042 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2043 <row topline="true" bottomline="true">
2044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2047 \begin_layout Standard
2062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2065 \begin_layout Standard
2080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2083 \begin_layout Standard
2099 <row topline="true">
2100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2103 \begin_layout Standard
2118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2121 \begin_layout Standard
2136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2139 \begin_layout Standard
2155 <row topline="true" bottomline="true">
2156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2159 \begin_layout Standard
2169 \begin_inset Formula $\int x^{2}dx$
2177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2180 \begin_layout Standard
2190 \begin_inset Formula $\left[\begin{array}{cc}
2192 c & d\end{array}\right]$
2200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2203 \begin_layout Standard
2213 \begin_inset Formula $1+1=2$
2234 \begin_layout Standard
2235 Table floats can be inserted using the menu
2237 Insert\SpecialChar \menuseparator
2238 Float\SpecialChar \menuseparator
2241 or the toolbar button
2242 \begin_inset Graphics
2243 filename ../images/float-insert_table.png
2252 \begin_layout Standard
2253 The float appears as a collapsible box with a caption that has the label
2255 \begin_inset Quotes eld
2260 \begin_inset Quotes erd
2263 (# is the actual table number).
2264 You can insert tables to the float above or below the caption.
2267 \begin_layout Standard
2270 \begin_inset LatexCommand ref
2271 reference "tab:a table float"
2275 is an example table within a table float.
2278 \begin_layout Standard
2279 Having the caption above the table is the common rule that is unfortunately
2280 not supported in LaTeX's standard classes.
2281 That means if you are using the document classes
2297 there will be no space between the caption and the table.
2298 To insert the needed space, add the following option to the load command
2299 of the LaTeX-package
2304 \begin_inset LatexCommand index
2305 name "LaTeX-packages ! caption"
2309 in your document preamble
2313 \begin_layout Standard
2314 For more information have a look at section\InsetSpace ~
2316 \begin_inset LatexCommand ref
2317 reference "sec:Caption-Placement"
2329 \begin_layout Standard
2335 \begin_layout Standard
2340 , which is described in section\InsetSpace ~
2342 \begin_inset LatexCommand ref
2343 reference "sec:Caption-Formatting"
2347 , is used to adjust the caption format.
2350 \begin_layout Standard
2351 \begin_inset LatexCommand index
2352 name "References ! to Tables"
2356 Tables can be cross-referenced in the text by referencing their label.
2357 To do this insert a label in the caption using the menu
2359 Insert\SpecialChar \menuseparator
2362 or the toolbar button
2363 \begin_inset Graphics
2364 filename ../images/label-insert.png
2371 You can now refer to the label using the menu
2373 Insert\SpecialChar \menuseparator
2377 or the toolbar button
2378 \begin_inset Graphics
2379 filename ../images/dialog-show-new-inset_ref.png
2387 Referencing is explained in detail in section\InsetSpace ~
2389 \begin_inset LatexCommand ref
2390 reference "sec:Referencing-Floats"
2397 \begin_layout Section
2399 \begin_inset LatexCommand label
2400 name "sec:Longtables"
2405 \begin_inset LatexCommand index
2411 \begin_inset LatexCommand index
2412 name "Table ! Longtables"
2419 \begin_layout Standard
2420 If the table is too long to fit on one page, you can use the option
2430 of the table dialog to split the table automatically over more pages.
2431 Doing this enables some check boxes and you can now define:
2434 \begin_layout Description
2439 : The current row and all rows above, that don't have any special options
2440 defined, are defined to be the header rows of all pages of the longtable;
2441 except for the first page, if
2447 This therefore called the main header.
2450 \begin_layout Description
2456 : The current row and all rows above, that don't have any special options
2457 defined, are defined to be the header rows of the first page of the longtable.
2460 \begin_layout Description
2465 : The current row and all rows below, that don't have any special options
2466 defined, are defined to be the footer rows of all pages of the longtable;
2467 except for the last page, if
2475 \begin_layout Description
2481 : The current row and all rows below, that don't have any special options
2482 defined, are defined to be the footer rows of the last page of the longtable.
2485 \begin_layout Standard
2486 You can also specify a row where the table is splitted.
2487 If you set more than one option in the same table row, you should be aware
2488 of the fact that only the first one is used in the given table row.
2489 The others will then be defined as
2494 In this context, first means first in this order:
2501 header, Footer, Last\InsetSpace ~
2505 See the following longtable to see how it works:
2508 \begin_layout Standard
2510 \begin_inset Tabular
2511 <lyxtabular version="3" rows="69" columns="3">
2512 <features islongtable="true">
2513 <column alignment="left" valignment="top" leftline="true" width="0cm">
2514 <column alignment="left" valignment="top" width="0pt">
2515 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2516 <row topline="true" bottomline="true" endfirsthead="true">
2517 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2520 \begin_layout Standard
2523 Example Phone List (ignore the names)
2528 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2531 \begin_layout Standard
2537 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2540 \begin_layout Standard
2547 <row topline="true" bottomline="true" endfirsthead="true">
2548 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2551 \begin_layout Standard
2559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2562 \begin_layout Standard
2568 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2571 \begin_layout Standard
2580 <row topline="true" bottomline="true" endhead="true">
2581 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2584 \begin_layout Standard
2592 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2595 \begin_layout Standard
2601 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2604 \begin_layout Standard
2611 <row topline="true" bottomline="true" endhead="true">
2612 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2615 \begin_layout Standard
2623 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2626 \begin_layout Standard
2632 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2635 \begin_layout Standard
2644 <row topline="true" bottomline="true" endfoot="true">
2645 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2648 \begin_layout Standard
2649 continued on next page
2654 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2657 \begin_layout Standard
2663 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2666 \begin_layout Standard
2674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2677 \begin_layout Standard
2685 <cell alignment="center" valignment="top" topline="true" usebox="none">
2688 \begin_layout Standard
2694 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2697 \begin_layout Standard
2705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2708 \begin_layout Standard
2716 <cell alignment="center" valignment="top" topline="true" usebox="none">
2719 \begin_layout Standard
2725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2728 \begin_layout Standard
2736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2739 \begin_layout Standard
2747 <cell alignment="center" valignment="top" topline="true" usebox="none">
2750 \begin_layout Standard
2756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2759 \begin_layout Standard
2767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2770 \begin_layout Standard
2778 <cell alignment="center" valignment="top" topline="true" usebox="none">
2781 \begin_layout Standard
2787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2790 \begin_layout Standard
2798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2801 \begin_layout Standard
2809 <cell alignment="center" valignment="top" topline="true" usebox="none">
2812 \begin_layout Standard
2818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2821 \begin_layout Standard
2829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2832 \begin_layout Standard
2840 <cell alignment="center" valignment="top" topline="true" usebox="none">
2843 \begin_layout Standard
2849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2852 \begin_layout Standard
2860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2863 \begin_layout Standard
2871 <cell alignment="center" valignment="top" topline="true" usebox="none">
2874 \begin_layout Standard
2880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2883 \begin_layout Standard
2891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2894 \begin_layout Standard
2902 <cell alignment="center" valignment="top" topline="true" usebox="none">
2905 \begin_layout Standard
2911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2914 \begin_layout Standard
2922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2925 \begin_layout Standard
2933 <cell alignment="center" valignment="top" topline="true" usebox="none">
2936 \begin_layout Standard
2942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2945 \begin_layout Standard
2953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2956 \begin_layout Standard
2964 <cell alignment="center" valignment="top" topline="true" usebox="none">
2967 \begin_layout Standard
2973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2976 \begin_layout Standard
2984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2987 \begin_layout Standard
2995 <cell alignment="center" valignment="top" topline="true" usebox="none">
2998 \begin_layout Standard
3004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3007 \begin_layout Standard
3015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3018 \begin_layout Standard
3026 <cell alignment="center" valignment="top" topline="true" usebox="none">
3029 \begin_layout Standard
3035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3038 \begin_layout Standard
3046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3049 \begin_layout Standard
3057 <cell alignment="center" valignment="top" topline="true" usebox="none">
3060 \begin_layout Standard
3066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3069 \begin_layout Standard
3077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3080 \begin_layout Standard
3088 <cell alignment="center" valignment="top" topline="true" usebox="none">
3091 \begin_layout Standard
3097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3100 \begin_layout Standard
3108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3111 \begin_layout Standard
3119 <cell alignment="center" valignment="top" topline="true" usebox="none">
3122 \begin_layout Standard
3128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3131 \begin_layout Standard
3139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3142 \begin_layout Standard
3150 <cell alignment="center" valignment="top" topline="true" usebox="none">
3153 \begin_layout Standard
3159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3162 \begin_layout Standard
3170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3173 \begin_layout Standard
3181 <cell alignment="center" valignment="top" topline="true" usebox="none">
3184 \begin_layout Standard
3190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3193 \begin_layout Standard
3201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3204 \begin_layout Standard
3212 <cell alignment="center" valignment="top" topline="true" usebox="none">
3215 \begin_layout Standard
3221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3224 \begin_layout Standard
3232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3235 \begin_layout Standard
3243 <cell alignment="center" valignment="top" topline="true" usebox="none">
3246 \begin_layout Standard
3252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3255 \begin_layout Standard
3263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3266 \begin_layout Standard
3274 <cell alignment="center" valignment="top" topline="true" usebox="none">
3277 \begin_layout Standard
3283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3286 \begin_layout Standard
3294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3297 \begin_layout Standard
3305 <cell alignment="center" valignment="top" topline="true" usebox="none">
3308 \begin_layout Standard
3314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3317 \begin_layout Standard
3325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3328 \begin_layout Standard
3336 <cell alignment="center" valignment="top" topline="true" usebox="none">
3339 \begin_layout Standard
3345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3348 \begin_layout Standard
3356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3359 \begin_layout Standard
3367 <cell alignment="center" valignment="top" topline="true" usebox="none">
3370 \begin_layout Standard
3376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3379 \begin_layout Standard
3387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3390 \begin_layout Standard
3398 <cell alignment="center" valignment="top" topline="true" usebox="none">
3401 \begin_layout Standard
3407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3410 \begin_layout Standard
3418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3421 \begin_layout Standard
3429 <cell alignment="center" valignment="top" topline="true" usebox="none">
3432 \begin_layout Standard
3438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3441 \begin_layout Standard
3449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3452 \begin_layout Standard
3460 <cell alignment="center" valignment="top" topline="true" usebox="none">
3463 \begin_layout Standard
3469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3472 \begin_layout Standard
3480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3483 \begin_layout Standard
3491 <cell alignment="center" valignment="top" topline="true" usebox="none">
3494 \begin_layout Standard
3500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3503 \begin_layout Standard
3511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3514 \begin_layout Standard
3522 <cell alignment="center" valignment="top" topline="true" usebox="none">
3525 \begin_layout Standard
3531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3534 \begin_layout Standard
3542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3545 \begin_layout Standard
3553 <cell alignment="center" valignment="top" topline="true" usebox="none">
3556 \begin_layout Standard
3562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3565 \begin_layout Standard
3573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3576 \begin_layout Standard
3584 <cell alignment="center" valignment="top" topline="true" usebox="none">
3587 \begin_layout Standard
3593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3596 \begin_layout Standard
3603 <row bottomline="true">
3604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3607 \begin_layout Standard
3615 <cell alignment="center" valignment="top" topline="true" usebox="none">
3618 \begin_layout Standard
3624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3627 \begin_layout Standard
3634 <row bottomline="true">
3635 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3638 \begin_layout Standard
3644 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3647 \begin_layout Standard
3653 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3656 \begin_layout Standard
3664 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3667 \begin_layout Standard
3675 <cell alignment="center" valignment="top" topline="true" usebox="none">
3678 \begin_layout Standard
3684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3687 \begin_layout Standard
3695 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3698 \begin_layout Standard
3706 <cell alignment="center" valignment="top" topline="true" usebox="none">
3709 \begin_layout Standard
3715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3718 \begin_layout Standard
3726 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3729 \begin_layout Standard
3737 <cell alignment="center" valignment="top" topline="true" usebox="none">
3740 \begin_layout Standard
3746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3749 \begin_layout Standard
3757 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3760 \begin_layout Standard
3768 <cell alignment="center" valignment="top" topline="true" usebox="none">
3771 \begin_layout Standard
3777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3780 \begin_layout Standard
3788 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3791 \begin_layout Standard
3799 <cell alignment="center" valignment="top" topline="true" usebox="none">
3802 \begin_layout Standard
3808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3811 \begin_layout Standard
3819 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3822 \begin_layout Standard
3830 <cell alignment="center" valignment="top" topline="true" usebox="none">
3833 \begin_layout Standard
3839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3842 \begin_layout Standard
3850 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3853 \begin_layout Standard
3861 <cell alignment="center" valignment="top" topline="true" usebox="none">
3864 \begin_layout Standard
3870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3873 \begin_layout Standard
3881 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3884 \begin_layout Standard
3892 <cell alignment="center" valignment="top" topline="true" usebox="none">
3895 \begin_layout Standard
3901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3904 \begin_layout Standard
3912 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3915 \begin_layout Standard
3923 <cell alignment="center" valignment="top" topline="true" usebox="none">
3926 \begin_layout Standard
3932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3935 \begin_layout Standard
3943 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3946 \begin_layout Standard
3954 <cell alignment="center" valignment="top" topline="true" usebox="none">
3957 \begin_layout Standard
3963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3966 \begin_layout Standard
3974 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3977 \begin_layout Standard
3985 <cell alignment="center" valignment="top" topline="true" usebox="none">
3988 \begin_layout Standard
3994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3997 \begin_layout Standard
4005 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4008 \begin_layout Standard
4016 <cell alignment="center" valignment="top" topline="true" usebox="none">
4019 \begin_layout Standard
4025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4028 \begin_layout Standard
4036 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4039 \begin_layout Standard
4047 <cell alignment="center" valignment="top" topline="true" usebox="none">
4050 \begin_layout Standard
4056 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4059 \begin_layout Standard
4067 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4070 \begin_layout Standard
4078 <cell alignment="center" valignment="top" topline="true" usebox="none">
4081 \begin_layout Standard
4087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4090 \begin_layout Standard
4098 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4101 \begin_layout Standard
4109 <cell alignment="center" valignment="top" topline="true" usebox="none">
4112 \begin_layout Standard
4118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4121 \begin_layout Standard
4129 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4132 \begin_layout Standard
4140 <cell alignment="center" valignment="top" topline="true" usebox="none">
4143 \begin_layout Standard
4149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4152 \begin_layout Standard
4160 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4163 \begin_layout Standard
4171 <cell alignment="center" valignment="top" topline="true" usebox="none">
4174 \begin_layout Standard
4180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4183 \begin_layout Standard
4191 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4194 \begin_layout Standard
4202 <cell alignment="center" valignment="top" topline="true" usebox="none">
4205 \begin_layout Standard
4211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4214 \begin_layout Standard
4222 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4225 \begin_layout Standard
4233 <cell alignment="center" valignment="top" topline="true" usebox="none">
4236 \begin_layout Standard
4242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4245 \begin_layout Standard
4253 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4256 \begin_layout Standard
4264 <cell alignment="center" valignment="top" topline="true" usebox="none">
4267 \begin_layout Standard
4273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4276 \begin_layout Standard
4284 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4287 \begin_layout Standard
4295 <cell alignment="center" valignment="top" topline="true" usebox="none">
4298 \begin_layout Standard
4304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4307 \begin_layout Standard
4315 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4318 \begin_layout Standard
4326 <cell alignment="center" valignment="top" topline="true" usebox="none">
4329 \begin_layout Standard
4335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4338 \begin_layout Standard
4346 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4349 \begin_layout Standard
4357 <cell alignment="center" valignment="top" topline="true" usebox="none">
4360 \begin_layout Standard
4366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4369 \begin_layout Standard
4377 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4380 \begin_layout Standard
4388 <cell alignment="center" valignment="top" topline="true" usebox="none">
4391 \begin_layout Standard
4397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4400 \begin_layout Standard
4408 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4411 \begin_layout Standard
4419 <cell alignment="center" valignment="top" topline="true" usebox="none">
4422 \begin_layout Standard
4428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4431 \begin_layout Standard
4439 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4442 \begin_layout Standard
4450 <cell alignment="center" valignment="top" topline="true" usebox="none">
4453 \begin_layout Standard
4459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4462 \begin_layout Standard
4470 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4473 \begin_layout Standard
4481 <cell alignment="center" valignment="top" topline="true" usebox="none">
4484 \begin_layout Standard
4490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4493 \begin_layout Standard
4501 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4504 \begin_layout Standard
4512 <cell alignment="center" valignment="top" topline="true" usebox="none">
4515 \begin_layout Standard
4521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4524 \begin_layout Standard
4532 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4535 \begin_layout Standard
4543 <cell alignment="center" valignment="top" topline="true" usebox="none">
4546 \begin_layout Standard
4552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4555 \begin_layout Standard
4563 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4566 \begin_layout Standard
4574 <cell alignment="center" valignment="top" topline="true" usebox="none">
4577 \begin_layout Standard
4583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4586 \begin_layout Standard
4593 <row bottomline="true">
4594 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4597 \begin_layout Standard
4605 <cell alignment="center" valignment="top" topline="true" usebox="none">
4608 \begin_layout Standard
4614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4617 \begin_layout Standard
4624 <row bottomline="true" endlastfoot="true">
4625 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4628 \begin_layout Standard
4634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4637 \begin_layout Standard
4643 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4646 \begin_layout Standard
4661 \begin_layout Standard
4665 addtocounter{table}{-1}
4671 \begin_inset Note Note
4674 \begin_layout Standard
4675 See greyed-out note in section\InsetSpace ~
4677 \begin_inset LatexCommand ref
4678 reference "sub:Longtable-Captions"
4682 for an explanation of this command.
4690 \begin_layout Subsection
4691 Footnotes in Longtables
4692 \begin_inset LatexCommand label
4693 name "sub:Footnotes-in-Longtables"
4698 \begin_inset LatexCommand index
4699 name "Longtables ! Footnotes"
4706 \begin_layout Standard
4707 Footnotes can be inserted to every longtable cell.
4708 They appear at the bottom of the page where the table cell with the footnote
4712 \begin_inset LatexCommand ref
4713 reference "tab:DiffCaptions"
4717 has for example a footnote.
4720 \begin_layout Subsection
4722 \begin_inset LatexCommand index
4723 name "Longtables ! Alignment"
4730 \begin_layout Standard
4731 Longtables are by default centered.
4732 In contrary to the alignment of the table columns and row, the table alignment
4733 can currently not be changed in the table dialog.
4734 To change the alignment of longtables you have to change the value of the
4747 by inserting this line as TeX-Code before the corresponding longtable:
4750 \begin_layout Standard
4760 \begin_layout Standard
4761 Where the value can have any of the units listed in Table\InsetSpace ~
4763 \begin_inset LatexCommand ref
4764 reference "tab:Units"
4775 controls the horizontal distance from the left page border to the longtable,
4782 the distance from the right side.
4783 The default value for both lengths is
4789 , which is in this case the same as an horizontal fill in LyX.
4792 \begin_layout Standard
4793 The following longtable was left-aligned by setting
4799 to 0\InsetSpace \thinspace{}
4804 \begin_layout Standard
4818 \begin_layout Standard
4819 \begin_inset Tabular
4820 <lyxtabular version="3" rows="5" columns="5">
4821 <features islongtable="true">
4822 <column alignment="center" valignment="top" leftline="true" width="0">
4823 <column alignment="center" valignment="top" leftline="true" width="0">
4824 <column alignment="center" valignment="top" leftline="true" width="0">
4825 <column alignment="center" valignment="top" leftline="true" width="0">
4826 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4827 <row topline="true">
4828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4831 \begin_layout Standard
4837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4840 \begin_layout Standard
4846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4849 \begin_layout Standard
4855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4858 \begin_layout Standard
4864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4867 \begin_layout Standard
4874 <row topline="true">
4875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4878 \begin_layout Standard
4884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4887 \begin_layout Standard
4893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4896 \begin_layout Standard
4902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4905 \begin_layout Standard
4911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4914 \begin_layout Standard
4921 <row topline="true">
4922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4925 \begin_layout Standard
4931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4934 \begin_layout Standard
4940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4943 \begin_layout Standard
4949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4952 \begin_layout Standard
4958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4961 \begin_layout Standard
4968 <row topline="true">
4969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4972 \begin_layout Standard
4978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4981 \begin_layout Standard
4987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4990 \begin_layout Standard
4996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4999 \begin_layout Standard
5005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5008 \begin_layout Standard
5015 <row topline="true" bottomline="true">
5016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5019 \begin_layout Standard
5025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5028 \begin_layout Standard
5034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5037 \begin_layout Standard
5043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5046 \begin_layout Standard
5052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5055 \begin_layout Standard
5070 \begin_layout Standard
5086 \begin_layout Subsection
5088 \begin_inset LatexCommand index
5089 name "Longtables ! Captions"
5094 \begin_inset LatexCommand label
5095 name "sub:Longtable-Captions"
5102 \begin_layout Standard
5103 A longtable cannot be put into a table float because floats can only be
5104 on one page but the caption environment of floats can also be used for
5108 \begin_layout Standard
5109 As LyX does not yet fully support captions in longtables, a hack is needed
5113 \begin_layout Enumerate
5119 \begin_layout Enumerate
5120 Mark the first row and disable its upper line.
5123 \begin_layout Enumerate
5124 Insert a caption via the menu
5126 Insert\SpecialChar \menuseparator
5129 into the first table cell.
5131 You can also add a short title for the caption.
5134 \begin_layout Enumerate
5136 \begin_inset Quotes eld
5148 \begin_inset Quotes erd
5151 as TeX-Code behind the caption.
5154 \begin_layout Standard
5155 A short title that will appear in the LOT instead of the full title.
5164 behind the caption omits the vertical lines between the following cells
5166 The first table row is now only a dummy row for the caption, the actual
5167 table starts with the second row.
5170 \begin_layout Standard
5171 Here is a short longtable to see how it works:
5174 \begin_layout Standard
5175 \begin_inset Tabular
5176 <lyxtabular version="3" rows="6" columns="5">
5177 <features islongtable="true">
5178 <column alignment="center" valignment="top" leftline="true" width="0">
5179 <column alignment="center" valignment="top" leftline="true" width="0">
5180 <column alignment="center" valignment="top" leftline="true" width="0">
5181 <column alignment="center" valignment="top" leftline="true" width="0">
5182 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5187 \begin_layout Standard
5188 \begin_inset Caption
5190 \begin_layout Standard
5191 Longtable with caption
5195 \begin_layout Standard
5210 \begin_layout Standard
5226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5229 \begin_layout Standard
5235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5238 \begin_layout Standard
5244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5247 \begin_layout Standard
5253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5256 \begin_layout Standard
5263 <row topline="true">
5264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5267 \begin_layout Standard
5273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5276 \begin_layout Standard
5282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5285 \begin_layout Standard
5291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5294 \begin_layout Standard
5300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5303 \begin_layout Standard
5310 <row topline="true">
5311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5314 \begin_layout Standard
5320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5323 \begin_layout Standard
5329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5332 \begin_layout Standard
5338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5341 \begin_layout Standard
5347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5350 \begin_layout Standard
5357 <row topline="true">
5358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5361 \begin_layout Standard
5367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5370 \begin_layout Standard
5376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5379 \begin_layout Standard
5385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5388 \begin_layout Standard
5394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5397 \begin_layout Standard
5404 <row topline="true">
5405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5408 \begin_layout Standard
5414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5417 \begin_layout Standard
5423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5426 \begin_layout Standard
5432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5435 \begin_layout Standard
5441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5444 \begin_layout Standard
5451 <row topline="true" bottomline="true">
5452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5455 \begin_layout Standard
5461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5464 \begin_layout Standard
5470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5473 \begin_layout Standard
5479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5482 \begin_layout Standard
5488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5491 \begin_layout Standard
5505 \begin_layout Standard
5506 \begin_inset VSpace medskip
5510 \begin_inset Note Greyedout
5513 \begin_layout Standard
5518 The table number is increased for every longtable, also if you didn't set
5520 For this reason you could have the case that e.g.
5522 2.4 follows on Table\InsetSpace ~
5523 2.1 in the list of tables if there are two longtables
5525 To avoid this you can add the following command in TeX-Code behind every
5526 longtable without a caption:
5529 \begin_layout Standard
5534 addtocounter{table}{-1}
5542 \begin_layout Standard
5543 \begin_inset Note Greyedout
5546 \begin_layout Standard
5551 If you are using the LaTeX-package
5556 \begin_inset LatexCommand index
5557 name "LaTeX-packages ! hyperref"
5561 to link cross-references, the link to a longtable caption will always point
5562 to the beginning of the document.
5570 \begin_layout Standard
5576 \begin_layout Subsubsection
5577 References to Longtables
5578 \begin_inset LatexCommand index
5579 name "Longtables ! References"
5586 \begin_layout Standard
5587 \begin_inset Tabular
5588 <lyxtabular version="3" rows="6" columns="5">
5589 <features islongtable="true">
5590 <column alignment="center" valignment="top" leftline="true" width="0">
5591 <column alignment="center" valignment="top" leftline="true" width="0">
5592 <column alignment="center" valignment="top" leftline="true" width="0">
5593 <column alignment="center" valignment="top" leftline="true" width="0">
5594 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5599 \begin_layout Standard
5600 \begin_inset Caption
5602 \begin_layout Standard
5603 Referenced longtable
5604 \begin_inset LatexCommand label
5605 name "tab:RefExample"
5618 \begin_layout Standard
5634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5637 \begin_layout Standard
5643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5646 \begin_layout Standard
5652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5655 \begin_layout Standard
5661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5664 \begin_layout Standard
5671 <row topline="true">
5672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5675 \begin_layout Standard
5681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5684 \begin_layout Standard
5690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5693 \begin_layout Standard
5699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5702 \begin_layout Standard
5708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5711 \begin_layout Standard
5718 <row topline="true">
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5722 \begin_layout Standard
5728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5731 \begin_layout Standard
5737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5740 \begin_layout Standard
5746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5749 \begin_layout Standard
5755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5758 \begin_layout Standard
5765 <row topline="true">
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5769 \begin_layout Standard
5775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5778 \begin_layout Standard
5784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5787 \begin_layout Standard
5793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5796 \begin_layout Standard
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5805 \begin_layout Standard
5812 <row topline="true">
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Standard
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Standard
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5834 \begin_layout Standard
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Standard
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5852 \begin_layout Standard
5859 <row topline="true" bottomline="true">
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Standard
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Standard
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5881 \begin_layout Standard
5887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5890 \begin_layout Standard
5896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5899 \begin_layout Standard
5913 \begin_layout Standard
5914 To reference a longtable, insert a label into the caption.
5915 Note that you have to add the label prefix
5916 \begin_inset Quotes eld
5924 \begin_inset Quotes eld
5927 manually in the label field.
5930 \begin_layout Standard
5931 This is a reference to Table\InsetSpace ~
5933 \begin_inset LatexCommand ref
5934 reference "tab:RefExample"
5941 \begin_layout Standard
5942 The caption layout can be set together with all other caption of your document
5943 using the LaTeX-package
5948 \begin_inset LatexCommand index
5949 name "LaTeX-packages ! caption"
5953 , see section\InsetSpace ~
5955 \begin_inset LatexCommand ref
5956 reference "sec:Caption-Formatting"
5963 \begin_layout Subsubsection
5965 \begin_inset LatexCommand index
5966 name "Longtables ! Caption Width"
5973 \begin_layout Standard
5974 The maximal width of of caption lines is defined by the length
5981 Its default value is 4\InsetSpace \thinspace{}
5983 To change it add the following command to your document preamble or as
5984 TeX-Code into your document before the longtable that should be affected
5987 \begin_layout Standard
5997 \begin_layout Standard
5998 where the width could have one of the units listed in appendix\InsetSpace ~
6000 \begin_inset LatexCommand ref
6001 reference "cha:Units-available-in"
6008 \begin_layout Standard
6009 The following tables show the difference:
6012 \begin_layout Standard
6013 \begin_inset Tabular
6014 <lyxtabular version="3" rows="6" columns="5">
6015 <features islongtable="true">
6016 <column alignment="center" valignment="top" leftline="true" width="0">
6017 <column alignment="center" valignment="top" leftline="true" width="0">
6018 <column alignment="center" valignment="top" leftline="true" width="0">
6019 <column alignment="center" valignment="top" leftline="true" width="0">
6020 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6025 \begin_layout Standard
6026 \begin_inset Caption
6028 \begin_layout Standard
6029 long full title with default width long full title with default width long
6030 full title with default width
6034 \begin_layout Standard
6035 caption with default width
6049 \begin_layout Standard
6065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6068 \begin_layout Standard
6074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6077 \begin_layout Standard
6083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6086 \begin_layout Standard
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6095 \begin_layout Standard
6102 <row topline="true">
6103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6106 \begin_layout Standard
6112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6115 \begin_layout Standard
6121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6124 \begin_layout Standard
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6133 \begin_layout Standard
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Standard
6149 <row topline="true">
6150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6153 \begin_layout Standard
6159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6162 \begin_layout Standard
6168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6171 \begin_layout Standard
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6180 \begin_layout Standard
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6189 \begin_layout Standard
6196 <row topline="true">
6197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6200 \begin_layout Standard
6206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6209 \begin_layout Standard
6215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6218 \begin_layout Standard
6224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6227 \begin_layout Standard
6233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6236 \begin_layout Standard
6243 <row topline="true">
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Standard
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6256 \begin_layout Standard
6262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6265 \begin_layout Standard
6271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6274 \begin_layout Standard
6280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6283 \begin_layout Standard
6290 <row topline="true" bottomline="true">
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6294 \begin_layout Standard
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6303 \begin_layout Standard
6309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6312 \begin_layout Standard
6318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6321 \begin_layout Standard
6327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6330 \begin_layout Standard
6344 \begin_layout Standard
6348 \begin_layout Standard
6360 \begin_inset Tabular
6361 <lyxtabular version="3" rows="6" columns="5">
6362 <features islongtable="true">
6363 <column alignment="center" valignment="top" leftline="true" width="0">
6364 <column alignment="center" valignment="top" leftline="true" width="0">
6365 <column alignment="center" valignment="top" leftline="true" width="0">
6366 <column alignment="center" valignment="top" leftline="true" width="0">
6367 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6372 \begin_layout Standard
6373 \begin_inset Caption
6375 \begin_layout Standard
6376 long full title with width set to 5\InsetSpace \thinspace{}
6377 cm long full title with width set to
6378 5\InsetSpace \thinspace{}
6379 cm long full title with width set to 5\InsetSpace \thinspace{}
6384 \begin_layout Standard
6385 caption with width\InsetSpace \thinspace{}
6386 =\InsetSpace \thinspace{}
6387 5\InsetSpace \thinspace{}
6402 \begin_layout Standard
6418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6421 \begin_layout Standard
6427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6430 \begin_layout Standard
6436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6439 \begin_layout Standard
6445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6448 \begin_layout Standard
6455 <row topline="true">
6456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6459 \begin_layout Standard
6465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6468 \begin_layout Standard
6474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6477 \begin_layout Standard
6483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6486 \begin_layout Standard
6492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6495 \begin_layout Standard
6502 <row topline="true">
6503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6506 \begin_layout Standard
6512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6515 \begin_layout Standard
6521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6524 \begin_layout Standard
6530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6533 \begin_layout Standard
6539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6542 \begin_layout Standard
6549 <row topline="true">
6550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6553 \begin_layout Standard
6559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6562 \begin_layout Standard
6568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6571 \begin_layout Standard
6577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6580 \begin_layout Standard
6586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6589 \begin_layout Standard
6596 <row topline="true">
6597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6600 \begin_layout Standard
6606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6609 \begin_layout Standard
6615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6618 \begin_layout Standard
6624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6627 \begin_layout Standard
6633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6636 \begin_layout Standard
6643 <row topline="true" bottomline="true">
6644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6647 \begin_layout Standard
6653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6656 \begin_layout Standard
6662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6665 \begin_layout Standard
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6674 \begin_layout Standard
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6683 \begin_layout Standard
6697 \begin_layout Standard
6701 \begin_layout Standard
6715 \begin_layout Standard
6716 \begin_inset Note Greyedout
6719 \begin_layout Standard
6724 When the LaTeX-package
6729 \begin_inset LatexCommand index
6730 name "LaTeX-packages ! caption"
6734 is used, as in this document, the full page width is used for the caption
6735 when you use the default value of 4\InsetSpace \thinspace{}
6743 To get in this case exactly a 4\InsetSpace \thinspace{}
6744 in wide caption, you can either use a value
6745 slightly different from 4.0\InsetSpace \thinspace{}
6747 3.99\InsetSpace \thinspace{}
6748 in, or the LaTeX-command
6752 captionsetup{width=value}
6754 that is provided by the
6766 \begin_layout Subsubsection
6767 Different Captions for Table Pages
6768 \begin_inset LatexCommand index
6769 name "Longtables ! Different Captions for Pages"
6776 \begin_layout Standard
6777 When the other captions should differ from the one of the first table page,
6778 insert a caption with a non-empty short title in a dummy caption row marked
6780 The caption used for the other table pages is inserted as caption without
6781 a short title in a dummy caption row that is marked as main header.
6782 When this caption shouldn't include the table number, use the command
6785 \begin_layout Standard
6790 caption*{caption text}
6793 \begin_layout Standard
6794 instead of LyX's caption box.
6795 The label to reference the table is inserted into the caption of the first
6799 \begin_inset LatexCommand ref
6800 reference "tab:DiffCaptions"
6804 is an example for a longtable with different heading where the second caption
6805 doesn't include the table number.
6808 \begin_layout Standard
6810 \begin_inset Tabular
6811 <lyxtabular version="3" rows="60" columns="3">
6812 <features islongtable="true">
6813 <column alignment="left" valignment="top" leftline="true" width="0cm">
6814 <column alignment="left" valignment="top" rightline="true" width="0pt">
6815 <column alignment="right" valignment="top" rightline="true" width="0pt">
6816 <row endfirsthead="true">
6817 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6820 \begin_layout Standard
6821 \begin_inset Caption
6823 \begin_layout Standard
6825 \begin_inset LatexCommand label
6826 name "tab:DiffCaptions"
6834 \begin_layout Standard
6849 \begin_layout Standard
6865 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6868 \begin_layout Standard
6874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6877 \begin_layout Standard
6884 <row topline="true" bottomline="true" endfirsthead="true">
6885 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6888 \begin_layout Standard
6891 Example Phone List (ignore the names)
6896 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6899 \begin_layout Standard
6905 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6908 \begin_layout Standard
6915 <row topline="true" bottomline="true" endfirsthead="true">
6916 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6919 \begin_layout Standard
6927 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6930 \begin_layout Standard
6936 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6939 \begin_layout Standard
6948 <row bottomline="true" endhead="true">
6949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6952 \begin_layout Standard
6956 \begin_layout Standard
6960 caption*{Continued Example Phone List}
6974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6977 \begin_layout Standard
6983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6986 \begin_layout Standard
6993 <row topline="true" bottomline="true" endhead="true">
6994 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6997 \begin_layout Standard
7005 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7008 \begin_layout Standard
7014 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7017 \begin_layout Standard
7024 <row topline="true" bottomline="true" endhead="true">
7025 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7028 \begin_layout Standard
7036 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7039 \begin_layout Standard
7045 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7048 \begin_layout Standard
7057 <row topline="true" bottomline="true" endfoot="true">
7058 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
7061 \begin_layout Standard
7062 continued on next page
7067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7070 \begin_layout Standard
7076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Standard
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Standard
7098 <cell alignment="center" valignment="top" topline="true" usebox="none">
7101 \begin_layout Standard
7107 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7110 \begin_layout Standard
7118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7121 \begin_layout Standard
7129 <cell alignment="center" valignment="top" topline="true" usebox="none">
7132 \begin_layout Standard
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7141 \begin_layout Standard
7149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7152 \begin_layout Standard
7160 <cell alignment="center" valignment="top" topline="true" usebox="none">
7163 \begin_layout Standard
7169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7172 \begin_layout Standard
7180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7183 \begin_layout Standard
7191 <cell alignment="center" valignment="top" topline="true" usebox="none">
7194 \begin_layout Standard
7200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7203 \begin_layout Standard
7211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7214 \begin_layout Standard
7222 <cell alignment="center" valignment="top" topline="true" usebox="none">
7225 \begin_layout Standard
7231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7234 \begin_layout Standard
7242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7245 \begin_layout Standard
7253 <cell alignment="center" valignment="top" topline="true" usebox="none">
7256 \begin_layout Standard
7262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7265 \begin_layout Standard
7273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7276 \begin_layout Standard
7284 <cell alignment="center" valignment="top" topline="true" usebox="none">
7287 \begin_layout Standard
7293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7296 \begin_layout Standard
7304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7307 \begin_layout Standard
7315 <cell alignment="center" valignment="top" topline="true" usebox="none">
7318 \begin_layout Standard
7324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7327 \begin_layout Standard
7335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7338 \begin_layout Standard
7346 <cell alignment="center" valignment="top" topline="true" usebox="none">
7349 \begin_layout Standard
7355 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7358 \begin_layout Standard
7366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7369 \begin_layout Standard
7377 <cell alignment="center" valignment="top" topline="true" usebox="none">
7380 \begin_layout Standard
7386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7389 \begin_layout Standard
7397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7400 \begin_layout Standard
7408 <cell alignment="center" valignment="top" topline="true" usebox="none">
7411 \begin_layout Standard
7417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7420 \begin_layout Standard
7428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7431 \begin_layout Standard
7439 <cell alignment="center" valignment="top" topline="true" usebox="none">
7442 \begin_layout Standard
7448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7451 \begin_layout Standard
7459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7462 \begin_layout Standard
7470 <cell alignment="center" valignment="top" topline="true" usebox="none">
7473 \begin_layout Standard
7479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7482 \begin_layout Standard
7490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7493 \begin_layout Standard
7501 <cell alignment="center" valignment="top" topline="true" usebox="none">
7504 \begin_layout Standard
7510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7513 \begin_layout Standard
7521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7524 \begin_layout Standard
7533 \begin_layout Standard
7544 <cell alignment="center" valignment="top" topline="true" usebox="none">
7547 \begin_layout Standard
7553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7556 \begin_layout Standard
7564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7567 \begin_layout Standard
7575 <cell alignment="center" valignment="top" topline="true" usebox="none">
7578 \begin_layout Standard
7584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7587 \begin_layout Standard
7595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7598 \begin_layout Standard
7606 <cell alignment="center" valignment="top" topline="true" usebox="none">
7609 \begin_layout Standard
7615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7618 \begin_layout Standard
7626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7629 \begin_layout Standard
7637 <cell alignment="center" valignment="top" topline="true" usebox="none">
7640 \begin_layout Standard
7646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7649 \begin_layout Standard
7657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7660 \begin_layout Standard
7668 <cell alignment="center" valignment="top" topline="true" usebox="none">
7671 \begin_layout Standard
7677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7680 \begin_layout Standard
7688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7691 \begin_layout Standard
7699 <cell alignment="center" valignment="top" topline="true" usebox="none">
7702 \begin_layout Standard
7708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7711 \begin_layout Standard
7719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7722 \begin_layout Standard
7730 <cell alignment="center" valignment="top" topline="true" usebox="none">
7733 \begin_layout Standard
7739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7742 \begin_layout Standard
7750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7753 \begin_layout Standard
7761 <cell alignment="center" valignment="top" topline="true" usebox="none">
7764 \begin_layout Standard
7770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7773 \begin_layout Standard
7781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7784 \begin_layout Standard
7792 <cell alignment="center" valignment="top" topline="true" usebox="none">
7795 \begin_layout Standard
7801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7804 \begin_layout Standard
7812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7815 \begin_layout Standard
7823 <cell alignment="center" valignment="top" topline="true" usebox="none">
7826 \begin_layout Standard
7832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7835 \begin_layout Standard
7843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7846 \begin_layout Standard
7854 <cell alignment="center" valignment="top" topline="true" usebox="none">
7857 \begin_layout Standard
7863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7866 \begin_layout Standard
7874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7877 \begin_layout Standard
7885 <cell alignment="center" valignment="top" topline="true" usebox="none">
7888 \begin_layout Standard
7894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7897 \begin_layout Standard
7905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7908 \begin_layout Standard
7916 <cell alignment="center" valignment="top" topline="true" usebox="none">
7919 \begin_layout Standard
7925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7928 \begin_layout Standard
7936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7939 \begin_layout Standard
7947 <cell alignment="center" valignment="top" topline="true" usebox="none">
7950 \begin_layout Standard
7956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7959 \begin_layout Standard
7967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7970 \begin_layout Standard
7978 <cell alignment="center" valignment="top" topline="true" usebox="none">
7981 \begin_layout Standard
7987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7990 \begin_layout Standard
7998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8001 \begin_layout Standard
8009 <cell alignment="center" valignment="top" topline="true" usebox="none">
8012 \begin_layout Standard
8018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8021 \begin_layout Standard
8028 <row bottomline="true">
8029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8032 \begin_layout Standard
8040 <cell alignment="center" valignment="top" topline="true" usebox="none">
8043 \begin_layout Standard
8049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8052 \begin_layout Standard
8059 <row bottomline="true">
8060 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8063 \begin_layout Standard
8069 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8072 \begin_layout Standard
8078 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8081 \begin_layout Standard
8089 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8092 \begin_layout Standard
8100 <cell alignment="center" valignment="top" topline="true" usebox="none">
8103 \begin_layout Standard
8109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8112 \begin_layout Standard
8120 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8123 \begin_layout Standard
8131 <cell alignment="center" valignment="top" topline="true" usebox="none">
8134 \begin_layout Standard
8140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8143 \begin_layout Standard
8151 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8154 \begin_layout Standard
8162 <cell alignment="center" valignment="top" topline="true" usebox="none">
8165 \begin_layout Standard
8171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8174 \begin_layout Standard
8182 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8185 \begin_layout Standard
8193 <cell alignment="center" valignment="top" topline="true" usebox="none">
8196 \begin_layout Standard
8202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8205 \begin_layout Standard
8213 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8216 \begin_layout Standard
8224 <cell alignment="center" valignment="top" topline="true" usebox="none">
8227 \begin_layout Standard
8233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8236 \begin_layout Standard
8244 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8247 \begin_layout Standard
8255 <cell alignment="center" valignment="top" topline="true" usebox="none">
8258 \begin_layout Standard
8264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8267 \begin_layout Standard
8275 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8278 \begin_layout Standard
8286 <cell alignment="center" valignment="top" topline="true" usebox="none">
8289 \begin_layout Standard
8295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8298 \begin_layout Standard
8306 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8309 \begin_layout Standard
8317 <cell alignment="center" valignment="top" topline="true" usebox="none">
8320 \begin_layout Standard
8326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8329 \begin_layout Standard
8337 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8340 \begin_layout Standard
8348 <cell alignment="center" valignment="top" topline="true" usebox="none">
8351 \begin_layout Standard
8357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8360 \begin_layout Standard
8368 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8371 \begin_layout Standard
8379 <cell alignment="center" valignment="top" topline="true" usebox="none">
8382 \begin_layout Standard
8388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8391 \begin_layout Standard
8399 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8402 \begin_layout Standard
8410 <cell alignment="center" valignment="top" topline="true" usebox="none">
8413 \begin_layout Standard
8419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8422 \begin_layout Standard
8430 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8433 \begin_layout Standard
8441 <cell alignment="center" valignment="top" topline="true" usebox="none">
8444 \begin_layout Standard
8450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8453 \begin_layout Standard
8461 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8464 \begin_layout Standard
8472 <cell alignment="center" valignment="top" topline="true" usebox="none">
8475 \begin_layout Standard
8481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8484 \begin_layout Standard
8492 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8495 \begin_layout Standard
8503 <cell alignment="center" valignment="top" topline="true" usebox="none">
8506 \begin_layout Standard
8512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8515 \begin_layout Standard
8523 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8526 \begin_layout Standard
8534 <cell alignment="center" valignment="top" topline="true" usebox="none">
8537 \begin_layout Standard
8543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8546 \begin_layout Standard
8554 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8557 \begin_layout Standard
8565 <cell alignment="center" valignment="top" topline="true" usebox="none">
8568 \begin_layout Standard
8574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8577 \begin_layout Standard
8585 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8588 \begin_layout Standard
8596 <cell alignment="center" valignment="top" topline="true" usebox="none">
8599 \begin_layout Standard
8605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8608 \begin_layout Standard
8616 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8619 \begin_layout Standard
8627 <cell alignment="center" valignment="top" topline="true" usebox="none">
8630 \begin_layout Standard
8636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8639 \begin_layout Standard
8647 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8650 \begin_layout Standard
8658 <cell alignment="center" valignment="top" topline="true" usebox="none">
8661 \begin_layout Standard
8667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8670 \begin_layout Standard
8677 <row bottomline="true">
8678 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8681 \begin_layout Standard
8689 <cell alignment="center" valignment="top" topline="true" usebox="none">
8692 \begin_layout Standard
8698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8701 \begin_layout Standard
8708 <row bottomline="true" endlastfoot="true">
8709 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8712 \begin_layout Standard
8718 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8721 \begin_layout Standard
8727 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8730 \begin_layout Standard
8744 \begin_layout Section
8745 Special Longtable Issues
8746 \begin_inset LatexCommand label
8747 name "sec:Special-Longtable-Issues"
8754 \begin_layout Subsection
8755 Longtable Calculation
8756 \begin_inset LatexCommand index
8757 name "Longtables ! Calculation"
8764 \begin_layout Standard
8765 LaTeX calculates the height of table pages and their page breaks using so
8767 Chunks are pieces of the tables that are at once in LaTeX's memory.
8768 The default value is historically set to only 20 table rows.
8769 If you are using longtables with many pages this may slow down the creation
8771 You can safely increase the chunk size to values of 100-1000 by adding
8772 this command line to your document preamble:
8775 \begin_layout Standard
8780 setcounter{LTchunksize}{100}
8783 \begin_layout Subsection
8784 Floats and Longtables
8785 \begin_inset LatexCommand index
8786 name "Longtables ! Floats"
8793 \begin_layout Standard
8794 There might be problems when a float appears on the same page where a longtable
8796 To avoid such situation, add the command
8802 as TeX-Code before your longtable.
8805 \begin_layout Subsection
8807 \begin_inset LatexCommand index
8808 name "Longtables ! Forced Page Breaks"
8815 \begin_layout Standard
8816 By default tables are only broken between rows.
8817 If you have a cell with multiples lines and want to have a page break within
8818 the cell, insert the new line command
8819 \begin_inset Quotes eld
8831 \begin_inset Quotes erd
8834 as TeX-Code at this point of the cell where it should be broken.
8843 command you have to insert in TeX-Code so many
8844 \begin_inset Quotes eld
8852 \begin_inset Quotes erd
8855 characters like the number of the following table columns.
8860 is the character to separate table cells.
8861 Write in TeX-Code after each
8865 the content of the corresponding following cell and delete the content
8876 command, insert so many
8880 characters like the number of table columns before the current column.
8881 In Table\InsetSpace ~
8883 \begin_inset LatexCommand ref
8884 reference "tab:ForcedPagebreak"
8888 the cell that should be broken is in the second column followed by another
8890 Therefore the following command was inserted in the cell as TeX-Code behind
8892 \begin_inset Quotes eld
8900 \begin_inset Quotes erd
8906 \begin_layout Standard
8918 \begin_layout Standard
8920 \begin_inset Quotes eld
8924 \begin_inset Quotes erd
8927 in the third columns of the row was deleted.
8928 If your footer row of the longtable has for a certain reason no upper line
8929 but you would have a horizontal line where the cell is broken, use this
8933 \begin_layout Standard
8947 \begin_layout Standard
8948 When the cell to be broken is in the last column, the command
8951 \begin_layout Standard
8958 parf\SpecialChar \textcompwordmark{}
8962 \begin_layout Standard
8963 must be inserted as TeX-Code at the beginning of the cell.
8964 This assures that the part of the cell that will be displayed on the new
8965 page appears with the full width.
8968 \begin_layout Standard
8970 \begin_inset Tabular
8971 <lyxtabular version="3" rows="39" columns="3">
8972 <features islongtable="true">
8973 <column alignment="left" valignment="top" leftline="true" width="0cm">
8974 <column alignment="left" valignment="top" rightline="true" width="3cm">
8975 <column alignment="right" valignment="top" rightline="true" width="0pt">
8976 <row endfirsthead="true">
8977 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8980 \begin_layout Standard
8981 \begin_inset Caption
8983 \begin_layout Standard
8984 Table with forced page break in table cell
8985 \begin_inset LatexCommand label
8986 name "tab:ForcedPagebreak"
8994 \begin_layout Standard
8995 Table with forced page break in table cell
9009 \begin_layout Standard
9025 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9028 \begin_layout Standard
9034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9037 \begin_layout Standard
9044 <row topline="true" bottomline="true" endfirsthead="true">
9045 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9048 \begin_layout Standard
9051 Example Phone List (ignore the names)
9056 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9059 \begin_layout Standard
9065 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9068 \begin_layout Standard
9075 <row topline="true" bottomline="true" endfirsthead="true">
9076 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9079 \begin_layout Standard
9087 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9090 \begin_layout Standard
9096 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9099 \begin_layout Standard
9108 <row bottomline="true" endhead="true">
9109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9112 \begin_layout Standard
9116 \begin_layout Standard
9120 caption*{Continued table with forced page break in table cell}
9134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9137 \begin_layout Standard
9143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9146 \begin_layout Standard
9153 <row topline="true" bottomline="true" endhead="true">
9154 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9157 \begin_layout Standard
9165 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9168 \begin_layout Standard
9174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9177 \begin_layout Standard
9184 <row topline="true" bottomline="true" endhead="true">
9185 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9188 \begin_layout Standard
9196 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9199 \begin_layout Standard
9205 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9208 \begin_layout Standard
9217 <row topline="true" bottomline="true" endfoot="true">
9218 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
9221 \begin_layout Standard
9222 continued on next page
9227 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9230 \begin_layout Standard
9236 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9239 \begin_layout Standard
9247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9250 \begin_layout Standard
9258 <cell alignment="center" valignment="top" topline="true" usebox="none">
9261 \begin_layout Standard
9267 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9270 \begin_layout Standard
9278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9281 \begin_layout Standard
9289 <cell alignment="center" valignment="top" topline="true" usebox="none">
9292 \begin_layout Standard
9298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9301 \begin_layout Standard
9309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9312 \begin_layout Standard
9320 <cell alignment="center" valignment="top" topline="true" usebox="none">
9323 \begin_layout Standard
9329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9332 \begin_layout Standard
9340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9343 \begin_layout Standard
9351 <cell alignment="center" valignment="top" topline="true" usebox="none">
9354 \begin_layout Standard
9360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9363 \begin_layout Standard
9371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9374 \begin_layout Standard
9382 <cell alignment="center" valignment="top" topline="true" usebox="none">
9385 \begin_layout Standard
9391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9394 \begin_layout Standard
9402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9405 \begin_layout Standard
9413 <cell alignment="center" valignment="top" topline="true" usebox="none">
9416 \begin_layout Standard
9422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9425 \begin_layout Standard
9433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9436 \begin_layout Standard
9444 <cell alignment="center" valignment="top" topline="true" usebox="none">
9447 \begin_layout Standard
9453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9456 \begin_layout Standard
9464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9467 \begin_layout Standard
9475 <cell alignment="center" valignment="top" topline="true" usebox="none">
9478 \begin_layout Standard
9484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9487 \begin_layout Standard
9495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9498 \begin_layout Standard
9506 <cell alignment="center" valignment="top" topline="true" usebox="none">
9509 \begin_layout Standard
9515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9518 \begin_layout Standard
9526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9529 \begin_layout Standard
9537 <cell alignment="center" valignment="top" topline="true" usebox="none">
9540 \begin_layout Standard
9546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9549 \begin_layout Standard
9557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9560 \begin_layout Standard
9568 <cell alignment="center" valignment="top" topline="true" usebox="none">
9571 \begin_layout Standard
9577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9580 \begin_layout Standard
9588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9591 \begin_layout Standard
9599 <cell alignment="center" valignment="top" topline="true" usebox="none">
9602 \begin_layout Standard
9608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9611 \begin_layout Standard
9619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9622 \begin_layout Standard
9630 <cell alignment="center" valignment="top" topline="true" usebox="none">
9633 \begin_layout Standard
9639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9642 \begin_layout Standard
9650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9653 \begin_layout Standard
9661 <cell alignment="center" valignment="top" topline="true" usebox="none">
9664 \begin_layout Standard
9670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9673 \begin_layout Standard
9681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9684 \begin_layout Standard
9692 <cell alignment="center" valignment="top" topline="true" usebox="none">
9695 \begin_layout Standard
9701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9704 \begin_layout Standard
9712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9715 \begin_layout Standard
9723 <cell alignment="center" valignment="top" topline="true" usebox="none">
9726 \begin_layout Standard
9732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9735 \begin_layout Standard
9743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9746 \begin_layout Standard
9754 <cell alignment="center" valignment="top" topline="true" usebox="none">
9757 \begin_layout Standard
9763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9766 \begin_layout Standard
9774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9777 \begin_layout Standard
9785 <cell alignment="center" valignment="top" topline="true" usebox="none">
9788 \begin_layout Standard
9794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9797 \begin_layout Standard
9805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9808 \begin_layout Standard
9816 <cell alignment="center" valignment="top" topline="true" usebox="none">
9819 \begin_layout Standard
9825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9828 \begin_layout Standard
9836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9839 \begin_layout Standard
9847 <cell alignment="center" valignment="top" topline="true" usebox="none">
9850 \begin_layout Standard
9856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9859 \begin_layout Standard
9867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9870 \begin_layout Standard
9878 <cell alignment="center" valignment="top" topline="true" usebox="none">
9881 \begin_layout Standard
9887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9890 \begin_layout Standard
9898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9901 \begin_layout Standard
9909 <cell alignment="center" valignment="top" topline="true" usebox="none">
9912 \begin_layout Standard
9918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9921 \begin_layout Standard
9929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9932 \begin_layout Standard
9940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9943 \begin_layout Standard
9945 Fürst von Montecompatri, 11.
9946 Fürst von Sulmona und Vivaro, 10.
9947 Fürst von Rossano, 5.
9948 Herzog von Canemorte, 11.
9949 Herzog von Palombara, 5.
9950 Herzog von Castelchiodato,
9954 \begin_layout Standard
9963 \begin_layout Standard
9971 Herzog von Poggionativo, 11.
9972 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9973 Graf von Valinfreda, 11.
9974 Baron von Cropalati, 11.
9975 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9983 \begin_layout Standard
9991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9994 \begin_layout Standard
10002 <cell alignment="center" valignment="top" topline="true" usebox="none">
10005 \begin_layout Standard
10011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10014 \begin_layout Standard
10022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10025 \begin_layout Standard
10033 <cell alignment="center" valignment="top" topline="true" usebox="none">
10036 \begin_layout Standard
10042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10045 \begin_layout Standard
10053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10056 \begin_layout Standard
10064 <cell alignment="center" valignment="top" topline="true" usebox="none">
10067 \begin_layout Standard
10073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10076 \begin_layout Standard
10084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10087 \begin_layout Standard
10095 <cell alignment="center" valignment="top" topline="true" usebox="none">
10098 \begin_layout Standard
10104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10107 \begin_layout Standard
10115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10118 \begin_layout Standard
10126 <cell alignment="center" valignment="top" topline="true" usebox="none">
10129 \begin_layout Standard
10135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10138 \begin_layout Standard
10146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10149 \begin_layout Standard
10157 <cell alignment="center" valignment="top" topline="true" usebox="none">
10160 \begin_layout Standard
10166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10169 \begin_layout Standard
10177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10180 \begin_layout Standard
10188 <cell alignment="center" valignment="top" topline="true" usebox="none">
10191 \begin_layout Standard
10197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10200 \begin_layout Standard
10207 <row bottomline="true">
10208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10211 \begin_layout Standard
10219 <cell alignment="center" valignment="top" topline="true" usebox="none">
10222 \begin_layout Standard
10228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10231 \begin_layout Standard
10238 <row endlastfoot="true">
10239 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10242 \begin_layout Standard
10248 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10251 \begin_layout Standard
10257 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10260 \begin_layout Standard
10274 \begin_layout Standard
10280 \begin_layout Section
10281 Multiple Lines Columns and Rows
10284 \begin_layout Subsection
10285 Multiple Lines in Table Cells
10286 \begin_inset LatexCommand label
10287 name "sub:Multiple-Lines-in"
10292 \begin_inset LatexCommand index
10293 name "Multiple Lines in Table Cells"
10298 \begin_inset LatexCommand index
10299 name "Table ! Linebreaks"
10306 \begin_layout Standard
10308 \begin_inset Float table
10314 \begin_layout Standard
10315 \begin_inset Caption
10317 \begin_layout Standard
10318 \begin_inset LatexCommand label
10319 name "tab:Table-with-multiple"
10323 Table with multiple lines in cells
10331 \begin_layout Standard
10333 \begin_inset Tabular
10334 <lyxtabular version="3" rows="3" columns="3">
10336 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10337 <column alignment="center" valignment="middle" leftline="true" width="0">
10338 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10339 <row topline="true">
10340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10343 \begin_layout Standard
10348 \begin_layout Standard
10362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10365 \begin_layout Standard
10371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10374 \begin_layout Standard
10381 <row topline="true">
10382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10385 \begin_layout Standard
10391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10394 \begin_layout Standard
10400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10403 \begin_layout Standard
10410 <row topline="true" bottomline="true">
10411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10414 \begin_layout Standard
10420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10423 \begin_layout Standard
10429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10432 \begin_layout Standard
10451 \begin_layout Standard
10452 Adjusting a fixed width for a column, enables to enter text as a paragraph
10453 with multiple lines and hyphenations.
10456 \begin_layout Standard
10457 To produce Table\InsetSpace ~
10459 \begin_inset LatexCommand ref
10460 reference "tab:Table-with-multiple"
10464 , create a 3×3 table, mark the first cell and right-click on it.
10465 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10466 cm and choose centered
10467 for the vertical and horizontal alignment.
10468 The vertical alignment is used for all cells of the row.
10469 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10470 cm, only one line will appear.
10471 To get two lines, we add a line break with the command
10474 \begin_layout Standard
10482 \begin_layout Standard
10484 If the text is wider than the set cell width it will automatically be broken
10488 \begin_layout Standard
10489 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10490 by LaTeX if it is the first entry.
10491 Therefore you need to insert something, to make the word not being the
10492 first entry: Add the command
10495 \begin_layout Standard
10503 \begin_layout Standard
10504 in TeX-Code before the word.
10505 As the space is zero, it doesn't change the output.
10508 \begin_inset LatexCommand ref
10509 reference "tab:Table-with-and"
10516 \begin_layout Standard
10517 \begin_inset Float table
10523 \begin_layout Standard
10524 \begin_inset Caption
10526 \begin_layout Standard
10527 \begin_inset LatexCommand label
10528 name "tab:Table-with-and"
10532 Table with and without hyphenation
10540 \begin_layout Standard
10544 \begin_inset Tabular
10545 <lyxtabular version="3" rows="3" columns="3">
10547 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10548 <column alignment="center" valignment="middle" leftline="true" width="0">
10549 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10550 <row topline="true">
10551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10554 \begin_layout Standard
10555 verylongtablecellword
10560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10563 \begin_layout Standard
10569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10572 \begin_layout Standard
10579 <row topline="true">
10580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10583 \begin_layout Standard
10589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10592 \begin_layout Standard
10598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10601 \begin_layout Standard
10608 <row topline="true" bottomline="true">
10609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10612 \begin_layout Standard
10618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10621 \begin_layout Standard
10627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10630 \begin_layout Standard
10644 \begin_inset Tabular
10645 <lyxtabular version="3" rows="3" columns="3">
10647 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10648 <column alignment="center" valignment="middle" leftline="true" width="0">
10649 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10650 <row topline="true">
10651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10654 \begin_layout Standard
10658 \begin_layout Standard
10667 verylongtablecellword
10672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10675 \begin_layout Standard
10681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10684 \begin_layout Standard
10691 <row topline="true">
10692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10695 \begin_layout Standard
10701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10704 \begin_layout Standard
10710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10713 \begin_layout Standard
10720 <row topline="true" bottomline="true">
10721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10724 \begin_layout Standard
10730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10733 \begin_layout Standard
10739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10742 \begin_layout Standard
10763 \begin_layout Standard
10769 \begin_layout Subsection
10771 \begin_inset LatexCommand label
10772 name "sub:Multicolumns"
10777 \begin_inset LatexCommand index
10778 name "Multicolumns"
10783 \begin_inset LatexCommand index
10784 name "Table ! Multicolumns"
10791 \begin_layout Subsubsection
10795 \begin_layout Standard
10796 To span a cell over multiple columns, mark as much cells within a line that
10797 should be one spanned cell and use either the table-toolbar button
10798 \begin_inset Graphics
10799 filename ../images/tabular-feature_multicolumn.png
10801 scaleBeforeRotation
10807 Edit\SpecialChar \menuseparator
10808 Table\SpecialChar \menuseparator
10811 , or right click on the marked cells and choose multicolumn in the appearing
10812 table dialog under the tab
10819 \begin_layout Standard
10820 Multicolumns have there own cell settings.
10821 That means changing cell borders, cell alignment, and the width only affects
10823 Here is an example table with a multicolumn cell in the first row and one
10824 in the last row without the upper border:
10827 \begin_layout Standard
10829 \begin_inset Tabular
10830 <lyxtabular version="3" rows="3" columns="4">
10831 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10832 <column alignment="center" valignment="top" leftline="true" width="0pt">
10833 <column alignment="center" valignment="middle" leftline="true" width="0">
10834 <column alignment="center" valignment="top" leftline="true" width="0in">
10835 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10836 <row topline="true" bottomline="true">
10837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10840 \begin_layout Standard
10846 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10849 \begin_layout Standard
10855 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10858 \begin_layout Standard
10864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10867 \begin_layout Standard
10874 <row topline="true">
10875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10878 \begin_layout Standard
10893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10896 \begin_layout Standard
10902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10905 \begin_layout Standard
10911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10914 \begin_layout Standard
10921 <row topline="true" bottomline="true">
10922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10925 \begin_layout Standard
10931 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10934 \begin_layout Standard
10940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10943 \begin_layout Standard
10949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10952 \begin_layout Standard
10966 \begin_layout Subsubsection
10967 Multicolumn Calculations
10968 \begin_inset LatexCommand label
10969 name "sub:Multicolumn-Calculations"
10974 \begin_inset LatexCommand index
10975 name "Multicolumns ! Calculations"
10982 \begin_layout Standard
10983 LyX supports multicolumns directly, but we have to take notice of the cell
10984 width of the columns spanned by the multicolumn cell.
10987 \begin_layout Standard
10988 \begin_inset Float table
10993 \begin_layout Standard
10994 \begin_inset Caption
10996 \begin_layout Standard
10997 \begin_inset LatexCommand label
10998 name "tab:Table-with-centered"
11002 Table with centered multicolumn text above two columns that have exactly
11003 half the width of the multicolumn cell
11004 \begin_inset OptArg
11007 \begin_layout Standard
11008 Perfect multicolumn table
11021 \begin_layout Standard
11023 \begin_inset Tabular
11024 <lyxtabular version="3" rows="3" columns="3">
11026 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11027 <column alignment="center" valignment="middle" leftline="true" width="0">
11028 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11029 <row topline="true">
11030 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11033 \begin_layout Standard
11034 multiple lines multicolumn
11039 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11042 \begin_layout Standard
11048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11051 \begin_layout Standard
11058 <row topline="true">
11059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11062 \begin_layout Standard
11068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11071 \begin_layout Standard
11077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11080 \begin_layout Standard
11087 <row topline="true" bottomline="true">
11088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11091 \begin_layout Standard
11097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11100 \begin_layout Standard
11106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11109 \begin_layout Standard
11128 \begin_layout Standard
11129 To create for example Table\InsetSpace ~
11131 \begin_inset LatexCommand ref
11132 reference "tab:Table-with-centered"
11136 , mark the first two cells in the first row of a 3×3 table and right-click
11138 Now choose for this cell
11146 and a width of 2.5\InsetSpace \thinspace{}
11147 cm in the table dialog.
11148 The spanned columns should have exactly half the width of the multicolumn
11149 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
11150 cm for the first column.
11151 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
11153 width - width of first column).
11154 This was done for Table\InsetSpace ~
11156 \begin_inset LatexCommand ref
11157 reference "tab:Table-without-half"
11164 \begin_layout Standard
11165 \begin_inset Float table
11170 \begin_layout Standard
11171 \begin_inset Caption
11173 \begin_layout Standard
11174 \begin_inset LatexCommand label
11175 name "tab:Table-without-half"
11179 Table where the spanned table columns have not exactly half the width of
11180 the multicolumn cell
11181 \begin_inset OptArg
11184 \begin_layout Standard
11185 Imperfect multicolumn table
11198 \begin_layout Standard
11200 \begin_inset Tabular
11201 <lyxtabular version="3" rows="3" columns="3">
11203 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
11204 <column alignment="center" valignment="top" leftline="true" width="0">
11205 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11206 <row topline="true" bottomline="true">
11207 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11210 \begin_layout Standard
11211 multiple lines multicolumn
11216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11219 \begin_layout Standard
11225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11228 \begin_layout Standard
11235 <row topline="true">
11236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11239 \begin_layout Standard
11245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11248 \begin_layout Standard
11254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11257 \begin_layout Standard
11264 <row topline="true" bottomline="true">
11265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11268 \begin_layout Standard
11274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11277 \begin_layout Standard
11283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11286 \begin_layout Standard
11305 \begin_layout Standard
11306 You can see that the first column has not the half width of the multicolumn
11307 cell, it is a bit bigger.
11308 The reason is that the given width of a cell
11309 \begin_inset Formula $W_{g}$
11312 is not its total width
11313 \begin_inset Formula $W_{\mathrm{tot}}$
11316 because a cell is always a bit larger than its given width.
11317 Appendix\InsetSpace ~
11319 \begin_inset LatexCommand eqref
11320 reference "cha:Explanation-of-Equation"
11324 explains it in detail.
11327 \begin_layout Standard
11328 The needed given width
11329 \begin_inset Formula $W_{g\, n}$
11336 columns are spanned can be calculated, so that each column has a total
11338 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11342 \begin_inset Formula \begin{equation}
11343 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11350 \begin_layout Standard
11351 In our case we have
11352 \begin_inset Formula $n=2$
11356 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11359 cm and the default values for the lengths, so that equation
11360 \begin_inset LatexCommand ref
11366 \begin_inset Formula \begin{equation}
11367 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11374 \begin_layout Standard
11375 To enable calculations in LaTeX, the LaTeX-package
11379 must be loaded with the document preamble line
11380 \begin_inset LatexCommand index
11381 name "LaTeX-packages ! calc"
11388 \begin_layout Standard
11396 \begin_layout Standard
11397 LyX does not allow to calculate lengths in the width-field of the table
11399 Therefore you have to format the column by inserting a LaTeX-argument in
11401 Here is an overview about the arguments:
11404 \begin_layout Itemize
11409 creates cell with a fixed width, its text is vertically top-aligned
11412 \begin_layout Itemize
11417 creates cell with a fixed width, its text is vertically centered
11420 \begin_layout Itemize
11425 creates cell with a fixed width, its text is vertically bottom-aligned
11428 \begin_layout Standard
11429 By entering a LaTeX-argument, all cell settings set in the table dialog
11433 \begin_layout Standard
11434 \begin_inset Note Greyedout
11437 \begin_layout Standard
11442 Due to a bug, LyX shows the overwritten settings anyway.
11450 \begin_layout Standard
11451 As the text should be horizontally centered, the command
11458 You can now enter the following LaTeX-argument for the first spanned column:
11461 \begin_layout Standard
11466 centering}m{1.25cm-6.2pt}
11469 \begin_layout Standard
11474 means, that the commands inside the braces are applied before the cell
11478 \begin_layout Standard
11479 Although we have chosen centered alignment for the text of the multicolumn
11480 cell, it is still left aligned.
11481 This is because LyX only applies the alignment to single columns.
11482 So we have to use for the multicolumn the LaTeX-argument
11485 \begin_layout Standard
11493 \begin_layout Subsection
11495 \begin_inset LatexCommand index
11501 \begin_inset LatexCommand index
11502 name "Table ! Multirows"
11507 \begin_inset LatexCommand index
11508 name "LaTeX-packages ! multirow"
11515 \begin_layout Standard
11516 In contrary to multicolumns multirows are not yet supported by LyX so a
11517 bit of TeX-Code needs to be used.
11518 To use multirows load the LaTeX-package
11522 in your document preamble with the command
11525 \begin_layout Standard
11530 usepackage{multirow}
11533 \begin_layout Standard
11534 Multirows are created with the command
11537 \begin_layout Standard
11542 multirow{number of rows}{cell width}{cell entry}
11545 \begin_layout Standard
11546 To create the following table:
11549 \begin_layout Standard
11554 \begin_layout Standard
11568 \begin_inset Tabular
11569 <lyxtabular version="3" rows="3" columns="3">
11571 <column alignment="center" valignment="top" leftline="true" width="0">
11572 <column alignment="center" valignment="top" leftline="true" width="0">
11573 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11574 <row topline="true">
11575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11578 \begin_layout Standard
11584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11587 \begin_layout Standard
11593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11596 \begin_layout Standard
11603 <row topline="true">
11604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11607 \begin_layout Standard
11611 \begin_layout Standard
11615 multirow{2}{2.5cm}{
11624 \begin_layout Standard
11636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11639 \begin_layout Standard
11645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11648 \begin_layout Standard
11655 <row topline="true" bottomline="true">
11656 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11659 \begin_layout Standard
11665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11668 \begin_layout Standard
11674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11677 \begin_layout Standard
11692 \begin_layout Standard
11708 \begin_layout Standard
11709 create a 3×3 table.
11710 To get rid of the line above the last cell in the first column, the cell
11711 is marked as multicolumn and the upper border is unset.
11712 The multirow is now created in the second row of the first column by inserting
11716 \begin_layout Standard
11721 multirow{2}{2.5cm}{
11724 \begin_layout Standard
11726 According to the command parameters the multirow spans now two rows and
11727 has a width of 2.5\InsetSpace \thinspace{}
11729 The content of the multirow cell follows outside the TeX-Code box and the
11730 command is finished with a right brace
11734 in another TeX-Code-box behind the text.
11737 \begin_layout Standard
11744 left-aligns its content by default.
11745 To override the default, renew the command
11754 \begin_layout Standard
11766 \begin_layout Standard
11767 in TeX-Code in the document preamble.
11768 Then all entries of multirow cells in the document are centered.
11769 If centering is only needed for several tables, you can renew the command
11770 in an TeX-Code box just before the table instead of the preamble.
11771 If the text should be right-aligned, replace
11784 To return to left-alignment
11793 \begin_layout Section
11795 \begin_inset LatexCommand label
11796 name "sec:Formal-Tables"
11801 \begin_inset LatexCommand index
11802 name "Table ! Formal"
11809 \begin_layout Standard
11810 Tables are often typeset in books similar to Table\InsetSpace ~
11812 \begin_inset LatexCommand ref
11813 reference "tab:Example-booktabs-table"
11818 This kind of tables is called
11819 \begin_inset Quotes eld
11827 \begin_inset Quotes erd
11831 To make a table a formal table use the option
11839 tab of the table dialog.
11842 \begin_layout Standard
11843 \begin_inset Float table
11849 \begin_layout Standard
11850 \begin_inset Caption
11852 \begin_layout Standard
11853 \begin_inset LatexCommand label
11854 name "tab:Example-booktabs-table"
11858 Example booktabs-table
11866 \begin_layout Standard
11868 \begin_inset Tabular
11869 <lyxtabular version="3" rows="8" columns="4">
11870 <features booktabs="true">
11871 <column alignment="center" valignment="top" rightline="true" width="0">
11872 <column alignment="center" valignment="top" width="0">
11873 <column alignment="center" valignment="top" width="0">
11874 <column alignment="center" valignment="top" width="0">
11875 <row topline="true">
11876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11879 \begin_layout Standard
11885 <cell alignment="center" valignment="top" topline="true" usebox="none">
11888 \begin_layout Standard
11890 \begin_inset Formula $\,$
11898 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11901 \begin_layout Standard
11903 \begin_inset Formula $\,$
11911 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11914 \begin_layout Standard
11922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11925 \begin_layout Standard
11929 \begin_layout Standard
11942 \begin_layout Standard
11951 Detector thickness [µm]
11956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11959 \begin_layout Standard
11965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11968 \begin_layout Standard
11974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11977 \begin_layout Standard
11984 <row topline="true">
11985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11988 \begin_layout Standard
11994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11997 \begin_layout Standard
12003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12006 \begin_layout Standard
12012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12015 \begin_layout Standard
12022 <row topspace="default">
12023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12026 \begin_layout Standard
12027 Spatial resolution [µm]
12032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12035 \begin_layout Standard
12041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12044 \begin_layout Standard
12050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12053 \begin_layout Standard
12060 <row topspace="default">
12061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12064 \begin_layout Standard
12066 \begin_inset Formula $f_{\mathrm{max}}$
12074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12077 \begin_layout Standard
12083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12086 \begin_layout Standard
12092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12095 \begin_layout Standard
12102 <row topspace="default">
12103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12106 \begin_layout Standard
12110 \begin_layout Standard
12114 cmidrule(l{10pt}){1-1}
12119 LSF-spatial resolution
12124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12127 \begin_layout Standard
12133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12136 \begin_layout Standard
12142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12145 \begin_layout Standard
12153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12156 \begin_layout Standard
12162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12165 \begin_layout Standard
12171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12174 \begin_layout Standard
12180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12183 \begin_layout Standard
12190 <row bottomline="true">
12191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12194 \begin_layout Standard
12200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12203 \begin_layout Standard
12209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12212 \begin_layout Standard
12218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12221 \begin_layout Standard
12240 \begin_layout Standard
12241 Spaces to table rows can be added using the
12245 tab of the table dialog as described in section\InsetSpace ~
12247 \begin_inset LatexCommand ref
12248 reference "sub:Row-Spacing"
12255 \begin_layout Standard
12256 In contrary to normal tables, formal tables have no vertical table lines.
12257 The horizontal table lines can be set like for normal tables but they appear
12258 with different width in the output:
12260 The first and the last table line have
12261 a default width of 0.08\InsetSpace \thinspace{}
12262 em while the other lines have a default width of
12263 0.05\InsetSpace \thinspace{}
12267 \begin_layout Standard
12268 The default widths can be changed with the following preamble lines
12271 \begin_layout Standard
12291 \begin_layout Standard
12292 This example is for the first line, the so called
12297 If you want to change the width for the last line, replace
12306 To change the width for the other lines replace
12315 You can use all units listed in appendix\InsetSpace ~
12317 \begin_inset LatexCommand ref
12318 reference "cha:Units-available-in"
12325 \begin_layout Standard
12326 Lines that don't span over all table columns can be created by setting a
12327 table line for multicolumn cells.
12328 LyX will then internally use the command
12334 to create this line.
12338 \begin_layout Standard
12343 cmidrule[width](trim){startcol-endcol}
12346 \begin_layout Standard
12353 are are currently not supported by LyX so you have to use TeX-Code to be
12361 s can manually be created by inserting the command as TeX-Code as first
12362 cell entry of the first cell of a row.
12363 The line is then drawn in the output above the current row.
12366 \begin_layout Standard
12367 The default for the width is 0.03\InsetSpace \thinspace{}
12369 Startcol is the number of the column where the line starts and endcol the
12370 column number where the line ends.
12371 The endcol always needs to be specified, also when the line should span
12373 The optional parameter trim could be either
12381 where the trimwidth is also optional.
12382 Using for example the parameter
12386 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
12388 If you don't specify the trimwidth the lines are trimmed by the default
12389 of 0.5\InsetSpace \thinspace{}
12393 \begin_layout Standard
12394 \begin_inset VSpace bigskip
12399 \begin_inset LatexCommand ref
12400 reference "tab:Example-booktabs-table"
12404 was created using the commands
12407 \begin_layout Standard
12417 \begin_layout Standard
12418 at the beginning of the in the second row and
12421 \begin_layout Standard
12426 cmidrule(l{10pt}){1-1}
12429 \begin_layout Standard
12433 \begin_layout Standard
12434 \begin_inset VSpace bigskip
12440 \begin_layout Standard
12441 You might want to have overlapping
12447 s like in Table\InsetSpace ~
12449 \begin_inset LatexCommand ref
12450 reference "tab:Special-booktabs-table"
12455 This can be achieved with the TeX-Code command
12458 \begin_layout Standard
12466 \begin_layout Standard
12467 The command that was used for the second row of Table\InsetSpace ~
12469 \begin_inset LatexCommand ref
12470 reference "tab:Special-booktabs-table"
12477 \begin_layout Standard
12491 \begin_layout Standard
12492 The command for the sixth row is
12495 \begin_layout Standard
12507 \begin_layout Standard
12508 \begin_inset VSpace bigskip
12514 \begin_layout Standard
12515 If you are anyway not satisfied with the border line spacing, you can use
12516 the following command to produce lines that span over all table columns
12521 \begin_layout Standard
12526 specialrule{width}{space above}{space below}
12529 \begin_layout Standard
12530 For more informations about these specialties, we refer to the manual of
12536 \begin_inset LatexCommand cite
12542 \begin_inset LatexCommand index
12543 name "LaTeX-packages ! booktabs"
12550 \begin_layout Standard
12551 \begin_inset Float table
12557 \begin_layout Standard
12558 \begin_inset Caption
12560 \begin_layout Standard
12561 \begin_inset LatexCommand label
12562 name "tab:Special-booktabs-table"
12566 Special booktabs-table
12574 \begin_layout Standard
12576 \begin_inset Tabular
12577 <lyxtabular version="3" rows="8" columns="4">
12578 <features booktabs="true">
12579 <column alignment="center" valignment="top" width="0">
12580 <column alignment="center" valignment="top" width="0">
12581 <column alignment="center" valignment="top" width="0">
12582 <column alignment="center" valignment="top" width="0">
12583 <row topline="true">
12584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12587 \begin_layout Standard
12593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12596 \begin_layout Standard
12597 Medipix\InsetSpace \thinspace{}
12603 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12606 \begin_layout Standard
12607 Medipix\InsetSpace \thinspace{}
12613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12616 \begin_layout Standard
12624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12627 \begin_layout Standard
12631 \begin_layout Standard
12644 \begin_layout Standard
12657 \begin_layout Standard
12670 \begin_layout Standard
12679 Detector thickness [µm]
12684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12687 \begin_layout Standard
12693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12696 \begin_layout Standard
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12705 \begin_layout Standard
12712 <row topline="true">
12713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12716 \begin_layout Standard
12722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12725 \begin_layout Standard
12731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12734 \begin_layout Standard
12740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12743 \begin_layout Standard
12750 <row topspace="default">
12751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12754 \begin_layout Standard
12755 Spatial resolution [µm]
12760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12763 \begin_layout Standard
12769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12772 \begin_layout Standard
12778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12781 \begin_layout Standard
12788 <row topspace="default">
12789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12792 \begin_layout Standard
12794 \begin_inset Formula $f_{\mathrm{max}}$
12802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12805 \begin_layout Standard
12811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12814 \begin_layout Standard
12820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12823 \begin_layout Standard
12830 <row topline="true">
12831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12834 \begin_layout Standard
12838 \begin_layout Standard
12851 \begin_layout Standard
12860 LSF-spatial resolution
12865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12868 \begin_layout Standard
12874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12877 \begin_layout Standard
12883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12886 \begin_layout Standard
12894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12897 \begin_layout Standard
12903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12906 \begin_layout Standard
12912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12915 \begin_layout Standard
12921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12924 \begin_layout Standard
12931 <row bottomline="true">
12932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12935 \begin_layout Standard
12941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12944 \begin_layout Standard
12950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12953 \begin_layout Standard
12959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12962 \begin_layout Standard
12981 \begin_layout Section
12982 Vertical Table Alignment
12983 \begin_inset LatexCommand index
12984 name "Table ! Alignment"
12991 \begin_layout Standard
12992 To align tables vertically in a text line the table must be inside a box.
12993 The box can then be vertically aligned as described in section\InsetSpace ~
12995 \begin_inset LatexCommand ref
12996 reference "sec:Box-Dialog"
13003 \begin_layout Standard
13004 In the following example the tables are inside a minipage
13008 \begin_layout Standard
13009 Minipages are described in section\InsetSpace ~
13011 \begin_inset LatexCommand ref
13012 reference "sec:Minipages"
13021 box that has a width of 15\InsetSpace \thinspace{}
13025 \begin_layout Itemize
13027 \begin_inset Box Frameless
13036 height_special "totalheight"
13039 \begin_layout Standard
13040 \begin_inset Tabular
13041 <lyxtabular version="3" rows="3" columns="3">
13043 <column alignment="center" valignment="top" leftline="true" width="0">
13044 <column alignment="center" valignment="top" leftline="true" width="0">
13045 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13046 <row topline="true">
13047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13050 \begin_layout Standard
13056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13059 \begin_layout Standard
13065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13068 \begin_layout Standard
13075 <row topline="true">
13076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13079 \begin_layout Standard
13085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13088 \begin_layout Standard
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13097 \begin_layout Standard
13104 <row topline="true" bottomline="true">
13105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13108 \begin_layout Standard
13114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13117 \begin_layout Standard
13123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13126 \begin_layout Standard
13146 \begin_layout Standard
13158 \begin_inset Box Frameless
13167 height_special "totalheight"
13170 \begin_layout Standard
13171 \begin_inset Tabular
13172 <lyxtabular version="3" rows="3" columns="3">
13174 <column alignment="center" valignment="top" leftline="true" width="0">
13175 <column alignment="center" valignment="top" leftline="true" width="0">
13176 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13177 <row topline="true">
13178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13181 \begin_layout Standard
13187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13190 \begin_layout Standard
13196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13199 \begin_layout Standard
13206 <row topline="true">
13207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13210 \begin_layout Standard
13216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13219 \begin_layout Standard
13225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13228 \begin_layout Standard
13235 <row topline="true" bottomline="true">
13236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13239 \begin_layout Standard
13245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13248 \begin_layout Standard
13254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13257 \begin_layout Standard
13277 \begin_layout Standard
13287 \begin_layout Itemize
13289 \begin_inset Box Frameless
13298 height_special "totalheight"
13301 \begin_layout Standard
13302 \begin_inset Tabular
13303 <lyxtabular version="3" rows="3" columns="3">
13305 <column alignment="center" valignment="top" leftline="true" width="0">
13306 <column alignment="center" valignment="top" leftline="true" width="0">
13307 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13308 <row topline="true">
13309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13312 \begin_layout Standard
13318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13321 \begin_layout Standard
13327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13330 \begin_layout Standard
13337 <row topline="true">
13338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13341 \begin_layout Standard
13347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13350 \begin_layout Standard
13356 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13359 \begin_layout Standard
13366 <row topline="true" bottomline="true">
13367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13370 \begin_layout Standard
13376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13379 \begin_layout Standard
13385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13388 \begin_layout Standard
13407 \begin_layout Itemize
13409 \begin_inset Box Frameless
13418 height_special "totalheight"
13421 \begin_layout Standard
13422 \begin_inset Tabular
13423 <lyxtabular version="3" rows="3" columns="3">
13425 <column alignment="center" valignment="top" leftline="true" width="0">
13426 <column alignment="center" valignment="top" leftline="true" width="0">
13427 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13428 <row topline="true">
13429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13432 \begin_layout Standard
13438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13441 \begin_layout Standard
13447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13450 \begin_layout Standard
13457 <row topline="true">
13458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13461 \begin_layout Standard
13467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13470 \begin_layout Standard
13476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13479 \begin_layout Standard
13486 <row topline="true" bottomline="true">
13487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13490 \begin_layout Standard
13496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13499 \begin_layout Standard
13505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13508 \begin_layout Standard
13528 \begin_layout Standard
13540 \begin_inset Box Frameless
13549 height_special "totalheight"
13552 \begin_layout Standard
13553 \begin_inset Tabular
13554 <lyxtabular version="3" rows="3" columns="3">
13556 <column alignment="center" valignment="top" leftline="true" width="0">
13557 <column alignment="center" valignment="top" leftline="true" width="0">
13558 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13559 <row topline="true">
13560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13563 \begin_layout Standard
13569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13572 \begin_layout Standard
13578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13581 \begin_layout Standard
13588 <row topline="true">
13589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13592 \begin_layout Standard
13598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13601 \begin_layout Standard
13607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13610 \begin_layout Standard
13617 <row topline="true" bottomline="true">
13618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13621 \begin_layout Standard
13627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13630 \begin_layout Standard
13636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13639 \begin_layout Standard
13659 \begin_layout Standard
13669 \begin_layout Standard
13670 As you can see, the content of the first and last table row is not correctly
13671 aligned with the text line where the table is in.
13672 To get this alignment, the minipage box must be set into a raisebox
13676 \begin_layout Standard
13677 Raiseboxes are described in section\InsetSpace ~
13679 \begin_inset LatexCommand ref
13680 reference "sub:Vertical-Alignment"
13690 In the example above the second table in the first item is aligned using
13691 the TeX-Code-command
13694 \begin_layout Standard
13704 \begin_layout Standard
13706 Behind the box the closing brace
13710 is inserted as TeX-Code.
13711 For the second table in the last item the command
13714 \begin_layout Standard
13724 \begin_layout Standard
13728 \begin_layout Standard
13729 \begin_inset Note Greyedout
13732 \begin_layout Standard
13737 The alignment of the table row content to the surrounding text line is
13739 The needed factor of the
13745 command for this alignment depends on the document font, the font size,
13746 and the table line thickness.
13754 \begin_layout Section
13756 \begin_inset LatexCommand label
13757 name "sec:Colored-Tables"
13762 \begin_inset LatexCommand index
13763 name "Table ! Color"
13770 \begin_layout Subsection
13772 \begin_inset LatexCommand index
13773 name "Table Color ! for Cells"
13778 \begin_inset LatexCommand index
13779 name "Color ! for Table Cells"
13786 \begin_layout Standard
13787 \begin_inset Float table
13793 \begin_layout Standard
13794 \begin_inset Caption
13796 \begin_layout Standard
13797 \begin_inset LatexCommand label
13798 name "tab:Table-colored-without"
13802 Table colored without using the package
13807 \begin_inset OptArg
13810 \begin_layout Standard
13811 Table without colortbl
13824 \begin_layout Standard
13826 \begin_inset Tabular
13827 <lyxtabular version="3" rows="3" columns="3">
13829 <column alignment="center" valignment="top" leftline="true" width="0">
13830 <column alignment="center" valignment="top" leftline="true" width="0">
13831 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13832 <row topline="true">
13833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13836 \begin_layout Standard
13844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13847 \begin_layout Standard
13855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13858 \begin_layout Standard
13867 <row topline="true">
13868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13871 \begin_layout Standard
13879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13882 \begin_layout Standard
13890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13893 \begin_layout Standard
13902 <row topline="true" bottomline="true">
13903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13906 \begin_layout Standard
13914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13917 \begin_layout Standard
13925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13928 \begin_layout Standard
13949 \begin_layout Standard
13950 If you only need colored text, mark the cells and choose a color in the
13953 Edit\SpecialChar \menuseparator
13958 This was used to create Table\InsetSpace ~
13960 \begin_inset LatexCommand ref
13961 reference "tab:Table-colored-without"
13966 In any other case you have to use the LaTeX-package
13971 \begin_inset LatexCommand index
13972 name "LaTeX-packages ! colortbl"
13979 \begin_layout Standard
13983 \begin_layout Standard
13993 \begin_inset Note Note
13996 \begin_layout Standard
13997 The following section part will only be displayed when the LaTeX-package
14010 \begin_layout Standard
14011 To create colored tables,
14015 must be loaded in the preamble with the line
14018 \begin_layout Standard
14023 usepackage{colortbl}
14026 \begin_layout Standard
14027 The color of a column is adjusted with the command
14030 \begin_layout Standard
14035 columncolor{name of color}
14038 \begin_layout Standard
14044 More about the command
14048 is described in section\InsetSpace ~
14050 \begin_inset LatexCommand ref
14051 reference "sub:Multicolumn-Calculations"
14058 \begin_layout Standard
14059 The following color names are predefined:
14062 \begin_layout Standard
14096 \begin_layout Standard
14097 \begin_inset VSpace medskip
14103 \begin_layout Standard
14104 You can also define your own color with the command
14107 \begin_layout Standard
14112 def\SpecialChar \textcompwordmark{}
14113 inecolor{color name}{color model}{color values}
14116 \begin_layout Standard
14117 The color model can be
14120 \begin_layout Labeling
14121 \labelwidthstring 00.00.0000
14122 cmyk: cyan, magenta, yellow, black
14125 \begin_layout Labeling
14126 \labelwidthstring 00.00.0000
14127 rgb: red, green blue
14130 \begin_layout Labeling
14131 \labelwidthstring 00.00.0000
14135 \begin_layout Standard
14136 and the color values are comma separated numbers between 0 and 1 describing
14137 the factor for the corresponding color of the color model.
14140 \begin_layout Standard
14141 You can e.\InsetSpace \thinspace{}
14147 " in the preamble with
14150 \begin_layout Standard
14155 def\SpecialChar \textcompwordmark{}
14156 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14159 \begin_layout Standard
14167 \begin_layout Standard
14172 def\SpecialChar \textcompwordmark{}
14173 inecolor{lightgray}{gray}{0.8}
14176 \begin_layout Standard
14177 \begin_inset VSpace medskip
14183 \begin_layout Standard
14184 Lines are colored with the command
14187 \begin_layout Standard
14192 rowcolor{name of color}
14195 \begin_layout Standard
14196 and cells are colored with the command
14199 \begin_layout Standard
14204 cellcolor{name of color}
14207 \begin_layout Standard
14208 Both commands are inserted at the beginning of a cell as TeX-Code.
14211 \begin_layout Standard
14212 To color characters in the table, mark the cells and use the LyX menu
14214 Edit\SpecialChar \menuseparator
14219 If a cell contains TeX-Code mark only the characters, otherwise the colored
14220 TeX-Code will cause LaTeX-errors.
14223 \begin_layout Standard
14224 \begin_inset Note Greyedout
14227 \begin_layout Standard
14232 Not all DVI-viewers are able to display self-defined colors.
14240 \begin_layout Standard
14241 \begin_inset VSpace bigskip
14247 \begin_layout Standard
14248 To create Table\InsetSpace ~
14250 \begin_inset LatexCommand ref
14251 reference "tab:Table-colored-using"
14255 do the following: The color of the first column should be
14263 \begin_layout Standard
14268 columncolor{darkgreen}
14273 \begin_layout Standard
14274 as LaTeX-argument for this column.
14275 The first row should be blue, therefore the TeX-Code command
14278 \begin_layout Standard
14286 \begin_layout Standard
14287 is inserted to the first cell of this row.
14288 Note that this overwrites the column color for the first cell.
14289 The last cell of the last row is colored magenta by inserting the TeX-Code
14293 \begin_layout Standard
14301 \begin_layout Standard
14302 The characters could now be colored using the menu
14304 Edit\SpecialChar \menuseparator
14311 \begin_layout Standard
14312 \begin_inset Float table
14318 \begin_layout Standard
14319 \begin_inset Caption
14321 \begin_layout Standard
14322 \begin_inset LatexCommand label
14323 name "tab:Table-colored-using"
14327 Table colored using the package
14332 \begin_inset OptArg
14335 \begin_layout Standard
14336 Table with colortbl
14349 \begin_layout Standard
14351 \begin_inset Tabular
14352 <lyxtabular version="3" rows="3" columns="3">
14354 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
14355 <column alignment="center" valignment="top" width="0">
14356 <column alignment="center" valignment="top" width="0">
14358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14361 \begin_layout Standard
14365 \begin_layout Standard
14381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14384 \begin_layout Standard
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14395 \begin_layout Standard
14405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14408 \begin_layout Standard
14416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14419 \begin_layout Standard
14427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14430 \begin_layout Standard
14440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14443 \begin_layout Standard
14451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14454 \begin_layout Standard
14462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14465 \begin_layout Standard
14469 \begin_layout Standard
14498 \begin_layout Standard
14502 \begin_layout Standard
14512 \begin_inset Note Note
14515 \begin_layout Standard
14516 The following will be displayed when the LaTeX-package
14528 \begin_layout Standard
14529 You need to install the package
14533 to see the content of this section in the output.
14536 \begin_layout Standard
14540 \begin_layout Standard
14552 \begin_layout Subsection
14554 \begin_inset LatexCommand index
14555 name "Table Color ! for Lines"
14560 \begin_inset LatexCommand index
14561 name "Color ! for Table Lines"
14568 \begin_layout Standard
14569 As described in section\InsetSpace ~
14571 \begin_inset LatexCommand ref
14572 reference "sub:Line-Thickness"
14576 , the line thickness for all lines in a table can be adjusted with the length
14584 It is set to 1.5\InsetSpace \thinspace{}
14585 pt for all tables of this section.
14589 \begin_layout Standard
14595 arrayrulewidth}{1.5pt}
14603 \begin_layout Standard
14604 To color vertical lines for example with green, create the following column
14605 format in the document preamble, according to the description in section\InsetSpace ~
14607 \begin_inset LatexCommand ref
14608 reference "sub:Customized-Format"
14615 \begin_layout Standard
14620 newcolumntype{W}{!{
14627 \begin_layout Standard
14628 For Table\InsetSpace ~
14630 \begin_inset LatexCommand ref
14631 reference "tab:Table-with-vertical-colored"
14639 was used for the last column and
14643 for the other columns.
14646 \begin_layout Standard
14647 If you want to have several colors, define more column formats.
14650 \begin_layout Standard
14651 \begin_inset Float table
14656 \begin_layout Standard
14657 \begin_inset Caption
14659 \begin_layout Standard
14660 \begin_inset LatexCommand label
14661 name "tab:Table-with-vertical-colored"
14665 Table with colored vertical lines
14673 \begin_layout Standard
14675 \begin_inset Tabular
14676 <lyxtabular version="3" rows="3" columns="3">
14678 <column alignment="center" valignment="top" width="0" special="Wc">
14679 <column alignment="center" valignment="top" width="0" special="Wc">
14680 <column alignment="center" valignment="top" width="0" special="WcW">
14681 <row topline="true">
14682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14685 \begin_layout Standard
14691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14694 \begin_layout Standard
14700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14703 \begin_layout Standard
14710 <row topline="true">
14711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14714 \begin_layout Standard
14720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14723 \begin_layout Standard
14729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14732 \begin_layout Standard
14739 <row topline="true" bottomline="true">
14740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14743 \begin_layout Standard
14749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14752 \begin_layout Standard
14758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14761 \begin_layout Standard
14780 \begin_layout Standard
14781 \begin_inset VSpace bigskip
14784 To color horizontal lines for example with red, like in Table\InsetSpace ~
14786 \begin_inset LatexCommand ref
14787 reference "tab:Table-with-horizontal-colored"
14791 , insert these commands in TeX-Code before the table or table float:
14794 \begin_layout Standard
14815 \begin_layout Standard
14826 arrayrulecolor{red}
14830 arrayrulecolor{black}}
14833 \begin_layout Standard
14837 \begin_layout Standard
14848 \begin_layout Standard
14857 \begin_layout Standard
14861 arrayrulecolor{red}
14865 arrayrulecolor{black}}
14871 \begin_inset Float table
14876 \begin_layout Standard
14877 \begin_inset Caption
14879 \begin_layout Standard
14880 \begin_inset LatexCommand label
14881 name "tab:Table-with-horizontal-colored"
14885 Table with colored horizontal lines
14893 \begin_layout Standard
14895 \begin_inset Tabular
14896 <lyxtabular version="3" rows="3" columns="3">
14898 <column alignment="center" valignment="top" leftline="true" width="0">
14899 <column alignment="center" valignment="top" leftline="true" width="0">
14900 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14901 <row topline="true">
14902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14905 \begin_layout Standard
14911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14914 \begin_layout Standard
14920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14923 \begin_layout Standard
14930 <row topline="true">
14931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14934 \begin_layout Standard
14940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14943 \begin_layout Standard
14949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14952 \begin_layout Standard
14959 <row topline="true" bottomline="true">
14960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14963 \begin_layout Standard
14969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14972 \begin_layout Standard
14978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14981 \begin_layout Standard
15000 \begin_layout Standard
15004 \begin_layout Standard
15016 \begin_layout Standard
15017 To return to the default line color black, insert this command in TeX-Code
15018 behind the table or table float:
15021 \begin_layout Standard
15033 \begin_layout Standard
15036 \begin_inset LatexCommand ref
15037 reference "tab:Table-with-colored"
15041 is an example with colored vertical and horizontal lines.
15044 \begin_layout Standard
15045 \begin_inset Float table
15051 \begin_layout Standard
15052 \begin_inset Caption
15054 \begin_layout Standard
15055 \begin_inset LatexCommand label
15056 name "tab:Table-with-colored"
15060 Table with colored lines
15068 \begin_layout Standard
15070 \begin_inset Tabular
15071 <lyxtabular version="3" rows="3" columns="3">
15073 <column alignment="center" valignment="top" width="0" special="Wc">
15074 <column alignment="center" valignment="top" width="0" special="Wc">
15075 <column alignment="center" valignment="top" width="0" special="WcW">
15076 <row topline="true">
15077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15080 \begin_layout Standard
15086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15089 \begin_layout Standard
15095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15098 \begin_layout Standard
15105 <row topline="true">
15106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15109 \begin_layout Standard
15115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15118 \begin_layout Standard
15124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15127 \begin_layout Standard
15134 <row topline="true" bottomline="true" topspace="default">
15135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15138 \begin_layout Standard
15144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15147 \begin_layout Standard
15153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15156 \begin_layout Standard
15175 \begin_layout Standard
15179 \begin_layout Standard
15195 \begin_layout Standard
15199 \begin_layout Standard
15205 arrayrulewidth}{0.4pt}
15213 \begin_layout Section
15214 Table Customization
15215 \begin_inset LatexCommand index
15216 name "Table Customization"
15221 \begin_inset LatexCommand index
15222 name "Table ! Customization"
15229 \begin_layout Subsection
15231 \begin_inset LatexCommand label
15232 name "sub:Row-Spacing"
15237 \begin_inset LatexCommand index
15238 name "Table Customization ! Row Spacing"
15245 \begin_layout Standard
15246 You can add vertical space to table rows in the
15250 tab of the table dialog.
15251 You find there three possibilities:
15254 \begin_layout Description
15257 row will add space above the characters of the table row.
15258 If the table is a formal table
15262 \begin_layout Standard
15263 Formal tables are explained in section\InsetSpace ~
15265 \begin_inset LatexCommand ref
15266 reference "sec:Formal-Tables"
15275 LyX will insert as default 0.5\InsetSpace \thinspace{}
15277 For normal tables the inserted space will unfortunately destroy the vertical
15278 table lines as in the following table:
15279 \begin_inset VSpace medskip
15288 \begin_layout Standard
15300 \begin_inset Tabular
15301 <lyxtabular version="3" rows="3" columns="1">
15303 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15304 <row topline="true">
15305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15308 \begin_layout Standard
15315 <row topline="true" topspace="3mm">
15316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15319 \begin_layout Standard
15320 3\InsetSpace \thinspace{}
15321 mm space top of row
15327 <row topline="true" bottomline="true">
15328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15331 \begin_layout Standard
15348 \begin_layout Standard
15358 \begin_inset VSpace medskip
15363 So inserting space to the top of row for normal tables is only useful when
15364 you don't have vertical lines.
15367 \begin_layout Description
15368 Bottom\InsetSpace ~
15370 row will add space below the characters of the table row.
15371 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15373 normal tables the default size is 2\InsetSpace \thinspace{}
15377 \begin_layout Description
15378 Between\InsetSpace ~
15379 rows adds space between the current and the following row.
15380 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15382 For normal tables the inserted space will unfortunately destroy the vertical
15383 table lines as in the following table:
15384 \begin_inset VSpace medskip
15393 \begin_layout Standard
15405 \begin_inset Tabular
15406 <lyxtabular version="3" rows="3" columns="1">
15408 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15409 <row topline="true">
15410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15413 \begin_layout Standard
15420 <row topline="true" interlinespace="3mm">
15421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15424 \begin_layout Standard
15425 \begin_inset Formula $\downarrow$
15428 3\InsetSpace \thinspace{}
15429 mm space between row
15430 \begin_inset Formula $\downarrow$
15439 <row topline="true" bottomline="true">
15440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15443 \begin_layout Standard
15444 \begin_inset Formula $\uparrow$
15447 3\InsetSpace \thinspace{}
15448 mm space between row
15449 \begin_inset Formula $\uparrow$
15468 \begin_layout Standard
15478 \begin_inset VSpace medskip
15483 So inserting space between rows for normal tables is only useful when you
15484 don't have vertical lines.
15487 \begin_layout Standard
15488 \begin_inset VSpace bigskip
15491 When you want to add extra height to all cells of all tables, you can do
15492 this with the following preamble lines:
15495 \begin_layout Standard
15500 @ifundef\SpecialChar \textcompwordmark{}
15501 ined{extrarowheight}
15507 \begin_layout Standard
15518 usepackage{array}}{}
15524 extrarowheight}{height}
15527 \begin_layout Standard
15528 But this has the disadvantage that the cell texts are no longer exactly
15529 vertically centered.
15534 will be loaded automatically by LyX when you use self defined table formats.
15535 To avoid that it is loaded twice the command
15539 @ifundef\SpecialChar \textcompwordmark{}
15542 is used in the above command.)
15545 \begin_layout Subsection
15546 Special Cell Alignment
15547 \begin_inset LatexCommand index
15548 name "Table Customization ! Special Cell Alignment"
15555 \begin_layout Standard
15556 Sometimes it looks better when the cell entries of a column are aligned
15557 with a special character, e.\InsetSpace \thinspace{}
15559 with the decimal separator as in Table\InsetSpace ~
15561 \begin_inset LatexCommand ref
15562 reference "tab:Table-cells-of"
15569 \begin_layout Standard
15570 \begin_inset Float table
15576 \begin_layout Standard
15577 \begin_inset Caption
15579 \begin_layout Standard
15580 \begin_inset LatexCommand label
15581 name "tab:Table-cells-of"
15585 Table cells of a column aligned with the decimal separator.
15593 \begin_layout Standard
15595 \begin_inset Tabular
15596 <lyxtabular version="3" rows="4" columns="2">
15598 <column alignment="right" valignment="top" width="0">
15599 <column alignment="left" valignment="top" width="0" special="@{}l">
15600 <row bottomline="true">
15601 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15604 \begin_layout Standard
15610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15613 \begin_layout Standard
15621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15624 \begin_layout Standard
15630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15633 \begin_layout Standard
15641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15644 \begin_layout Standard
15650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15653 \begin_layout Standard
15661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15664 \begin_layout Standard
15670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15673 \begin_layout Standard
15692 \begin_layout Standard
15693 This table was created with a 4×2 table.
15694 The heading is a centered multicolumn.
15695 The first column is right-aligned and contains the digits before the decimal
15696 point and the decimal point.
15697 The second column is left aligned and contains the digits after the decimal
15699 To omit the space that is normally between two table columns, use the following
15700 LaTeX-argument for the second column:
15703 \begin_layout Standard
15709 \begin_layout Standard
15712 \begin_inset LatexCommand ref
15713 reference "tab:Several-table-cell"
15717 shows some example alignments.
15718 For the alignment with the relation sign, you must add the second smallest
15719 math-space at the beginning of the last column to get the correct space
15720 surrounding the relation sign.
15723 \begin_layout Standard
15724 \begin_inset Float table
15729 \begin_layout Standard
15730 \begin_inset Caption
15732 \begin_layout Standard
15733 \begin_inset LatexCommand label
15734 name "tab:Several-table-cell"
15738 Several table cell alignments.
15746 \begin_layout Standard
15748 \begin_inset Tabular
15749 <lyxtabular version="3" rows="4" columns="6">
15751 <column alignment="right" valignment="top" width="0">
15752 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15753 <column alignment="right" valignment="top" width="0">
15754 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15755 <column alignment="right" valignment="top" width="0">
15756 <column alignment="left" valignment="top" width="0" special="@{}l">
15757 <row bottomline="true">
15758 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15761 \begin_layout Standard
15767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15770 \begin_layout Standard
15776 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15779 \begin_layout Standard
15785 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15788 \begin_layout Standard
15794 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15797 \begin_layout Standard
15803 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15806 \begin_layout Standard
15814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15817 \begin_layout Standard
15823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15826 \begin_layout Standard
15827 24\InsetSpace \thinspace{}
15833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15836 \begin_layout Standard
15837 \begin_inset Formula $10\cdot$
15845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15848 \begin_layout Standard
15849 \begin_inset Formula $10^{\mbox{-}17}$
15857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15860 \begin_layout Standard
15861 \begin_inset Formula $\Gamma(t)\propto$
15869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15872 \begin_layout Standard
15873 \begin_inset Formula $\:\Upsilon(t)$
15883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15886 \begin_layout Standard
15892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15895 \begin_layout Standard
15896 768\InsetSpace \thinspace{}
15902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15905 \begin_layout Standard
15906 \begin_inset Formula $5.78\cdot$
15914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15917 \begin_layout Standard
15918 \begin_inset Formula $10^{7}$
15926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15929 \begin_layout Standard
15930 \begin_inset Formula $A\ne$
15938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15941 \begin_layout Standard
15942 \begin_inset Formula $\: B_{\mathrm{red}}$
15952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15955 \begin_layout Standard
15961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15964 \begin_layout Standard
15965 6\InsetSpace \thinspace{}
15971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15974 \begin_layout Standard
15976 \begin_inset Formula $33.5\cdot$
15984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15987 \begin_layout Standard
15988 \begin_inset Formula $10^{4}$
15996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15999 \begin_layout Standard
16000 \begin_inset Formula $\sin(\alpha)\ge$
16008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16011 \begin_layout Standard
16012 \begin_inset Formula $\:\sin(\beta)$
16033 \begin_layout Standard
16034 \begin_inset VSpace bigskip
16037 There is also the LaTeX-package
16042 \begin_inset LatexCommand index
16043 name "LaTeX-packages ! dcolumn"
16047 that provides table cell alignments.
16048 But this unfortunately treats the cell entries as math and doesn't allow
16049 formulas in table cells: The first column of Table\InsetSpace ~
16051 \begin_inset LatexCommand ref
16052 reference "tab:Several-table-cell"
16060 like the first column in Table\InsetSpace ~
16062 \begin_inset LatexCommand ref
16063 reference "tab:Alignments-when"
16067 and only with some tricks like the expected.
16068 The alignment of the second and third column of Table\InsetSpace ~
16070 \begin_inset LatexCommand ref
16071 reference "tab:Several-table-cell"
16075 is not possible with
16082 \begin_layout Standard
16083 \begin_inset Float table
16089 \begin_layout Standard
16090 \begin_inset Caption
16092 \begin_layout Standard
16093 \begin_inset LatexCommand label
16094 name "tab:Alignments-when"
16098 Alignments when LaTeX-package dcolumn is used.
16099 For all column alignments tricks have to be used to get the output.
16107 \begin_layout Standard
16109 \begin_inset Tabular
16110 <lyxtabular version="3" rows="4" columns="3">
16112 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
16113 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
16114 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16115 <row bottomline="true">
16116 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16119 \begin_layout Standard
16125 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16128 \begin_layout Standard
16134 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16137 \begin_layout Standard
16145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16148 \begin_layout Standard
16149 12x24\InsetSpace \thinspace{}
16155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16158 \begin_layout Standard
16159 12x24\InsetSpace \thinspace{}
16161 \begin_inset Formula $\mbox{bottles}$
16169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16172 \begin_layout Standard
16177 \begin_layout Standard
16187 \begin_inset Formula $\mbox{bottles}$
16197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16200 \begin_layout Standard
16201 1024x768\InsetSpace \thinspace{}
16207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16210 \begin_layout Standard
16211 1024x768\InsetSpace \thinspace{}
16213 \begin_inset Formula $\mbox{Pixels}$
16221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16224 \begin_layout Standard
16229 \begin_layout Standard
16239 \begin_inset Formula $\mbox{Pixels}$
16249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16252 \begin_layout Standard
16253 32x6\InsetSpace \thinspace{}
16259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16262 \begin_layout Standard
16263 32x6\InsetSpace \thinspace{}
16265 \begin_inset Formula $\mbox{cm}$
16273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16276 \begin_layout Standard
16281 \begin_layout Standard
16291 \begin_inset Formula $\mbox{cm}$
16312 \begin_layout Subsection
16313 Customized Cell/Column Format
16314 \begin_inset LatexCommand label
16315 name "sub:Customized-Format"
16320 \begin_inset LatexCommand index
16321 name "Table Customization ! Cell/Column Format"
16328 \begin_layout Standard
16329 Calculating the needed width for spanned columns like in section\InsetSpace ~
16331 \begin_inset LatexCommand ref
16332 reference "sub:Multicolumn-Calculations"
16336 is very annoying if you have several tables with multicolumn cells.
16337 To make life easier, you can define a cell/column format in the preamble,
16338 so that it can be used in all tables of the document.
16339 The format is defined with the command
16342 \begin_layout Standard
16347 newcolumntype{name of format}[number of arguments]{commands}
16350 \begin_layout Standard
16351 The format name may only consist of one letter.
16376 are predefined and cannot be used.
16377 But all letters are allowed as capitals.
16380 \begin_layout Standard
16381 \begin_inset VSpace medskip
16387 \begin_layout Standard
16388 For vertically and horizontally centered multicolumn cells with a fixed
16389 width you can define the cell format
16392 \begin_layout Standard
16397 newcolumntype{M}[1]{>{
16404 \begin_layout Standard
16411 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
16413 \begin_inset LatexCommand ref
16414 reference "sub:Multiple-Lines-in"
16419 Now you can simply enter
16422 \begin_layout Standard
16428 \begin_layout Standard
16429 as LaTeX-argument in the table dialog to create a multicolumn.
16432 \begin_layout Standard
16433 \begin_inset VSpace bigskip
16439 \begin_layout Standard
16440 For cells spanned by a multicolumn cell, you can define the format
16443 \begin_layout Standard
16448 newcolumntype{S}[2]{>{
16458 \begin_layout Standard
16473 \begin_layout Standard
16484 arrayrulewidth)*(1-#2))/#2}}
16487 \begin_layout Standard
16488 This format uses equation
16489 \begin_inset LatexCommand eqref
16494 to calculate the needed width so that each spanned cell has the same width.
16497 \begin_layout Standard
16501 \begin_layout Standard
16504 S{width of multicolumn cell}{number of spanned columns}
16507 \begin_layout Standard
16508 as LaTeX-argument of the column.
16511 \begin_layout Standard
16512 \begin_inset VSpace bigskip
16518 \begin_layout Standard
16519 For colored columns, you can define
16522 \begin_layout Standard
16527 newcolumntype{K}[1]{>{
16534 \begin_layout Standard
16536 \begin_inset Quotes eld
16540 \begin_inset Quotes erd
16543 at the end creates a column with a flexible width whose text is horizontally
16548 \begin_layout Standard
16554 \begin_layout Standard
16558 \begin_layout Standard
16559 \begin_inset VSpace bigskip
16565 \begin_layout Standard
16566 To create Table\InsetSpace ~
16568 \begin_inset LatexCommand ref
16569 reference "tab:Table-using-user-defined"
16573 use the LaTeX-arguments
16576 \begin_layout Standard
16582 \begin_layout Standard
16583 for the first column and the multicolumn,
16586 \begin_layout Standard
16592 \begin_layout Standard
16593 for the the last column, and
16596 \begin_layout Standard
16602 \begin_layout Standard
16603 for the cells in the second column.
16606 \begin_layout Standard
16607 \begin_inset Float table
16613 \begin_layout Standard
16614 \begin_inset Caption
16616 \begin_layout Standard
16617 \begin_inset LatexCommand label
16618 name "tab:Table-using-user-defined"
16622 Table using user-defined table formats
16630 \begin_layout Standard
16632 \begin_inset Tabular
16633 <lyxtabular version="3" rows="3" columns="4">
16635 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16636 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16637 <column alignment="center" valignment="middle" leftline="true" width="0">
16638 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16639 <row topline="true">
16640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16643 \begin_layout Standard
16644 verylongtablecellword
16649 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16652 \begin_layout Standard
16653 multiple lines multicolumn
16658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16661 \begin_layout Standard
16667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16670 \begin_layout Standard
16677 <row topline="true">
16678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16681 \begin_layout Standard
16687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16690 \begin_layout Standard
16696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16699 \begin_layout Standard
16705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16708 \begin_layout Standard
16715 <row topline="true" bottomline="true">
16716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16719 \begin_layout Standard
16725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16728 \begin_layout Standard
16734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16737 \begin_layout Standard
16743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16746 \begin_layout Standard
16765 \begin_layout Subsection
16767 \begin_inset LatexCommand label
16768 name "sub:Line-Thickness"
16773 \begin_inset LatexCommand index
16774 name "Table Customization ! Line Thickness"
16781 \begin_layout Standard
16782 The line thickness for all lines in a table can be adjusted with the length
16790 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16791 pt, like in Table\InsetSpace ~
16793 \begin_inset LatexCommand ref
16794 reference "tab:Table-with-1.5"
16798 , insert the command
16801 \begin_layout Standard
16808 arrayrulewidth}{1.5pt}
16811 \begin_layout Standard
16812 in TeX-Code before the table or table float.
16813 The changed thickness is valid for all following tables.
16814 To use the default value again, set
16820 to 0.4\InsetSpace \thinspace{}
16821 pt in TeX-Code behind the table or table float.
16824 \begin_layout Standard
16828 \begin_layout Standard
16834 arrayrulewidth}{1.5pt}
16840 \begin_inset Float table
16845 \begin_layout Standard
16846 \begin_inset Caption
16848 \begin_layout Standard
16849 \begin_inset LatexCommand label
16850 name "tab:Table-with-1.5"
16854 Table with 1.5\InsetSpace \thinspace{}
16863 \begin_layout Standard
16865 \begin_inset Tabular
16866 <lyxtabular version="3" rows="3" columns="3">
16868 <column alignment="center" valignment="top" leftline="true" width="0">
16869 <column alignment="center" valignment="top" leftline="true" width="0">
16870 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16871 <row topline="true">
16872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16875 \begin_layout Standard
16881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16884 \begin_layout Standard
16890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16893 \begin_layout Standard
16900 <row topline="true">
16901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16904 \begin_layout Standard
16910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16913 \begin_layout Standard
16919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16922 \begin_layout Standard
16929 <row topline="true" bottomline="true">
16930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16933 \begin_layout Standard
16939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16942 \begin_layout Standard
16948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16951 \begin_layout Standard
16971 \begin_layout Standard
16977 arrayrulewidth}{0.4pt}
16985 \begin_layout Standard
16986 \begin_inset VSpace bigskip
16989 To set the line thickness to 1.5\InsetSpace \thinspace{}
16990 pt only for horizontal lines, like in Table\InsetSpace ~
16992 \begin_inset LatexCommand ref
16993 reference "tab:Table-with-horizontal"
16997 , insert these commands in TeX-Code before the table or table float:
17000 \begin_layout Standard
17023 arrayrulewidth 1.5pt}
17033 arrayrulewidth 0.4pt}}
17036 \begin_layout Standard
17037 To return to the default line thickness, insert this command in TeX-Code
17038 behind the table or table float:
17041 \begin_layout Standard
17053 \begin_layout Standard
17057 \begin_layout Standard
17068 \begin_layout Standard
17077 \begin_layout Standard
17085 arrayrulewidth 1.5pt}
17088 \begin_layout Standard
17098 arrayrulewidth 0.4pt}}
17104 \begin_inset Float table
17109 \begin_layout Standard
17110 \begin_inset Caption
17112 \begin_layout Standard
17113 \begin_inset LatexCommand label
17114 name "tab:Table-with-horizontal"
17118 Table with 1.5\InsetSpace \thinspace{}
17119 pt thick horizontal lines
17127 \begin_layout Standard
17129 \begin_inset Tabular
17130 <lyxtabular version="3" rows="3" columns="3">
17132 <column alignment="center" valignment="top" leftline="true" width="0">
17133 <column alignment="center" valignment="top" leftline="true" width="0">
17134 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17135 <row topline="true">
17136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17139 \begin_layout Standard
17145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17148 \begin_layout Standard
17154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17157 \begin_layout Standard
17164 <row topline="true">
17165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17168 \begin_layout Standard
17174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17177 \begin_layout Standard
17183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17186 \begin_layout Standard
17193 <row topline="true" bottomline="true">
17194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17197 \begin_layout Standard
17203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17206 \begin_layout Standard
17212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17215 \begin_layout Standard
17235 \begin_layout Standard
17251 \begin_layout Standard
17252 \begin_inset VSpace bigskip
17255 To set the line thickness to 1.5\InsetSpace \thinspace{}
17256 pt only for vertical lines, create the following
17257 column format in the document preamble, according to the description in
17258 section\InsetSpace ~
17260 \begin_inset LatexCommand ref
17261 reference "sub:Customized-Format"
17268 \begin_layout Standard
17273 newcolumntype{V}{!{
17275 vrule width 1.5pt}}
17278 \begin_layout Standard
17279 For Table\InsetSpace ~
17281 \begin_inset LatexCommand ref
17282 reference "tab:Table-with-vertical"
17289 \begin_layout Standard
17295 \begin_layout Standard
17296 was used for the last column and
17299 \begin_layout Standard
17305 \begin_layout Standard
17306 for the other columns.
17309 \begin_layout Standard
17310 \begin_inset Float table
17315 \begin_layout Standard
17316 \begin_inset Caption
17318 \begin_layout Standard
17319 \begin_inset LatexCommand label
17320 name "tab:Table-with-vertical"
17324 Table with 1.5\InsetSpace \thinspace{}
17325 pt thick vertical lines
17333 \begin_layout Standard
17335 \begin_inset Tabular
17336 <lyxtabular version="3" rows="3" columns="3">
17338 <column alignment="center" valignment="top" width="0" special="Vc">
17339 <column alignment="center" valignment="top" width="0" special="Vc">
17340 <column alignment="center" valignment="top" width="0" special="VcV">
17341 <row topline="true">
17342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17345 \begin_layout Standard
17351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17354 \begin_layout Standard
17360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17363 \begin_layout Standard
17370 <row topline="true">
17371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17374 \begin_layout Standard
17380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17383 \begin_layout Standard
17389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17392 \begin_layout Standard
17399 <row topline="true" bottomline="true">
17400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17403 \begin_layout Standard
17409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17412 \begin_layout Standard
17418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17421 \begin_layout Standard
17440 \begin_layout Subsection
17442 \begin_inset LatexCommand index
17443 name "Table Customization ! Dashed Lines"
17450 \begin_layout Standard
17454 \begin_layout Standard
17464 \begin_inset Note Note
17467 \begin_layout Standard
17468 The following section will only be displayed when the LaTeX-package
17480 \begin_layout Standard
17481 \begin_inset Float table
17487 \begin_layout Standard
17488 \begin_inset Caption
17490 \begin_layout Standard
17491 \begin_inset LatexCommand label
17492 name "tab:Table-with-dashed"
17496 Table with dashed lines
17504 \begin_layout Standard
17506 \begin_inset Tabular
17507 <lyxtabular version="3" rows="5" columns="5">
17509 <column alignment="center" valignment="top" leftline="true" width="0">
17510 <column alignment="center" valignment="top" leftline="true" width="0">
17511 <column alignment="center" valignment="top" width="0" special=":c">
17512 <column alignment="center" valignment="top" leftline="true" width="0">
17513 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17514 <row topline="true" bottomline="true">
17515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17518 \begin_layout Standard
17524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17527 \begin_layout Standard
17533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17536 \begin_layout Standard
17542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17545 \begin_layout Standard
17551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17554 \begin_layout Standard
17561 <row topline="true">
17562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17565 \begin_layout Standard
17571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17574 \begin_layout Standard
17580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17583 \begin_layout Standard
17589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17592 \begin_layout Standard
17598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17601 \begin_layout Standard
17609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17612 \begin_layout Standard
17616 \begin_layout Standard
17630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17633 \begin_layout Standard
17639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17642 \begin_layout Standard
17648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17651 \begin_layout Standard
17657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17660 \begin_layout Standard
17667 <row topline="true">
17668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17671 \begin_layout Standard
17675 \begin_layout Standard
17689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17692 \begin_layout Standard
17698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17701 \begin_layout Standard
17707 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17710 \begin_layout Standard
17716 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17719 \begin_layout Standard
17726 <row topline="true" bottomline="true">
17727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17730 \begin_layout Standard
17736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17739 \begin_layout Standard
17745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17748 \begin_layout Standard
17754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17757 \begin_layout Standard
17763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17766 \begin_layout Standard
17785 \begin_layout Standard
17786 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
17787 As prerequisite the LaTeX-package
17792 \begin_inset LatexCommand index
17793 name "LaTeX-packages ! arydshln"
17797 must be loaded in the document preamble with the command
17800 \begin_layout Standard
17805 usepackage{arydshln}
17808 \begin_layout Standard
17809 To make a vertical line dashed, enter the colon
17810 \begin_inset Quotes eld
17814 \begin_inset Quotes erd
17817 together with the character for the horizontal alignment as LaTeX-argument
17818 in the table cell dialog.
17821 \begin_layout Standard
17822 For a horizontal dashed line add the command
17825 \begin_layout Standard
17833 \begin_layout Standard
17834 in TeX-Code as first element of the first cell in the table row.
17837 \begin_layout Standard
17838 For dashed multicolumn lines use the command
17841 \begin_layout Standard
17846 cdashline{line number
17851 \begin_layout Standard
17852 in TeX-Code as first element of the first cell in the table row.
17853 If you have for example a multicolumn spanning over columns 2 to 4 and
17854 you want to have a dashed line above, add the command
17857 \begin_layout Standard
17865 \begin_layout Standard
17866 as first element of the first cell in the row of the multicolumn.
17869 \begin_layout Standard
17870 \begin_inset VSpace bigskip
17876 \begin_layout Standard
17879 \begin_inset LatexCommand ref
17880 reference "tab:Table-with-dashed"
17885 \begin_inset Quotes eld
17893 \begin_inset Quotes erd
17896 as LaTeX-argument of the third column.
17897 The TeX-Code command
17903 was inserted to the first cell of the third row and the the TeX-Code command
17912 was inserted to the first cell of the fourth row.
17915 \begin_layout Standard
17916 \begin_inset Note Greyedout
17919 \begin_layout Standard
17924 The used LaTeX-package
17928 is apparently not compatible with the LaTeX-package
17933 \begin_inset LatexCommand index
17934 name "LaTeX-packages ! colortbl"
17938 that is used for colored tables in section\InsetSpace ~
17940 \begin_inset LatexCommand ref
17941 reference "sec:Colored-Tables"
17946 That means colored tables cannot have dashed lines.
17954 \begin_layout Standard
17958 \begin_layout Standard
17968 \begin_inset Note Note
17971 \begin_layout Standard
17972 The following will be displayed when the LaTeX-package
17984 \begin_layout Standard
17985 You need to install the package
17989 to see the content of this section in the output.
17992 \begin_layout Standard
17996 \begin_layout Standard
18008 \begin_layout Chapter
18010 \begin_inset LatexCommand index
18016 \begin_inset LatexCommand label
18024 \begin_layout Section
18026 \begin_inset LatexCommand label
18027 name "sec:FloatIntroduction"
18032 \begin_inset LatexCommand index
18033 name "Floats ! Introduction"
18040 \begin_layout Standard
18041 A float is a block of text associated with some sort of label, which doesn't
18042 have a fixed location.
18044 \begin_inset Quotes eld
18048 \begin_inset Quotes erd
18051 forward or backward a page or two, to wherever it fits best.
18058 Margin\InsetSpace ~
18061 are also floats, because they can float to the next page when there are
18062 too many notes at the page.
18065 \begin_layout Standard
18066 Floats allow a high quality layout.
18067 Images and tables can evenly be spread to the pages to avoid white space
18068 and pages without text.
18069 As the floating often destroys the context between the text and the image/table
18070 , every float can be referenced in the text.
18071 Floats are therefore numbered.
18072 Referencing is described in section\InsetSpace ~
18074 \begin_inset LatexCommand ref
18075 reference "sec:Referencing-Floats"
18082 \begin_layout Standard
18083 To insert a float, use the menu
18085 Insert\SpecialChar \menuseparator
18093 inset, a box with a label.
18094 The label will automatically be translated to the document language in
18096 Behind the label you can insert the caption text.
18097 The image or table is inserted above or below the caption in a separate
18098 paragraph within the float.
18099 More about the caption placement is described in section\InsetSpace ~
18101 \begin_inset LatexCommand ref
18102 reference "sec:Caption-Placement"
18107 To keep your LyX-document readable, you can open and close the float box
18108 by left-clicking on the box label.
18109 A closed float box looks like this:
18110 \begin_inset Graphics
18111 filename clipart/floatQt4.png
18113 scaleBeforeRotation
18117 -- a gray button with a red label.
18120 \begin_layout Standard
18121 It is recommended to insert floats as a separate paragraph to avoid possible
18122 LaTeX-errors that can occur when the surrounding text is specially formatted.
18125 \begin_layout Standard
18126 Existing figures or tables can be put into a float by marking them and then
18127 pressing the corresponding toolbar button for a new float.
18130 \begin_layout Section
18134 \begin_layout Standard
18135 Besides figure and table floats that are described in section\InsetSpace ~
18137 \begin_inset LatexCommand ref
18138 reference "sec:Figure-Floats"
18143 \begin_inset LatexCommand ref
18144 reference "sec:Table-Floats"
18148 , respectively, LyX offers the float types
18161 \begin_layout Subsection
18163 \begin_inset LatexCommand index
18164 name "Floats ! Algorithms"
18169 \begin_inset LatexCommand label
18170 name "sub:Algorithm-Floats"
18177 \begin_layout Standard
18178 \begin_inset Float algorithm
18184 \begin_layout Standard
18185 \begin_inset Caption
18187 \begin_layout Standard
18188 \begin_inset LatexCommand label
18189 name "alg:Example-Algorithm-float"
18193 Example Algorithm float
18201 \begin_layout LyX-Code
18204 Sum:= Sum + A(I); /*comment*/
18207 \begin_inset VSpace -4mm
18218 \begin_layout Standard
18219 This float type is inserted with the menu
18221 Insert\SpecialChar \menuseparator
18222 Floats\SpecialChar \menuseparator
18226 It is used for program codes and descriptions of algorithms.
18227 A possible environment for algorithms is the
18231 , described in LyX's
18236 Algorithm\InsetSpace ~
18238 \begin_inset LatexCommand ref
18239 reference "alg:Example-Algorithm-float"
18243 is an example of an algorithm float where -4\InsetSpace \thinspace{}
18244 mm vertical space was added
18245 at the end of the float to have the bottom rule exactly below the last
18249 \begin_layout Standard
18250 The float label is not automatically translated into the document language.
18251 If your document is not in English, you have to do this manually by adding
18252 the following line to the document preamble
18257 \begin_layout Standard
18262 floatname{algorithm}{your\InsetSpace ~
18266 \begin_layout Standard
18273 \begin_inset Quotes eld
18281 \begin_inset Quotes erd
18287 \begin_layout Description
18292 When the LaTeX-package
18297 \begin_inset LatexCommand index
18298 name "LaTeX-packages ! hyperref"
18302 is used to link cross-references to floats in the PDF-output, it must be
18303 loaded in the document preamble before the definition of floats to be able
18304 to reference floats.
18305 As LyX sets the float definition for algorithm floats automatically before
18306 the user editable part of the document preamble, you need to insert the
18307 following preamble lines
18311 the loading command of
18316 \begin_inset VSpace defskip
18325 newfloat{Xalgorithm}{tbp}{loa}
18329 floatname{Xalgorithm}{your\InsetSpace ~
18342 renewenvironment{algorithm}[1][tbp]
18348 \begin_layout Standard
18359 begin{Xalgorithm}[#1]}{
18364 \begin_inset VSpace defskip
18369 To insert the list of algorithms you can in this case not use the menu
18371 Insert\SpecialChar \menuseparator
18372 List\InsetSpace \thinspace{}
18373 /\InsetSpace \thinspace{}
18374 TOC\SpecialChar \menuseparator
18377 but have to use this command in TeX-Code instead:
18383 listof{Xalgorithm}{List of Algorithms}
18386 \begin_inset Note Note
18389 \begin_layout Standard
18392 is used at the end of this document
18400 \begin_layout Standard
18401 Algorithm floats are not by default numbered in the scheme
18402 \begin_inset Quotes eld
18406 \begin_inset Quotes erd
18409 like it is the case for table and figure floats in many document-classes.
18410 To number algorithm floats in the same scheme, add this command to your
18414 \begin_layout Standard
18419 numberwithin{algorithm}{chapter}
18422 \begin_layout Standard
18423 If you use the LaTeX-package
18427 , add this line instead
18435 (the commands from above) to the preamble:
18438 \begin_layout Standard
18443 numberwithin{Xalgorithm}{chapter}
18446 \begin_layout Standard
18447 To be able to use the command
18458 in the document settings the option
18468 \begin_layout Subsection
18470 \begin_inset LatexCommand index
18471 name "Floats ! Text Wrap Floats"
18476 \begin_inset LatexCommand label
18477 name "sub:floatflt-wrap-float"
18484 \begin_layout Standard
18485 This float type is used if you want to
18486 \begin_inset Quotes eld
18490 \begin_inset Quotes erd
18493 text around a figure so that it only occupies some fraction of the column
18495 It can be inserted using the menu
18496 \begin_inset Wrap figure
18501 \begin_layout Standard
18502 \begin_inset Graphics
18503 filename clipart/mobius.eps
18506 scaleBeforeRotation
18507 rotateOrigin center
18514 \begin_layout Standard
18515 \begin_inset Caption
18517 \begin_layout Standard
18518 \begin_inset LatexCommand label
18519 name "fig:This-is-a"
18523 This is a wrapped figure, and this is the brilliant caption that describes
18525 \begin_inset VSpace medskip
18540 Insert\SpecialChar \menuseparator
18541 Floats\SpecialChar \menuseparator
18546 if the LaTeX-package
18551 \begin_inset LatexCommand index
18552 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18560 \begin_layout Standard
18561 Installing a LaTeX-package is explained it in the
18571 The width and placement of the float is adjusted by right-clicking on the
18573 Figure\InsetSpace ~
18575 \begin_inset LatexCommand ref
18576 reference "fig:This-is-a"
18580 is an example text wrap float with a width of 40\InsetSpace \thinspace{}
18585 \begin_layout Standard
18586 Available units are explained in appendix\InsetSpace ~
18588 \begin_inset LatexCommand ref
18589 reference "cha:Units-available-in"
18598 Some space was added under the caption to separate it better from the surroundi
18602 \begin_layout Standard
18607 also supports table wrap floats, but they are not yet supported by LyX.
18608 If you need this, read the documentation of
18613 \begin_inset LatexCommand cite
18621 \begin_layout Standard
18622 \begin_inset Note Greyedout
18625 \begin_layout Standard
18631 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18633 having a figure too close to the bottom
18634 of the page can mess things up in the way that the float doesn't appear
18635 in the output or that it is placed over some other text.
18643 \begin_layout Standard
18647 \begin_layout Itemize
18648 Wrap floats should not be placed in paragraphs that run over a page break.
18649 That means that wrap floats should better be inserted to the exact place
18650 when the document is nearly finished and you are able to estimate where
18651 page breaks will appear.
18654 \begin_layout Itemize
18655 Wrap floats should either be placed in an own paragraph before the paragraph
18656 where they should wrap into or within a paragraph.
18659 \begin_layout Itemize
18660 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18661 there is a text paragraph between them as separator.
18664 \begin_layout Itemize
18665 Wrap floats are not allowed in section headings or tables.
18668 \begin_layout Section
18670 \begin_inset LatexCommand label
18671 name "sec:Float-Numbering"
18676 \begin_inset LatexCommand index
18677 name "Floats ! Numbering"
18684 \begin_layout Standard
18685 Floats are usually numbered either independent from the sections the floats
18686 are in, or in the scheme
18687 \begin_inset Quotes eld
18691 \begin_inset Quotes erd
18695 \begin_inset Quotes eld
18699 \begin_inset Quotes erd
18703 This depends on the used document class.
18706 \begin_layout Standard
18707 To change the section independent numbering, you can use this command in
18708 the document preamble:
18711 \begin_layout Standard
18723 \begin_layout Standard
18730 is the command that prints the table number, for figure floats, the command
18744 prints in the command above the table number as small roman number.
18747 \begin_layout Standard
18748 To change the numbering scheme for example to
18749 \begin_inset Quotes eld
18753 \begin_inset Quotes erd
18756 , use this command in the preamble:
18759 \begin_layout Standard
18764 numberwithin{table}{subsection}
18767 \begin_layout Standard
18768 To be able to use the command
18779 in the document settings the option
18789 \begin_layout Standard
18790 Please also have a look at section\InsetSpace ~
18792 \begin_inset LatexCommand ref
18793 reference "sub:Footnote-Numbering"
18797 for the details and important notes about the numbering commands.
18800 \begin_layout Section
18802 \begin_inset LatexCommand label
18803 name "sec:Referencing-Floats"
18808 \begin_inset LatexCommand index
18809 name "Floats ! References"
18814 \begin_inset LatexCommand index
18822 \begin_layout Standard
18823 To reference a float, insert a label into its caption using the menu
18825 Insert\SpecialChar \menuseparator
18828 or the toolbar button
18829 \begin_inset Graphics
18830 filename ../images/label-insert.png
18832 scaleBeforeRotation
18837 A grey label box like this one:
18838 \begin_inset Graphics
18839 filename clipart/labelQt4.png
18841 scaleBeforeRotation
18845 will be inserted and the label window pops up asking for the label text.
18846 LyX offers as text the first words of the caption with a prefix.
18847 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18849 for figure floats the prefix will
18857 \begin_layout Standard
18858 The label is used as anchor and name for the reference.
18859 You can refer to the label using the menu
18861 Insert\SpecialChar \menuseparator
18864 or the toolbar button
18865 \begin_inset Graphics
18866 filename ../images/dialog-show-new-inset_ref.png
18868 scaleBeforeRotation
18873 A grey cross-reference box like this one:
18874 \begin_inset Graphics
18875 filename clipart/referenceQt4.png
18877 scaleBeforeRotation
18881 will be inserted and the cross-reference window appear showing all labels
18883 If you have multiple LyX-documents opened, choose the one you are working
18884 on from the drop-list at the top of the dialog.
18885 You can now sort the labels alphabetically and then choose one.
18886 At the position of the cross-reference box the float number will appear
18890 \begin_layout Standard
18891 It is recommended to use a protected space between the cross-reference name
18892 and its number to avoid line breaks between them.
18893 If a cross-reference refers to a non-existing label, you will see two question
18894 marks in the output instead of the reference.
18897 \begin_layout Standard
18898 You can change labels at any time by clicking on the label box.
18899 References to the changed label will automatically change its link to the
18900 new label text, so that you don't need to take care about this.
18903 \begin_layout Standard
18910 in the cross-reference window sets the cursor before the referred label.
18911 The button text changes then to Go\InsetSpace ~
18912 Back and you can use it to set the cursor
18913 back to the cross-reference.
18914 Right-clicking on a cross-reference box also sets the cursor before the
18915 referenced label but without a possibility to go back.
18918 \begin_layout Subsection
18919 Cross-Reference Formats
18920 \begin_inset LatexCommand label
18921 name "sub:Cross-Reference-Formats"
18926 \begin_inset LatexCommand index
18927 name "References ! Formats"
18934 \begin_layout Standard
18935 There are six varieties of cross-references:
18938 \begin_layout Description
18939 <reference>: prints the float number, this is the default:
18940 \begin_inset LatexCommand ref
18941 reference "fig:Two-distorted-images"
18948 \begin_layout Description
18949 (<reference>): prints the float number within two parentheses, this is the
18950 style normally used to reference formulas, especially when the reference
18952 \begin_inset Quotes eld
18956 \begin_inset Quotes erd
18960 \begin_inset LatexCommand eqref
18968 \begin_layout Description
18969 <page>: prints the page number: Page\InsetSpace ~
18971 \begin_inset LatexCommand pageref
18972 reference "fig:Two-distorted-images"
18979 \begin_layout Description
18982 <page>: prints the text "on page" and the page number:
18983 \begin_inset LatexCommand vpageref
18984 reference "fig:Two-distorted-images"
18991 \begin_layout Description
18992 <reference>\InsetSpace ~
18995 <page>: prints the float number, the text "on page", and
18997 \begin_inset LatexCommand vref
18998 reference "fig:Two-distorted-images"
19005 \begin_layout Description
19006 Formatted\InsetSpace ~
19007 reference: prints a self defined cross-reference format.
19009 \begin_inset Note Greyedout
19012 \begin_layout Standard
19017 This feature is only available when you have the LaTeX-package
19029 \begin_layout Standard
19030 Note that the style <page> won't print the page number if the label is on
19031 the previous, the same, or the next page.
19032 You will e.\InsetSpace \thinspace{}
19035 \begin_inset Quotes eld
19043 \begin_inset Quotes erd
19049 \begin_layout Standard
19050 The number and current page of the referred document part in the output,
19051 is automatically calculated by LaTeX.
19052 The varieties are adjusted in the field
19056 of the cross-reference window, that appear when you click on the cross-referenc
19060 \begin_layout Subsection
19061 Referencing Subfigures
19062 \begin_inset LatexCommand label
19063 name "sub:Referencing-Subfigures"
19068 \begin_inset LatexCommand index
19069 name "References ! to Subfigures"
19076 \begin_layout Standard
19077 Currently referencing subfigures is not supported by LyX, so you have to
19078 use LaTeX-commands.
19079 The label is the created with the command
19082 \begin_layout Standard
19087 label{fig:YourLabelName}
19090 \begin_layout Standard
19091 that is directly inserted into the subfigure caption field.
19092 To reference the label add this command in TeX-Code
19095 \begin_layout Standard
19100 ref{fig:YourLabelName}
19103 \begin_layout Standard
19104 to the position in your document where the reference should be placed.
19105 Here is a reference to a subfigure: Subfigure\InsetSpace ~
19110 \begin_layout Standard
19122 \begin_layout Subsection
19123 Automatic Reference Naming
19124 \begin_inset LatexCommand index
19125 name "References ! Automatic Reference Naming"
19132 \begin_layout Standard
19137 provides a very useful feature that cross-references automatically include
19138 the name of the referenced floats (or text parts like sections).
19139 You save to write e.\InsetSpace \thinspace{}
19142 \begin_inset Quotes eld
19146 \begin_inset Quotes erd
19149 before every reference box.
19150 To get this automatic reference naming, you have to load the LaTeX-package
19156 \begin_inset LatexCommand index
19157 name "LaTeX-packages ! hyperref"
19161 in the document preamble with
19164 \begin_layout Standard
19169 usepackage[pdfborder={0 0 0}]{hyperref}
19184 \begin_layout Standard
19189 is used to link cross-references in the DVI- and PDF-output, this means
19190 that the reader of your document will be able to click on a table of content
19191 (TOC) entry or on a reference and he will be shown the referenced document
19197 also creates PDF-bookmarks for every section of your document to make it
19198 easier for readers to navigate through the document.
19199 This is also used in this document but when you have a look in the document
19200 preamble you will find various options in the load command of
19205 To learn more about the
19209 package, we refer to its documentation
19210 \begin_inset LatexCommand cite
19218 \begin_layout Standard
19219 \begin_inset Note Greyedout
19222 \begin_layout Standard
19227 Automatic reference naming cannot be used when you use cross-references
19230 Formatted\InsetSpace ~
19233 style, described in section\InsetSpace ~
19235 \begin_inset LatexCommand ref
19236 reference "sub:Cross-Reference-Formats"
19248 \begin_layout Subsection
19250 \begin_inset LatexCommand label
19251 name "sub:Reference-Position"
19256 \begin_inset LatexCommand index
19257 name "References ! Reference Position"
19264 \begin_layout Standard
19270 \begin_inset LatexCommand index
19271 name "LaTeX-packages ! hyperref"
19275 to link cross-references in the output, you will see that clicking on an
19276 image float reference jumps to the image label.
19277 The caption will be the first text part on the screen, so that you cannot
19278 see the image without scrolling.
19279 This is because the reference link anchor is placed at the position of
19281 With the use of the package
19286 \begin_inset LatexCommand index
19287 name "LaTeX-packages ! hypcap"
19291 , which is part of the LaTeX-package
19296 \begin_inset LatexCommand index
19297 name "LaTeX-packages ! oberdiek"
19301 , the link anchor is placed at the beginning of a float.
19302 To use this feature for figure floats, load
19306 in the document preamble with the line
19309 \begin_layout Standard
19314 usepackage[figure]{hypcap}
19317 \begin_layout Standard
19322 for all floats but this isn't recommended for stability reasons.
19323 For more informations, have a look at
19328 \begin_inset LatexCommand cite
19336 \begin_layout Standard
19337 \begin_inset Note Greyedout
19340 \begin_layout Standard
19349 must be loaded after
19353 in the document preamble.
19361 \begin_layout Standard
19362 \begin_inset Note Greyedout
19365 \begin_layout Standard
19374 has no effect for references to subfigures.
19382 \begin_layout Section
19384 \begin_inset LatexCommand label
19385 name "sec:Float-Placement"
19390 \begin_inset LatexCommand index
19391 name "Floats ! Placement"
19398 \begin_layout Standard
19399 Right-clicking on a float-box opens a dialog where you can alter the placement
19400 options that LaTeX uses for positioning the float.
19407 is only useful for two-column documents: If you select it, the float will
19408 span across both columns on the page instead of being confined to just
19413 Rotate\InsetSpace ~
19416 is used to rotate floats, see section
19417 \begin_inset LatexCommand ref
19418 reference "sec:Rotated-Floats"
19425 \begin_layout Standard
19426 You can use one ore more of the following options in the float dialog to
19427 set the placement for a particular float when you uncheck the option
19430 default\InsetSpace ~
19436 \begin_layout Description
19439 possible try to place the float on the position where it is inserted
19442 \begin_layout Description
19445 page try to place the float on the top of the current page
19448 \begin_layout Description
19449 Bottom\InsetSpace ~
19451 page try to place the float on the bottom of the current page
19454 \begin_layout Description
19457 floats try to place the float on an own page
19460 \begin_layout Standard
19461 The order of the above option is
19466 That means, if you use the default placement, LaTeX will first try out
19479 , and then the others.
19480 If you don't use the default, LaTeX will try only the checked options but
19482 If none of the 4 placements are possible the procedure is internally repeated
19483 but it is tried to put the float on the following page.
19486 \begin_layout Standard
19487 By default, each option has its own rules:
19490 \begin_layout Labeling
19491 \labelwidthstring 00.00.0000
19498 only floats occupying less than 70\InsetSpace \thinspace{}
19499 % of the page can be placed at the top
19509 \begin_layout Labeling
19510 \labelwidthstring 00.00.0000
19513 Bottom\InsetSpace ~
19517 : only floats occupying less than 30\InsetSpace \thinspace{}
19518 % of the page can be placed at the bottom
19529 \begin_layout Labeling
19530 \labelwidthstring 00.00.0000
19537 : only if more than 50\InsetSpace \thinspace{}
19538 % of the page are occupied by floats, several floats
19539 can be set together on a page.
19549 \begin_layout Standard
19550 If you don't like these rules, you can ignore them by using the additional
19553 Ignore\InsetSpace ~
19559 You can also redefine the rules with LaTeX-commands that are given in parenthese
19560 s behind the rules description above.
19561 To increase for example the often too small default of the bottom-rule
19562 to 50\InsetSpace \thinspace{}
19563 % of the page, add this line to your document preamble:
19566 \begin_layout Standard
19573 bottomfraction}{0.5}
19576 \begin_layout Standard
19577 Sometimes you might need, under all circumstances, a float to be placed
19578 exactly at the position where it is inserted.
19579 For this case you can use the option
19585 Use this option very rarely and only if the document is nearly ready to
19587 Because the float is then no longer able to
19588 \begin_inset Quotes eld
19592 \begin_inset Quotes erd
19595 when you change your document and this will often destroy the page layout.
19598 \begin_layout Standard
19599 There are no placement options for text wrap floats, because they are always
19600 surrounded by the text of a certain paragraph.
19601 \begin_inset VSpace bigskip
19607 \begin_layout Standard
19608 Sometimes you have the problem that a float is placed at the top of a page
19609 while its corresponding section starts at the middle of the page, so that
19610 the reader could think the float is part of the previous section.
19611 To avoid this the LaTeX-command
19618 It suppresses a given float placement for the page where it is inserted
19619 and can therefore be used to avoid that floats could be set before a section
19621 To get this, add these commands to your document preamble:
19624 \begin_layout Standard
19646 \begin_layout Standard
19647 You can define the same for all section headings, like chapters and subsections.
19648 This definition is not recommended to be used for small text parts like
19649 subsubsections because LaTeX may then have problems to find a suitable
19653 \begin_layout Standard
19654 \begin_inset VSpace bigskip
19657 In some cases it is required to have all figures/tables at the end of the
19659 For this purpose the LaTeX-package
19664 \begin_inset LatexCommand index
19665 name "LaTeX-packages ! endfloat"
19670 It puts all figure and table floats at the end of the document into own
19672 At the original float position a text hint like
19673 \begin_inset Quotes eld
19678 [Figure\InsetSpace ~
19682 \begin_inset Quotes erd
19686 The endfloat-package is loaded in the preamble with the line
19689 \begin_layout Standard
19694 usepackage[options]{endfloat}
19697 \begin_layout Standard
19698 There are various package options to format the created figure/table sections.
19699 For more information we refer to the
19704 \begin_inset LatexCommand cite
19712 \begin_inset Note Greyedout
19715 \begin_layout Standard
19720 doesn't provide an automatic translation for the text hint, you have to
19721 do this manually, see section\InsetSpace ~
19723 \begin_inset LatexCommand cite
19736 \begin_inset Note Greyedout
19739 \begin_layout Standard
19744 There is currently a bug in
19748 when the caption contains a German
19749 \begin_inset Quotes eld
19753 \begin_inset Quotes erd
19757 Use in this case the command
19758 \begin_inset Quotes eld
19768 \begin_inset Quotes erd
19771 in TeX-Code instead of
19772 \begin_inset Quotes eld
19776 \begin_inset Quotes erd
19787 \begin_layout Standard
19788 \begin_inset VSpace bigskip
19791 For more details about float placements, have a look at LaTeX books,
19792 \begin_inset LatexCommand cite
19793 key "latexcompanion,latexguide,latexbook"
19800 \begin_layout Section
19802 \begin_inset LatexCommand label
19803 name "sec:Rotated-Floats"
19808 \begin_inset LatexCommand index
19809 name "Floats ! Rotating"
19816 \begin_layout Standard
19817 Especially for wide tables you might have floats rotated.
19818 To rotate a whole float including the caption, right-click on the float-box
19821 Rotate\InsetSpace ~
19827 \begin_layout Standard
19828 Rotated floats are always placed on its own page (or column, when you have
19829 a two-column document).
19830 They are rotated so that you can read them from the outside margin.
19831 To force a certain rotation direction for all pages, you can add either
19840 to the document class options.
19843 \begin_layout Standard
19844 Referencing rotated floats is the same like for normal floats, the caption
19845 format is also the same: Table\InsetSpace ~
19847 \begin_inset LatexCommand ref
19848 reference "tab:Rotated-table"
19852 is an example of a rotated table float.
19855 \begin_layout Standard
19856 \begin_inset Note Greyedout
19859 \begin_layout Standard
19864 Not all DVI-viewers are able to display rotated floats.
19872 \begin_layout Standard
19873 \begin_inset Float table
19878 \begin_layout Standard
19879 \begin_inset Caption
19881 \begin_layout Standard
19882 \begin_inset LatexCommand label
19883 name "tab:Rotated-table"
19895 \begin_layout Standard
19897 \begin_inset Tabular
19898 <lyxtabular version="3" rows="1" columns="5">
19900 <column alignment="center" valignment="top" leftline="true" width="0">
19901 <column alignment="center" valignment="top" leftline="true" width="0">
19902 <column alignment="center" valignment="top" leftline="true" width="0">
19903 <column alignment="center" valignment="top" leftline="true" width="0">
19904 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19905 <row topline="true" bottomline="true">
19906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19909 \begin_layout Standard
19915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19918 \begin_layout Standard
19924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19927 \begin_layout Standard
19933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19936 \begin_layout Standard
19942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19945 \begin_layout Standard
19964 \begin_layout Section
19965 Floats Side by Side
19966 \begin_inset LatexCommand index
19967 name "Floats ! Side by side"
19974 \begin_layout Standard
19975 To place floats side by side, like for Figure\InsetSpace ~
19977 \begin_inset LatexCommand ref
19978 reference "fig:Float-left"
19983 \begin_inset LatexCommand ref
19984 reference "fig:Float-right"
19993 In it two minipage boxes are inserted.
19997 \begin_layout Standard
19998 Minipages are explained in section\InsetSpace ~
20000 \begin_inset LatexCommand ref
20001 reference "sec:Minipages"
20010 The width is set to 45\InsetSpace \thinspace{}
20011 -50\InsetSpace \thinspace{}
20012 column% and the box alignment to
20017 The minipage boxes contain the image and the caption in the same way as
20018 they are in a float.
20019 The only difference is that the image unit
20021 Column\InsetSpace ~
20025 is now calculated according to the width of the minipage boxes.
20028 \begin_layout Standard
20029 \begin_inset Float figure
20034 \begin_layout Standard
20035 \begin_inset Box Frameless
20044 height_special "totalheight"
20047 \begin_layout Standard
20049 \begin_inset Graphics
20050 filename clipart/mobius.eps
20053 scaleBeforeRotation
20060 \begin_layout Standard
20061 \begin_inset Caption
20063 \begin_layout Standard
20064 \begin_inset LatexCommand label
20065 name "fig:Float-left"
20069 Float on the left side.
20082 \begin_inset Box Frameless
20091 height_special "totalheight"
20094 \begin_layout Standard
20096 \begin_inset Graphics
20097 filename clipart/platypus.eps
20100 scaleBeforeRotation
20107 \begin_layout Standard
20108 \begin_inset Caption
20110 \begin_layout Standard
20111 \begin_inset LatexCommand label
20112 name "fig:Float-right"
20116 Float on the right side.
20129 \begin_layout Standard
20138 \begin_layout Section
20140 \begin_inset LatexCommand index
20141 name "Caption ! Formatting"
20146 \begin_inset LatexCommand index
20147 name "Floats ! Caption Formatting"
20152 \begin_inset LatexCommand index
20153 name "LaTeX-packages ! caption"
20158 \begin_inset LatexCommand label
20159 name "sec:Caption-Formatting"
20166 \begin_layout Standard
20171 environment is the default paragraph environment for
20176 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
20179 \begin_inset Quotes eld
20187 \begin_inset Quotes erd
20190 followed by the caption text.
20192 \begin_inset Quotes eld
20196 \begin_inset Quotes erd
20199 is the actual reference number.
20200 By default the label and the number are in the same font as the caption
20201 text and a colon follows the number to divide the label from the text.
20202 This caption format is not suitable for all document formats.
20206 \begin_layout Standard
20207 To change the default caption format, load the LaTeX-package
20212 \begin_inset LatexCommand index
20213 name "LaTeX-packages ! caption"
20217 in the document preamble with this line:
20220 \begin_layout Standard
20225 usepackage[format definition]{caption}
20228 \begin_layout Standard
20229 To have for example the label and the number in sans-serif bold font and
20230 the table captions always above the table like in this document, use the
20234 \begin_layout Standard
20239 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
20242 \begin_layout Standard
20243 You can also define different caption formats for the different float types.
20244 In this case load the
20248 package without format specific options and define the different formats
20249 with the help of the command
20252 \begin_layout Standard
20257 captionsetup[float type]{format definition}
20260 \begin_layout Standard
20261 in the document preamble.
20262 For example the caption formats of Figure\InsetSpace ~
20264 \begin_inset LatexCommand ref
20265 reference "fig:This-is-an-fig"
20269 and Table\InsetSpace ~
20271 \begin_inset LatexCommand ref
20272 reference "tab:This-is-an-tab"
20276 can be created using these commands in the document preamble:
20279 \begin_layout Standard
20284 usepackage[tableposition=top]{caption}
20292 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
20298 \begin_layout Standard
20306 captionsetup[figure]
20317 captionsetup[table]{labelfont={bf,sf}}
20320 \begin_layout Standard
20321 \begin_inset Note Greyedout
20324 \begin_layout Standard
20333 has no effect when a
20338 \begin_inset LatexCommand index
20339 name "LaTeX-packages ! koma-script"
20343 document class is used.
20344 In this case the document class option
20356 \begin_layout Standard
20357 For more information about the package
20361 we refer to its documentation
20362 \begin_inset LatexCommand cite
20363 key "caption,caption-de"
20370 \begin_layout Standard
20371 To change the label name from e.g.
20373 \begin_inset Quotes eld
20377 \begin_inset Quotes erd
20381 \begin_inset Quotes eld
20385 \begin_inset Quotes erd
20388 use this preamble command:
20391 \begin_layout Standard
20398 fnum@figure}{Image~
20403 \begin_layout Standard
20410 inserts the figure number and
20413 \begin_inset Quotes eld
20419 \begin_inset Quotes erd
20422 creates a protected space.
20425 \begin_layout Standard
20426 \begin_inset VSpace bigskip
20434 \begin_inset LatexCommand index
20435 name "LaTeX-packages ! koma-script"
20441 article (koma-script)
20449 letter (koma-script)
20453 report (koma-script)
20455 \InsetSpace \thinspace{}
20456 ), you can alternatively to the
20464 's built-in command
20471 For example, to have the caption label in bold, add this command to your
20475 \begin_layout Standard
20480 setkomafont{captionlabel}{
20485 \begin_layout Standard
20486 For more information about
20497 \begin_inset LatexCommand cite
20505 \begin_layout Standard
20509 \begin_layout Standard
20513 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
20520 \begin_inset Note Note
20523 \begin_layout Standard
20524 The caption format is changed only for this example.
20532 \begin_layout Standard
20533 \begin_inset Float figure
20539 \begin_layout Standard
20541 \begin_inset Graphics
20542 filename clipart/mobius.eps
20545 scaleBeforeRotation
20552 \begin_layout Standard
20553 \begin_inset Caption
20555 \begin_layout Standard
20556 \begin_inset LatexCommand label
20557 name "fig:This-is-an-fig"
20561 This is an example figure caption that is longer than one line to show the
20562 different caption format.
20563 Here a self-defined caption format is used.
20576 \begin_layout Standard
20580 \begin_layout Standard
20584 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
20593 \begin_layout Standard
20594 \begin_inset Float table
20600 \begin_layout Standard
20601 \begin_inset Caption
20603 \begin_layout Standard
20604 \begin_inset LatexCommand label
20605 name "tab:This-is-an-tab"
20609 This is an example table caption that is longer than one line to show the
20610 different caption format.
20611 Here the standard caption format for tables in this document is used.
20619 \begin_layout Standard
20621 \begin_inset Tabular
20622 <lyxtabular version="3" rows="1" columns="5">
20624 <column alignment="center" valignment="top" leftline="true" width="0">
20625 <column alignment="center" valignment="top" leftline="true" width="0">
20626 <column alignment="center" valignment="top" leftline="true" width="0">
20627 <column alignment="center" valignment="top" leftline="true" width="0">
20628 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20629 <row topline="true" bottomline="true">
20630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20633 \begin_layout Standard
20639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20642 \begin_layout Standard
20648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20651 \begin_layout Standard
20657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20660 \begin_layout Standard
20666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20669 \begin_layout Standard
20688 \begin_layout Section
20690 \begin_inset LatexCommand index
20691 name "Caption ! Placement"
20696 \begin_inset LatexCommand index
20697 name "Floats ! Caption Placement"
20702 \begin_inset LatexCommand label
20703 name "sec:Caption-Placement"
20710 \begin_layout Standard
20711 The common caption placement rule is:
20714 \begin_layout Description
20715 Figure: Caption is set below the figure
20718 \begin_layout Description
20719 Table: Caption is set above the table
20722 \begin_layout Standard
20723 Having the caption above the table is unfortunately not supported in LaTeX's
20725 That means if you are using the document classes
20741 there will be no space between the caption and the table.
20742 To insert the needed space, add the following option to the load command
20743 of the LaTeX-package
20747 in your document preamble
20751 \begin_layout Standard
20752 See section\InsetSpace ~
20754 \begin_inset LatexCommand ref
20755 reference "sec:Caption-Formatting"
20759 for more information of the package
20771 \begin_layout Standard
20777 \begin_layout Standard
20783 \begin_inset LatexCommand index
20784 name "LaTeX-packages ! koma-script"
20790 article (koma-script)
20798 letter (koma-script)
20802 report (koma-script)
20804 \InsetSpace \thinspace{}
20805 ), you can alternatively to the
20809 package set the document class option
20816 \begin_layout Standard
20817 \begin_inset VSpace bigskip
20820 It is also possible to set the caption beside a figure or table.
20821 To get this the LaTeX-package
20826 \begin_inset LatexCommand index
20827 name "LaTeX-packages ! sidecap"
20831 has to be loaded in the document preamble with the line
20834 \begin_layout Standard
20839 usepackage[option]{sidecap}
20842 \begin_layout Standard
20843 If you set no option, the caption is placed on the side of the outer page
20844 margin -- to the right on odd pages, to the left on even pages.
20845 You can change the placement to inner margin with the option
20850 To force the placement always to the right or left, use the option
20861 \begin_layout Standard
20865 \begin_layout Standard
20875 \begin_inset Note Note
20878 \begin_layout Standard
20879 The following section will only be displayed when the LaTeX-package
20891 \begin_layout Standard
20892 To place in LyX the caption of a float on the side, it is necessary to add
20893 these commands to the document preamble:
20896 \begin_layout Standard
20902 \begin_layout Standard
20915 \begin_layout Standard
20936 \begin_layout Standard
20957 \begin_layout Standard
20968 renewenvironment{table}{
20975 \begin_layout Standard
20988 \begin_layout Standard
21009 \begin_layout Standard
21027 \begin_layout Standard
21040 \begin_layout Standard
21061 \begin_layout Standard
21082 \begin_layout Standard
21093 renewenvironment{figure}{
21100 \begin_layout Standard
21113 \begin_layout Standard
21134 \begin_layout Standard
21152 \begin_layout Standard
21158 \begin_layout Standard
21159 The commands allow you to redefine the floats so that the caption is set
21161 For figure floats use the command
21164 \begin_layout Standard
21172 \begin_layout Standard
21173 in TeX-Code before the float.
21174 Behind the float insert the command
21177 \begin_layout Standard
21185 \begin_layout Standard
21186 in TeX-Code to get back to the original float definition.
21189 \begin_layout Standard
21190 For table floats use the corresponding commands
21193 \begin_layout Standard
21207 \begin_layout Standard
21208 Figure\InsetSpace ~
21210 \begin_inset LatexCommand ref
21211 reference "fig:cap-beside-fig"
21215 and Table\InsetSpace ~
21217 \begin_inset LatexCommand ref
21218 reference "tab:cap-beside-tab"
21222 are examples where the caption is set beside.
21225 \begin_layout Standard
21226 You can see in the examples that the caption text appears at the top of
21227 the floats for table floats and at the bottom for figure floats.
21228 To change this, you can use the command
21231 \begin_layout Standard
21236 sidecaptionvpos{float type}{placement}
21239 \begin_layout Standard
21240 in the document preamble or in TeX-Code before the float.
21241 The float type is either
21249 , the placement can be
21250 \begin_inset Quotes eld
21258 \begin_inset Quotes erd
21262 \begin_inset Quotes eld
21270 \begin_inset Quotes erd
21274 \begin_inset Quotes eld
21282 \begin_inset Quotes erd
21286 To have for example the caption of figure floats vertically centered, use
21290 \begin_layout Standard
21295 sidecaptionvpos{figure}{c}
21298 \begin_layout Standard
21299 This was used for Figure\InsetSpace ~
21301 \begin_inset LatexCommand ref
21302 reference "fig:cap-beside-fig-2"
21309 \begin_layout Standard
21310 \begin_inset VSpace medskip
21313 For more information about the package
21317 we refer to its documentation
21318 \begin_inset LatexCommand cite
21326 \begin_layout Standard
21327 \begin_inset Note Greyedout
21330 \begin_layout Standard
21340 \begin_inset LatexCommand index
21341 name "LaTeX-packages ! hypcap"
21345 , described in section\InsetSpace ~
21347 \begin_inset LatexCommand ref
21348 reference "sub:Reference-Position"
21352 , has no effect on floats with the caption set beside.
21360 \begin_layout Standard
21364 \begin_layout Standard
21376 \begin_layout Standard
21377 \begin_inset Float figure
21382 \begin_layout Standard
21383 \begin_inset Graphics
21384 filename clipart/escher-lsd.eps
21386 scaleBeforeRotation
21393 \begin_layout Standard
21394 \begin_inset Caption
21396 \begin_layout Standard
21397 \begin_inset LatexCommand label
21398 name "fig:cap-beside-fig"
21402 This is a caption beside a figure.
21415 \begin_layout Standard
21419 \begin_layout Standard
21431 \begin_layout Standard
21432 \begin_inset Float table
21437 \begin_layout Standard
21438 \begin_inset Caption
21440 \begin_layout Standard
21441 \begin_inset LatexCommand label
21442 name "tab:cap-beside-tab"
21446 This is a caption beside a table.
21454 \begin_layout Standard
21455 \begin_inset Tabular
21456 <lyxtabular version="3" rows="4" columns="5">
21458 <column alignment="center" valignment="top" leftline="true" width="0">
21459 <column alignment="center" valignment="top" leftline="true" width="0">
21460 <column alignment="center" valignment="top" leftline="true" width="0">
21461 <column alignment="center" valignment="top" leftline="true" width="0">
21462 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
21463 <row topline="true">
21464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21467 \begin_layout Standard
21473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21476 \begin_layout Standard
21482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21485 \begin_layout Standard
21491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21494 \begin_layout Standard
21500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21503 \begin_layout Standard
21510 <row topline="true">
21511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21514 \begin_layout Standard
21520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21523 \begin_layout Standard
21529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21532 \begin_layout Standard
21538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21541 \begin_layout Standard
21547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21550 \begin_layout Standard
21557 <row topline="true">
21558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21561 \begin_layout Standard
21567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21570 \begin_layout Standard
21576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21579 \begin_layout Standard
21585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21588 \begin_layout Standard
21594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21597 \begin_layout Standard
21604 <row topline="true" bottomline="true">
21605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21608 \begin_layout Standard
21614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21617 \begin_layout Standard
21623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21626 \begin_layout Standard
21632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21635 \begin_layout Standard
21641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21644 \begin_layout Standard
21663 \begin_layout Standard
21667 \begin_layout Standard
21679 \begin_layout Standard
21683 \begin_layout Standard
21687 sidecaptionvpos{figure}{c}
21693 \begin_inset Float figure
21698 \begin_layout Standard
21699 \begin_inset Graphics
21700 filename clipart/escher-lsd.eps
21702 scaleBeforeRotation
21709 \begin_layout Standard
21710 \begin_inset Caption
21712 \begin_layout Standard
21713 \begin_inset LatexCommand label
21714 name "fig:cap-beside-fig-2"
21718 This is a vertically centered caption beside a figure.
21731 \begin_layout Standard
21735 \begin_layout Standard
21747 \begin_layout Standard
21751 \begin_layout Standard
21761 \begin_inset Note Note
21764 \begin_layout Standard
21765 The following will be displayed when the LaTeX-package
21777 \begin_layout Standard
21778 You need to install the LaTeX-package
21782 to see the following part of this section in the output.
21785 \begin_layout Standard
21789 \begin_layout Standard
21801 \begin_layout Section
21803 \begin_inset LatexCommand label
21804 name "sec:Listings-of-Floats"
21809 \begin_inset LatexCommand index
21810 name "Floats ! Float Lists"
21817 \begin_layout Standard
21818 Similar to the the table of contents where the sections of the document
21819 are listed, there are listings for all float types, like the figures of
21821 You can insert them via the
21823 Insert\SpecialChar \menuseparator
21831 \begin_layout Standard
21832 The list entries are the float captions or its short title, the float number,
21833 and the page number where they appear in the document.
21836 \begin_layout Standard
21837 You can find the list of figures and tables at the end of this document.
21840 \begin_layout Chapter
21844 \begin_layout Section
21846 \begin_inset LatexCommand label
21847 name "sec:LyX-Notes"
21852 \begin_inset LatexCommand index
21853 name "Notes ! LyX Notes"
21860 \begin_layout Standard
21861 Notes are inserted with the toolbar button
21862 \begin_inset Graphics
21863 filename ../images/note-insert.png
21865 scaleBeforeRotation
21871 Insert\SpecialChar \menuseparator
21875 There are five types of notes:
21878 \begin_layout Description
21880 Note This note type is for internal notes that won't appear in the output.
21881 Its note-box looks like this:
21886 \begin_inset Graphics
21887 filename clipart/LyXNoteImageQt4.png
21890 scaleBeforeRotation
21895 \begin_inset Note Note
21898 \begin_layout Standard
21899 This is text in a note box that doesn't appear in the output.
21907 \begin_layout Description
21908 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21909 ent, when you export the document to LaTeX via the menu
21911 File\SpecialChar \menuseparator
21912 Export\SpecialChar \menuseparator
21913 LaTeX (pdflatex) / (plain)
21916 Its note-box looks like this:
21921 \begin_inset Graphics
21922 filename clipart/CommentNoteImageQt4.png
21925 scaleBeforeRotation
21930 \begin_inset Note Comment
21933 \begin_layout Standard
21934 This is text in a note box that only appears as comment in LaTeX-files.
21942 \begin_layout Description
21943 Greyed\InsetSpace ~
21944 Out This note will appear in the output as grey text.
21945 Its note-box looks like this:
21950 \begin_inset Graphics
21951 filename clipart/GreyedOutNoteImageQt4.png
21954 scaleBeforeRotation
21964 \begin_layout Standard
21968 renewenvironment{lyxgreyedout}
21971 \begin_layout Standard
21975 textcolor[gray]{0.8}
21985 \begin_inset Note Greyedout
21988 \begin_layout Standard
21993 \begin_layout Standard
21994 This is an example footnote within a greyed out note.
21999 of a comment that appears in the output as grey text.
22008 \begin_layout Standard
22012 renewenvironment{lyxgreyedout}
22015 \begin_layout Standard
22029 \begin_inset Note Note
22032 \begin_layout Standard
22033 The greyed out note is here redefined to show it with the original LyX definitio
22034 n because greyed out notes are redefined in the preamble of this document,
22035 as described below, to have blue text.
22044 As you can see in the example, the first line of greyed out notes is a bit
22045 indented and greyed out notes can have footnotes.
22048 \begin_layout Description
22049 Framed This note will appear in the output as framed text.
22050 Its note-box looks like this:
22055 \begin_inset Graphics
22056 filename clipart/FramedNoteImageQt4.png
22059 scaleBeforeRotation
22064 \begin_inset Note Framed
22067 \begin_layout Standard
22068 This is text in a note box that appears framed in the output.
22073 In contrary to framed boxes
22077 \begin_layout Standard
22078 Framed boxes are described in section\InsetSpace ~
22080 \begin_inset LatexCommand ref
22081 reference "sec:Framed-Boxes"
22090 the frame uses always the whole text width and the note is set into its
22094 \begin_layout Description
22095 Shaded This note will appear in the output with red background color.
22096 Its note box looks like this:
22101 \begin_inset Graphics
22102 filename clipart/ShadedNoteImageQt4.png
22105 scaleBeforeRotation
22110 \begin_inset Note Shaded
22113 \begin_layout Standard
22114 This text in a note box appears in the output with red background.
22119 In contrary to colored boxes
22123 \begin_layout Standard
22124 Colored boxes are described in section\InsetSpace ~
22126 \begin_inset LatexCommand ref
22127 reference "sec:Colored-Boxes"
22136 the note uses always the whole text width and the note is set into its
22140 \begin_layout Standard
22141 \begin_inset VSpace bigskip
22144 When you use the toolbar button
22145 \begin_inset Graphics
22146 filename ../images/note-insert.png
22148 scaleBeforeRotation
22158 You can switch between the five note types by right-clicking on the note-box.
22163 If you want to turn existing text into a note, mark it and click on the
22177 To change a note to text, press the backspace key when the cursor is in
22178 the first position of a note, or press the deletey key when the cursor
22179 is in the very last position of the note, respectively.
22182 \begin_layout Standard
22183 \begin_inset VSpace bigskip
22186 You can change the text color of the greyed out notes in the preamble with
22187 the following command:
22190 \begin_layout Standard
22195 renewenvironment{lyxgreyedout}
22201 \begin_layout Standard
22219 \begin_layout Standard
22220 The available colors and the method to define own colors is explained in
22221 section\InsetSpace ~
22223 \begin_inset LatexCommand ref
22224 reference "sec:Colored-Tables"
22231 \begin_layout Standard
22232 Notes that appear in blue in this document are set using greyed out notes
22236 \begin_layout Standard
22237 \begin_inset VSpace bigskip
22243 \begin_layout Standard
22252 notes can be set in the
22259 \begin_layout Standard
22260 The default frame width for
22264 notes is 0.4\InsetSpace \thinspace{}
22265 pt; it can be changed by changing the size
22272 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
22274 be changed by changing the size
22281 For example the frame appearance of the following
22285 note is set with the TeX-Code commands
22288 \begin_layout Standard
22298 \begin_layout Standard
22302 \begin_layout Standard
22314 \begin_inset Note Framed
22317 \begin_layout Standard
22331 \begin_layout Standard
22345 \begin_layout Standard
22346 \begin_inset VSpace bigskip
22352 \begin_layout Standard
22357 notes the default space between the note content and the note border is
22358 3\InsetSpace \thinspace{}
22359 pt; it can be changed by changing the size
22367 The default background color red can be changed with the command
22371 def\SpecialChar \textcompwordmark{}
22379 def\SpecialChar \textcompwordmark{}
22382 command is explained in section\InsetSpace ~
22384 \begin_inset LatexCommand ref
22385 reference "sec:Colored-Tables"
22393 \begin_layout Standard
22400 \SpecialChar \textcompwordmark{}
22405 requires the LaTeX-package
22409 in the preamble, see section\InsetSpace ~
22411 \begin_inset LatexCommand ref
22412 reference "sec:Colored-Boxes"
22424 \begin_layout Standard
22425 For example the appearance of the following
22429 note is set with the TeX-Code commands
22432 \begin_layout Standard
22445 def\SpecialChar \textcompwordmark{}
22446 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22449 \begin_layout Standard
22453 \begin_layout Standard
22466 \begin_layout Standard
22470 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22476 \begin_inset Note Shaded
22479 \begin_layout Standard
22482 This is yellow text in a
22492 note with darkgreen background.
22501 \begin_layout Standard
22514 \begin_layout Standard
22518 definecolor{shadecolor}{rgb}{1,0,0}
22526 \begin_layout Section
22528 \begin_inset LatexCommand label
22529 name "sec:Footnotes"
22534 \begin_inset LatexCommand index
22535 name "Notes ! Footnotes"
22540 \begin_inset LatexCommand index
22548 \begin_layout Standard
22549 Footnotes can be inserted using the toolbar button
22550 \begin_inset Graphics
22551 filename ../images/footnote-insert.png
22553 scaleBeforeRotation
22559 Insert\SpecialChar \menuseparator
22571 then the following footnote-box:
22572 \begin_inset Graphics
22573 filename clipart/footnoteQt4.png
22575 scaleBeforeRotation
22583 where you can enter the footnote text.
22584 If you want to turn existing text into a footnote, mark it and click on
22606 to text, press the Backspace key when the cursor is in the first position
22615 , or press the Delete key when the cursor is in the very last position of
22627 \begin_layout Standard
22628 Here is an example footnote:
22636 \begin_layout Standard
22637 \begin_inset LatexCommand label
22638 name "foot:This-is-an"
22642 This is an example footnote.
22655 \begin_layout Standard
22659 newcounter{MyRepeatFoot}
22662 \begin_layout Standard
22666 setcounter{MyRepeatFoot}{
22676 \begin_layout Standard
22677 The footnote will appear in the output as a superscript number at the text
22678 position where the footnote box is placed.
22679 The footnote text is placed at the bottom of the current page.
22680 The footnote number is calculated by LaTeX, the numbers are consecutive.
22681 It depends on your document-class, if the footnote number is reset for
22685 \begin_layout Standard
22686 Footnotes can be referenced like floats: Insert a label into the footnote
22687 and cross-reference this label in the text as described in section\InsetSpace ~
22689 \begin_inset LatexCommand ref
22690 reference "sec:Referencing-Floats"
22696 This is a cross-reference of Footnote\InsetSpace ~
22698 \begin_inset LatexCommand ref
22699 reference "foot:This-is-an"
22706 \begin_layout Standard
22707 \begin_inset VSpace defskip
22710 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
22712 \begin_inset LatexCommand ref
22713 reference "sec:Minipages"
22718 Footnotes within longtables are described in section\InsetSpace ~
22720 \begin_inset LatexCommand ref
22721 reference "sub:Footnotes-in-Longtables"
22728 \begin_layout Standard
22729 \begin_inset VSpace defskip
22732 To create only a mark for a footnote, use the command
22736 footnotemark[number]
22739 This is used when you have the same annotation several times in a text
22740 but doesn't want to print the footnote text every time.
22743 the number of the repeating footnote while you are writing the text, you
22744 have to store its number.
22745 For the following footnote mark example, these commands were inserted in
22746 TeX-Code behind Footnote\InsetSpace ~
22748 \begin_inset LatexCommand ref
22749 reference "foot:This-is-an"
22753 to store the footnote number:
22756 \begin_layout Standard
22761 newcounter{MyRepeatFoot}
22765 setcounter{MyRepeatFoot}{
22770 \begin_layout Standard
22771 The footnote mark was then created with this command:
22774 \begin_layout Standard
22784 \begin_layout Standard
22785 Here is an example footnote mark:
22793 \begin_layout Standard
22807 \begin_layout Subsection
22809 \begin_inset LatexCommand label
22810 name "sub:Footnote-Numbering"
22815 \begin_inset LatexCommand index
22816 name "Footnotes ! Numbering"
22823 \begin_layout Standard
22824 To reset the footnote number back to 1 after each section
22826 , add this command to your document preamble:
22829 \begin_layout Standard
22834 @addtoreset{footnote}{section}
22837 \begin_layout Standard
22838 \begin_inset VSpace bigskip
22841 The following preamble command changes the footnote numbering style to small
22845 \begin_layout Standard
22857 \begin_layout Standard
22861 \begin_layout Standard
22874 This is a footnote with roman numbering:
22878 \begin_layout Standard
22879 This is an example footnote with roman numbering.
22887 \begin_layout Standard
22888 To change the numbering style to capital roman numerals replace in the command
22903 \begin_inset Quotes eld
22907 \begin_inset Quotes erd
22910 footnotes with capital or small Latin letters use
22924 \begin_inset Quotes eld
22928 \begin_inset Quotes erd
22931 footnotes with symbols use
22940 \begin_layout Standard
22941 \begin_inset Note Greyedout
22944 \begin_layout Standard
22949 You can only number 26 footnotes with Latin letters, because this numbering
22950 is limited to single letters.
22958 \begin_inset Note Greyedout
22961 \begin_layout Standard
22966 You can only number 9 footnotes with symbols.
22974 \begin_layout Standard
22975 To return to the default numbering style when you changed to another one,
22988 in the command above.
22992 \begin_layout Standard
23008 \begin_layout Standard
23009 \begin_inset VSpace bigskip
23015 \begin_layout Standard
23016 If you want to have footnotes numbered in the scheme
23017 \begin_inset Quotes eld
23021 \begin_inset Quotes erd
23024 , add the following command to your document preamble:
23027 \begin_layout Standard
23032 numberwithin{footnote}{chapter}
23035 \begin_layout Standard
23036 To be able to use the command
23047 in the document settings the option
23057 \begin_layout Standard
23061 \begin_layout Standard
23065 numberwithin{footnote}{chapter}
23070 This is another example footnote:
23076 \begin_layout Standard
23077 This is a footnote numbered in the scheme
23078 \begin_inset Quotes eld
23082 \begin_inset Quotes erd
23096 \begin_layout Standard
23112 \begin_layout Standard
23113 \begin_inset Note Greyedout
23116 \begin_layout Standard
23127 always prints out the footnote number as arabic number; previous redefinitions
23128 to get non-arabic numbers are overwritten.
23136 \begin_layout Standard
23137 So to get for example the scheme
23138 \begin_inset Quotes eld
23144 \begin_inset Quotes erd
23147 , use this command instead of
23156 \begin_layout Standard
23170 \begin_layout Subsection
23172 \begin_inset LatexCommand index
23173 name "Footnotes ! Placement"
23180 \begin_layout Standard
23181 If you have several footnotes in one page, they appear without vertical
23182 space between them at the bottom of the page.
23183 To make them better readable you can e.\InsetSpace \thinspace{}
23185 add 1.5\InsetSpace \thinspace{}
23186 mm space with the following
23190 \begin_layout Standard
23212 \begin_layout Standard
23213 \begin_inset VSpace bigskip
23216 In a two-column document the footnotes appear at the bottom of every column,
23217 see Figure\InsetSpace ~
23219 \begin_inset LatexCommand ref
23220 reference "fig:Standard-footnote-placement"
23225 If the footnotes should only appear at the bottom of the right column,
23226 as in Figure\InsetSpace ~
23228 \begin_inset LatexCommand ref
23229 reference "fig:Footnote-placement-in"
23233 , use the LaTeX-package
23238 \begin_inset LatexCommand index
23239 name "LaTeX-packages ! ftnright"
23243 with this command in the document preamble:
23246 \begin_layout Standard
23251 usepackage{ftnright}
23254 \begin_layout Standard
23255 \begin_inset Float figure
23261 \begin_layout Standard
23265 \begin_layout Standard
23275 \begin_inset Graphics
23276 filename clipart/without_fntright.pdf
23278 scaleBeforeRotation
23286 \begin_layout Standard
23296 \begin_layout Standard
23297 \begin_inset Caption
23299 \begin_layout Standard
23300 \begin_inset LatexCommand label
23301 name "fig:Standard-footnote-placement"
23305 Standard footnote placement in two-column documents.
23318 \begin_layout Standard
23319 \begin_inset Float figure
23325 \begin_layout Standard
23329 \begin_layout Standard
23339 \begin_inset Graphics
23340 filename clipart/with_fntright.pdf
23342 scaleBeforeRotation
23350 \begin_layout Standard
23360 \begin_layout Standard
23361 \begin_inset Caption
23363 \begin_layout Standard
23364 \begin_inset LatexCommand label
23365 name "fig:Footnote-placement-in"
23369 Footnote placement in two-column documents when the LaTeX-package
23386 \begin_layout Standard
23387 \begin_inset VSpace bigskip
23390 In some scientific literature it is usual to collect the footnotes and print
23391 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
23393 \begin_inset LatexCommand ref
23394 reference "fig:Endnotes----footnotes"
23399 They are then so called
23400 \begin_inset Quotes eld
23404 \begin_inset Quotes erd
23408 \begin_inset LatexCommand index
23413 To use endnotes instead of footnotes in your document, load the LaTeX-package
23419 \begin_inset LatexCommand index
23420 name "LaTeX-packages ! endnotes"
23424 with the document preamble lines
23427 \begin_layout Standard
23432 usepackage{endnotes}
23443 \begin_layout Standard
23444 To insert the collected footnotes, insert the command
23447 \begin_layout Standard
23455 \begin_layout Standard
23456 in TeX-Code at the the end of a section or chapter.
23459 \begin_layout Standard
23460 \begin_inset Float figure
23465 \begin_layout Standard
23470 \begin_layout Standard
23480 \begin_inset Graphics
23481 filename clipart/endnotes.pdf
23482 scaleBeforeRotation
23490 \begin_layout Standard
23500 \begin_layout Standard
23501 \begin_inset Caption
23503 \begin_layout Standard
23504 \begin_inset LatexCommand label
23505 name "fig:Endnotes----footnotes"
23509 Endnotes -- footnotes are printed in a separate paragraph at the end of
23510 sections or chapters.
23523 \begin_layout Standard
23524 \begin_inset VSpace medskip
23527 The paragraph heading for the endnotes isn't automatically translated into
23528 the document language, this must be done manually.
23529 The following preamble command translate the default English name
23530 \begin_inset Quotes eld
23534 \begin_inset Quotes erd
23537 to the German translation
23538 \begin_inset Quotes eld
23542 \begin_inset Quotes erd
23548 \begin_layout Standard
23555 notesname}{Anmerkungen}
23558 \begin_layout Standard
23559 \begin_inset VSpace medskip
23562 The numbering of endnotes can be changed like the footnote numbering as
23563 described in section\InsetSpace ~
23565 \begin_inset LatexCommand ref
23566 reference "sub:Footnote-Numbering"
23570 ; just replace the command
23583 To reset the endnote number use the command
23589 as described in section\InsetSpace ~
23591 \begin_inset LatexCommand ref
23592 reference "sub:Footnote-Numbering"
23596 and replace the command parameter
23607 \begin_layout Standard
23608 To create only a mark for an endnote, use the command
23612 endnotemark[number]
23614 similar to the command
23620 , described in section\InsetSpace ~
23622 \begin_inset LatexCommand ref
23623 reference "sec:Footnotes"
23630 \begin_layout Standard
23631 \begin_inset VSpace bigskip
23634 Footnotes can also be placed in the page margin and the footnote text alignment
23635 can be changed, see the LaTeX-package
23640 \begin_inset LatexCommand index
23641 name "LaTeX-packages ! footmisc"
23646 \begin_inset LatexCommand cite
23651 for more information about this.
23654 \begin_layout Standard
23655 For various further footnote formatting issues have a look at LaTeX-books,
23657 \begin_inset LatexCommand cite
23658 key "latexcompanion,latexguide,latexbook"
23665 \begin_layout Section
23667 \begin_inset LatexCommand index
23668 name "Notes ! Margin Notes"
23675 \begin_layout Standard
23676 Margin notes look and behave in LyX like footnotes.
23677 They are inserted via the menu
23679 Insert\SpecialChar \menuseparator
23680 Marginal\InsetSpace ~
23683 or the toolbar button
23684 \begin_inset Graphics
23685 filename ../images/marginalnote-insert.png
23687 scaleBeforeRotation
23702 \begin_inset Quotes eld
23706 \begin_inset Quotes erd
23709 appears where you can enter the text of the margin note.
23712 \begin_layout Standard
23713 At the side is an example margin note.
23717 \begin_inset Marginal
23720 \begin_layout Standard
23721 This is a margin note.
23729 \begin_layout Standard
23730 Margin notes appear at the right side in single-sided documents.
23731 In double-sided documents they appear in the outer margin -- left on even
23732 pages, right on odd pages.
23733 The text of margin notes is aligned opposite to the outer margin -- right-align
23734 ed when the note appears in the left margin.
23735 The first line of the margin note is placed at the position of the text
23736 line where it is inserted in the document.
23739 \begin_layout Standard
23740 \begin_inset VSpace bigskip
23743 To place the margin note in the inner margin, add the command
23746 \begin_layout Standard
23754 \begin_layout Standard
23755 in TeX-Code before a margin note.
23756 The new placement is valid for all following margin notes.
23760 \begin_layout Standard
23770 \begin_inset Marginal
23773 \begin_layout Standard
23774 This is a margin note in the inner margin.
23786 \begin_inset Note Greyedout
23789 \begin_layout Standard
23794 There is often not enough space in the inner margin so that the notes are
23795 not correctly displayed in the output.
23803 \begin_layout Standard
23804 To return to the default placement insert the command
23807 \begin_layout Standard
23815 \begin_layout Standard
23820 \begin_layout Standard
23830 \begin_inset Note Greyedout
23833 \begin_layout Standard
23838 The command is ignored when it is within a paragraph where also the command
23853 \begin_layout Standard
23854 \begin_inset VSpace bigskip
23861 \begin_inset Marginal
23864 \begin_layout Standard
23865 AVeryLongMarginParWord that isn't hyphenated.
23873 Similar to the case described in section\InsetSpace ~
23875 \begin_inset LatexCommand ref
23876 reference "sub:Multiple-Lines-in"
23880 , long words cannot be hyphenated when they are the first word in a margin
23882 To avoid this, insert the command
23885 \begin_layout Standard
23893 \begin_layout Standard
23894 in TeX-Code before the word
23898 \begin_inset Marginal
23901 \begin_layout Standard
23905 \begin_layout Standard
23914 AVeryLongMarginParWord that is hyphenated.
23922 \begin_layout Standard
23923 \begin_inset VSpace bigskip
23929 \begin_layout Standard
23930 \begin_inset Note Greyedout
23933 \begin_layout Standard
23938 Margin notes can normally not be used inside tables, floats, and footnotes.
23946 \begin_layout Standard
23947 \begin_inset VSpace bigskip
23953 \begin_layout Standard
23957 \begin_layout Standard
23967 \begin_inset Note Note
23970 \begin_layout Standard
23971 The following section will only be displayed when the LaTeX-package
23983 \begin_layout Standard
23984 This restriction can be evaded by using the LaTeX-package
23989 \begin_inset LatexCommand index
23990 name "LaTeX-packages ! marginnote"
23995 By adding these two lines to your document preamble, the command used by
23996 LyX for margin notes is redefined to use the command provided by the
24003 \begin_layout Standard
24008 usepackage{marginnote}
24019 \begin_layout Standard
24020 This is also used in this document because
24024 has another useful feature: You can set a vertical offset for the note.
24025 This is often needed when too many margin notes are too close together
24026 or for a better page layout.
24027 The offset is set in LyX as TeX-Code directly behind the margin note in
24031 \begin_layout Standard
24037 \begin_layout Standard
24038 where the offset is a length with one of the units listed in Table\InsetSpace ~
24040 \begin_inset LatexCommand ref
24041 reference "tab:Units"
24046 A negative value shifts the note up, a positive value shifts it down.
24050 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
24052 the TeX-Code-command
24053 \begin_inset Quotes eld
24063 \begin_inset Quotes erd
24067 \begin_inset Marginal
24070 \begin_layout Standard
24071 This margin note is shifted up 1.5\InsetSpace \thinspace{}
24072 cm from its original position.
24084 \begin_layout Standard
24094 \begin_layout Standard
24095 \begin_inset VSpace medskip
24102 you can also change the alignment of the text in the margin note.
24103 For example the commands
24106 \begin_layout Standard
24113 raggedleftmarginnote}{
24121 raggedrightmarginnote}{
24126 \begin_layout Standard
24127 set the alignment to centered.
24132 raggedleftmarginnote
24134 denotes margin notes that appear at the left side.
24141 \begin_layout Standard
24147 raggedleftmarginnote}{
24152 \begin_layout Standard
24158 raggedrightmarginnote}{
24166 \begin_inset Marginal
24169 \begin_layout Standard
24170 The text of this margin note is centered.
24181 \begin_layout Standard
24188 raggedleftmarginnote}{
24196 raggedrightmarginnote}{
24205 \begin_layout Standard
24211 raggedleftmarginnote}{
24216 \begin_layout Standard
24222 raggedrightmarginnote}{
24232 \begin_layout Standard
24233 \begin_inset VSpace medskip
24236 For the other features of
24240 we refer to its documentation
24241 \begin_inset LatexCommand cite
24249 \begin_layout Standard
24250 \begin_inset VSpace bigskip
24253 You can adjust the layout of margin notes by changing its definition.
24254 To create for example a header for all margin notes with the underlined,
24255 sans-serif, and bold header text
24256 \begin_inset Quotes eld
24268 \begin_inset Quotes erd
24271 , add this to your document preamble:
24274 \begin_layout Standard
24297 \begin_layout Standard
24314 underbar{Attention!}}}%
24320 \begin_layout Standard
24338 \begin_layout Standard
24345 \begin_layout Standard
24356 \begin_layout Standard
24367 \begin_layout Standard
24375 underbar{Attention!}}}%
24378 \begin_layout Standard
24392 \begin_inset Marginal
24395 \begin_layout Standard
24396 This is a margin note with a defined heading.
24408 \begin_layout Standard
24422 \begin_layout Standard
24439 \begin_inset Note Note
24442 \begin_layout Standard
24443 The margin note format is changed only for this example.
24451 \begin_layout Standard
24455 \begin_layout Standard
24465 \begin_inset Note Note
24468 \begin_layout Standard
24469 The following will be displayed when the LaTeX-package
24481 \begin_layout Standard
24482 You need to install the LaTeX-package
24486 to see the following part of this section in the output.
24489 \begin_layout Standard
24493 \begin_layout Standard
24505 \begin_layout Chapter
24509 \begin_layout Section
24511 \begin_inset LatexCommand index
24512 name "Boxes ! Introduction"
24519 \begin_layout Standard
24520 Boxes are used to format a block of text.
24521 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24523 \begin_inset LatexCommand ref
24524 reference "sec:Minipages"
24528 , to frame texts, see section\InsetSpace ~
24530 \begin_inset LatexCommand ref
24531 reference "sec:Framed-Boxes"
24535 , to prevent words to be hyphenated, see section\InsetSpace ~
24537 \begin_inset LatexCommand ref
24538 reference "sec:Prevent-Hyphenation"
24542 , to align text, see section\InsetSpace ~
24544 \begin_inset LatexCommand ref
24545 reference "sub:Vertical-Alignment"
24549 , or to set the background color of texts, see section\InsetSpace ~
24551 \begin_inset LatexCommand ref
24552 reference "sec:Colored-Boxes"
24559 \begin_layout Standard
24560 Boxes can be inserted with the menu
24562 Insert\SpecialChar \menuseparator
24565 or the toolbar button
24566 \begin_inset Graphics
24567 filename ../images/box-insert.png
24569 scaleBeforeRotation
24574 A grey box with the label
24579 \begin_inset Graphics
24580 filename clipart/BoxInsetDefaultQt4.png
24582 scaleBeforeRotation
24586 , will be inserted.
24587 The box type can be specified by right-clicking on the box.
24588 The appearing box dialog offers the
24606 is the default for new boxes and is explained in section\InsetSpace ~
24608 \begin_inset LatexCommand ref
24609 reference "sec:Minipages"
24617 is described in section\InsetSpace ~
24619 \begin_inset LatexCommand ref
24620 reference "sec:Parboxes"
24627 \begin_layout Standard
24628 Boxes aren't numbered and can therefore not be referenced like floats or
24632 \begin_layout Standard
24633 \begin_inset Note Greyedout
24636 \begin_layout Standard
24641 Boxes must not be the item in an
24657 \begin_layout Standard
24658 \begin_inset Note Greyedout
24661 \begin_layout Standard
24666 For an unknown reason you can only set the
24675 when you use a framed box.
24681 type and without frames are explained in section\InsetSpace ~
24683 \begin_inset LatexCommand ref
24684 reference "sec:Prevent-Hyphenation"
24696 \begin_layout Section
24698 \begin_inset LatexCommand label
24699 name "sec:Box-Dialog"
24704 \begin_inset LatexCommand index
24705 name "Boxes ! Box Dialog"
24710 \begin_inset LatexCommand index
24711 name "Boxes ! Alignment"
24718 \begin_layout Standard
24719 In the box dialog you can adjust the box geometry in the fields
24728 The available units for the geometry are explained in Table\InsetSpace ~
24730 \begin_inset LatexCommand ref
24731 reference "tab:Units"
24740 offers the following additional sizes:
24743 \begin_layout Description
24744 Depth This is the plain text
24745 \begin_inset Quotes eld
24749 \begin_inset Quotes erd
24753 It ignores the total depth when there are multiple text lines in the box:
24760 \begin_inset Box Boxed
24769 height_special "depth"
24772 \begin_layout Standard
24774 Box height set to 1\InsetSpace \thinspace{}
24787 \begin_layout Description
24788 Height This is the heigth of the text that is inside the box.
24789 A value of e.\InsetSpace \thinspace{}
24791 2 for this size will set the box heigth to 2 times the text
24793 \begin_inset Box Boxed
24802 height_special "height"
24805 \begin_layout Standard
24807 Box height set to 2\InsetSpace \thinspace{}
24816 \begin_layout Description
24818 Height This is the Height\InsetSpace \thinspace{}
24819 +\InsetSpace \thinspace{}
24821 \begin_inset Box Boxed
24830 height_special "totalheight"
24833 \begin_layout Standard
24835 Box height set to 1\InsetSpace \thinspace{}
24845 \begin_layout Description
24846 Width This sets the width of the box as heigth:
24847 \begin_inset Box Boxed
24856 height_special "width"
24859 \begin_layout Standard
24861 Box height set to 1\InsetSpace \thinspace{}
24870 \begin_layout Standard
24871 \begin_inset VSpace bigskip
24874 When you have chosen an
24879 , the vertical box alignment can be:
24882 \begin_layout Description
24883 Top This is an example text line.
24885 \begin_inset Box Boxed
24894 height_special "totalheight"
24897 \begin_layout Standard
24899 This box is top-aligned.
24904 This is an example text line.
24907 \begin_layout Description
24908 Middle This is an example text line.
24910 \begin_inset Box Boxed
24919 height_special "totalheight"
24922 \begin_layout Standard
24924 This box is middle-aligned.
24929 This is an example text line.
24932 \begin_layout Description
24933 Bottom This is an example text line.
24935 \begin_inset Box Boxed
24944 height_special "totalheight"
24947 \begin_layout Standard
24949 This box is bottom-aligned.
24954 This is an example text line.
24957 \begin_layout Standard
24958 The horizontal box alignment can be set via LyX's paragraph dialog when
24959 you set the box into its own paragraph.
24962 \begin_layout Standard
24963 \begin_inset VSpace bigskip
24966 When you have chosen an
24971 , the box content can be vertical aligned to:
24974 \begin_layout Description
24975 top This is an example text line.
24977 \begin_inset Box Boxed
24986 height_special "totalheight"
24989 \begin_layout Standard
24991 This box text is top-aligned.
24996 This is an example text line.
24999 \begin_layout Description
25000 middle This is an example text line.
25002 \begin_inset Box Boxed
25011 height_special "totalheight"
25014 \begin_layout Standard
25016 This box text is middle-aligned.
25021 This is an example text line.
25024 \begin_layout Description
25025 bottom This is an example text line.
25027 \begin_inset Box Boxed
25036 height_special "totalheight"
25039 \begin_layout Standard
25041 This box text is bottom-aligned.
25046 This is an example text line.
25049 \begin_layout Description
25050 stretch This is an example text line.
25052 \begin_inset Box Boxed
25061 height_special "totalheight"
25064 \begin_layout Standard
25069 \begin_layout Standard
25074 \begin_layout Standard
25081 This is an example text line.
25084 \begin_layout Standard
25085 To stretch the box content, it must consist of more than one paragraph.
25086 In the example above every text line is in an own paragraph.
25089 \begin_layout Standard
25090 \begin_inset VSpace bigskip
25093 To align the box content horizontally you can use LyX's paragraph dialog
25094 when you have chosen an
25102 \begin_layout Standard
25104 \begin_inset Box Boxed
25113 height_special "totalheight"
25116 \begin_layout Standard
25121 \begin_layout Standard
25126 \begin_layout Standard
25136 \begin_layout Standard
25137 If you haven't set an
25142 , you can align the box content horizontally in the box dialog.
25145 \begin_layout Standard
25147 \begin_inset Box Boxed
25156 height_special "totalheight"
25159 \begin_layout Standard
25161 This box text is horizontally stretched.
25169 \begin_layout Section
25171 \begin_inset LatexCommand label
25172 name "sec:Framed-Boxes"
25177 \begin_inset LatexCommand index
25178 name "Boxes ! Frames"
25185 \begin_layout Standard
25186 The frame style of the box can be specified in the box-dialog in the drop-down
25192 The following frame types are possible:
25195 \begin_layout Description
25196 Rectangular\InsetSpace ~
25197 box This draws a rectangle frame around the box.
25198 The frame line thickness has the size of
25206 \begin_inset Box Boxed
25215 height_special "totalheight"
25218 \begin_layout Standard
25228 \begin_layout Description
25231 thin This draws an oval frame around the box.
25232 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
25235 \begin_inset Box ovalbox
25244 height_special "totalheight"
25247 \begin_layout Standard
25257 \begin_layout Description
25260 thick This draws an oval frame around the box.
25261 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
25264 \begin_inset Box Ovalbox
25273 height_special "totalheight"
25276 \begin_layout Standard
25286 \begin_layout Description
25287 Shadow\InsetSpace ~
25288 box This draws a rectangle frame with a shadow around the box.
25289 The frame line thickness has the size of
25295 , the shadow has a width of 4\InsetSpace \thinspace{}
25298 \begin_inset Box Shadowbox
25307 height_special "totalheight"
25310 \begin_layout Standard
25320 \begin_layout Description
25321 Double\InsetSpace ~
25322 box This draws a double-line rectangle frame around the box.
25323 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
25330 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
25338 The distance between the lines is 1.5\InsetSpace \thinspace{}
25345 \InsetSpace \thinspace{}
25346 +\InsetSpace \thinspace{}
25347 0.5\InsetSpace \thinspace{}
25350 \begin_inset Box Doublebox
25359 height_special "totalheight"
25362 \begin_layout Standard
25372 \begin_layout Standard
25373 \begin_inset VSpace bigskip
25376 LyX's box label will change to the used frame style when you set a frame.
25377 To be able to use the different frame styles, the LaTeX-package
25382 \begin_inset LatexCommand index
25383 name "LaTeX-packages ! fancybox"
25390 \begin_layout Standard
25391 \begin_inset VSpace bigskip
25394 The default value for the size
25400 is 0.4\InsetSpace \thinspace{}
25402 It can be changed with the following command in TeX-Code to e.\InsetSpace \thinspace{}
25404 2\InsetSpace \thinspace{}
25408 \begin_layout Standard
25418 \begin_layout Standard
25422 \begin_layout Standard
25434 \begin_inset Box Boxed
25443 height_special "totalheight"
25446 \begin_layout Standard
25448 Rectangular box with
25454 \InsetSpace \thinspace{}
25455 =\InsetSpace \thinspace{}
25456 2\InsetSpace \thinspace{}
25466 \begin_layout Standard
25480 \begin_layout Standard
25481 \begin_inset VSpace bigskip
25484 The space between the frame and the box content is for all frame styles
25485 by default 3\InsetSpace \thinspace{}
25487 You can change it by setting the length
25494 For example the command
25497 \begin_layout Standard
25507 \begin_layout Standard
25508 sets the value to 10\InsetSpace \thinspace{}
25509 pt, like for the following box:
25512 \begin_layout Standard
25516 \begin_layout Standard
25528 \begin_inset Box Boxed
25537 height_special "totalheight"
25540 \begin_layout Standard
25542 Rectangular box with
25548 \InsetSpace \thinspace{}
25549 =\InsetSpace \thinspace{}
25550 10\InsetSpace \thinspace{}
25560 \begin_layout Standard
25574 \begin_layout Standard
25575 \begin_inset VSpace bigskip
25578 The diameter of the round corners of the oval boxes can be set with the
25589 \begin_layout Standard
25597 \begin_layout Standard
25598 sets the diameter to 1\InsetSpace \thinspace{}
25603 \begin_layout Standard
25611 \begin_layout Standard
25612 sets the diameter to
25614 num\InsetSpace \thinspace{}
25615 ×\InsetSpace \thinspace{}
25616 minimum(width and heigth of box)
25628 \begin_layout Standard
25632 \begin_layout Standard
25642 \begin_inset Box Ovalbox
25651 height_special "totalheight"
25654 \begin_layout Standard
25662 \InsetSpace \thinspace{}
25663 =\InsetSpace \thinspace{}
25664 1.5\InsetSpace \thinspace{}
25674 \begin_layout Standard
25686 \begin_layout Standard
25687 \begin_inset VSpace bigskip
25690 The size of the shadow can be adjusted by changing the length
25697 It it set to 2\InsetSpace \thinspace{}
25698 pt for the following box by this command:
25701 \begin_layout Standard
25711 \begin_layout Standard
25715 \begin_layout Standard
25727 \begin_inset Box Shadowbox
25736 height_special "totalheight"
25739 \begin_layout Standard
25747 \InsetSpace \thinspace{}
25748 =\InsetSpace \thinspace{}
25749 2\InsetSpace \thinspace{}
25759 \begin_layout Standard
25773 \begin_layout Standard
25774 \begin_inset VSpace bigskip
25777 Changed lengths and widths are valid for all boxes following the commands
25781 \begin_layout Section
25783 \begin_inset LatexCommand label
25784 name "sec:Minipages"
25789 \begin_inset LatexCommand index
25790 name "Boxes ! Minipages"
25797 \begin_layout Standard
25798 Minipages are treated by LaTeX as pages within pages and can therefore for
25799 example have their own footnotes.
25802 \begin_layout Standard
25803 Minipages are useful when you write documents with different languages.
25806 \begin_layout Standard
25807 Below are two example minipages side by side.
25808 Their width is set to 45\InsetSpace \thinspace{}
25809 col% and they are separated by a horizontal fill,
25810 that was inserted via the menu
25812 Insert\SpecialChar \menuseparator
25813 Special\InsetSpace ~
25814 Formatting\SpecialChar \menuseparator
25815 Horizontal\InsetSpace ~
25821 \begin_layout Standard
25822 \begin_inset Box Frameless
25831 height_special "totalheight"
25834 \begin_layout Standard
25837 Dies ist ein deutscher Text.
25838 Dies ist ein deutscher Text.
25839 Dies ist ein deutscher Text.
25840 Dies ist ein deutscher Text.
25841 Dies ist ein deutscher Text.
25842 Dies ist ein deutscher Text.
25843 Dies ist ein deutscher Text.
25844 Dies ist ein deutscher Text.
25845 Dies ist ein deutscher Text.
25846 Dies ist ein deutscher Text.
25847 Dies ist ein deutscher Text.
25848 Dies ist ein deutscher Text.
25849 Dies ist ein deutscher Text
25853 \begin_layout Standard
25856 Dies ist eine deutsche Fußnote.
25862 Dies ist ein deutscher Text.
25863 Dies ist ein deutscher Text.
25871 \begin_inset Box Frameless
25880 height_special "totalheight"
25883 \begin_layout Standard
25884 This is an English Text.
25885 This is an English Text.
25886 This is an English Text.
25887 This is an English Text.
25888 This is an English Text.
25889 This is an English Text.
25890 This is an English Text.
25891 This is an English Text.
25892 This is an English Text.
25893 This is an English Text.
25894 This is an English Text.
25895 This is an English Text.
25896 This is an English Text.
25897 This is an English Text.
25898 This is an English Text.
25899 This is an English Text.
25903 \begin_layout Standard
25904 This is an English footnote.
25909 This is an English Text.
25918 \begin_layout Standard
25919 \begin_inset VSpace bigskip
25922 Another application for minipages are footnotes within tables.
25923 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25924 bottom of the current page.
25925 But when you put the table with the footnote to a minipage, the footnote
25926 will appear at its bottom, numbered with Latin letters.
25927 The footnote number is reset to 1 in every minipage but not outside the
25931 \begin_layout Standard
25932 The footnote of this table doesn't appear:
25933 \begin_inset Tabular
25934 <lyxtabular version="3" rows="3" columns="4">
25936 <column alignment="center" valignment="top" leftline="true" width="0pt">
25937 <column alignment="center" valignment="top" leftline="true" width="0pt">
25938 <column alignment="center" valignment="top" leftline="true" width="0pt">
25939 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25940 <row topline="true">
25941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25944 \begin_layout Standard
25950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25953 \begin_layout Standard
25959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25962 \begin_layout Standard
25967 \begin_layout Standard
25968 This is a footnote within a table.
25978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25981 \begin_layout Standard
25988 <row topline="true">
25989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25992 \begin_layout Standard
25998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26001 \begin_layout Standard
26007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26010 \begin_layout Standard
26016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26019 \begin_layout Standard
26026 <row topline="true" bottomline="true">
26027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26030 \begin_layout Standard
26036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26039 \begin_layout Standard
26045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26048 \begin_layout Standard
26054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26057 \begin_layout Standard
26071 \begin_layout Standard
26073 \begin_inset Box Frameless
26082 height_special "totalheight"
26085 \begin_layout Standard
26087 \begin_inset Tabular
26088 <lyxtabular version="3" rows="3" columns="4">
26090 <column alignment="center" valignment="top" leftline="true" width="0pt">
26091 <column alignment="center" valignment="top" leftline="true" width="0pt">
26092 <column alignment="center" valignment="top" leftline="true" width="0pt">
26093 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
26094 <row topline="true">
26095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26098 \begin_layout Standard
26104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26107 \begin_layout Standard
26113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26116 \begin_layout Standard
26121 \begin_layout Standard
26122 This is a footnote within a table.
26132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26135 \begin_layout Standard
26142 <row topline="true">
26143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26146 \begin_layout Standard
26152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26155 \begin_layout Standard
26161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26164 \begin_layout Standard
26170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26173 \begin_layout Standard
26180 <row topline="true" bottomline="true">
26181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26184 \begin_layout Standard
26190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26193 \begin_layout Standard
26199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26202 \begin_layout Standard
26208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26211 \begin_layout Standard
26230 \begin_layout Standard
26231 \begin_inset VSpace bigskip
26234 The document-wide paragraph settings are ignored within minipages.
26235 That means that there will be no space between paragraphs in minipages
26236 although you set it to e.\InsetSpace \thinspace{}
26242 in the document settings.
26245 \begin_layout Standard
26246 Minipages can also be used to set a background color for text parts, see
26247 section\InsetSpace ~
26249 \begin_inset LatexCommand ref
26250 reference "sub:Color-for-Paragraphs"
26257 \begin_layout Standard
26258 \begin_inset Note Greyedout
26261 \begin_layout Standard
26266 You cannot have floats or margin notes inside minipages but minipages can
26267 be used inside tables, floats, and other boxes.
26275 \begin_layout Section
26277 \begin_inset LatexCommand label
26278 name "sec:Parboxes"
26283 \begin_inset LatexCommand index
26284 name "Boxes ! Parboxes"
26291 \begin_layout Standard
26292 Parboxes are very similar to minipages with the difference that they cannot
26294 The main difference to minipages is that minipages are in contrary to parboxes
26295 no real boxes but LaTeX-environments.
26298 \begin_layout Standard
26300 \begin_inset Box Frameless
26309 height_special "totalheight"
26312 \begin_layout Standard
26313 This a text within a parbox.
26314 This a text within a parbox.
26317 \begin_layout Standard
26318 This footnote won't appear:
26322 \begin_layout Standard
26323 This footnote is inside a parbox and will therefore not appear.
26336 \begin_layout Section
26337 Boxes for Words and Characters
26338 \begin_inset LatexCommand index
26339 name "Boxes ! for Characters"
26346 \begin_layout Subsection
26347 Prevent Hyphenation
26348 \begin_inset LatexCommand label
26349 name "sec:Prevent-Hyphenation"
26354 \begin_inset LatexCommand index
26355 name "Boxes ! to Prevent Hyphenation"
26362 \begin_layout Standard
26363 You can use a special kind of boxes to prevent words or text to be hyphenated.
26366 e is an example text:
26369 \begin_layout Standard
26370 This line is an example to show how you can prevent the hyphenation of
26371 \begin_inset Quotes eld
26375 \begin_inset Quotes erd
26381 \begin_layout Standard
26382 To prevent the hyphenation of the word
26383 \begin_inset Quotes eld
26387 \begin_inset Quotes erd
26393 \begin_layout Standard
26401 \begin_layout Standard
26402 in TeX-Code before the word.
26403 Behind the word insert a closing brace
26404 \begin_inset Quotes eld
26412 \begin_inset Quotes erd
26419 \begin_layout Standard
26431 \begin_layout Standard
26432 This is the result:
26435 \begin_layout Standard
26436 This line is an example to show how you can prevent the hyphenation of
26440 \begin_layout Standard
26450 \begin_inset Quotes eld
26454 \begin_inset Quotes erd
26461 \begin_layout Standard
26471 \begin_layout Standard
26472 You can alternatively set the command
26473 \begin_inset Quotes eld
26483 \begin_inset Quotes grd
26486 as TeX-Code directly before the word:
26489 \begin_layout Standard
26490 This line is an example to show how you can prevent the hyphenation of
26491 \begin_inset Quotes eld
26498 \begin_layout Standard
26508 \begin_inset Quotes erd
26514 \begin_layout Standard
26515 Of course the word now protrudes over the side margin.
26516 To avoid this, add via the menu
26518 Insert\SpecialChar \menuseparator
26519 Special\InsetSpace ~
26520 Formatting\SpecialChar \menuseparator
26528 ) a line break before the word:
26531 \begin_layout Standard
26532 This line is an example to show how you can prevent the hyphenation of
26538 \begin_layout Standard
26548 \begin_inset Quotes eld
26552 \begin_inset Quotes erd
26559 \begin_layout Standard
26569 \begin_layout Subsection
26571 \begin_inset LatexCommand label
26572 name "sub:Vertical-Alignment"
26577 \begin_inset LatexCommand index
26578 name "Boxes ! for Vertical Alignment"
26583 \begin_inset LatexCommand index
26584 name "Boxes ! Raiseboxes"
26591 \begin_layout Standard
26592 With the help of the command
26598 you can align words, characters or other boxes vertically to the surrounding
26606 is used with the following scheme:
26609 \begin_layout Standard
26614 raisebox{lift}[height][depth]{box content}
26617 \begin_layout Standard
26618 The lift can be a positive value to raise the box or a negative value to
26622 \begin_layout Standard
26623 To align for example the word
26624 \begin_inset Quotes eld
26628 \begin_inset Quotes erd
26631 so that the bottom of the
26632 \begin_inset Quotes eld
26636 \begin_inset Quotes erd
26640 \begin_inset Quotes eld
26644 \begin_inset Quotes erd
26647 is at the baseline, insert the command
26650 \begin_layout Standard
26660 \begin_layout Standard
26661 in TeX-Code before the word.
26662 Behind the word insert a closing brace
26663 \begin_inset Quotes eld
26671 \begin_inset Quotes erd
26676 This is the result:
26679 \begin_layout Standard
26680 This is a text line with the word
26684 \begin_layout Standard
26696 \begin_inset Quotes eld
26700 \begin_inset Quotes erd
26707 \begin_layout Standard
26717 \begin_layout Standard
26718 \begin_inset VSpace bigskip
26721 When you raise or lower characters in a line, the line distance will be
26725 \begin_layout Standard
26726 This is a text line with the word
26730 \begin_layout Standard
26742 \begin_inset Quotes eld
26746 \begin_inset Quotes erd
26753 \begin_layout Standard
26762 This is a text line with the word
26766 \begin_layout Standard
26776 \begin_inset Quotes eld
26780 \begin_inset Quotes erd
26787 \begin_layout Standard
26797 \begin_layout Standard
26798 If you want to prevent this for a certain reason, set the box height to
26803 \begin_layout Standard
26813 \begin_layout Standard
26814 This is a text line with the word
26818 \begin_layout Standard
26830 \begin_inset Quotes eld
26834 \begin_inset Quotes erd
26841 \begin_layout Standard
26850 This is a text line with the word
26854 \begin_layout Standard
26858 raisebox{0.5cm}[0pt]{
26864 \begin_inset Quotes eld
26868 \begin_inset Quotes erd
26875 \begin_layout Standard
26885 \begin_layout Section
26887 \begin_inset LatexCommand label
26888 name "sec:Colored-Boxes"
26893 \begin_inset LatexCommand index
26894 name "Boxes ! Color"
26901 \begin_layout Subsection
26903 \begin_inset LatexCommand index
26904 name "Color ! for Text"
26911 \begin_layout Standard
26912 To color the background of text the text must be put into a so called
26913 \begin_inset Quotes eld
26917 \begin_inset Quotes erd
26921 This requires that the LaTeX-package
26926 \begin_inset LatexCommand index
26927 name "LaTeX-packages ! color"
26931 is loaded in the document preamble with the command
26934 \begin_layout Standard
26939 @ifundefined{textcolor}
26945 \begin_layout Standard
26956 usepackage{color}}{}
26959 \begin_layout Standard
26964 will be loaded automatically by LyX when you color text
26968 \begin_layout Standard
26969 To avoid that it is loaded twice the command
26973 @ifundef\SpecialChar \textcompwordmark{}
26984 \begin_layout Standard
26985 \begin_inset VSpace medskip
26988 Colorboxes are created with the command
26995 This will be used with the following scheme:
26998 \begin_layout Standard
27003 colorbox{color}{box content}
27006 \begin_layout Standard
27007 The box content can also be a box and colorboxes can also be within other
27011 \begin_layout Standard
27012 The following colors are predefined:
27051 You can also define your own color as described in section\InsetSpace ~
27053 \begin_inset LatexCommand ref
27054 reference "sec:Colored-Tables"
27061 \begin_layout Standard
27062 To have e.\InsetSpace \thinspace{}
27064 a red background for a word, insert the command
27067 \begin_layout Standard
27075 \begin_layout Standard
27076 before the word in TeX-Code.
27077 Behind the word insert a closing brace
27078 \begin_inset Quotes eld
27086 \begin_inset Quotes erd
27091 This is the result:
27094 \begin_layout Standard
27095 This is a line where the word
27099 \begin_layout Standard
27109 \begin_inset Quotes eld
27113 \begin_inset Quotes erd
27120 \begin_layout Standard
27127 has a red background.
27130 \begin_layout Standard
27131 \begin_inset VSpace bigskip
27134 If you would have the box frame in a different color, you can use the command
27141 with the following scheme:
27144 \begin_layout Standard
27149 fcolorbox{frame color}{box color}{box content}
27152 \begin_layout Standard
27166 The frame thickness and the space between the frame and the box content
27167 can be adjusted with the lengths
27179 , respectively, as described in section\InsetSpace ~
27181 \begin_inset LatexCommand ref
27182 reference "sec:Framed-Boxes"
27189 \begin_layout Standard
27190 For the following example the command
27193 \begin_layout Standard
27198 fcolorbox{cyan}{magenta}{
27201 \begin_layout Standard
27205 \begin_layout Standard
27206 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
27213 \begin_layout Standard
27228 \begin_layout Standard
27232 fcolorbox{cyan}{magenta}{
27237 This is text within a colored, framed box.
27241 \begin_layout Standard
27251 \begin_layout Standard
27252 \begin_inset VSpace bigskip
27255 Of course you can also have colored text inside a colorbox:
27261 \begin_layout Standard
27265 fcolorbox{cyan}{magenta}{
27272 This is colored text within a colored, framed box.
27278 \begin_layout Standard
27289 \begin_layout Standard
27303 \begin_layout Standard
27306 \begin_inset VSpace medskip
27312 \begin_layout Standard
27313 \begin_inset Note Greyedout
27316 \begin_layout Standard
27321 Text in colorboxes cannot have line breaks.
27322 To color multiple text lines or paragraphs, use a box inside a colorbox
27323 as described in the following.
27331 \begin_layout Subsection
27332 Color for Paragraphs
27333 \begin_inset LatexCommand label
27334 name "sub:Color-for-Paragraphs"
27339 \begin_inset LatexCommand index
27340 name "Color ! for Paragraphs"
27347 \begin_layout Standard
27348 To set the background color for more than one text line, put the text into
27350 Before the minipage insert the
27359 \begin_layout Standard
27367 \begin_layout Standard
27369 Behind the minipage insert a closing brace
27370 \begin_inset Quotes eld
27378 \begin_inset Quotes erd
27384 \begin_layout Standard
27388 \begin_layout Standard
27392 colorbox{lightgrey}{
27398 \begin_inset Box Frameless
27407 height_special "totalheight"
27410 \begin_layout Standard
27411 This is text with background color.
27412 This is text with background color.
27415 \begin_layout Standard
27416 \begin_inset VSpace defskip
27419 The text can have footnotes
27423 \begin_layout Standard
27424 Another example footnote
27429 and can include tables and figures.
27432 \begin_layout Standard
27434 \begin_inset Tabular
27435 <lyxtabular version="3" rows="3" columns="3">
27437 <column alignment="center" valignment="top" leftline="true" width="0">
27438 <column alignment="center" valignment="top" leftline="true" width="0">
27439 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27440 <row topline="true">
27441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27444 \begin_layout Standard
27450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27453 \begin_layout Standard
27459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27462 \begin_layout Standard
27469 <row topline="true">
27470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27473 \begin_layout Standard
27479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27482 \begin_layout Standard
27484 \begin_inset Quotes erd
27492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27495 \begin_layout Standard
27502 <row topline="true" bottomline="true">
27503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27506 \begin_layout Standard
27512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27515 \begin_layout Standard
27521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27524 \begin_layout Standard
27544 \begin_layout Standard
27554 \begin_layout Section
27555 Rotated and Scaled Boxes
27558 \begin_layout Standard
27559 To use the the commands described in this section, the LaTeX-package
27564 \begin_inset LatexCommand index
27565 name "LaTeX-packages ! graphicx"
27569 needs to be loaded in the document preamble with the command
27572 \begin_layout Standard
27577 @ifundefined{rotatebox}
27583 \begin_layout Standard
27594 usepackage{graphicx}}{}
27597 \begin_layout Standard
27598 \begin_inset Note Greyedout
27601 \begin_layout Standard
27606 Some DVI-viewers can't display rotated or scaled material.
27614 \begin_layout Standard
27615 \begin_inset Note Greyedout
27618 \begin_layout Standard
27623 Floats mustn't be inside a rotated or scaled box.
27631 \begin_layout Subsection
27633 \begin_inset LatexCommand index
27634 name "Boxes ! rotated"
27639 \begin_inset LatexCommand index
27640 name "Rotated material"
27645 \begin_inset LatexCommand index
27646 name "Figures ! rotated"
27651 \begin_inset LatexCommand index
27652 name "Table Customization ! Rotating"
27659 \begin_layout Standard
27660 To rotate material, you can put it into a rotated box.
27661 Such a box is created using the command
27667 in TeX-Code with the following scheme:
27670 \begin_layout Standard
27675 rotatebox[rotation origin]{rotation angle}{box content}
27678 \begin_layout Standard
27679 The rotation origin is specified in the form
27684 The following positions are possible:
27704 (top), and also expedient combinations of the four base positions.
27709 means, that the rotation origin is at the top left corner of the box.
27710 When no rotation origin is specified, the position
27715 The rotation angle is a number that can be negative that specifies the
27717 The rotation direction is counterclockwise.
27720 \begin_layout Standard
27721 In the following example the command
27725 rotatebox[origin=c]{60}{
27727 was inserted as TeX-Code before the text
27728 \begin_inset Quotes eld
27732 \begin_inset Quotes erd
27735 ; after the text the box was closed by a closing brace
27742 \begin_layout Standard
27747 \begin_layout Standard
27751 rotatebox[origin=c]{60}{
27760 \begin_layout Standard
27770 \begin_layout Standard
27771 The box content can also be another box or an inline formula:
27774 \begin_layout Standard
27779 \begin_layout Standard
27783 rotatebox[origin=r]{-60}{
27789 \begin_inset Box Doublebox
27798 height_special "totalheight"
27801 \begin_layout Standard
27811 \begin_layout Standard
27822 \begin_layout Standard
27826 rotatebox[origin=lb]{60}{
27832 \begin_inset Formula $\int A\,\mathrm{d}x=B$
27839 \begin_layout Standard
27849 \begin_layout Standard
27850 or an image or table:
27853 \begin_layout Standard
27858 \begin_layout Standard
27862 rotatebox[origin=lb]{90}{
27868 \begin_inset Graphics
27869 filename clipart/platypus.eps
27879 \begin_layout Standard
27886 with a rotated image
27890 \begin_layout Standard
27894 rotatebox[origin=l]{-90}{
27900 \begin_inset Tabular
27901 <lyxtabular version="3" rows="2" columns="2">
27903 <column alignment="center" valignment="top" leftline="true" width="0">
27904 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27905 <row topline="true">
27906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27909 \begin_layout Standard
27915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27918 \begin_layout Standard
27925 <row topline="true" bottomline="true">
27926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27929 \begin_layout Standard
27935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27938 \begin_layout Standard
27953 \begin_layout Standard
27963 \begin_layout Subsection
27965 \begin_inset LatexCommand index
27966 name "Boxes ! scaled"
27971 \begin_inset LatexCommand index
27972 name "Scaled material"
27977 \begin_inset LatexCommand index
27978 name "Figures ! scaled"
27983 \begin_inset LatexCommand index
27984 name "Table Customization ! Scaling"
27991 \begin_layout Standard
27992 To scale material the commands
28004 can be used as TeX-Code.
28007 \begin_layout Standard
28014 is used with the following scheme:
28017 \begin_layout Standard
28022 scalebox{horizontal}[vertical]{box content}
28025 \begin_layout Standard
28026 Horizontal and vertical are the corresponding scaling factors.
28027 If no vertical scaling factor is given, the horizontal factor will also
28028 be used as vertical one.
28031 \begin_layout Standard
28038 creates for example a double size
28042 \begin_layout Standard
28055 \begin_layout Standard
28062 , compared to the document text size.
28065 \begin_layout Standard
28070 scalebox{2}[1]{Hello}
28072 in contrary distorts the
28076 \begin_layout Standard
28089 \begin_layout Standard
28099 \begin_layout Standard
28100 If a the scaling factor is negative, the box content will be mirrored.
28101 Therefore the command
28105 scalebox{-1}[1]{Hello}
28107 can be used to create mirror writing:
28111 \begin_layout Standard
28124 \begin_layout Standard
28134 \begin_layout Standard
28139 scalebox{1}[-1]{Hello}
28145 \begin_layout Standard
28158 \begin_layout Standard
28168 \begin_layout Standard
28173 scalebox{-1}[1]{box content}
28175 there exists the command
28181 reflectbox{box content}
28186 \begin_layout Standard
28187 \begin_inset VSpace bigskip
28196 is used to scale the box to a defined width and height.
28197 The command scheme is:
28200 \begin_layout Standard
28205 resizebox{width}{height}{box content}
28208 \begin_layout Standard
28209 Is one of the two command arguments given as exclamation mark
28213 , the size is set so that the aspect ratio of the box content is kept.
28216 \begin_layout Standard
28221 resizebox{2cm}{1cm}{Hello}
28227 \begin_layout Standard
28231 resizebox{2cm}{1cm}{
28240 \begin_layout Standard
28253 resizebox{2cm}{!}{Hello}
28259 \begin_layout Standard
28272 \begin_layout Standard
28282 \begin_layout Standard
28283 \begin_inset VSpace bigskip
28287 \begin_inset Note Greyedout
28290 \begin_layout Standard
28307 are set to zero, no LaTeX-errors occur when exporting the document but
28308 the exported files can not or only partly be displayed.
28316 \begin_layout Standard
28317 \begin_inset VSpace bigskip
28323 \begin_layout Standard
28324 The boxes can be combined in any order.
28325 E.\InsetSpace \thinspace{}
28333 rotatebox[origin=c]{-45}{
28337 reflectbox{Hello}}}
28344 \begin_layout Standard
28349 \begin_layout Standard
28353 rotatebox[origin=c]{-45}{
28366 \begin_layout Standard
28376 \begin_layout Standard
28378 Images, tables, and inline formulas are allowed as box content:
28381 \begin_layout Standard
28386 \begin_layout Standard
28390 rotatebox[origin=c]{-30}{
28400 \begin_inset Graphics
28401 filename clipart/platypus.eps
28411 \begin_layout Standard
28422 \begin_layout Standard
28426 rotatebox[origin=c]{-45}{
28436 \begin_inset Tabular
28437 <lyxtabular version="3" rows="2" columns="2">
28439 <column alignment="center" valignment="top" leftline="true" width="0">
28440 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28441 <row topline="true">
28442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28445 \begin_layout Standard
28451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28454 \begin_layout Standard
28461 <row topline="true" bottomline="true">
28462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28465 \begin_layout Standard
28471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28474 \begin_layout Standard
28489 \begin_layout Standard
28500 \begin_layout Standard
28504 rotatebox[origin=c]{-45}{
28514 \begin_inset Formula $\int A\,\mathrm{d}x=B$
28521 \begin_layout Standard
28531 \begin_layout Standard
28532 When the global formula style
28536 is used in the document
28540 \begin_layout Standard
28542 \begin_inset Quotes eld
28546 \begin_inset Quotes erd
28549 is added to the document class options.
28554 , also display formulas can be scaled.
28557 \begin_layout Section
28558 URLs (Uniform Resource Locators)
28559 \begin_inset LatexCommand index
28567 \begin_layout Standard
28568 Links to web pages or email addresses can be inserted via the menu
28570 Insert\SpecialChar \menuseparator
28574 The appearing URL dialog has two fields; the
28582 field for the URL description, which will be typeset as plain text immediately
28586 \begin_layout Standard
28587 Here is an example URL:
28588 \begin_inset LatexCommand url
28589 name "LyX's homepage"
28590 target "http://www.lyx.org"
28597 \begin_layout Standard
28600 Generate\InsetSpace ~
28603 in the URL dialog does nothing.
28604 This relict will be removed in the next LyX-version.
28607 \begin_layout Standard
28608 You cannot change the style of the link text.
28613 field will have the default text style of the document while the text of
28618 field will have the style
28619 \begin_inset Quotes eld
28627 \begin_inset Quotes erd
28633 \begin_layout Standard
28634 When you use the LaTeX-package
28639 \begin_inset LatexCommand index
28640 name "LaTeX-packages ! hyperref"
28644 to link cross-references in the output, URLs will automatically become
28645 clickable hyperlinks in DVI and PDF-output.
28648 \begin_layout Standard
28649 \begin_inset Note Greyedout
28652 \begin_layout Standard
28657 When you use the following characters: "%", "#", "^", you have to write
28658 them with a preceding backslash, e.\InsetSpace \thinspace{}
28661 \begin_inset Quotes eld
28667 \begin_inset Quotes erd
28671 URLs must not end with a backslash.
28679 \begin_layout Standard
28680 \begin_inset VSpace bigskip
28683 To create real hyperlinks without the force to write the link location to
28684 the text, you can use the command
28687 \begin_layout Standard
28692 href{link location}{link text}
28695 \begin_layout Standard
28697 To get for example a link to LyX's web page, write the command
28700 \begin_layout Standard
28705 href{http://www.lyx.org}{
28708 \begin_layout Standard
28710 Insert after the command the link text
28711 \begin_inset Quotes eld
28715 \begin_inset Quotes erd
28718 as normal text followed by a closing brace
28719 \begin_inset Quotes eld
28727 \begin_inset Quotes erd
28731 This is the result:
28735 \begin_layout Standard
28739 href{http://www.lyx.org}{
28748 \begin_layout Standard
28758 \begin_layout Standard
28759 To link to email addresses, add the prefix
28760 \begin_inset Quotes eld
28768 \begin_inset Quotes erd
28771 to the link location:
28777 \begin_layout Standard
28781 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
28786 lyx-docs mailing list
28790 \begin_layout Standard
28800 \begin_layout Standard
28807 instead of LyX's URL box has the advantage that you can specify the text
28808 style of the link text like for all other text parts.
28809 You can then set hyphenation points and forced linebreaks to have long
28810 link text broken at the page margin.
28811 You are furthermore able to change the text style for all URLs in your
28812 document with an option in
28816 's load command and the restrictions mentioned above doesn't apply for
28825 \begin_layout Chapter
28827 \begin_inset LatexCommand index
28828 name "External Stuff"
28835 \begin_layout Standard
28838 Insert\SpecialChar \menuseparator
28841 you can insert external material to your document.
28845 \begin_layout Description
28847 Document Another LyX document; its content is directly inserted to your
28851 \begin_layout Description
28853 Text A text document; every of its text lines is inserted to your document
28857 \begin_layout Description
28861 Lines A text document; its text lines are inserted as they
28863 Empty text lines creates a new paragraph in your document.
28866 \begin_layout Description
28867 External\InsetSpace ~
28868 Material Files in various formats.
28871 \begin_layout Description
28873 Document LyX or LaTeX-documents.
28876 \begin_layout Section
28878 \begin_inset LatexCommand index
28879 name "External Stuff ! External Material"
28886 \begin_layout Standard
28887 The external material feature allows you to insert files to your document
28888 without converting them previously to a format that can be read by the
28889 document output format because LyX takes care of needed conversions.
28890 This is similar to images that can be inserted in various image formats
28894 \begin_layout Standard
28895 External material can be inserted via the
28899 dialog that is accessible with the menu
28901 Insert\SpecialChar \menuseparator
28902 File\SpecialChar \menuseparator
28903 External\InsetSpace ~
28907 Currently the following file types (
28914 \begin_layout Description
28915 ChessDiagram This template supports chess position diagrams made with the
28920 \begin_layout Standard
28924 href{http://en.wikipedia.org/wiki/XBoard}{
28937 \begin_layout Standard
28947 \begin_layout Description
28948 Date This inserts the date in the form
28953 This is a date inserted as external material:
28954 \begin_inset External
28962 The date is not shown within LyX, only in the output.
28963 There are two other methods of inserting a date: Via menu
28965 Insert\SpecialChar \menuseparator
28968 and with the LaTeX command
28975 The different methods are compared in Table\InsetSpace ~
28977 \begin_inset LatexCommand ref
28978 reference "tab:Comparison-of-the"
28985 \begin_layout Description
28986 LilyPond This template is used for music notation typeset with the program
28990 \begin_layout Standard
29003 \begin_layout Standard
29007 href{http://en.wikipedia.org/wiki/LilyPond}{
29020 \begin_layout Standard
29028 \begin_inset Note Note
29031 \begin_layout Standard
29038 breaks the line while the remaining text in the line is stretched to the
29047 \begin_layout Description
29048 RasterImage This can be used for bitmap images.
29049 Nearly all popular image formats are supported.
29050 The image can be treated in the
29054 dialog like the images that are usually included via the
29058 dialog as described in section\InsetSpace ~
29060 \begin_inset LatexCommand ref
29061 reference "sec:Graphics-Dialog"
29066 The difference is that only raster images are allowed, that means that
29067 PDF and EPS-images are not supported.
29070 \begin_layout Description
29071 XFig This template supports images created with the program
29075 \begin_layout Standard
29079 href{http://en.wikipedia.org/wiki/Xfig}{
29092 \begin_layout Standard
29102 \begin_layout Standard
29103 \begin_inset Float table
29109 \begin_layout Standard
29110 \begin_inset Caption
29112 \begin_layout Standard
29113 \begin_inset LatexCommand label
29114 name "tab:Comparison-of-the"
29118 Comparison of the date input methods.
29126 \begin_layout Standard
29128 \begin_inset Tabular
29129 <lyxtabular version="3" rows="4" columns="4">
29131 <column alignment="center" valignment="top" leftline="true" width="0">
29132 <column alignment="center" valignment="top" leftline="true" width="0">
29133 <column alignment="center" valignment="top" leftline="true" width="0">
29134 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
29135 <row topline="true">
29136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29139 \begin_layout Standard
29145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29148 \begin_layout Standard
29151 External Material\SpecialChar \menuseparator
29157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29160 \begin_layout Standard
29163 Insert\SpecialChar \menuseparator
29169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29172 \begin_layout Standard
29183 <row topline="true">
29184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29187 \begin_layout Standard
29193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29196 \begin_layout Standard
29202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29205 \begin_layout Standard
29211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29214 \begin_layout Standard
29215 as TeX-Code inset box
29221 <row topline="true">
29222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29225 \begin_layout Standard
29231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29234 \begin_layout Standard
29240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29243 \begin_layout Standard
29249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29252 \begin_layout Standard
29259 <row topline="true" bottomline="true">
29260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29263 \begin_layout Standard
29269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29272 \begin_layout Standard
29278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29281 \begin_layout Standard
29287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29290 \begin_layout Standard
29309 \begin_layout Standard
29310 When you use the option
29322 dialog, only the path to the inserted file is shown in the output.
29325 material is displayed in LyX either as box like this:
29326 \begin_inset Graphics
29327 filename clipart/ExternalMaterialQt4.png
29329 scaleBeforeRotation
29333 or as image, depending on the setting in the
29345 \begin_layout Standard
29352 manual explains how you can define your own templates.
29355 \begin_layout Section
29357 \begin_inset LatexCommand label
29358 name "sec:Child-Documents"
29363 \begin_inset LatexCommand index
29364 name "External Stuff ! Child Documents"
29369 \begin_inset LatexCommand index
29370 name "Files ! Include"
29377 \begin_layout Standard
29378 Child documents are used when you have a long document consisting of several
29379 larger parts or sections.
29380 For maintenance it is often useful and sometimes even required to split
29381 the document in several files that can be revised separately.
29382 The different documents are then the so called child documents and a master
29383 document connects them to print the full document or parts of it.
29386 \begin_layout Standard
29387 Included documents are displayed in LyX as a box like this:
29388 \begin_inset Graphics
29389 filename clipart/ChildDocumentQt4.png
29391 scaleBeforeRotation
29395 To include child documents to a master document use the menu
29397 Insert\SpecialChar \menuseparator
29398 File\SpecialChar \menuseparator
29403 A dialog pops up where you can choose between four include methods:
29406 \begin_layout Description
29407 Include You can include LyX and LaTeX-documents.
29416 dialog, the included documents will be opened in LyX in a new file tab
29417 so that you can modify it.
29422 \begin_layout Standard
29423 Here is a child document inserted using
29428 \begin_inset Include \include{DummyDocument1.lyx}
29436 \begin_layout Standard
29437 The section numbering includes the sections of the included files in the
29438 order they are inserted in the master document.
29439 The included example document has for example a subsection that is numbered
29440 as subsection of this section.
29441 Labels of included documents can be referenced: Subsection\InsetSpace ~
29443 \begin_inset LatexCommand ref
29444 reference "sub:External-Subsection-1"
29451 \begin_layout Standard
29452 The preamble of the child document is ignored, only the preamble of the
29453 master document is used.
29454 Included documents are inserted starting on a new page and end with a pagebreak.
29457 \begin_layout Standard
29458 With the LaTeX-command
29464 you can specify which included child documents are processed when the output
29466 This is useful when you are perhaps only working on a certain chapter of
29467 your large document as this saves compiling time.
29474 is inserted to the master document preamble.
29475 It takes a comma-separated list of the filenames as argument, e.g.
29478 \begin_layout Standard
29483 includeonly{chapter1,chapter5}
29486 \begin_layout Standard
29487 will only process the included files named
29488 \begin_inset Quotes eld
29492 \begin_inset Quotes erd
29496 \begin_inset Quotes eld
29500 \begin_inset Quotes erd
29504 \begin_inset Quotes eld
29508 \begin_inset Quotes erd
29514 \begin_layout Standard
29515 \begin_inset Note Greyedout
29518 \begin_layout Standard
29523 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
29524 w the document in case that the child document uses another document class
29525 than the master document as this will lead to unexpected outputs.
29533 \begin_layout Description
29534 Input This method is very similar to the Include method.
29535 The differences are:
29539 \begin_layout Itemize
29540 Input files don't start with a new page and don't end with a pagebreak.
29543 \begin_layout Itemize
29544 Input files can be previewed in LyX when
29546 Instant\InsetSpace ~
29549 is enabled in LyX's preferences under
29553 feel\SpecialChar \menuseparator
29559 \begin_layout Itemize
29570 \begin_layout Standard
29571 Here is a child document inserted using
29576 \begin_inset Include \input{DummyDocument2.lyx}
29584 \begin_layout Description
29585 Verbatim With this method every text file can be included.
29586 The file is shown in the output with its source code, no command used in
29587 the text is invoked.
29588 You can use the option
29590 Mark spaces in output
29592 that displays the character
29593 \begin_inset Quotes eld
29600 \begin_layout Standard
29610 \begin_inset Quotes erd
29613 for every space character in the source code.
29614 The difference to the method via the menu
29616 Insert\SpecialChar \menuseparator
29617 File\SpecialChar \menuseparator
29621 is that the document content is not shown in LyX.
29624 \begin_layout Standard
29625 Here is a child document inserted as Verbatim:
29626 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
29632 \begin_inset VSpace bigskip
29635 Here is a child document inserted as Verbatim using the
29637 Mark spaces in output
29640 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
29648 \begin_layout Standard
29649 \begin_inset VSpace bigskip
29655 \begin_layout Standard
29656 \begin_inset Note Greyedout
29659 \begin_layout Standard
29664 As you can see in the examples above, the text of the documents included
29669 is not broken at the end of the document lines.
29677 \begin_layout Description
29678 Listings This type is described in chapter\InsetSpace ~
29680 \begin_inset LatexCommand ref
29681 reference "cha:Program-Code-Listings"
29688 \begin_layout Standard
29689 \begin_inset Note Greyedout
29692 \begin_layout Standard
29697 Including the same document twice in a document using different methods
29698 could cause LaTeX-problems.
29706 \begin_layout Chapter
29707 Program Code Listings
29708 \begin_inset LatexCommand label
29709 name "cha:Program-Code-Listings"
29714 \begin_inset LatexCommand index
29720 \begin_inset LatexCommand index
29721 name "Program Code"
29726 \begin_inset LatexCommand index
29727 name "Floats ! Listings"
29734 \begin_layout Standard
29735 To include and typeset program code you can use the
29739 inset that can be inserted via the menu
29741 Insert\SpecialChar \menuseparator
29750 \begin_inset LatexCommand index
29751 name "LaTeX-packages ! listings"
29755 provides a powerful and flexible way to insert program source code to your
29759 \begin_layout Standard
29760 When right-clicking on a listings inset a dialog pops up where you can set
29761 the listings format.
29764 \begin_layout Standard
29765 By default, a listing starts a new paragraph in the output.
29766 The placement option
29768 Inline\InsetSpace ~
29771 prints the listing inline like this:
29772 \begin_inset listings
29773 lstparams "language={C++}"
29777 \begin_layout Standard
29790 creates a listings float where you can specify the placement options
29791 \begin_inset Quotes eld
29799 \begin_inset Quotes erd
29803 \begin_inset Quotes eld
29811 \begin_inset Quotes erd
29815 \begin_inset Quotes eld
29823 \begin_inset Quotes erd
29827 \begin_inset Quotes eld
29835 \begin_inset Quotes erd
29838 corresponding to the float placement options described in section\InsetSpace ~
29840 \begin_inset LatexCommand ref
29841 reference "sec:Float-Placement"
29846 The placement options can be mixed and are inserted without any separation,
29847 e.\InsetSpace \thinspace{}
29850 \begin_inset Quotes eld
29858 \begin_inset Quotes erd
29863 \begin_inset Quotes eld
29867 \begin_inset Quotes erd
29870 has sometimes no effect, but you don't need to use the
29874 option in this case as also non-float listings can have captions and be
29878 \begin_layout Standard
29879 You can add captions to listings with the menu
29881 Insert\SpecialChar \menuseparator
29885 Listings can be referenced like floats: Listing\InsetSpace ~
29887 \begin_inset LatexCommand ref
29888 reference "lst:Example-Listing"
29895 \begin_layout Standard
29896 \begin_inset listings
29897 lstparams "language=Python"
29901 \begin_layout Standard
29903 \begin_inset Caption
29905 \begin_layout Standard
29906 \begin_inset LatexCommand label
29907 name "lst:Example-Listing"
29911 Example Listing float
29916 # Example listing float
29919 \begin_layout Standard
29924 \begin_layout Standard
29926 'this is a python function'
29929 \begin_layout Standard
29939 \begin_layout Standard
29940 When you have set a programming language in the listings dialog, the keywords
29941 of this language will be recognized and specially typeset in the output.
29942 In the example listings the Python keyword
29943 \begin_inset Quotes eld
29947 \begin_inset Quotes erd
29950 is recognized and printed bold in the output.
29953 \begin_layout Standard
29954 \begin_inset Note Greyedout
29957 \begin_layout Standard
29962 If you don't get bold keywords when using typewriter fonts, your typewriter
29963 font probably doesn't provide a bold shape.
29964 In this case select a different one in the menu
29966 Document\SpecialChar \menuseparator
29967 Settings\SpecialChar \menuseparator
29979 provide bold shapes.)
29987 \begin_layout Standard
29993 of the listings dialog you can specify the line numbering style.
29994 You can insert a number to specify which lines are numbered to the field
30000 When you insert e.g.
30002 \begin_inset Quotes eld
30006 \begin_inset Quotes erd
30009 , only every 3rd line will be numbered.
30012 \begin_layout Standard
30013 You can furthermore specify a range of lines, only these will then appear
30017 Extended\InsetSpace ~
30020 should be used when you use national characters like the German umlauts
30023 Here is an example listing with left line numbering, step
30025 \begin_inset Quotes eld
30029 \begin_inset Quotes erd
30033 \begin_inset Quotes eld
30037 \begin_inset Quotes erd
30041 \begin_inset Quotes eld
30044 Extended\InsetSpace ~
30046 \begin_inset Quotes erd
30050 \begin_inset Quotes eld
30056 \begin_inset Quotes erd
30059 , range lines 3\InsetSpace \thinspace{}
30060 -\InsetSpace \thinspace{}
30064 \begin_layout Standard
30065 \begin_inset listings
30066 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
30070 \begin_layout Standard
30075 \begin_layout Standard
30077 'this is a python function'
30080 \begin_layout Standard
30085 \begin_layout Standard
30090 \begin_layout Standard
30092 'This is a German word: Tschüß'
30095 \begin_layout Standard
30100 \begin_layout Standard
30105 \begin_layout Standard
30107 'this is a python function'
30110 \begin_layout Standard
30120 \begin_layout Standard
30121 \begin_inset Note Greyedout
30124 \begin_layout Standard
30129 Due to a bug in the
30133 package the line numbering is shifted by a line by every previous listing.
30134 That's the reason why the lines 2 and 5 are numbered in the above listing
30135 and not the lines 3 and 6.
30143 \begin_layout Standard
30144 \begin_inset VSpace bigskip
30150 \begin_layout Standard
30151 It is also possible to print lines from a file as listing.
30152 To do this, use the menu
30154 Insert\SpecialChar \menuseparator
30155 File\SpecialChar \menuseparator
30158 and choose the type
30166 \begin_layout Standard
30167 The other child document types are described in section\InsetSpace ~
30169 \begin_inset LatexCommand ref
30170 reference "sec:Child-Documents"
30179 In the child document dialog you can specify the listing parameters in
30181 To show a list of all available parameters, type in a question mark
30182 \begin_inset Quotes eld
30186 \begin_inset Quotes erd
30192 \begin_layout Standard
30193 To reference child document listings, write a label text into the corresponding
30194 field of the child document dialog.
30195 The label can then be referenced using the menu
30197 Insert\SpecialChar \menuseparator
30203 \begin_layout Standard
30204 Listing\InsetSpace ~
30206 \begin_inset LatexCommand ref
30207 reference "lst:file-listing"
30211 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
30212 -\InsetSpace \thinspace{}
30217 \begin_layout Standard
30218 \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]
30226 \begin_layout Standard
30227 \begin_inset VSpace bigskip
30233 \begin_layout Standard
30234 Global listings settings can be set in the
30236 Document\SpecialChar \menuseparator
30237 Settings\SpecialChar \menuseparator
30241 To get there a list of available options, type in a question mark
30242 \begin_inset Quotes eld
30246 \begin_inset Quotes erd
30251 Listings\InsetSpace ~
30257 \begin_layout Standard
30258 For more information about the
30262 package, we refer to its documentation
30263 \begin_inset LatexCommand cite
30271 \begin_layout Standard
30277 \begin_layout Chapter
30279 Units available in LyX
30280 \begin_inset LatexCommand index
30286 \begin_inset LatexCommand label
30287 name "cha:Units-available-in"
30294 \begin_layout Standard
30295 To understand the units described in this documentation, Table\InsetSpace ~
30297 \begin_inset LatexCommand ref
30298 reference "tab:Units"
30302 explains all units available in LyX.
30305 \begin_layout Standard
30306 \begin_inset Float table
30312 \begin_layout Standard
30313 \begin_inset Caption
30315 \begin_layout Standard
30316 \begin_inset LatexCommand label
30329 \begin_layout Standard
30330 \begin_inset VSpace medskip
30336 \begin_layout Standard
30338 \begin_inset Tabular
30339 <lyxtabular version="3" rows="20" columns="2">
30341 <column alignment="center" valignment="top" leftline="true" width="0">
30342 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
30343 <row topline="true" bottomline="true">
30344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30347 \begin_layout Standard
30353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30356 \begin_layout Standard
30363 <row topline="true">
30364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30367 \begin_layout Standard
30373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30376 \begin_layout Standard
30383 <row topline="true">
30384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30387 \begin_layout Standard
30393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30396 \begin_layout Standard
30403 <row topline="true">
30404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30407 \begin_layout Standard
30413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30416 \begin_layout Standard
30423 <row topline="true">
30424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30427 \begin_layout Standard
30433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30436 \begin_layout Standard
30437 point (72.27\InsetSpace \thinspace{}
30438 pt = 1\InsetSpace \thinspace{}
30445 <row topline="true">
30446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30449 \begin_layout Standard
30455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30458 \begin_layout Standard
30459 pica (1\InsetSpace \thinspace{}
30460 pc = 12\InsetSpace \thinspace{}
30467 <row topline="true">
30468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30471 \begin_layout Standard
30477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30480 \begin_layout Standard
30481 scaled point (65536\InsetSpace \thinspace{}
30482 sp = 1\InsetSpace \thinspace{}
30489 <row topline="true">
30490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30493 \begin_layout Standard
30499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30502 \begin_layout Standard
30503 big point (72\InsetSpace \thinspace{}
30504 bp = 1\InsetSpace \thinspace{}
30511 <row topline="true">
30512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30515 \begin_layout Standard
30521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30524 \begin_layout Standard
30525 didot (1\InsetSpace \thinspace{}
30527 \begin_inset Formula $\approx$
30530 0.376\InsetSpace \thinspace{}
30537 <row topline="true">
30538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30541 \begin_layout Standard
30547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30550 \begin_layout Standard
30551 cicero (1\InsetSpace \thinspace{}
30552 cc = 12\InsetSpace \thinspace{}
30559 <row topline="true">
30560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30563 \begin_layout Standard
30569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30572 \begin_layout Standard
30573 % of original image width
30579 <row topline="true">
30580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30583 \begin_layout Standard
30589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30592 \begin_layout Standard
30599 <row topline="true">
30600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30603 \begin_layout Standard
30609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30612 \begin_layout Standard
30619 <row topline="true">
30620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30623 \begin_layout Standard
30629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30632 \begin_layout Standard
30639 <row topline="true">
30640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30643 \begin_layout Standard
30649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30652 \begin_layout Standard
30659 <row topline="true">
30660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30663 \begin_layout Standard
30669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30672 \begin_layout Standard
30679 <row topline="true">
30680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30683 \begin_layout Standard
30689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30692 \begin_layout Standard
30699 <row topline="true">
30700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30703 \begin_layout Standard
30709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30712 \begin_layout Standard
30723 <row topline="true">
30724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30727 \begin_layout Standard
30733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30736 \begin_layout Standard
30747 <row topline="true" bottomline="true">
30748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30751 \begin_layout Standard
30757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30760 \begin_layout Standard
30761 math unit (1\InsetSpace \thinspace{}
30762 mu = 1/18\InsetSpace \thinspace{}
30781 \begin_layout Chapter
30782 Output File Formats with Graphics
30783 \begin_inset LatexCommand label
30784 name "cha:Output-File-Formats"
30791 \begin_layout Section
30793 \begin_inset LatexCommand index
30794 name "File Formats ! DVI"
30799 \begin_inset LatexCommand index
30800 name "DVI|see{File Formats}"
30807 \begin_layout Standard
30808 This file type has the extension
30809 \begin_inset Quotes eld
30817 \begin_inset Quotes erd
30822 \begin_inset Quotes eld
30826 \begin_inset Quotes erd
30829 (DVI), because it is completely portable; you can move them from one machine
30830 to another without needing to do any sort of conversion.
30831 At the time when this file-format was developed, this was no matter of
30833 DVIs are used for quick previews and as pre-stage for other output formats,
30837 \begin_layout Standard
30838 \begin_inset Note Greyedout
30841 \begin_layout Standard
30846 DVI-files doesn't contain images, they will only be a linked.
30851 So don't forget this, if you move your
30855 file to another computer.
30856 This property can also slow down your computer when you view the DVI.
30857 Because the DVI-viewer has to convert the image in the background to make
30858 it visible when you scroll in the DVI.
30859 So we recommend to use PDF for files with many images.
30862 \begin_layout Standard
30863 You can export your document to DVI by using the menu
30865 File\SpecialChar \menuseparator
30866 Export\SpecialChar \menuseparator
30870 You can view your document as DVI via the
30874 menu or by using the toolbar button
30875 \begin_inset Graphics
30876 filename ../images/buffer-view_dvi.png
30878 scaleBeforeRotation
30885 \begin_layout Section
30887 \begin_inset LatexCommand label
30888 name "sec:PostScript"
30893 \begin_inset LatexCommand index
30894 name "File Formats ! PostScript"
30899 \begin_inset LatexCommand index
30900 name "PostScript|see{File Formats}"
30907 \begin_layout Standard
30908 This file type has the extension
30909 \begin_inset Quotes eld
30917 \begin_inset Quotes erd
30921 PostScript was developed by the company
30925 as printer language.
30926 The file contains therefore commands that the printer uses to print the
30928 PostScript can be seen as
30929 \begin_inset Quotes eld
30932 programming language
30933 \begin_inset Quotes erd
30936 ; you can calculate with it and draw diagrams and images
30940 \begin_layout Standard
30941 If you are interested to learn more about this, have a look at the LaTeX-package
30947 \begin_inset LatexCommand cite
30958 Due to this ability, the files are often bigger than PDFs.
30961 \begin_layout Standard
30962 PostScript can only contain images in the format
30963 \begin_inset Quotes eld
30966 Encapsulated PostScript
30967 \begin_inset Quotes erd
30970 (EPS, file extension
30971 \begin_inset Quotes eld
30979 \begin_inset Quotes erd
30983 As LyX allows you to use any known image format in your document, it has
30984 to convert images in the background to EPS.
30985 If you have e.g 50 images in your document, LyX has to do 50 conversions
30986 whenever you view or export your document.
30987 This will slow down your work flow with LyX drastically.
30988 So if you plan to use PostScript, you can insert your images directly as
30989 EPS to avoid this problem.
30992 \begin_layout Standard
30993 You can export your document to PostScript using the menu
30995 File\SpecialChar \menuseparator
30996 Export\SpecialChar \menuseparator
31000 You can view your document as PostScript via the
31004 menu or by using the toolbar button
31005 \begin_inset Graphics
31006 filename ../images/buffer-view_ps.png
31008 scaleBeforeRotation
31015 \begin_layout Section
31017 \begin_inset LatexCommand label
31023 \begin_inset LatexCommand index
31024 name "File Formats ! PDF"
31029 \begin_inset LatexCommand index
31037 \begin_layout Standard
31038 This file type has the extension
31039 \begin_inset Quotes eld
31047 \begin_inset Quotes erd
31052 \begin_inset Quotes eld
31055 Portable Document Format
31056 \begin_inset Quotes erd
31059 (PDF) is developed by
31063 as derivative from PostScript.
31064 It is more compressed and it uses much less commands than PostScript.
31066 \begin_inset Quotes eld
31070 \begin_inset Quotes erd
31073 implies, it can be processed at any computer system and the printed output
31074 looks exactly the same.
31077 \begin_layout Standard
31078 PDF can contain images in its own PDF format, in the format
31079 \begin_inset Quotes eld
31082 Joint Photographic Experts Group
31083 \begin_inset Quotes erd
31086 (JPG, file extension
31087 \begin_inset Quotes eld
31095 \begin_inset Quotes erd
31099 \begin_inset Quotes eld
31107 \begin_inset Quotes erd
31110 ), and in the format
31111 \begin_inset Quotes eld
31114 Portable Network Graphics
31115 \begin_inset Quotes erd
31118 (PNG, file extension
31119 \begin_inset Quotes eld
31127 \begin_inset Quotes erd
31131 Nevertheless you can use any other image format, because LyX converts them
31132 in the background to one of these formats.
31133 But as described in the section about PostScript, the image conversion
31134 will slow down your work flow.
31135 So it is recommended to use images in one of the three mentioned formats.
31138 \begin_layout Standard
31139 You can export your document to PDF via the menu
31141 File\SpecialChar \menuseparator
31144 in three different ways:
31147 \begin_layout Description
31149 (ps2pdf) This uses the program
31153 that creates a PDF from a PostScript-version of your file.
31154 The PostScript-version is produced by the program
31158 which uses a DVI-version as intermediate step.
31159 So this export variant consist of three conversions.
31162 \begin_layout Description
31164 (dvipdfm) This uses the program
31168 that converts your file in the background to DVI and in a second step to
31172 \begin_layout Description
31174 (pdflatex) This uses the program
31178 that converts your file directly to PDF.
31181 \begin_layout Standard
31182 It is recommended to use
31191 supports all features of actual PDF-versions, is quick and works stable
31197 is not under development and therefore a bit outdated.
31200 \begin_layout Standard
31201 You can view your document as PDF via the
31205 menu or by using the toolbar button
31206 \begin_inset Graphics
31207 filename ../images/buffer-view_pdf2.png
31209 scaleBeforeRotation
31225 \begin_layout Chapter
31226 Explanation of Equation\InsetSpace ~
31228 \begin_inset LatexCommand eqref
31234 \begin_inset LatexCommand label
31235 name "cha:Explanation-of-Equation"
31242 \begin_layout Standard
31248 \begin_inset Formula $W_{\mathrm{tot\, n}}$
31251 can be calculated to
31254 \begin_layout Standard
31255 \begin_inset Formula \begin{equation}
31256 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}
31263 \begin_layout Standard
31265 \begin_inset Formula $W_{g\, n}$
31268 is the given width of all cells.
31275 is the LaTeX-length between the cell text and the cell border, its default
31276 value is 6\InsetSpace \thinspace{}
31284 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
31288 \begin_layout Standard
31289 Following equation\InsetSpace ~
31291 \begin_inset LatexCommand eqref
31292 reference "eq:Wtot_n"
31296 , the total width of a multicolumn
31297 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
31303 \begin_layout Standard
31304 \begin_inset Formula \begin{equation}
31305 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
31312 \begin_layout Standard
31313 By setting equation\InsetSpace ~
31315 \begin_inset LatexCommand eqref
31316 reference "eq:Wtot_n"
31321 \begin_inset LatexCommand eqref
31322 reference "eq:Wtot_mult"
31326 equal we can calculate the needed given width
31327 \begin_inset Formula $W_{g\, n}$
31334 columns are spanned, so that each column has a total width of
31335 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
31341 \begin_layout Standard
31342 \begin_inset Formula \begin{equation}
31343 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
31350 \begin_layout Bibliography
31351 \begin_inset LatexCommand bibitem
31352 key "latexcompanion"
31356 Frank Mittelbach and Michel Goossens:
31358 The LaTeX Companion Second Edition.
31361 Addison-Wesley, 2004
31364 \begin_layout Bibliography
31365 \begin_inset LatexCommand bibitem
31370 Helmut Kopka and Patrick W.
31373 A Guide to LaTeX Fourth Edition.
31376 Addison-Wesley, 2003
31379 \begin_layout Bibliography
31380 \begin_inset LatexCommand bibitem
31387 LaTeX: A Document Preparation System.
31390 Addison-Wesley, second edition, 1994
31393 \begin_layout Bibliography
31394 \begin_inset LatexCommand bibitem
31403 \begin_layout Standard
31407 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
31417 \begin_layout Standard
31424 of the LaTeX-package
31429 \begin_inset LatexCommand index
31430 name "LaTeX-packages ! booktabs"
31437 \begin_layout Bibliography
31438 \begin_inset LatexCommand bibitem
31447 \begin_layout Standard
31451 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
31460 \begin_layout Standard
31467 of the LaTeX-package
31472 \begin_inset LatexCommand index
31473 name "LaTeX-packages ! caption"
31480 \begin_layout Bibliography
31481 \begin_inset LatexCommand bibitem
31490 \begin_layout Standard
31494 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
31504 \begin_layout Standard
31511 of the LaTeX-package
31516 \begin_layout Bibliography
31517 \begin_inset LatexCommand bibitem
31526 \begin_layout Standard
31530 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
31540 \begin_layout Standard
31547 of the LaTeX-package
31552 \begin_inset LatexCommand index
31553 name "LaTeX-packages ! endfloat"
31560 \begin_layout Bibliography
31561 \begin_inset LatexCommand bibitem
31570 \begin_layout Standard
31574 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty}{
31583 \begin_layout Standard
31590 of the LaTeX-package
31595 \begin_inset LatexCommand index
31596 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
31603 \begin_layout Bibliography
31604 \begin_inset LatexCommand bibitem
31613 \begin_layout Standard
31617 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
31627 \begin_layout Standard
31634 of the LaTeX-package
31639 \begin_inset LatexCommand index
31640 name "LaTeX-packages ! footmisc"
31647 \begin_layout Bibliography
31648 \begin_inset LatexCommand bibitem
31657 \begin_layout Standard
31661 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
31670 \begin_layout Standard
31677 of the LaTeX-package
31682 \begin_inset LatexCommand index
31683 name "LaTeX-packages ! hyperref"
31690 \begin_layout Bibliography
31691 \begin_inset LatexCommand bibitem
31700 \begin_layout Standard
31704 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
31714 \begin_layout Standard
31721 of the LaTeX-package
31726 \begin_inset LatexCommand index
31727 name "LaTeX-packages ! hyperref"
31734 \begin_layout Bibliography
31735 \begin_inset LatexCommand bibitem
31744 \begin_layout Standard
31748 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
31758 \begin_layout Standard
31765 of the LaTeX-package
31770 \begin_inset LatexCommand index
31771 name "LaTeX-packages ! koma-script"
31778 \begin_layout Bibliography
31779 \begin_inset LatexCommand bibitem
31788 \begin_layout Standard
31792 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
31802 \begin_layout Standard
31809 of the LaTeX-package
31814 \begin_inset LatexCommand index
31815 name "LaTeX-packages ! listings"
31822 \begin_layout Bibliography
31823 \begin_inset LatexCommand bibitem
31832 \begin_layout Standard
31836 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
31846 \begin_layout Standard
31853 of the LaTeX-package
31858 \begin_inset LatexCommand index
31859 name "LaTeX-packages ! marginnote"
31866 \begin_layout Bibliography
31867 \begin_inset LatexCommand bibitem
31876 \begin_layout Standard
31880 href{http://tug.org/PSTricks/main.cgi/}{
31889 \begin_layout Standard
31896 of the LaTeX-package
31901 \begin_inset LatexCommand index
31902 name "LaTeX-packages ! PSTricks"
31909 \begin_layout Bibliography
31910 \begin_inset LatexCommand bibitem
31919 \begin_layout Standard
31923 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
31932 \begin_layout Standard
31939 of the LaTeX-package
31944 \begin_inset LatexCommand index
31945 name "LaTeX-packages ! sidecap"
31952 \begin_layout Bibliography
31953 \begin_inset LatexCommand bibitem
31962 \begin_layout Standard
31966 href{http://wiki.lyx.org/LyX/NewInLyX15}{
31975 \begin_layout Standard
31982 about new features in
31989 \begin_layout Standard
31990 \begin_inset LatexCommand printindex
31997 \begin_layout Standard
31998 \begin_inset FloatList figure
32005 \begin_layout Standard
32006 \begin_inset FloatList table
32013 \begin_layout Standard
32017 \begin_layout Standard
32021 listof{Xalgorithm}{List of Algorithms}
32027 \begin_inset Note Note
32030 \begin_layout Standard
32031 see section\InsetSpace ~
32033 \begin_inset LatexCommand ref
32034 reference "sub:Algorithm-Floats"