1 #LyX 1.5.4svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
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 % redefine the \LyX macro for PDF bookmarks
176 \def\LyX{\texorpdfstring{%
177 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
180 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
185 \font_typewriter default
186 \font_default_family default
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Standard
232 If you have comments or error corrections, please send them to the LyX Documenta
239 \begin_layout Standard
243 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
248 lyx-docs@lists.lyx.org
252 \begin_layout Standard
265 \begin_inset Note Note
268 \begin_layout Standard
283 \begin_layout Standard
284 \begin_inset LatexCommand tableofcontents
291 \begin_layout Standard
292 \begin_inset Note Note
295 \begin_layout Standard
296 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
310 If they are not installed you can export the document anyway but the sections
311 where the packages are required won't appear in the output.
314 \begin_layout Standard
315 The latest PDF-version of this document can be found here:
319 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
327 \begin_layout Chapter
329 \begin_inset LatexCommand label
335 \begin_inset LatexCommand index
341 \begin_inset LatexCommand index
342 name "Graphics|see{Figures}"
349 \begin_layout Section
351 \begin_inset LatexCommand index
352 name "Figures ! Graphics Dialog"
357 \begin_inset LatexCommand label
358 name "sec:Graphics-Dialog"
365 \begin_layout Standard
366 To insert an image into your document, place the cursor at the text position
367 you want and click on the toolbar icon
368 \begin_inset Graphics
369 filename ../images/dialog-show-new-inset_graphics.png
377 Insert\SpecialChar \menuseparator
381 Then a dialog will appear to choose the file to load.
382 The image will appear in the output exactly at the position where it is
386 \begin_layout Standard
387 The graphics dialog can be called at any time by right-clicking on an image.
388 This dialog has three tabs:
391 \begin_layout Description
396 Here you can choose an image file and adjust its appearance in the output.
397 The available units for the image size are explained in appendix\InsetSpace ~
399 \begin_inset LatexCommand ref
400 reference "cha:Units-available-in"
407 \begin_inset LatexCommand index
408 name "Figures ! rotated"
412 You can rotate images counter-clockwise by setting a rotation angle and
414 The image will also be rotated inside LyX.
417 \begin_inset LatexCommand index
418 name "Figures ! scaled"
422 Images can be scaled by using a percentage value or by setting the width
423 and height explicitly.
424 If you set only the width or only the height, the other size will be determined
426 If you set both, then the image will be transformed to the given size,
427 possibly distorting it.
428 To prevent the image from distortion, use the option
430 Maintain aspect ratio
433 The image will then be scaled so that its width and height don't exceed
434 the specified dimensions.
436 Images can be opened in a program of your choice
442 The program can be set for every image format in the file format settings
443 in LyX's preferences.
446 \begin_layout Description
451 Alternatively to the usage of scaling units it is possible to set image
452 coordinates to adjust the height and width of the image in the output.
453 The coordinates can also be calculated automatically by pressing the button
465 bounding\InsetSpace ~
468 will only print the image region within the given coordinates.
469 Normally you don't need to take care about image coordinates and can ignore
473 \begin_layout Description
479 In this tab you can modify the appearance of the image within LyX and set
480 the image to be a subfigure of a figure float with an own caption.
481 Subfigures are explained in section\InsetSpace ~
483 \begin_inset LatexCommand ref
484 reference "sec:Figure-Floats"
490 LaTeX experts can also specify on this tab additional LaTeX options.
498 makes the image appear in the output only as a frame with the size of the
508 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
515 When the option is used the images will not be unzipped on export, since
516 LaTeX can handle them as they are.
518 Zipped EPS-graphics are useful to save
519 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
521 \begin_inset LatexCommand ref
522 reference "sec:PostScript"
527 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
538 zgrep %%Bounding x.eps.gz > x.eps.bb
542 The second command creates the bounding box file
543 \begin_inset Quotes eld
547 \begin_inset Quotes erd
550 that is needed by LaTeX for zipped graphics.
553 \begin_layout Standard
554 \begin_inset VSpace bigskip
560 \begin_layout Standard
561 This is an example image in EPS format
565 \begin_layout Standard
566 Image formats are explained in section\InsetSpace ~
568 \begin_inset LatexCommand ref
569 reference "sec:Image-Formats"
578 within a separate, horizontally centered paragraph:
581 \begin_layout Standard
583 \begin_inset Graphics
584 filename clipart/mobius.eps
595 \begin_layout Standard
596 This is the same image like the one above but in draft mode:
599 \begin_layout Standard
601 \begin_inset Graphics
602 filename clipart/mobius.eps
614 \begin_layout Section
616 \begin_inset LatexCommand label
617 name "sec:Figure-Floats"
622 \begin_inset LatexCommand index
623 name "Floats ! Figures"
628 \begin_inset LatexCommand index
629 name "Figures ! Floats"
636 \begin_layout Standard
637 For general explanations about floats, have a look at section\InsetSpace ~
639 \begin_inset LatexCommand ref
640 reference "sec:FloatIntroduction"
647 \begin_layout Standard
649 \begin_inset Graphics
650 filename ../images/float-insert_figure.png
658 Insert\SpecialChar \menuseparator
659 Float\SpecialChar \menuseparator
662 inserts a float with a caption that has the label
663 \begin_inset Quotes eld
668 \begin_inset Quotes erd
671 (# is the actual number).
672 You can insert the image above the caption, like in Figure\InsetSpace ~
674 \begin_inset LatexCommand ref
675 reference "fig:kill-plat"
679 or below the caption, like in Figure\InsetSpace ~
681 \begin_inset LatexCommand ref
682 reference "fig:escher"
687 More about the caption placement is described in section\InsetSpace ~
689 \begin_inset LatexCommand ref
690 reference "sec:Caption-Placement"
697 \begin_layout Standard
698 \begin_inset Float figure
703 \begin_layout Standard
705 \begin_inset Graphics
706 filename clipart/platypus.eps
717 \begin_layout Standard
720 \begin_layout Standard
721 \begin_inset LatexCommand label
726 A severely distorted platypus in a float.
739 \begin_layout Standard
740 \begin_inset Float figure
745 \begin_layout Standard
748 \begin_layout Standard
749 \begin_inset LatexCommand label
763 \begin_layout Standard
765 \begin_inset Graphics
766 filename clipart/escher-lsd.eps
782 \begin_layout Standard
783 \begin_inset LatexCommand index
784 name "References ! to Figures"
790 \begin_inset LatexCommand ref
791 reference "fig:kill-plat"
796 \begin_inset LatexCommand ref
797 reference "fig:escher"
801 are examples of referenced figures.
802 Figures can be referenced in the text by referencing their label.
803 To do this insert a label in the caption using the menu
805 Insert\SpecialChar \menuseparator
808 or the toolbar button
809 \begin_inset Graphics
810 filename ../images/label-insert.png
817 You can now refer to the label using the menu
819 Insert\SpecialChar \menuseparator
823 or the toolbar button
824 \begin_inset Graphics
825 filename ../images/dialog-show-new-inset_ref.png
832 It is important to use references to floats, rather than using vague references
834 \begin_inset Quotes eld
838 \begin_inset Quotes erd
841 , because as LaTeX will reposition the floats in the final document, it
843 \begin_inset Quotes eld
847 \begin_inset Quotes erd
852 Referencing is explained in detail in section\InsetSpace ~
854 \begin_inset LatexCommand ref
855 reference "sec:Referencing-Floats"
862 \begin_layout Standard
863 Normally only one image is inserted to a figure float, but sometimes you
864 might want to use two images with separate subcaptions.
865 This can be set in the tab
870 of the graphics dialog.
871 Choose there the option
875 and enter the subcaption for the image in the caption field.
876 Note that only the main caption of the float is added to the List of Figures.
879 erencing subfigures is explained in section\InsetSpace ~
881 \begin_inset LatexCommand ref
882 reference "sub:Referencing-Subfigures"
889 \begin_layout Standard
892 \begin_inset LatexCommand ref
893 reference "fig:Two-distorted-images"
897 is an example of a figure float with two images set side by side.
898 You can also set the images one below the other.
901 \begin_layout Standard
902 \begin_inset Float figure
907 \begin_layout Standard
911 \begin_inset Graphics
912 filename clipart/escher-lsd.eps
916 subcaptionText "Undefinable structure"
923 \begin_inset Graphics
924 filename clipart/platypus.eps
929 subcaptionText "\label{fig:Platypus} Platypus"
938 \begin_layout Standard
941 \begin_layout Standard
942 \begin_inset LatexCommand label
943 name "fig:Two-distorted-images"
947 Two distorted images.
960 \begin_layout Section
962 \begin_inset LatexCommand label
963 name "sec:Image-Formats"
968 \begin_inset LatexCommand index
974 \begin_inset LatexCommand index
975 name "Figures ! Image Formats"
982 \begin_layout Standard
983 You can insert images in any known file format.
984 But as explained in appendix\InsetSpace ~
986 \begin_inset LatexCommand ref
987 reference "cha:Output-File-Formats"
991 , every output document format allows only a few image formats.
992 LyX uses therefore the program
996 in the background to convert the images to the right format.
997 To increase your work flow by avoiding these conversions in the background,
998 you can use only the image formats that can directly be embedded in the
1000 The output file formats are explained in appendix\InsetSpace ~
1002 \begin_inset LatexCommand ref
1003 reference "cha:Output-File-Formats"
1010 \begin_layout Standard
1011 Similar to fonts there are two types of image formats:
1014 \begin_layout Description
1016 images consist of pixel values, often in a compressed form.
1017 They are therefore not fully scalable and look pixeled in large zooms.
1018 Well-known bitmap image formats are
1019 \begin_inset Quotes eld
1022 Graphics Interchange Format
1023 \begin_inset Quotes erd
1026 (GIF, file extension
1027 \begin_inset Quotes eld
1035 \begin_inset Quotes erd
1039 \begin_inset LatexCommand index
1040 name "GIF|see{Image formats}"
1045 \begin_inset Quotes eld
1048 Portable Network Graphics
1049 \begin_inset Quotes erd
1052 (PNG, file extension
1053 \begin_inset Quotes eld
1061 \begin_inset Quotes erd
1065 \begin_inset LatexCommand index
1066 name "PNG|see{Image formats}"
1071 \begin_inset Quotes eld
1074 Joint Photographic Experts Group
1075 \begin_inset Quotes erd
1078 (JPG, file extension
1079 \begin_inset Quotes eld
1087 \begin_inset Quotes erd
1091 \begin_inset Quotes eld
1099 \begin_inset Quotes erd
1103 \begin_inset LatexCommand index
1104 name "JPG|see{Image formats}"
1111 \begin_layout Description
1113 images consist of vectors and can therefore be scaled to any size
1115 The scaling ability is necessary if you want to create presentations, because
1116 presentations are always scaled by the video projector.
1117 Scaling is also useful for online documents to let the user zoom into diagrams.
1120 ell-known scalable image formats are
1121 \begin_inset Quotes eld
1124 Scalable Vector Graphics
1125 \begin_inset Quotes erd
1128 (SVG, file extension
1129 \begin_inset Quotes eld
1137 \begin_inset Quotes erd
1141 \begin_inset LatexCommand index
1142 name "SVG|see{Image formats}"
1147 \begin_inset Quotes eld
1150 Encapsulated PostScript
1151 \begin_inset Quotes erd
1154 (EPS, file extension
1155 \begin_inset Quotes eld
1163 \begin_inset Quotes erd
1167 \begin_inset LatexCommand index
1168 name "EPS|see{Image formats}"
1173 \begin_inset Quotes eld
1176 Portable Document Format
1177 \begin_inset Quotes erd
1180 (PDF, file extension
1181 \begin_inset Quotes eld
1189 \begin_inset Quotes erd
1193 \begin_inset LatexCommand index
1199 \begin_inset Quotes eld
1203 \begin_inset Quotes erd
1206 (WMF, file extension
1207 \begin_inset Quotes eld
1215 \begin_inset Quotes erd
1219 \begin_inset LatexCommand index
1220 name "SVG|see{Image formats}"
1226 \begin_inset Quotes eld
1230 \begin_inset Quotes erd
1233 , because you can convert any bitmap image to a PDF or EPS-image and the
1234 result will still be a bitmap image.
1235 In this cases only a header with the image properties is added to the original
1240 \begin_layout Standard
1241 In the case of PDF, the original image is additionally compressed.
1247 The PDF-files generated by
1251 are for example bitmap images.
1254 \begin_layout Standard
1255 Normally it is not possible to convert a bitmap image into a scalable one,
1257 Only the image formats PDF and EPS can directly be embedded to PDF and
1258 PostScript output files, respectively.
1259 SVG and WMF-images are recalculated to bitmaps when the output file is
1260 generated because there is currently no adequate WMF/SVG
1261 \begin_inset Formula $\to$
1264 PDF/EPS converter available.
1267 \begin_layout Chapter
1269 \begin_inset LatexCommand label
1275 \begin_inset LatexCommand index
1283 \begin_layout Section
1285 \begin_inset LatexCommand index
1286 name "Table ! Introduction"
1293 \begin_layout Standard
1294 You can insert a table using either the toolbar button
1295 \begin_inset Graphics
1296 filename ../images/tabular-insert.png
1304 Insert\SpecialChar \menuseparator
1308 The toolbar button offers you a graphical selection: Move the mouse to
1309 set the column/row number of the table that should be created and then
1310 press a mouse button.
1311 When you use the menu to create a table, a dialog will appear, asking you
1312 for the number of rows and columns.
1314 The default table has lines around any
1315 cell and the first row appears separated from the rest of the table.
1316 This separation occurs due to a double line: The cells of the first row
1317 have a line below them and the cells of the second row have a line above
1319 Here is an example table:
1322 \begin_layout Standard
1324 \begin_inset Tabular
1325 <lyxtabular version="3" rows="4" columns="4">
1327 <column alignment="center" valignment="top" leftline="true" width="0">
1328 <column alignment="center" valignment="top" leftline="true" width="0">
1329 <column alignment="center" valignment="top" leftline="true" width="0">
1330 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1331 <row topline="true" bottomline="true">
1332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1335 \begin_layout Standard
1341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1344 \begin_layout Standard
1359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1362 \begin_layout Standard
1368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1371 \begin_layout Standard
1378 <row topline="true">
1379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1382 \begin_layout Standard
1397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1400 \begin_layout Standard
1406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1409 \begin_layout Standard
1415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1418 \begin_layout Standard
1425 <row topline="true">
1426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1429 \begin_layout Standard
1444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1447 \begin_layout Standard
1453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1456 \begin_layout Standard
1462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1465 \begin_layout Standard
1472 <row topline="true" bottomline="true">
1473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1476 \begin_layout Standard
1491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1494 \begin_layout Standard
1500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1503 \begin_layout Standard
1509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1512 \begin_layout Standard
1526 \begin_layout Section
1528 \begin_inset LatexCommand index
1529 name "Table ! Dialog"
1536 \begin_layout Standard
1537 You can alter a table by clicking on it with the right mouse button, which
1538 brings up the table dialog.
1539 Here you can adjust the settings of that cell and row/column respectively
1540 where the cursor is currently placed.
1541 Most of the dialog options also work on selections.
1542 This means if you select more cells, columns or rows, the action is done
1543 for the whole selection.
1544 Note that there is a difference between selecting the
1548 of the cell, and the cell itself.
1549 You can alter tables with the following tabs of the table dialog:
1552 \begin_layout Description
1558 Here you can set the horizontal alignment and the width of the current
1560 When you have set a width you can also adjust the vertical alignment of
1562 A given width will allow the cell to have line breaks and multiple paragraphs
1563 of text, see section\InsetSpace ~
1565 \begin_inset LatexCommand ref
1566 reference "sub:Multiple-Lines-in"
1571 If you set no width, the column is as wide as their widest cell content
1574 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1575 cell, see section\InsetSpace ~
1577 \begin_inset LatexCommand ref
1578 reference "sub:Multicolumns"
1584 The rotate check boxes rotates the current cell, a selection, or the whole
1585 table counter-clockwise by 90°.
1586 The rotation is not shown within LyX, only in the output.
1589 \begin_inset Note Greyedout
1592 \begin_layout Standard
1597 Not all DVI-viewers are able to display rotations.
1604 It is also possible to enter a LaTeX-argument which is needed for special
1605 table formattings, see section\InsetSpace ~
1607 \begin_inset LatexCommand ref
1608 reference "sub:Multicolumn-Calculations"
1613 \begin_inset LatexCommand ref
1614 reference "sec:Colored-Tables"
1621 \begin_layout Description
1626 In this tab you can add and delete border lines for the current row/column.
1633 will convert the table to a formal table as described in section\InsetSpace ~
1635 \begin_inset LatexCommand ref
1636 reference "sec:Formal-Tables"
1642 You can also add here space to table rows as decribed in section\InsetSpace ~
1644 \begin_inset LatexCommand ref
1645 reference "sub:Row-Spacing"
1652 \begin_layout Description
1657 This tab is to make a table a so called
1658 \begin_inset Quotes eld
1666 \begin_inset Quotes erd
1669 that can run over several pages.
1670 Section\InsetSpace ~
1672 \begin_inset LatexCommand ref
1673 reference "sec:Longtables"
1678 \begin_inset LatexCommand ref
1679 reference "sec:Special-Longtable-Issues"
1683 describe the longtable features in detail.
1686 \begin_layout Standard
1687 When the table toolbar is opened, you can move the cursor with the arrow
1688 keys from cell to cell and the property of the current cell will immediately
1689 be displayed in the dialog.
1692 \begin_layout Section
1694 \begin_inset LatexCommand index
1695 name "Table ! Toolbar"
1702 \begin_layout Standard
1703 The table toolbar is an alternative to the table dialog to be able to alter
1705 It should normally appear at the bottom of LyX's main window when the cursor
1707 You can alternatively switch it on to appear always, by right-clicking
1708 in LyX's main menu bar.
1711 \begin_layout Standard
1712 The toolbar has the following icons:
1715 \begin_layout Labeling
1716 \labelwidthstring 00.00.0000
1717 \begin_inset Graphics
1718 filename ../images/tabular-feature_append-row.png
1723 adds a row below the current cell or selection
1726 \begin_layout Labeling
1727 \labelwidthstring 00.00.0000
1728 \begin_inset Graphics
1729 filename ../images/tabular-feature_append-column.png
1734 adds a column right beside the current cell or selection
1737 \begin_layout Labeling
1738 \labelwidthstring 00.00.0000
1739 \begin_inset Graphics
1740 filename ../images/tabular-feature_delete-row.png
1745 deletes the current row or selection
1748 \begin_layout Labeling
1749 \labelwidthstring 00.00.0000
1750 \begin_inset Graphics
1751 filename ../images/tabular-feature_delete-column.png
1756 deletes the current column or selection
1759 \begin_layout Labeling
1760 \labelwidthstring 00.00.0000
1761 \begin_inset Graphics
1762 filename ../images/tabular-feature_toggle-line-top.png
1767 adds a line at the top of the current cell / row or of a selection
1770 \begin_layout Labeling
1771 \labelwidthstring 00.00.0000
1772 \begin_inset Graphics
1773 filename ../images/tabular-feature_toggle-line-bottom.png
1778 adds a line at the bottom of the current cell / row or of a selection
1781 \begin_layout Labeling
1782 \labelwidthstring 00.00.0000
1783 \begin_inset Graphics
1784 filename ../images/tabular-feature_toggle-line-left.png
1789 adds a line at the left side of the current cell / row or of a selection
1792 \begin_layout Labeling
1793 \labelwidthstring 00.00.0000
1794 \begin_inset Graphics
1795 filename ../images/tabular-feature_toggle-line-right.png
1800 adds a line at the right side of the current cell / row or of a selection
1803 \begin_layout Labeling
1804 \labelwidthstring 00.00.0000
1805 \begin_inset Graphics
1806 filename ../images/tabular-feature_set-all-lines.png
1811 adds lines around the current or selected cells - if the current cell no
1812 multicolumn this also affects the current row and column
1815 \begin_layout Labeling
1816 \labelwidthstring 00.00.0000
1817 \begin_inset Graphics
1818 filename ../images/tabular-feature_unset-all-lines.png
1823 deletes all lines of the current or selected cells - if the current cell
1824 no multicolumn this also affects the current row and column
1827 \begin_layout Labeling
1828 \labelwidthstring 00.00.0000
1829 \begin_inset Graphics
1830 filename ../images/tabular-feature_align-left.png
1835 left-aligns the content of the current cell / column
1838 \begin_layout Labeling
1839 \labelwidthstring 00.00.0000
1840 \begin_inset Graphics
1841 filename ../images/tabular-feature_align-center.png
1846 centers the content of the current cell / column horizontally
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Graphics
1852 filename ../images/tabular-feature_align-right.png
1857 right-aligns the content of the current cell / column
1860 \begin_layout Labeling
1861 \labelwidthstring 00.00.0000
1862 \begin_inset Graphics
1863 filename ../images/tabular-feature_valign-top.png
1868 aligns the content of the current cell vertically to the top
1871 \begin_layout Labeling
1872 \labelwidthstring 00.00.0000
1873 \begin_inset Graphics
1874 filename ../images/tabular-feature_valign-middle.png
1879 centers the content of the current cell vertically
1882 \begin_layout Labeling
1883 \labelwidthstring 00.00.0000
1884 \begin_inset Graphics
1885 filename ../images/tabular-feature_valign-bottom.png
1890 aligns the content of the current cell vertically to the bottom
1893 \begin_layout Labeling
1894 \labelwidthstring 00.00.0000
1895 \begin_inset Graphics
1896 filename ../images/tabular-feature_set-rotate-cell.png
1901 rotates the current cell or selection counter-clockwise by 90°
1904 \begin_layout Labeling
1905 \labelwidthstring 00.00.0000
1906 \begin_inset Graphics
1907 filename ../images/tabular-feature_set-rotate-tabular.png
1912 rotates the whole table counter-clockwise by 90°
1915 \begin_layout Labeling
1916 \labelwidthstring 00.00.0000
1917 \begin_inset Graphics
1918 filename ../images/tabular-feature_multicolumn.png
1923 sets the current cell or selection as a multicolumn
1926 \begin_layout Standard
1927 \begin_inset Note Greyedout
1930 \begin_layout Standard
1935 For the output the vertical alignment of the first cell in a row is used
1936 for all following cells in the row.
1944 \begin_layout Section
1946 \begin_inset LatexCommand index
1947 name "Table ! Edit Menu"
1954 \begin_layout Standard
1955 Additionally to the table dialog and toolbar, the menu
1957 Edit\SpecialChar \menuseparator
1960 allows you to add and delete border lines for the current row/column and
1961 to set the current selection as multicolumn.
1962 The menu is only available when the cursor is inside a table.
1965 \begin_layout Section
1967 \begin_inset LatexCommand label
1968 name "sec:Table-Floats"
1973 \begin_inset LatexCommand index
1974 name "Floats ! Tables"
1979 \begin_inset LatexCommand index
1980 name "Table ! Floats"
1987 \begin_layout Standard
1988 For general explanations about floats, have a look at section\InsetSpace ~
1990 \begin_inset LatexCommand ref
1991 reference "sec:FloatIntroduction"
1998 \begin_layout Standard
1999 \begin_inset Float table
2005 \begin_layout Standard
2006 \begin_inset Caption
2008 \begin_layout Standard
2009 \begin_inset LatexCommand label
2010 name "tab:a table float"
2022 \begin_layout Standard
2024 \begin_inset Tabular
2025 <lyxtabular version="3" rows="3" columns="3">
2027 <column alignment="center" valignment="top" leftline="true" width="0pt">
2028 <column alignment="center" valignment="top" leftline="true" width="0pt">
2029 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2030 <row topline="true" bottomline="true">
2031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2034 \begin_layout Standard
2049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2052 \begin_layout Standard
2067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2070 \begin_layout Standard
2086 <row topline="true">
2087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2090 \begin_layout Standard
2105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2108 \begin_layout Standard
2123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2126 \begin_layout Standard
2142 <row topline="true" bottomline="true">
2143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2146 \begin_layout Standard
2156 \begin_inset Formula $\int x^{2}dx$
2164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2167 \begin_layout Standard
2177 \begin_inset Formula $\left[\begin{array}{cc}
2179 c & d\end{array}\right]$
2187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2190 \begin_layout Standard
2200 \begin_inset Formula $1+1=2$
2221 \begin_layout Standard
2222 Table floats can be inserted using the menu
2224 Insert\SpecialChar \menuseparator
2225 Float\SpecialChar \menuseparator
2228 or the toolbar button
2229 \begin_inset Graphics
2230 filename ../images/float-insert_table.png
2239 \begin_layout Standard
2240 The float appears as a collapsible box with a caption that has the label
2242 \begin_inset Quotes eld
2247 \begin_inset Quotes erd
2250 (# is the actual table number).
2251 You can insert tables to the float above or below the caption.
2254 \begin_layout Standard
2257 \begin_inset LatexCommand ref
2258 reference "tab:a table float"
2262 is an example table within a table float.
2265 \begin_layout Standard
2266 Having the caption above the table is the common rule that is unfortunately
2267 not supported in LaTeX's standard classes.
2268 That means if you are using the document classes
2284 there will be no space between the caption and the table.
2285 To insert the needed space, add the following option to the load command
2286 of the LaTeX-package
2291 \begin_inset LatexCommand index
2292 name "LaTeX-packages ! caption"
2296 in your document preamble
2300 \begin_layout Standard
2301 For more information have a look at section\InsetSpace ~
2303 \begin_inset LatexCommand ref
2304 reference "sec:Caption-Placement"
2316 \begin_layout Standard
2322 \begin_layout Standard
2327 , which is described in section\InsetSpace ~
2329 \begin_inset LatexCommand ref
2330 reference "sec:Caption-Formatting"
2334 , is used to adjust the caption format.
2337 \begin_layout Standard
2338 \begin_inset LatexCommand index
2339 name "References ! to Tables"
2343 Tables can be cross-referenced in the text by referencing their label.
2344 To do this insert a label in the caption using the menu
2346 Insert\SpecialChar \menuseparator
2349 or the toolbar button
2350 \begin_inset Graphics
2351 filename ../images/label-insert.png
2358 You can now refer to the label using the menu
2360 Insert\SpecialChar \menuseparator
2364 or the toolbar button
2365 \begin_inset Graphics
2366 filename ../images/dialog-show-new-inset_ref.png
2374 Referencing is explained in detail in section\InsetSpace ~
2376 \begin_inset LatexCommand ref
2377 reference "sec:Referencing-Floats"
2384 \begin_layout Section
2386 \begin_inset LatexCommand label
2387 name "sec:Longtables"
2392 \begin_inset LatexCommand index
2398 \begin_inset LatexCommand index
2399 name "Table ! Longtables"
2406 \begin_layout Standard
2407 If the table is too long to fit on one page, you can use the option
2417 of the table dialog to split the table automatically over more pages.
2418 Doing this enables some check boxes and you can now define:
2421 \begin_layout Description
2426 : The current row and all rows above, that don't have any special options
2427 defined, are defined to be the header rows of all pages of the longtable;
2428 except for the first page, if
2434 This therefore called the main header.
2437 \begin_layout Description
2443 : The current row and all rows above, that don't have any special options
2444 defined, are defined to be the header rows of the first page of the longtable.
2447 \begin_layout Description
2452 : The current row and all rows below, that don't have any special options
2453 defined, are defined to be the footer rows of all pages of the longtable;
2454 except for the last page, if
2462 \begin_layout Description
2468 : The current row and all rows below, that don't have any special options
2469 defined, are defined to be the footer rows of the last page of the longtable.
2472 \begin_layout Standard
2473 You can also specify a row where the table is splitted.
2474 If you set more than one option in the same table row, you should be aware
2475 of the fact that only the first one is used in the given table row.
2476 The others will then be defined as
2481 In this context, first means first in this order:
2488 header, Footer, Last\InsetSpace ~
2492 See the following longtable to see how it works:
2495 \begin_layout Standard
2497 \begin_inset Tabular
2498 <lyxtabular version="3" rows="69" columns="3">
2499 <features islongtable="true">
2500 <column alignment="left" valignment="top" leftline="true" width="0cm">
2501 <column alignment="left" valignment="top" width="0pt">
2502 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2503 <row topline="true" bottomline="true" endfirsthead="true">
2504 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2507 \begin_layout Standard
2510 Example Phone List (ignore the names)
2515 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2518 \begin_layout Standard
2524 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2527 \begin_layout Standard
2534 <row topline="true" bottomline="true" endfirsthead="true">
2535 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2538 \begin_layout Standard
2546 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2549 \begin_layout Standard
2555 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2558 \begin_layout Standard
2567 <row topline="true" bottomline="true" endhead="true">
2568 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2571 \begin_layout Standard
2579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2582 \begin_layout Standard
2588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2591 \begin_layout Standard
2598 <row topline="true" bottomline="true" endhead="true">
2599 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2602 \begin_layout Standard
2610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2613 \begin_layout Standard
2619 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2622 \begin_layout Standard
2631 <row topline="true" bottomline="true" endfoot="true">
2632 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2635 \begin_layout Standard
2636 continued on next page
2641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2644 \begin_layout Standard
2650 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2653 \begin_layout Standard
2661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2664 \begin_layout Standard
2672 <cell alignment="center" valignment="top" topline="true" usebox="none">
2675 \begin_layout Standard
2681 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2684 \begin_layout Standard
2692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2695 \begin_layout Standard
2703 <cell alignment="center" valignment="top" topline="true" usebox="none">
2706 \begin_layout Standard
2712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2715 \begin_layout Standard
2723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2726 \begin_layout Standard
2734 <cell alignment="center" valignment="top" topline="true" usebox="none">
2737 \begin_layout Standard
2743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2746 \begin_layout Standard
2754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2757 \begin_layout Standard
2765 <cell alignment="center" valignment="top" topline="true" usebox="none">
2768 \begin_layout Standard
2774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2777 \begin_layout Standard
2785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2788 \begin_layout Standard
2796 <cell alignment="center" valignment="top" topline="true" usebox="none">
2799 \begin_layout Standard
2805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2808 \begin_layout Standard
2816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2819 \begin_layout Standard
2827 <cell alignment="center" valignment="top" topline="true" usebox="none">
2830 \begin_layout Standard
2836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2839 \begin_layout Standard
2847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2850 \begin_layout Standard
2858 <cell alignment="center" valignment="top" topline="true" usebox="none">
2861 \begin_layout Standard
2867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2870 \begin_layout Standard
2878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2881 \begin_layout Standard
2889 <cell alignment="center" valignment="top" topline="true" usebox="none">
2892 \begin_layout Standard
2898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2901 \begin_layout Standard
2909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2912 \begin_layout Standard
2920 <cell alignment="center" valignment="top" topline="true" usebox="none">
2923 \begin_layout Standard
2929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2932 \begin_layout Standard
2940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2943 \begin_layout Standard
2951 <cell alignment="center" valignment="top" topline="true" usebox="none">
2954 \begin_layout Standard
2960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2963 \begin_layout Standard
2971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2974 \begin_layout Standard
2982 <cell alignment="center" valignment="top" topline="true" usebox="none">
2985 \begin_layout Standard
2991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2994 \begin_layout Standard
3002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3005 \begin_layout Standard
3013 <cell alignment="center" valignment="top" topline="true" usebox="none">
3016 \begin_layout Standard
3022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3025 \begin_layout Standard
3033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3036 \begin_layout Standard
3044 <cell alignment="center" valignment="top" topline="true" usebox="none">
3047 \begin_layout Standard
3053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3056 \begin_layout Standard
3064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3067 \begin_layout Standard
3075 <cell alignment="center" valignment="top" topline="true" usebox="none">
3078 \begin_layout Standard
3084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3087 \begin_layout Standard
3095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3098 \begin_layout Standard
3106 <cell alignment="center" valignment="top" topline="true" usebox="none">
3109 \begin_layout Standard
3115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3118 \begin_layout Standard
3126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3129 \begin_layout Standard
3137 <cell alignment="center" valignment="top" topline="true" usebox="none">
3140 \begin_layout Standard
3146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3149 \begin_layout Standard
3157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3160 \begin_layout Standard
3168 <cell alignment="center" valignment="top" topline="true" usebox="none">
3171 \begin_layout Standard
3177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3180 \begin_layout Standard
3188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3191 \begin_layout Standard
3199 <cell alignment="center" valignment="top" topline="true" usebox="none">
3202 \begin_layout Standard
3208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3211 \begin_layout Standard
3219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3222 \begin_layout Standard
3230 <cell alignment="center" valignment="top" topline="true" usebox="none">
3233 \begin_layout Standard
3239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3242 \begin_layout Standard
3250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3253 \begin_layout Standard
3261 <cell alignment="center" valignment="top" topline="true" usebox="none">
3264 \begin_layout Standard
3270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3273 \begin_layout Standard
3281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3284 \begin_layout Standard
3292 <cell alignment="center" valignment="top" topline="true" usebox="none">
3295 \begin_layout Standard
3301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3304 \begin_layout Standard
3312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3315 \begin_layout Standard
3323 <cell alignment="center" valignment="top" topline="true" usebox="none">
3326 \begin_layout Standard
3332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3335 \begin_layout Standard
3343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3346 \begin_layout Standard
3354 <cell alignment="center" valignment="top" topline="true" usebox="none">
3357 \begin_layout Standard
3363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3366 \begin_layout Standard
3374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3377 \begin_layout Standard
3385 <cell alignment="center" valignment="top" topline="true" usebox="none">
3388 \begin_layout Standard
3394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3397 \begin_layout Standard
3405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3408 \begin_layout Standard
3416 <cell alignment="center" valignment="top" topline="true" usebox="none">
3419 \begin_layout Standard
3425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3428 \begin_layout Standard
3436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3439 \begin_layout Standard
3447 <cell alignment="center" valignment="top" topline="true" usebox="none">
3450 \begin_layout Standard
3456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3459 \begin_layout Standard
3467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3470 \begin_layout Standard
3478 <cell alignment="center" valignment="top" topline="true" usebox="none">
3481 \begin_layout Standard
3487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3490 \begin_layout Standard
3498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3501 \begin_layout Standard
3509 <cell alignment="center" valignment="top" topline="true" usebox="none">
3512 \begin_layout Standard
3518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3521 \begin_layout Standard
3529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3532 \begin_layout Standard
3540 <cell alignment="center" valignment="top" topline="true" usebox="none">
3543 \begin_layout Standard
3549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3552 \begin_layout Standard
3560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3563 \begin_layout Standard
3571 <cell alignment="center" valignment="top" topline="true" usebox="none">
3574 \begin_layout Standard
3580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3583 \begin_layout Standard
3590 <row bottomline="true">
3591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3594 \begin_layout Standard
3602 <cell alignment="center" valignment="top" topline="true" usebox="none">
3605 \begin_layout Standard
3611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3614 \begin_layout Standard
3621 <row bottomline="true">
3622 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3625 \begin_layout Standard
3631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3634 \begin_layout Standard
3640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3643 \begin_layout Standard
3651 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3654 \begin_layout Standard
3662 <cell alignment="center" valignment="top" topline="true" usebox="none">
3665 \begin_layout Standard
3671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3674 \begin_layout Standard
3682 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3685 \begin_layout Standard
3693 <cell alignment="center" valignment="top" topline="true" usebox="none">
3696 \begin_layout Standard
3702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3705 \begin_layout Standard
3713 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3716 \begin_layout Standard
3724 <cell alignment="center" valignment="top" topline="true" usebox="none">
3727 \begin_layout Standard
3733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3736 \begin_layout Standard
3744 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3747 \begin_layout Standard
3755 <cell alignment="center" valignment="top" topline="true" usebox="none">
3758 \begin_layout Standard
3764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3767 \begin_layout Standard
3775 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3778 \begin_layout Standard
3786 <cell alignment="center" valignment="top" topline="true" usebox="none">
3789 \begin_layout Standard
3795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3798 \begin_layout Standard
3806 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3809 \begin_layout Standard
3817 <cell alignment="center" valignment="top" topline="true" usebox="none">
3820 \begin_layout Standard
3826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3829 \begin_layout Standard
3837 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3840 \begin_layout Standard
3848 <cell alignment="center" valignment="top" topline="true" usebox="none">
3851 \begin_layout Standard
3857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3860 \begin_layout Standard
3868 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3871 \begin_layout Standard
3879 <cell alignment="center" valignment="top" topline="true" usebox="none">
3882 \begin_layout Standard
3888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3891 \begin_layout Standard
3899 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3902 \begin_layout Standard
3910 <cell alignment="center" valignment="top" topline="true" usebox="none">
3913 \begin_layout Standard
3919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3922 \begin_layout Standard
3930 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3933 \begin_layout Standard
3941 <cell alignment="center" valignment="top" topline="true" usebox="none">
3944 \begin_layout Standard
3950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3953 \begin_layout Standard
3961 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3964 \begin_layout Standard
3972 <cell alignment="center" valignment="top" topline="true" usebox="none">
3975 \begin_layout Standard
3981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3984 \begin_layout Standard
3992 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3995 \begin_layout Standard
4003 <cell alignment="center" valignment="top" topline="true" usebox="none">
4006 \begin_layout Standard
4012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4015 \begin_layout Standard
4023 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4026 \begin_layout Standard
4034 <cell alignment="center" valignment="top" topline="true" usebox="none">
4037 \begin_layout Standard
4043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4046 \begin_layout Standard
4054 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4057 \begin_layout Standard
4065 <cell alignment="center" valignment="top" topline="true" usebox="none">
4068 \begin_layout Standard
4074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4077 \begin_layout Standard
4085 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4088 \begin_layout Standard
4096 <cell alignment="center" valignment="top" topline="true" usebox="none">
4099 \begin_layout Standard
4105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4108 \begin_layout Standard
4116 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4119 \begin_layout Standard
4127 <cell alignment="center" valignment="top" topline="true" usebox="none">
4130 \begin_layout Standard
4136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4139 \begin_layout Standard
4147 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4150 \begin_layout Standard
4158 <cell alignment="center" valignment="top" topline="true" usebox="none">
4161 \begin_layout Standard
4167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4170 \begin_layout Standard
4178 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4181 \begin_layout Standard
4189 <cell alignment="center" valignment="top" topline="true" usebox="none">
4192 \begin_layout Standard
4198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4201 \begin_layout Standard
4209 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4212 \begin_layout Standard
4220 <cell alignment="center" valignment="top" topline="true" usebox="none">
4223 \begin_layout Standard
4229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4232 \begin_layout Standard
4240 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4243 \begin_layout Standard
4251 <cell alignment="center" valignment="top" topline="true" usebox="none">
4254 \begin_layout Standard
4260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4263 \begin_layout Standard
4271 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4274 \begin_layout Standard
4282 <cell alignment="center" valignment="top" topline="true" usebox="none">
4285 \begin_layout Standard
4291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4294 \begin_layout Standard
4302 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4305 \begin_layout Standard
4313 <cell alignment="center" valignment="top" topline="true" usebox="none">
4316 \begin_layout Standard
4322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4325 \begin_layout Standard
4333 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4336 \begin_layout Standard
4344 <cell alignment="center" valignment="top" topline="true" usebox="none">
4347 \begin_layout Standard
4353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4356 \begin_layout Standard
4364 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4367 \begin_layout Standard
4375 <cell alignment="center" valignment="top" topline="true" usebox="none">
4378 \begin_layout Standard
4384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4387 \begin_layout Standard
4395 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4398 \begin_layout Standard
4406 <cell alignment="center" valignment="top" topline="true" usebox="none">
4409 \begin_layout Standard
4415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4418 \begin_layout Standard
4426 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4429 \begin_layout Standard
4437 <cell alignment="center" valignment="top" topline="true" usebox="none">
4440 \begin_layout Standard
4446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4449 \begin_layout Standard
4457 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4460 \begin_layout Standard
4468 <cell alignment="center" valignment="top" topline="true" usebox="none">
4471 \begin_layout Standard
4477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4480 \begin_layout Standard
4488 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4491 \begin_layout Standard
4499 <cell alignment="center" valignment="top" topline="true" usebox="none">
4502 \begin_layout Standard
4508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4511 \begin_layout Standard
4519 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4522 \begin_layout Standard
4530 <cell alignment="center" valignment="top" topline="true" usebox="none">
4533 \begin_layout Standard
4539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4542 \begin_layout Standard
4550 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4553 \begin_layout Standard
4561 <cell alignment="center" valignment="top" topline="true" usebox="none">
4564 \begin_layout Standard
4570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4573 \begin_layout Standard
4580 <row bottomline="true">
4581 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4584 \begin_layout Standard
4592 <cell alignment="center" valignment="top" topline="true" usebox="none">
4595 \begin_layout Standard
4601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4604 \begin_layout Standard
4611 <row bottomline="true" endlastfoot="true">
4612 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4615 \begin_layout Standard
4621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4624 \begin_layout Standard
4630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4633 \begin_layout Standard
4648 \begin_layout Standard
4652 addtocounter{table}{-1}
4658 \begin_inset Note Note
4661 \begin_layout Standard
4662 See greyed-out note in section\InsetSpace ~
4664 \begin_inset LatexCommand ref
4665 reference "sub:Longtable-Captions"
4669 for an explanation of this command.
4677 \begin_layout Subsection
4678 Footnotes in Longtables
4679 \begin_inset LatexCommand label
4680 name "sub:Footnotes-in-Longtables"
4685 \begin_inset LatexCommand index
4686 name "Longtables ! Footnotes"
4693 \begin_layout Standard
4694 Footnotes can be inserted to every longtable cell.
4695 They appear at the bottom of the page where the table cell with the footnote
4699 \begin_inset LatexCommand ref
4700 reference "tab:DiffCaptions"
4704 has for example a footnote.
4707 \begin_layout Subsection
4709 \begin_inset LatexCommand index
4710 name "Longtables ! Alignment"
4717 \begin_layout Standard
4718 Longtables are by default centered.
4719 In contrary to the alignment of the table columns and row, the table alignment
4720 can currently not be changed in the table dialog.
4721 To change the alignment of longtables you have to change the value of the
4734 by inserting this line as TeX-Code before the corresponding longtable:
4737 \begin_layout Standard
4747 \begin_layout Standard
4748 Where the value can have any of the units listed in Table\InsetSpace ~
4750 \begin_inset LatexCommand ref
4751 reference "tab:Units"
4762 controls the horizontal distance from the left page border to the longtable,
4769 the distance from the right side.
4770 The default value for both lengths is
4776 , which is in this case the same as an horizontal fill in LyX.
4779 \begin_layout Standard
4780 The following longtable was left-aligned by setting
4786 to 0\InsetSpace \thinspace{}
4791 \begin_layout Standard
4805 \begin_layout Standard
4806 \begin_inset Tabular
4807 <lyxtabular version="3" rows="5" columns="5">
4808 <features islongtable="true">
4809 <column alignment="center" valignment="top" leftline="true" width="0">
4810 <column alignment="center" valignment="top" leftline="true" width="0">
4811 <column alignment="center" valignment="top" leftline="true" width="0">
4812 <column alignment="center" valignment="top" leftline="true" width="0">
4813 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4814 <row topline="true">
4815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4818 \begin_layout Standard
4824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4827 \begin_layout Standard
4833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4836 \begin_layout Standard
4842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4845 \begin_layout Standard
4851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4854 \begin_layout Standard
4861 <row topline="true">
4862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4865 \begin_layout Standard
4871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4874 \begin_layout Standard
4880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4883 \begin_layout Standard
4889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4892 \begin_layout Standard
4898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4901 \begin_layout Standard
4908 <row topline="true">
4909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4912 \begin_layout Standard
4918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4921 \begin_layout Standard
4927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4930 \begin_layout Standard
4936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4939 \begin_layout Standard
4945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4948 \begin_layout Standard
4955 <row topline="true">
4956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4959 \begin_layout Standard
4965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4968 \begin_layout Standard
4974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4977 \begin_layout Standard
4983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4986 \begin_layout Standard
4992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4995 \begin_layout Standard
5002 <row topline="true" bottomline="true">
5003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5006 \begin_layout Standard
5012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5015 \begin_layout Standard
5021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5024 \begin_layout Standard
5030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5033 \begin_layout Standard
5039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5042 \begin_layout Standard
5057 \begin_layout Standard
5073 \begin_layout Subsection
5075 \begin_inset LatexCommand index
5076 name "Longtables ! Captions"
5081 \begin_inset LatexCommand label
5082 name "sub:Longtable-Captions"
5089 \begin_layout Standard
5090 A longtable cannot be put into a table float because floats can only be
5091 on one page but the caption environment of floats can also be used for
5095 \begin_layout Standard
5096 As LyX does not yet fully support captions in longtables, a hack is needed
5100 \begin_layout Enumerate
5106 \begin_layout Enumerate
5107 Mark the first row and disable its upper line.
5110 \begin_layout Enumerate
5111 Insert a caption via the menu
5113 Insert\SpecialChar \menuseparator
5116 into the first table cell.
5118 You can also add a short title for the caption.
5121 \begin_layout Enumerate
5123 \begin_inset Quotes eld
5135 \begin_inset Quotes erd
5138 as TeX-Code behind the caption.
5141 \begin_layout Standard
5142 A short title that will appear in the LOT instead of the full title.
5151 behind the caption omits the vertical lines between the following cells
5153 The first table row is now only a dummy row for the caption, the actual
5154 table starts with the second row.
5157 \begin_layout Standard
5158 Here is a short longtable to see how it works:
5161 \begin_layout Standard
5162 \begin_inset Tabular
5163 <lyxtabular version="3" rows="6" columns="5">
5164 <features islongtable="true">
5165 <column alignment="center" valignment="top" leftline="true" width="0">
5166 <column alignment="center" valignment="top" leftline="true" width="0">
5167 <column alignment="center" valignment="top" leftline="true" width="0">
5168 <column alignment="center" valignment="top" leftline="true" width="0">
5169 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5174 \begin_layout Standard
5175 \begin_inset Caption
5177 \begin_layout Standard
5178 Longtable with caption
5182 \begin_layout Standard
5197 \begin_layout Standard
5213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5216 \begin_layout Standard
5222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5225 \begin_layout Standard
5231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5234 \begin_layout Standard
5240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5243 \begin_layout Standard
5250 <row topline="true">
5251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5254 \begin_layout Standard
5260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5263 \begin_layout Standard
5269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5272 \begin_layout Standard
5278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5281 \begin_layout Standard
5287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5290 \begin_layout Standard
5297 <row topline="true">
5298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5301 \begin_layout Standard
5307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5310 \begin_layout Standard
5316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5319 \begin_layout Standard
5325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5328 \begin_layout Standard
5334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5337 \begin_layout Standard
5344 <row topline="true">
5345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5348 \begin_layout Standard
5354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5357 \begin_layout Standard
5363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5366 \begin_layout Standard
5372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5375 \begin_layout Standard
5381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5384 \begin_layout Standard
5391 <row topline="true">
5392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5395 \begin_layout Standard
5401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5404 \begin_layout Standard
5410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5413 \begin_layout Standard
5419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5422 \begin_layout Standard
5428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5431 \begin_layout Standard
5438 <row topline="true" bottomline="true">
5439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5442 \begin_layout Standard
5448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5451 \begin_layout Standard
5457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5460 \begin_layout Standard
5466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5469 \begin_layout Standard
5475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5478 \begin_layout Standard
5492 \begin_layout Standard
5493 \begin_inset VSpace medskip
5497 \begin_inset Note Greyedout
5500 \begin_layout Standard
5505 The table number is increased for every longtable, also if you didn't set
5507 For this reason you could have the case that e.g.
5509 2.4 follows on Table\InsetSpace ~
5510 2.1 in the list of tables if there are two longtables
5512 To avoid this you can add the following command in TeX-Code behind every
5513 longtable without a caption:
5516 \begin_layout Standard
5521 addtocounter{table}{-1}
5529 \begin_layout Standard
5530 \begin_inset Note Greyedout
5533 \begin_layout Standard
5538 If you are using the LaTeX-package
5543 \begin_inset LatexCommand index
5544 name "LaTeX-packages ! hyperref"
5548 to link cross-references, the link to a longtable caption will always point
5549 to the beginning of the document.
5557 \begin_layout Standard
5563 \begin_layout Subsubsection
5564 References to Longtables
5565 \begin_inset LatexCommand index
5566 name "Longtables ! References"
5573 \begin_layout Standard
5574 \begin_inset Tabular
5575 <lyxtabular version="3" rows="6" columns="5">
5576 <features islongtable="true">
5577 <column alignment="center" valignment="top" leftline="true" width="0">
5578 <column alignment="center" valignment="top" leftline="true" width="0">
5579 <column alignment="center" valignment="top" leftline="true" width="0">
5580 <column alignment="center" valignment="top" leftline="true" width="0">
5581 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5586 \begin_layout Standard
5587 \begin_inset Caption
5589 \begin_layout Standard
5590 Referenced longtable
5591 \begin_inset LatexCommand label
5592 name "tab:RefExample"
5605 \begin_layout Standard
5621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5624 \begin_layout Standard
5630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5633 \begin_layout Standard
5639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5642 \begin_layout Standard
5648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5651 \begin_layout Standard
5658 <row topline="true">
5659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5662 \begin_layout Standard
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5671 \begin_layout Standard
5677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5680 \begin_layout Standard
5686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5689 \begin_layout Standard
5695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5698 \begin_layout Standard
5705 <row topline="true">
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5709 \begin_layout Standard
5715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5718 \begin_layout Standard
5724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5727 \begin_layout Standard
5733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5736 \begin_layout Standard
5742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5745 \begin_layout Standard
5752 <row topline="true">
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5756 \begin_layout Standard
5762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5765 \begin_layout Standard
5771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5774 \begin_layout Standard
5780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5783 \begin_layout Standard
5789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5792 \begin_layout Standard
5799 <row topline="true">
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5803 \begin_layout Standard
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5812 \begin_layout Standard
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5821 \begin_layout Standard
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5830 \begin_layout Standard
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5839 \begin_layout Standard
5846 <row topline="true" bottomline="true">
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Standard
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5859 \begin_layout Standard
5865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5868 \begin_layout Standard
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5877 \begin_layout Standard
5883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5886 \begin_layout Standard
5900 \begin_layout Standard
5901 To reference a longtable, insert a label into the caption.
5902 Note that you have to add the label prefix
5903 \begin_inset Quotes eld
5911 \begin_inset Quotes eld
5914 manually in the label field.
5917 \begin_layout Standard
5918 This is a reference to Table\InsetSpace ~
5920 \begin_inset LatexCommand ref
5921 reference "tab:RefExample"
5928 \begin_layout Standard
5929 The caption layout can be set together with all other caption of your document
5930 using the LaTeX-package
5935 \begin_inset LatexCommand index
5936 name "LaTeX-packages ! caption"
5940 , see section\InsetSpace ~
5942 \begin_inset LatexCommand ref
5943 reference "sec:Caption-Formatting"
5950 \begin_layout Subsubsection
5952 \begin_inset LatexCommand index
5953 name "Longtables ! Caption Width"
5960 \begin_layout Standard
5961 The maximal width of of caption lines is defined by the length
5968 Its default value is 4\InsetSpace \thinspace{}
5970 To change it add the following command to your document preamble or as
5971 TeX-Code into your document before the longtable that should be affected
5974 \begin_layout Standard
5984 \begin_layout Standard
5985 where the width could have one of the units listed in appendix\InsetSpace ~
5987 \begin_inset LatexCommand ref
5988 reference "cha:Units-available-in"
5995 \begin_layout Standard
5996 The following tables show the difference:
5999 \begin_layout Standard
6000 \begin_inset Tabular
6001 <lyxtabular version="3" rows="6" columns="5">
6002 <features islongtable="true">
6003 <column alignment="center" valignment="top" leftline="true" width="0">
6004 <column alignment="center" valignment="top" leftline="true" width="0">
6005 <column alignment="center" valignment="top" leftline="true" width="0">
6006 <column alignment="center" valignment="top" leftline="true" width="0">
6007 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6012 \begin_layout Standard
6013 \begin_inset Caption
6015 \begin_layout Standard
6016 long full title with default width long full title with default width long
6017 full title with default width
6021 \begin_layout Standard
6022 caption with default width
6036 \begin_layout Standard
6052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6055 \begin_layout Standard
6061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6064 \begin_layout Standard
6070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6073 \begin_layout Standard
6079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6082 \begin_layout Standard
6089 <row topline="true">
6090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6093 \begin_layout Standard
6099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6102 \begin_layout Standard
6108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6111 \begin_layout Standard
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Standard
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Standard
6136 <row topline="true">
6137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6140 \begin_layout Standard
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Standard
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6158 \begin_layout Standard
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Standard
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6176 \begin_layout Standard
6183 <row topline="true">
6184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6187 \begin_layout Standard
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Standard
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_layout Standard
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Standard
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6223 \begin_layout Standard
6230 <row topline="true">
6231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6234 \begin_layout Standard
6240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6243 \begin_layout Standard
6249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6252 \begin_layout Standard
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6261 \begin_layout Standard
6267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6270 \begin_layout Standard
6277 <row topline="true" bottomline="true">
6278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6281 \begin_layout Standard
6287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6290 \begin_layout Standard
6296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6299 \begin_layout Standard
6305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6308 \begin_layout Standard
6314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6317 \begin_layout Standard
6331 \begin_layout Standard
6335 \begin_layout Standard
6347 \begin_inset Tabular
6348 <lyxtabular version="3" rows="6" columns="5">
6349 <features islongtable="true">
6350 <column alignment="center" valignment="top" leftline="true" width="0">
6351 <column alignment="center" valignment="top" leftline="true" width="0">
6352 <column alignment="center" valignment="top" leftline="true" width="0">
6353 <column alignment="center" valignment="top" leftline="true" width="0">
6354 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6359 \begin_layout Standard
6360 \begin_inset Caption
6362 \begin_layout Standard
6363 long full title with width set to 5\InsetSpace \thinspace{}
6364 cm long full title with width set to
6365 5\InsetSpace \thinspace{}
6366 cm long full title with width set to 5\InsetSpace \thinspace{}
6371 \begin_layout Standard
6372 caption with width\InsetSpace \thinspace{}
6373 =\InsetSpace \thinspace{}
6374 5\InsetSpace \thinspace{}
6389 \begin_layout Standard
6405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6408 \begin_layout Standard
6414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6417 \begin_layout Standard
6423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6426 \begin_layout Standard
6432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6435 \begin_layout Standard
6442 <row topline="true">
6443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6446 \begin_layout Standard
6452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6455 \begin_layout Standard
6461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6464 \begin_layout Standard
6470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6473 \begin_layout Standard
6479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6482 \begin_layout Standard
6489 <row topline="true">
6490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6493 \begin_layout Standard
6499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6502 \begin_layout Standard
6508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6511 \begin_layout Standard
6517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6520 \begin_layout Standard
6526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6529 \begin_layout Standard
6536 <row topline="true">
6537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6540 \begin_layout Standard
6546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6549 \begin_layout Standard
6555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6558 \begin_layout Standard
6564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6567 \begin_layout Standard
6573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6576 \begin_layout Standard
6583 <row topline="true">
6584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6587 \begin_layout Standard
6593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6596 \begin_layout Standard
6602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6605 \begin_layout Standard
6611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6614 \begin_layout Standard
6620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6623 \begin_layout Standard
6630 <row topline="true" bottomline="true">
6631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6634 \begin_layout Standard
6640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6643 \begin_layout Standard
6649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6652 \begin_layout Standard
6658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6661 \begin_layout Standard
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6670 \begin_layout Standard
6684 \begin_layout Standard
6688 \begin_layout Standard
6702 \begin_layout Standard
6703 \begin_inset Note Greyedout
6706 \begin_layout Standard
6711 When the LaTeX-package
6716 \begin_inset LatexCommand index
6717 name "LaTeX-packages ! caption"
6721 is used, as in this document, the full page width is used for the caption
6722 when you use the default value of 4\InsetSpace \thinspace{}
6730 To get in this case exactly a 4\InsetSpace \thinspace{}
6731 in wide caption, you can either use a value
6732 slightly different from 4.0\InsetSpace \thinspace{}
6734 3.99\InsetSpace \thinspace{}
6735 in, or the LaTeX-command
6739 captionsetup{width=value}
6741 that is provided by the
6753 \begin_layout Subsubsection
6754 Different Captions for Table Pages
6755 \begin_inset LatexCommand index
6756 name "Longtables ! Different Captions for Pages"
6763 \begin_layout Standard
6764 When the other captions should differ from the one of the first table page,
6765 insert a caption with a non-empty short title in a dummy caption row marked
6767 The caption used for the other table pages is inserted as caption without
6768 a short title in a dummy caption row that is marked as main header.
6769 When this caption shouldn't include the table number, use the command
6772 \begin_layout Standard
6777 caption*{caption text}
6780 \begin_layout Standard
6781 instead of LyX's caption box.
6782 The label to reference the table is inserted into the caption of the first
6786 \begin_inset LatexCommand ref
6787 reference "tab:DiffCaptions"
6791 is an example for a longtable with different heading where the second caption
6792 doesn't include the table number.
6795 \begin_layout Standard
6797 \begin_inset Tabular
6798 <lyxtabular version="3" rows="60" columns="3">
6799 <features islongtable="true">
6800 <column alignment="left" valignment="top" leftline="true" width="0cm">
6801 <column alignment="left" valignment="top" rightline="true" width="0pt">
6802 <column alignment="right" valignment="top" rightline="true" width="0pt">
6803 <row endfirsthead="true">
6804 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6807 \begin_layout Standard
6808 \begin_inset Caption
6810 \begin_layout Standard
6812 \begin_inset LatexCommand label
6813 name "tab:DiffCaptions"
6821 \begin_layout Standard
6836 \begin_layout Standard
6852 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6855 \begin_layout Standard
6861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6864 \begin_layout Standard
6871 <row topline="true" bottomline="true" endfirsthead="true">
6872 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6875 \begin_layout Standard
6878 Example Phone List (ignore the names)
6883 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6886 \begin_layout Standard
6892 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6895 \begin_layout Standard
6902 <row topline="true" bottomline="true" endfirsthead="true">
6903 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6906 \begin_layout Standard
6914 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6917 \begin_layout Standard
6923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6926 \begin_layout Standard
6935 <row bottomline="true" endhead="true">
6936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6939 \begin_layout Standard
6943 \begin_layout Standard
6947 caption*{Continued Example Phone List}
6961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6964 \begin_layout Standard
6970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6973 \begin_layout Standard
6980 <row topline="true" bottomline="true" endhead="true">
6981 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6984 \begin_layout Standard
6992 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6995 \begin_layout Standard
7001 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7004 \begin_layout Standard
7011 <row topline="true" bottomline="true" endhead="true">
7012 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7015 \begin_layout Standard
7023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7026 \begin_layout Standard
7032 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7035 \begin_layout Standard
7044 <row topline="true" bottomline="true" endfoot="true">
7045 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
7048 \begin_layout Standard
7049 continued on next page
7054 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7057 \begin_layout Standard
7063 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7066 \begin_layout Standard
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Standard
7085 <cell alignment="center" valignment="top" topline="true" usebox="none">
7088 \begin_layout Standard
7094 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7097 \begin_layout Standard
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Standard
7116 <cell alignment="center" valignment="top" topline="true" usebox="none">
7119 \begin_layout Standard
7125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7128 \begin_layout Standard
7136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7139 \begin_layout Standard
7147 <cell alignment="center" valignment="top" topline="true" usebox="none">
7150 \begin_layout Standard
7156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7159 \begin_layout Standard
7167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7170 \begin_layout Standard
7178 <cell alignment="center" valignment="top" topline="true" usebox="none">
7181 \begin_layout Standard
7187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7190 \begin_layout Standard
7198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7201 \begin_layout Standard
7209 <cell alignment="center" valignment="top" topline="true" usebox="none">
7212 \begin_layout Standard
7218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7221 \begin_layout Standard
7229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7232 \begin_layout Standard
7240 <cell alignment="center" valignment="top" topline="true" usebox="none">
7243 \begin_layout Standard
7249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7252 \begin_layout Standard
7260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7263 \begin_layout Standard
7271 <cell alignment="center" valignment="top" topline="true" usebox="none">
7274 \begin_layout Standard
7280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7283 \begin_layout Standard
7291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7294 \begin_layout Standard
7302 <cell alignment="center" valignment="top" topline="true" usebox="none">
7305 \begin_layout Standard
7311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7314 \begin_layout Standard
7322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7325 \begin_layout Standard
7333 <cell alignment="center" valignment="top" topline="true" usebox="none">
7336 \begin_layout Standard
7342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7345 \begin_layout Standard
7353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7356 \begin_layout Standard
7364 <cell alignment="center" valignment="top" topline="true" usebox="none">
7367 \begin_layout Standard
7373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7376 \begin_layout Standard
7384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7387 \begin_layout Standard
7395 <cell alignment="center" valignment="top" topline="true" usebox="none">
7398 \begin_layout Standard
7404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7407 \begin_layout Standard
7415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7418 \begin_layout Standard
7426 <cell alignment="center" valignment="top" topline="true" usebox="none">
7429 \begin_layout Standard
7435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7438 \begin_layout Standard
7446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7449 \begin_layout Standard
7457 <cell alignment="center" valignment="top" topline="true" usebox="none">
7460 \begin_layout Standard
7466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7469 \begin_layout Standard
7477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7480 \begin_layout Standard
7488 <cell alignment="center" valignment="top" topline="true" usebox="none">
7491 \begin_layout Standard
7497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7500 \begin_layout Standard
7508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7511 \begin_layout Standard
7520 \begin_layout Standard
7531 <cell alignment="center" valignment="top" topline="true" usebox="none">
7534 \begin_layout Standard
7540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7543 \begin_layout Standard
7551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7554 \begin_layout Standard
7562 <cell alignment="center" valignment="top" topline="true" usebox="none">
7565 \begin_layout Standard
7571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7574 \begin_layout Standard
7582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7585 \begin_layout Standard
7593 <cell alignment="center" valignment="top" topline="true" usebox="none">
7596 \begin_layout Standard
7602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7605 \begin_layout Standard
7613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7616 \begin_layout Standard
7624 <cell alignment="center" valignment="top" topline="true" usebox="none">
7627 \begin_layout Standard
7633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7636 \begin_layout Standard
7644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7647 \begin_layout Standard
7655 <cell alignment="center" valignment="top" topline="true" usebox="none">
7658 \begin_layout Standard
7664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7667 \begin_layout Standard
7675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7678 \begin_layout Standard
7686 <cell alignment="center" valignment="top" topline="true" usebox="none">
7689 \begin_layout Standard
7695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7698 \begin_layout Standard
7706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7709 \begin_layout Standard
7717 <cell alignment="center" valignment="top" topline="true" usebox="none">
7720 \begin_layout Standard
7726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7729 \begin_layout Standard
7737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7740 \begin_layout Standard
7748 <cell alignment="center" valignment="top" topline="true" usebox="none">
7751 \begin_layout Standard
7757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7760 \begin_layout Standard
7768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7771 \begin_layout Standard
7779 <cell alignment="center" valignment="top" topline="true" usebox="none">
7782 \begin_layout Standard
7788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7791 \begin_layout Standard
7799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7802 \begin_layout Standard
7810 <cell alignment="center" valignment="top" topline="true" usebox="none">
7813 \begin_layout Standard
7819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7822 \begin_layout Standard
7830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7833 \begin_layout Standard
7841 <cell alignment="center" valignment="top" topline="true" usebox="none">
7844 \begin_layout Standard
7850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7853 \begin_layout Standard
7861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7864 \begin_layout Standard
7872 <cell alignment="center" valignment="top" topline="true" usebox="none">
7875 \begin_layout Standard
7881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7884 \begin_layout Standard
7892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7895 \begin_layout Standard
7903 <cell alignment="center" valignment="top" topline="true" usebox="none">
7906 \begin_layout Standard
7912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7915 \begin_layout Standard
7923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7926 \begin_layout Standard
7934 <cell alignment="center" valignment="top" topline="true" usebox="none">
7937 \begin_layout Standard
7943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7946 \begin_layout Standard
7954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7957 \begin_layout Standard
7965 <cell alignment="center" valignment="top" topline="true" usebox="none">
7968 \begin_layout Standard
7974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7977 \begin_layout Standard
7985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7988 \begin_layout Standard
7996 <cell alignment="center" valignment="top" topline="true" usebox="none">
7999 \begin_layout Standard
8005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8008 \begin_layout Standard
8015 <row bottomline="true">
8016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8019 \begin_layout Standard
8027 <cell alignment="center" valignment="top" topline="true" usebox="none">
8030 \begin_layout Standard
8036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8039 \begin_layout Standard
8046 <row bottomline="true">
8047 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8050 \begin_layout Standard
8056 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8059 \begin_layout Standard
8065 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8068 \begin_layout Standard
8076 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8079 \begin_layout Standard
8087 <cell alignment="center" valignment="top" topline="true" usebox="none">
8090 \begin_layout Standard
8096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8099 \begin_layout Standard
8107 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8110 \begin_layout Standard
8118 <cell alignment="center" valignment="top" topline="true" usebox="none">
8121 \begin_layout Standard
8127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8130 \begin_layout Standard
8138 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8141 \begin_layout Standard
8149 <cell alignment="center" valignment="top" topline="true" usebox="none">
8152 \begin_layout Standard
8158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8161 \begin_layout Standard
8169 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8172 \begin_layout Standard
8180 <cell alignment="center" valignment="top" topline="true" usebox="none">
8183 \begin_layout Standard
8189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8192 \begin_layout Standard
8200 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8203 \begin_layout Standard
8211 <cell alignment="center" valignment="top" topline="true" usebox="none">
8214 \begin_layout Standard
8220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8223 \begin_layout Standard
8231 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8234 \begin_layout Standard
8242 <cell alignment="center" valignment="top" topline="true" usebox="none">
8245 \begin_layout Standard
8251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8254 \begin_layout Standard
8262 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8265 \begin_layout Standard
8273 <cell alignment="center" valignment="top" topline="true" usebox="none">
8276 \begin_layout Standard
8282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8285 \begin_layout Standard
8293 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8296 \begin_layout Standard
8304 <cell alignment="center" valignment="top" topline="true" usebox="none">
8307 \begin_layout Standard
8313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8316 \begin_layout Standard
8324 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8327 \begin_layout Standard
8335 <cell alignment="center" valignment="top" topline="true" usebox="none">
8338 \begin_layout Standard
8344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8347 \begin_layout Standard
8355 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8358 \begin_layout Standard
8366 <cell alignment="center" valignment="top" topline="true" usebox="none">
8369 \begin_layout Standard
8375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8378 \begin_layout Standard
8386 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8389 \begin_layout Standard
8397 <cell alignment="center" valignment="top" topline="true" usebox="none">
8400 \begin_layout Standard
8406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8409 \begin_layout Standard
8417 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8420 \begin_layout Standard
8428 <cell alignment="center" valignment="top" topline="true" usebox="none">
8431 \begin_layout Standard
8437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8440 \begin_layout Standard
8448 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8451 \begin_layout Standard
8459 <cell alignment="center" valignment="top" topline="true" usebox="none">
8462 \begin_layout Standard
8468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8471 \begin_layout Standard
8479 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8482 \begin_layout Standard
8490 <cell alignment="center" valignment="top" topline="true" usebox="none">
8493 \begin_layout Standard
8499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8502 \begin_layout Standard
8510 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8513 \begin_layout Standard
8521 <cell alignment="center" valignment="top" topline="true" usebox="none">
8524 \begin_layout Standard
8530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8533 \begin_layout Standard
8541 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8544 \begin_layout Standard
8552 <cell alignment="center" valignment="top" topline="true" usebox="none">
8555 \begin_layout Standard
8561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8564 \begin_layout Standard
8572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8575 \begin_layout Standard
8583 <cell alignment="center" valignment="top" topline="true" usebox="none">
8586 \begin_layout Standard
8592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8595 \begin_layout Standard
8603 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8606 \begin_layout Standard
8614 <cell alignment="center" valignment="top" topline="true" usebox="none">
8617 \begin_layout Standard
8623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8626 \begin_layout Standard
8634 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8637 \begin_layout Standard
8645 <cell alignment="center" valignment="top" topline="true" usebox="none">
8648 \begin_layout Standard
8654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8657 \begin_layout Standard
8664 <row bottomline="true">
8665 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8668 \begin_layout Standard
8676 <cell alignment="center" valignment="top" topline="true" usebox="none">
8679 \begin_layout Standard
8685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8688 \begin_layout Standard
8695 <row bottomline="true" endlastfoot="true">
8696 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8699 \begin_layout Standard
8705 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8708 \begin_layout Standard
8714 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8717 \begin_layout Standard
8731 \begin_layout Section
8732 Special Longtable Issues
8733 \begin_inset LatexCommand label
8734 name "sec:Special-Longtable-Issues"
8741 \begin_layout Subsection
8742 Longtable Calculation
8743 \begin_inset LatexCommand index
8744 name "Longtables ! Calculation"
8751 \begin_layout Standard
8752 LaTeX calculates the height of table pages and their page breaks using so
8754 Chunks are pieces of the tables that are at once in LaTeX's memory.
8755 The default value is historically set to only 20 table rows.
8756 If you are using longtables with many pages this may slow down the creation
8758 You can safely increase the chunk size to values of 100-1000 by adding
8759 this command line to your document preamble:
8762 \begin_layout Standard
8767 setcounter{LTchunksize}{100}
8770 \begin_layout Subsection
8771 Floats and Longtables
8772 \begin_inset LatexCommand index
8773 name "Longtables ! Floats"
8780 \begin_layout Standard
8781 There might be problems when a float appears on the same page where a longtable
8783 To avoid such situation, add the command
8789 as TeX-Code before your longtable.
8792 \begin_layout Subsection
8794 \begin_inset LatexCommand index
8795 name "Longtables ! Forced Page Breaks"
8802 \begin_layout Standard
8803 By default tables are only broken between rows.
8804 If you have a cell with multiples lines and want to have a page break within
8805 the cell, insert the new line command
8806 \begin_inset Quotes eld
8818 \begin_inset Quotes erd
8821 as TeX-Code at this point of the cell where it should be broken.
8830 command you have to insert in TeX-Code so many
8831 \begin_inset Quotes eld
8839 \begin_inset Quotes erd
8842 characters like the number of the following table columns.
8847 is the character to separate table cells.
8848 Write in TeX-Code after each
8852 the content of the corresponding following cell and delete the content
8863 command, insert so many
8867 characters like the number of table columns before the current column.
8868 In Table\InsetSpace ~
8870 \begin_inset LatexCommand ref
8871 reference "tab:ForcedPagebreak"
8875 the cell that should be broken is in the second column followed by another
8877 Therefore the following command was inserted in the cell as TeX-Code behind
8879 \begin_inset Quotes eld
8887 \begin_inset Quotes erd
8893 \begin_layout Standard
8905 \begin_layout Standard
8907 \begin_inset Quotes eld
8911 \begin_inset Quotes erd
8914 in the third columns of the row was deleted.
8915 If your footer row of the longtable has for a certain reason no upper line
8916 but you would have a horizontal line where the cell is broken, use this
8920 \begin_layout Standard
8934 \begin_layout Standard
8935 When the cell to be broken is in the last column, the command
8938 \begin_layout Standard
8945 parf\SpecialChar \textcompwordmark{}
8949 \begin_layout Standard
8950 must be inserted as TeX-Code at the beginning of the cell.
8951 This assures that the part of the cell that will be displayed on the new
8952 page appears with the full width.
8955 \begin_layout Standard
8957 \begin_inset Tabular
8958 <lyxtabular version="3" rows="39" columns="3">
8959 <features islongtable="true">
8960 <column alignment="left" valignment="top" leftline="true" width="0cm">
8961 <column alignment="left" valignment="top" rightline="true" width="3cm">
8962 <column alignment="right" valignment="top" rightline="true" width="0pt">
8963 <row endfirsthead="true">
8964 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8967 \begin_layout Standard
8968 \begin_inset Caption
8970 \begin_layout Standard
8971 Table with forced page break in table cell
8972 \begin_inset LatexCommand label
8973 name "tab:ForcedPagebreak"
8981 \begin_layout Standard
8982 Table with forced page break in table cell
8996 \begin_layout Standard
9012 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9015 \begin_layout Standard
9021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9024 \begin_layout Standard
9031 <row topline="true" bottomline="true" endfirsthead="true">
9032 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9035 \begin_layout Standard
9038 Example Phone List (ignore the names)
9043 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9046 \begin_layout Standard
9052 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9055 \begin_layout Standard
9062 <row topline="true" bottomline="true" endfirsthead="true">
9063 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9066 \begin_layout Standard
9074 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9077 \begin_layout Standard
9083 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9086 \begin_layout Standard
9095 <row bottomline="true" endhead="true">
9096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9099 \begin_layout Standard
9103 \begin_layout Standard
9107 caption*{Continued table with forced page break in table cell}
9121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9124 \begin_layout Standard
9130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9133 \begin_layout Standard
9140 <row topline="true" bottomline="true" endhead="true">
9141 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Standard
9152 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9155 \begin_layout Standard
9161 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9164 \begin_layout Standard
9171 <row topline="true" bottomline="true" endhead="true">
9172 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9175 \begin_layout Standard
9183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9186 \begin_layout Standard
9192 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9195 \begin_layout Standard
9204 <row topline="true" bottomline="true" endfoot="true">
9205 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
9208 \begin_layout Standard
9209 continued on next page
9214 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9217 \begin_layout Standard
9223 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9226 \begin_layout Standard
9234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9237 \begin_layout Standard
9245 <cell alignment="center" valignment="top" topline="true" usebox="none">
9248 \begin_layout Standard
9254 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9257 \begin_layout Standard
9265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9268 \begin_layout Standard
9276 <cell alignment="center" valignment="top" topline="true" usebox="none">
9279 \begin_layout Standard
9285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9288 \begin_layout Standard
9296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9299 \begin_layout Standard
9307 <cell alignment="center" valignment="top" topline="true" usebox="none">
9310 \begin_layout Standard
9316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9319 \begin_layout Standard
9327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9330 \begin_layout Standard
9338 <cell alignment="center" valignment="top" topline="true" usebox="none">
9341 \begin_layout Standard
9347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9350 \begin_layout Standard
9358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9361 \begin_layout Standard
9369 <cell alignment="center" valignment="top" topline="true" usebox="none">
9372 \begin_layout Standard
9378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9381 \begin_layout Standard
9389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9392 \begin_layout Standard
9400 <cell alignment="center" valignment="top" topline="true" usebox="none">
9403 \begin_layout Standard
9409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9412 \begin_layout Standard
9420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9423 \begin_layout Standard
9431 <cell alignment="center" valignment="top" topline="true" usebox="none">
9434 \begin_layout Standard
9440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9443 \begin_layout Standard
9451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9454 \begin_layout Standard
9462 <cell alignment="center" valignment="top" topline="true" usebox="none">
9465 \begin_layout Standard
9471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9474 \begin_layout Standard
9482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9485 \begin_layout Standard
9493 <cell alignment="center" valignment="top" topline="true" usebox="none">
9496 \begin_layout Standard
9502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9505 \begin_layout Standard
9513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9516 \begin_layout Standard
9524 <cell alignment="center" valignment="top" topline="true" usebox="none">
9527 \begin_layout Standard
9533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9536 \begin_layout Standard
9544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9547 \begin_layout Standard
9555 <cell alignment="center" valignment="top" topline="true" usebox="none">
9558 \begin_layout Standard
9564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9567 \begin_layout Standard
9575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9578 \begin_layout Standard
9586 <cell alignment="center" valignment="top" topline="true" usebox="none">
9589 \begin_layout Standard
9595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9598 \begin_layout Standard
9606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9609 \begin_layout Standard
9617 <cell alignment="center" valignment="top" topline="true" usebox="none">
9620 \begin_layout Standard
9626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9629 \begin_layout Standard
9637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9640 \begin_layout Standard
9648 <cell alignment="center" valignment="top" topline="true" usebox="none">
9651 \begin_layout Standard
9657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9660 \begin_layout Standard
9668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9671 \begin_layout Standard
9679 <cell alignment="center" valignment="top" topline="true" usebox="none">
9682 \begin_layout Standard
9688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9691 \begin_layout Standard
9699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9702 \begin_layout Standard
9710 <cell alignment="center" valignment="top" topline="true" usebox="none">
9713 \begin_layout Standard
9719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9722 \begin_layout Standard
9730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9733 \begin_layout Standard
9741 <cell alignment="center" valignment="top" topline="true" usebox="none">
9744 \begin_layout Standard
9750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9753 \begin_layout Standard
9761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9764 \begin_layout Standard
9772 <cell alignment="center" valignment="top" topline="true" usebox="none">
9775 \begin_layout Standard
9781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9784 \begin_layout Standard
9792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9795 \begin_layout Standard
9803 <cell alignment="center" valignment="top" topline="true" usebox="none">
9806 \begin_layout Standard
9812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9815 \begin_layout Standard
9823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9826 \begin_layout Standard
9834 <cell alignment="center" valignment="top" topline="true" usebox="none">
9837 \begin_layout Standard
9843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9846 \begin_layout Standard
9854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9857 \begin_layout Standard
9865 <cell alignment="center" valignment="top" topline="true" usebox="none">
9868 \begin_layout Standard
9874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9877 \begin_layout Standard
9885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9888 \begin_layout Standard
9896 <cell alignment="center" valignment="top" topline="true" usebox="none">
9899 \begin_layout Standard
9905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9908 \begin_layout Standard
9916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9919 \begin_layout Standard
9927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9930 \begin_layout Standard
9932 Fürst von Montecompatri, 11.
9933 Fürst von Sulmona und Vivaro, 10.
9934 Fürst von Rossano, 5.
9935 Herzog von Canemorte, 11.
9936 Herzog von Palombara, 5.
9937 Herzog von Castelchiodato,
9941 \begin_layout Standard
9950 \begin_layout Standard
9958 Herzog von Poggionativo, 11.
9959 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9960 Graf von Valinfreda, 11.
9961 Baron von Cropalati, 11.
9962 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9970 \begin_layout Standard
9978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9981 \begin_layout Standard
9989 <cell alignment="center" valignment="top" topline="true" usebox="none">
9992 \begin_layout Standard
9998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10001 \begin_layout Standard
10009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10012 \begin_layout Standard
10020 <cell alignment="center" valignment="top" topline="true" usebox="none">
10023 \begin_layout Standard
10029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10032 \begin_layout Standard
10040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10043 \begin_layout Standard
10051 <cell alignment="center" valignment="top" topline="true" usebox="none">
10054 \begin_layout Standard
10060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10063 \begin_layout Standard
10071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10074 \begin_layout Standard
10082 <cell alignment="center" valignment="top" topline="true" usebox="none">
10085 \begin_layout Standard
10091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10094 \begin_layout Standard
10102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10105 \begin_layout Standard
10113 <cell alignment="center" valignment="top" topline="true" usebox="none">
10116 \begin_layout Standard
10122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10125 \begin_layout Standard
10133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10136 \begin_layout Standard
10144 <cell alignment="center" valignment="top" topline="true" usebox="none">
10147 \begin_layout Standard
10153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10156 \begin_layout Standard
10164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10167 \begin_layout Standard
10175 <cell alignment="center" valignment="top" topline="true" usebox="none">
10178 \begin_layout Standard
10184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10187 \begin_layout Standard
10194 <row bottomline="true">
10195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10198 \begin_layout Standard
10206 <cell alignment="center" valignment="top" topline="true" usebox="none">
10209 \begin_layout Standard
10215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10218 \begin_layout Standard
10225 <row endlastfoot="true">
10226 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10229 \begin_layout Standard
10235 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10238 \begin_layout Standard
10244 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10247 \begin_layout Standard
10261 \begin_layout Standard
10267 \begin_layout Section
10268 Multiple Lines Columns and Rows
10271 \begin_layout Subsection
10272 Multiple Lines in Table Cells
10273 \begin_inset LatexCommand label
10274 name "sub:Multiple-Lines-in"
10279 \begin_inset LatexCommand index
10280 name "Multiple Lines in Table Cells"
10285 \begin_inset LatexCommand index
10286 name "Table ! Linebreaks"
10293 \begin_layout Standard
10295 \begin_inset Float table
10301 \begin_layout Standard
10302 \begin_inset Caption
10304 \begin_layout Standard
10305 \begin_inset LatexCommand label
10306 name "tab:Table-with-multiple"
10310 Table with multiple lines in cells
10318 \begin_layout Standard
10320 \begin_inset Tabular
10321 <lyxtabular version="3" rows="3" columns="3">
10323 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10324 <column alignment="center" valignment="middle" leftline="true" width="0">
10325 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10326 <row topline="true">
10327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10330 \begin_layout Standard
10335 \begin_layout Standard
10349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10352 \begin_layout Standard
10358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10361 \begin_layout Standard
10368 <row topline="true">
10369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10372 \begin_layout Standard
10378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10381 \begin_layout Standard
10387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10390 \begin_layout Standard
10397 <row topline="true" bottomline="true">
10398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10401 \begin_layout Standard
10407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10410 \begin_layout Standard
10416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10419 \begin_layout Standard
10438 \begin_layout Standard
10439 Adjusting a fixed width for a column, enables to enter text as a paragraph
10440 with multiple lines and hyphenations.
10443 \begin_layout Standard
10444 To produce Table\InsetSpace ~
10446 \begin_inset LatexCommand ref
10447 reference "tab:Table-with-multiple"
10451 , create a 3×3 table, mark the first cell and right-click on it.
10452 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10453 cm and choose centered
10454 for the vertical and horizontal alignment.
10455 The vertical alignment is used for all cells of the row.
10456 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10457 cm, only one line will appear.
10458 To get two lines, we add a line break with the command
10461 \begin_layout Standard
10469 \begin_layout Standard
10471 If the text is wider than the set cell width it will automatically be broken
10475 \begin_layout Standard
10476 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10477 by LaTeX if it is the first entry.
10478 Therefore you need to insert something, to make the word not being the
10479 first entry: Add the command
10482 \begin_layout Standard
10490 \begin_layout Standard
10491 in TeX-Code before the word.
10492 As the space is zero, it doesn't change the output.
10495 \begin_inset LatexCommand ref
10496 reference "tab:Table-with-and"
10503 \begin_layout Standard
10504 \begin_inset Float table
10510 \begin_layout Standard
10511 \begin_inset Caption
10513 \begin_layout Standard
10514 \begin_inset LatexCommand label
10515 name "tab:Table-with-and"
10519 Table with and without hyphenation
10527 \begin_layout Standard
10531 \begin_inset Tabular
10532 <lyxtabular version="3" rows="3" columns="3">
10534 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10535 <column alignment="center" valignment="middle" leftline="true" width="0">
10536 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10537 <row topline="true">
10538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10541 \begin_layout Standard
10542 verylongtablecellword
10547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10550 \begin_layout Standard
10556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10559 \begin_layout Standard
10566 <row topline="true">
10567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10570 \begin_layout Standard
10576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10579 \begin_layout Standard
10585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10588 \begin_layout Standard
10595 <row topline="true" bottomline="true">
10596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10599 \begin_layout Standard
10605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10608 \begin_layout Standard
10614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10617 \begin_layout Standard
10631 \begin_inset Tabular
10632 <lyxtabular version="3" rows="3" columns="3">
10634 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10635 <column alignment="center" valignment="middle" leftline="true" width="0">
10636 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10637 <row topline="true">
10638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10641 \begin_layout Standard
10645 \begin_layout Standard
10654 verylongtablecellword
10659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10662 \begin_layout Standard
10668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10671 \begin_layout Standard
10678 <row topline="true">
10679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10682 \begin_layout Standard
10688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10691 \begin_layout Standard
10697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10700 \begin_layout Standard
10707 <row topline="true" bottomline="true">
10708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10711 \begin_layout Standard
10717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10720 \begin_layout Standard
10726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10729 \begin_layout Standard
10750 \begin_layout Standard
10756 \begin_layout Subsection
10758 \begin_inset LatexCommand label
10759 name "sub:Multicolumns"
10764 \begin_inset LatexCommand index
10765 name "Multicolumns"
10770 \begin_inset LatexCommand index
10771 name "Table ! Multicolumns"
10778 \begin_layout Subsubsection
10782 \begin_layout Standard
10783 To span a cell over multiple columns, mark as much cells within a line that
10784 should be one spanned cell and use either the table-toolbar button
10785 \begin_inset Graphics
10786 filename ../images/tabular-feature_multicolumn.png
10788 scaleBeforeRotation
10794 Edit\SpecialChar \menuseparator
10795 Table\SpecialChar \menuseparator
10798 , or right click on the marked cells and choose multicolumn in the appearing
10799 table dialog under the tab
10806 \begin_layout Standard
10807 Multicolumns have there own cell settings.
10808 That means changing cell borders, cell alignment, and the width only affects
10810 Here is an example table with a multicolumn cell in the first row and one
10811 in the last row without the upper border:
10814 \begin_layout Standard
10816 \begin_inset Tabular
10817 <lyxtabular version="3" rows="3" columns="4">
10818 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10819 <column alignment="center" valignment="top" leftline="true" width="0pt">
10820 <column alignment="center" valignment="middle" leftline="true" width="0">
10821 <column alignment="center" valignment="top" leftline="true" width="0in">
10822 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10823 <row topline="true" bottomline="true">
10824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10827 \begin_layout Standard
10833 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10836 \begin_layout Standard
10842 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10845 \begin_layout Standard
10851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10854 \begin_layout Standard
10861 <row topline="true">
10862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10865 \begin_layout Standard
10880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10883 \begin_layout Standard
10889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10892 \begin_layout Standard
10898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10901 \begin_layout Standard
10908 <row topline="true" bottomline="true">
10909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10912 \begin_layout Standard
10918 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10921 \begin_layout Standard
10927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10930 \begin_layout Standard
10936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10939 \begin_layout Standard
10953 \begin_layout Subsubsection
10954 Multicolumn Calculations
10955 \begin_inset LatexCommand label
10956 name "sub:Multicolumn-Calculations"
10961 \begin_inset LatexCommand index
10962 name "Multicolumns ! Calculations"
10969 \begin_layout Standard
10970 LyX supports multicolumns directly, but we have to take notice of the cell
10971 width of the columns spanned by the multicolumn cell.
10974 \begin_layout Standard
10975 \begin_inset Float table
10980 \begin_layout Standard
10981 \begin_inset Caption
10983 \begin_layout Standard
10984 \begin_inset LatexCommand label
10985 name "tab:Table-with-centered"
10989 Table with centered multicolumn text above two columns that have exactly
10990 half the width of the multicolumn cell
10991 \begin_inset OptArg
10994 \begin_layout Standard
10995 Perfect multicolumn table
11008 \begin_layout Standard
11010 \begin_inset Tabular
11011 <lyxtabular version="3" rows="3" columns="3">
11013 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11014 <column alignment="center" valignment="middle" leftline="true" width="0">
11015 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11016 <row topline="true">
11017 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11020 \begin_layout Standard
11021 multiple lines multicolumn
11026 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11029 \begin_layout Standard
11035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11038 \begin_layout Standard
11045 <row topline="true">
11046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11049 \begin_layout Standard
11055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11058 \begin_layout Standard
11064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11067 \begin_layout Standard
11074 <row topline="true" bottomline="true">
11075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11078 \begin_layout Standard
11084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11087 \begin_layout Standard
11093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11096 \begin_layout Standard
11115 \begin_layout Standard
11116 To create for example Table\InsetSpace ~
11118 \begin_inset LatexCommand ref
11119 reference "tab:Table-with-centered"
11123 , mark the first two cells in the first row of a 3×3 table and right-click
11125 Now choose for this cell
11133 and a width of 2.5\InsetSpace \thinspace{}
11134 cm in the table dialog.
11135 The spanned columns should have exactly half the width of the multicolumn
11136 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
11137 cm for the first column.
11138 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
11140 width - width of first column).
11141 This was done for Table\InsetSpace ~
11143 \begin_inset LatexCommand ref
11144 reference "tab:Table-without-half"
11151 \begin_layout Standard
11152 \begin_inset Float table
11157 \begin_layout Standard
11158 \begin_inset Caption
11160 \begin_layout Standard
11161 \begin_inset LatexCommand label
11162 name "tab:Table-without-half"
11166 Table where the spanned table columns have not exactly half the width of
11167 the multicolumn cell
11168 \begin_inset OptArg
11171 \begin_layout Standard
11172 Imperfect multicolumn table
11185 \begin_layout Standard
11187 \begin_inset Tabular
11188 <lyxtabular version="3" rows="3" columns="3">
11190 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
11191 <column alignment="center" valignment="top" leftline="true" width="0">
11192 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11193 <row topline="true" bottomline="true">
11194 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11197 \begin_layout Standard
11198 multiple lines multicolumn
11203 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11206 \begin_layout Standard
11212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11215 \begin_layout Standard
11222 <row topline="true">
11223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11226 \begin_layout Standard
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11235 \begin_layout Standard
11241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11244 \begin_layout Standard
11251 <row topline="true" bottomline="true">
11252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11255 \begin_layout Standard
11261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11264 \begin_layout Standard
11270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11273 \begin_layout Standard
11292 \begin_layout Standard
11293 You can see that the first column has not the half width of the multicolumn
11294 cell, it is a bit bigger.
11295 The reason is that the given width of a cell
11296 \begin_inset Formula $W_{g}$
11299 is not its total width
11300 \begin_inset Formula $W_{\mathrm{tot}}$
11303 because a cell is always a bit larger than its given width.
11304 Appendix\InsetSpace ~
11306 \begin_inset LatexCommand eqref
11307 reference "cha:Explanation-of-Equation"
11311 explains it in detail.
11314 \begin_layout Standard
11315 The needed given width
11316 \begin_inset Formula $W_{g\, n}$
11323 columns are spanned can be calculated, so that each column has a total
11325 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11329 \begin_inset Formula \begin{equation}
11330 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11337 \begin_layout Standard
11338 In our case we have
11339 \begin_inset Formula $n=2$
11343 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11346 cm and the default values for the lengths, so that equation
11347 \begin_inset LatexCommand ref
11353 \begin_inset Formula \begin{equation}
11354 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11361 \begin_layout Standard
11362 To enable calculations in LaTeX, the LaTeX-package
11366 must be loaded with the document preamble line
11367 \begin_inset LatexCommand index
11368 name "LaTeX-packages ! calc"
11375 \begin_layout Standard
11383 \begin_layout Standard
11384 LyX does not allow to calculate lengths in the width-field of the table
11386 Therefore you have to format the column by inserting a LaTeX-argument in
11388 Here is an overview about the arguments:
11391 \begin_layout Itemize
11396 creates cell with a fixed width, its text is vertically top-aligned
11399 \begin_layout Itemize
11404 creates cell with a fixed width, its text is vertically centered
11407 \begin_layout Itemize
11412 creates cell with a fixed width, its text is vertically bottom-aligned
11415 \begin_layout Standard
11416 By entering a LaTeX-argument, all cell settings set in the table dialog
11420 \begin_layout Standard
11421 \begin_inset Note Greyedout
11424 \begin_layout Standard
11429 Due to a bug, LyX shows the overwritten settings anyway.
11437 \begin_layout Standard
11438 As the text should be horizontally centered, the command
11445 You can now enter the following LaTeX-argument for the first spanned column:
11448 \begin_layout Standard
11453 centering}m{1.25cm-6.2pt}
11456 \begin_layout Standard
11461 means, that the commands inside the braces are applied before the cell
11465 \begin_layout Standard
11466 Although we have chosen centered alignment for the text of the multicolumn
11467 cell, it is still left aligned.
11468 This is because LyX only applies the alignment to single columns.
11469 So we have to use for the multicolumn the LaTeX-argument
11472 \begin_layout Standard
11480 \begin_layout Subsection
11482 \begin_inset LatexCommand index
11488 \begin_inset LatexCommand index
11489 name "Table ! Multirows"
11494 \begin_inset LatexCommand index
11495 name "LaTeX-packages ! multirow"
11502 \begin_layout Standard
11503 In contrary to multicolumns multirows are not yet supported by LyX so a
11504 bit of TeX-Code needs to be used.
11505 To use multirows load the LaTeX-package
11509 in your document preamble with the command
11512 \begin_layout Standard
11517 usepackage{multirow}
11520 \begin_layout Standard
11521 Multirows are created with the command
11524 \begin_layout Standard
11529 multirow{number of rows}{cell width}{cell entry}
11532 \begin_layout Standard
11533 To create the following table:
11536 \begin_layout Standard
11541 \begin_layout Standard
11555 \begin_inset Tabular
11556 <lyxtabular version="3" rows="3" columns="3">
11558 <column alignment="center" valignment="top" leftline="true" width="0">
11559 <column alignment="center" valignment="top" leftline="true" width="0">
11560 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11561 <row topline="true">
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11565 \begin_layout Standard
11571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11574 \begin_layout Standard
11580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11583 \begin_layout Standard
11590 <row topline="true">
11591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11594 \begin_layout Standard
11598 \begin_layout Standard
11602 multirow{2}{2.5cm}{
11611 \begin_layout Standard
11623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11626 \begin_layout Standard
11632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11635 \begin_layout Standard
11642 <row topline="true" bottomline="true">
11643 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11646 \begin_layout Standard
11652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11655 \begin_layout Standard
11661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11664 \begin_layout Standard
11679 \begin_layout Standard
11695 \begin_layout Standard
11696 create a 3×3 table.
11697 To get rid of the line above the last cell in the first column, the cell
11698 is marked as multicolumn and the upper border is unset.
11699 The multirow is now created in the second row of the first column by inserting
11703 \begin_layout Standard
11708 multirow{2}{2.5cm}{
11711 \begin_layout Standard
11713 According to the command parameters the multirow spans now two rows and
11714 has a width of 2.5\InsetSpace \thinspace{}
11716 The content of the multirow cell follows outside the TeX-Code box and the
11717 command is finished with a right brace
11721 in another TeX-Code-box behind the text.
11724 \begin_layout Standard
11731 left-aligns its content by default.
11732 To override the default, renew the command
11741 \begin_layout Standard
11753 \begin_layout Standard
11754 in TeX-Code in the document preamble.
11755 Then all entries of multirow cells in the document are centered.
11756 If centering is only needed for several tables, you can renew the command
11757 in an TeX-Code box just before the table instead of the preamble.
11758 If the text should be right-aligned, replace
11771 To return to left-alignment
11780 \begin_layout Section
11782 \begin_inset LatexCommand label
11783 name "sec:Formal-Tables"
11788 \begin_inset LatexCommand index
11789 name "Table ! Formal"
11796 \begin_layout Standard
11797 Tables are often typeset in books similar to Table\InsetSpace ~
11799 \begin_inset LatexCommand ref
11800 reference "tab:Example-booktabs-table"
11805 This kind of tables is called
11806 \begin_inset Quotes eld
11814 \begin_inset Quotes erd
11818 To make a table a formal table use the option
11826 tab of the table dialog.
11829 \begin_layout Standard
11830 \begin_inset Float table
11836 \begin_layout Standard
11837 \begin_inset Caption
11839 \begin_layout Standard
11840 \begin_inset LatexCommand label
11841 name "tab:Example-booktabs-table"
11845 Example booktabs-table
11853 \begin_layout Standard
11855 \begin_inset Tabular
11856 <lyxtabular version="3" rows="8" columns="4">
11857 <features booktabs="true">
11858 <column alignment="center" valignment="top" rightline="true" width="0">
11859 <column alignment="center" valignment="top" width="0">
11860 <column alignment="center" valignment="top" width="0">
11861 <column alignment="center" valignment="top" width="0">
11862 <row topline="true">
11863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11866 \begin_layout Standard
11872 <cell alignment="center" valignment="top" topline="true" usebox="none">
11875 \begin_layout Standard
11877 \begin_inset Formula $\,$
11885 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11888 \begin_layout Standard
11890 \begin_inset Formula $\,$
11898 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11901 \begin_layout Standard
11909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11912 \begin_layout Standard
11916 \begin_layout Standard
11929 \begin_layout Standard
11938 Detector thickness [µm]
11943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11946 \begin_layout Standard
11952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11955 \begin_layout Standard
11961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11964 \begin_layout Standard
11971 <row topline="true">
11972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11975 \begin_layout Standard
11981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11984 \begin_layout Standard
11990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11993 \begin_layout Standard
11999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12002 \begin_layout Standard
12009 <row topspace="default">
12010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12013 \begin_layout Standard
12014 Spatial resolution [µm]
12019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12022 \begin_layout Standard
12028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12031 \begin_layout Standard
12037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12040 \begin_layout Standard
12047 <row topspace="default">
12048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12051 \begin_layout Standard
12053 \begin_inset Formula $f_{\mathrm{max}}$
12061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12064 \begin_layout Standard
12070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12073 \begin_layout Standard
12079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12082 \begin_layout Standard
12089 <row topspace="default">
12090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12093 \begin_layout Standard
12097 \begin_layout Standard
12101 cmidrule(l{10pt}){1-1}
12106 LSF-spatial resolution
12111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12114 \begin_layout Standard
12120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12123 \begin_layout Standard
12129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12132 \begin_layout Standard
12140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12143 \begin_layout Standard
12149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12152 \begin_layout Standard
12158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12161 \begin_layout Standard
12167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12170 \begin_layout Standard
12177 <row bottomline="true">
12178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12181 \begin_layout Standard
12187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12190 \begin_layout Standard
12196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12199 \begin_layout Standard
12205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12208 \begin_layout Standard
12227 \begin_layout Standard
12228 Spaces to table rows can be added using the
12232 tab of the table dialog as described in section\InsetSpace ~
12234 \begin_inset LatexCommand ref
12235 reference "sub:Row-Spacing"
12242 \begin_layout Standard
12243 In contrary to normal tables, formal tables have no vertical table lines.
12244 The horizontal table lines can be set like for normal tables but they appear
12245 with different width in the output:
12247 The first and the last table line have
12248 a default width of 0.08\InsetSpace \thinspace{}
12249 em while the other lines have a default width of
12250 0.05\InsetSpace \thinspace{}
12254 \begin_layout Standard
12255 The default widths can be changed with the following preamble lines
12258 \begin_layout Standard
12278 \begin_layout Standard
12279 This example is for the first line, the so called
12284 If you want to change the width for the last line, replace
12293 To change the width for the other lines replace
12302 You can use all units listed in appendix\InsetSpace ~
12304 \begin_inset LatexCommand ref
12305 reference "cha:Units-available-in"
12312 \begin_layout Standard
12313 Lines that don't span over all table columns can be created by setting a
12314 table line for multicolumn cells.
12315 LyX will then internally use the command
12321 to create this line.
12325 \begin_layout Standard
12330 cmidrule[width](trim){startcol-endcol}
12333 \begin_layout Standard
12340 are are currently not supported by LyX so you have to use TeX-Code to be
12348 s can manually be created by inserting the command as TeX-Code as first
12349 cell entry of the first cell of a row.
12350 The line is then drawn in the output above the current row.
12353 \begin_layout Standard
12354 The default for the width is 0.03\InsetSpace \thinspace{}
12356 Startcol is the number of the column where the line starts and endcol the
12357 column number where the line ends.
12358 The endcol always needs to be specified, also when the line should span
12360 The optional parameter trim could be either
12368 where the trimwidth is also optional.
12369 Using for example the parameter
12373 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
12375 If you don't specify the trimwidth the lines are trimmed by the default
12376 of 0.5\InsetSpace \thinspace{}
12380 \begin_layout Standard
12381 \begin_inset VSpace bigskip
12386 \begin_inset LatexCommand ref
12387 reference "tab:Example-booktabs-table"
12391 was created using the commands
12394 \begin_layout Standard
12404 \begin_layout Standard
12405 at the beginning of the in the second row and
12408 \begin_layout Standard
12413 cmidrule(l{10pt}){1-1}
12416 \begin_layout Standard
12420 \begin_layout Standard
12421 \begin_inset VSpace bigskip
12427 \begin_layout Standard
12428 You might want to have overlapping
12434 s like in Table\InsetSpace ~
12436 \begin_inset LatexCommand ref
12437 reference "tab:Special-booktabs-table"
12442 This can be achieved with the TeX-Code command
12445 \begin_layout Standard
12453 \begin_layout Standard
12454 The command that was used for the second row of Table\InsetSpace ~
12456 \begin_inset LatexCommand ref
12457 reference "tab:Special-booktabs-table"
12464 \begin_layout Standard
12478 \begin_layout Standard
12479 The command for the sixth row is
12482 \begin_layout Standard
12494 \begin_layout Standard
12495 \begin_inset VSpace bigskip
12501 \begin_layout Standard
12502 If you are anyway not satisfied with the border line spacing, you can use
12503 the following command to produce lines that span over all table columns
12508 \begin_layout Standard
12513 specialrule{width}{space above}{space below}
12516 \begin_layout Standard
12517 For more informations about these specialties, we refer to the manual of
12523 \begin_inset LatexCommand cite
12529 \begin_inset LatexCommand index
12530 name "LaTeX-packages ! booktabs"
12537 \begin_layout Standard
12538 \begin_inset Float table
12544 \begin_layout Standard
12545 \begin_inset Caption
12547 \begin_layout Standard
12548 \begin_inset LatexCommand label
12549 name "tab:Special-booktabs-table"
12553 Special booktabs-table
12561 \begin_layout Standard
12563 \begin_inset Tabular
12564 <lyxtabular version="3" rows="8" columns="4">
12565 <features booktabs="true">
12566 <column alignment="center" valignment="top" width="0">
12567 <column alignment="center" valignment="top" width="0">
12568 <column alignment="center" valignment="top" width="0">
12569 <column alignment="center" valignment="top" width="0">
12570 <row topline="true">
12571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12574 \begin_layout Standard
12580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12583 \begin_layout Standard
12584 Medipix\InsetSpace \thinspace{}
12590 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12593 \begin_layout Standard
12594 Medipix\InsetSpace \thinspace{}
12600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12603 \begin_layout Standard
12611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12614 \begin_layout Standard
12618 \begin_layout Standard
12631 \begin_layout Standard
12644 \begin_layout Standard
12657 \begin_layout Standard
12666 Detector thickness [µm]
12671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12674 \begin_layout Standard
12680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12683 \begin_layout Standard
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12692 \begin_layout Standard
12699 <row topline="true">
12700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12703 \begin_layout Standard
12709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12712 \begin_layout Standard
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12721 \begin_layout Standard
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12730 \begin_layout Standard
12737 <row topspace="default">
12738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12741 \begin_layout Standard
12742 Spatial resolution [µm]
12747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12750 \begin_layout Standard
12756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12759 \begin_layout Standard
12765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12768 \begin_layout Standard
12775 <row topspace="default">
12776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12779 \begin_layout Standard
12781 \begin_inset Formula $f_{\mathrm{max}}$
12789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12792 \begin_layout Standard
12798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12801 \begin_layout Standard
12807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12810 \begin_layout Standard
12817 <row topline="true">
12818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12821 \begin_layout Standard
12825 \begin_layout Standard
12838 \begin_layout Standard
12847 LSF-spatial resolution
12852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12855 \begin_layout Standard
12861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12864 \begin_layout Standard
12870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12873 \begin_layout Standard
12881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12884 \begin_layout Standard
12890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12893 \begin_layout Standard
12899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12902 \begin_layout Standard
12908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12911 \begin_layout Standard
12918 <row bottomline="true">
12919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12922 \begin_layout Standard
12928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12931 \begin_layout Standard
12937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12940 \begin_layout Standard
12946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12949 \begin_layout Standard
12968 \begin_layout Section
12969 Vertical Table Alignment
12970 \begin_inset LatexCommand index
12971 name "Table ! Alignment"
12978 \begin_layout Standard
12979 To align tables vertically in a text line the table must be inside a box.
12980 The box can then be vertically aligned as described in section\InsetSpace ~
12982 \begin_inset LatexCommand ref
12983 reference "sec:Box-Dialog"
12990 \begin_layout Standard
12991 In the following example the tables are inside a minipage
12995 \begin_layout Standard
12996 Minipages are described in section\InsetSpace ~
12998 \begin_inset LatexCommand ref
12999 reference "sec:Minipages"
13008 box that has a width of 15\InsetSpace \thinspace{}
13012 \begin_layout Itemize
13014 \begin_inset Box Frameless
13023 height_special "totalheight"
13026 \begin_layout Standard
13027 \begin_inset Tabular
13028 <lyxtabular version="3" rows="3" columns="3">
13030 <column alignment="center" valignment="top" leftline="true" width="0">
13031 <column alignment="center" valignment="top" leftline="true" width="0">
13032 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13033 <row topline="true">
13034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13037 \begin_layout Standard
13043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13046 \begin_layout Standard
13052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13055 \begin_layout Standard
13062 <row topline="true">
13063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13066 \begin_layout Standard
13072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13075 \begin_layout Standard
13081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13084 \begin_layout Standard
13091 <row topline="true" bottomline="true">
13092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13095 \begin_layout Standard
13101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13104 \begin_layout Standard
13110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13113 \begin_layout Standard
13133 \begin_layout Standard
13145 \begin_inset Box Frameless
13154 height_special "totalheight"
13157 \begin_layout Standard
13158 \begin_inset Tabular
13159 <lyxtabular version="3" rows="3" columns="3">
13161 <column alignment="center" valignment="top" leftline="true" width="0">
13162 <column alignment="center" valignment="top" leftline="true" width="0">
13163 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13164 <row topline="true">
13165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13168 \begin_layout Standard
13174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13177 \begin_layout Standard
13183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13186 \begin_layout Standard
13193 <row topline="true">
13194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13197 \begin_layout Standard
13203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13206 \begin_layout Standard
13212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13215 \begin_layout Standard
13222 <row topline="true" bottomline="true">
13223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13226 \begin_layout Standard
13232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13235 \begin_layout Standard
13241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13244 \begin_layout Standard
13264 \begin_layout Standard
13274 \begin_layout Itemize
13276 \begin_inset Box Frameless
13285 height_special "totalheight"
13288 \begin_layout Standard
13289 \begin_inset Tabular
13290 <lyxtabular version="3" rows="3" columns="3">
13292 <column alignment="center" valignment="top" leftline="true" width="0">
13293 <column alignment="center" valignment="top" leftline="true" width="0">
13294 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13295 <row topline="true">
13296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13299 \begin_layout Standard
13305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13308 \begin_layout Standard
13314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13317 \begin_layout Standard
13324 <row topline="true">
13325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13328 \begin_layout Standard
13334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13337 \begin_layout Standard
13343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13346 \begin_layout Standard
13353 <row topline="true" bottomline="true">
13354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13357 \begin_layout Standard
13363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13366 \begin_layout Standard
13372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13375 \begin_layout Standard
13394 \begin_layout Itemize
13396 \begin_inset Box Frameless
13405 height_special "totalheight"
13408 \begin_layout Standard
13409 \begin_inset Tabular
13410 <lyxtabular version="3" rows="3" columns="3">
13412 <column alignment="center" valignment="top" leftline="true" width="0">
13413 <column alignment="center" valignment="top" leftline="true" width="0">
13414 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13415 <row topline="true">
13416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13419 \begin_layout Standard
13425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13428 \begin_layout Standard
13434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13437 \begin_layout Standard
13444 <row topline="true">
13445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13448 \begin_layout Standard
13454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13457 \begin_layout Standard
13463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13466 \begin_layout Standard
13473 <row topline="true" bottomline="true">
13474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13477 \begin_layout Standard
13483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13486 \begin_layout Standard
13492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13495 \begin_layout Standard
13515 \begin_layout Standard
13527 \begin_inset Box Frameless
13536 height_special "totalheight"
13539 \begin_layout Standard
13540 \begin_inset Tabular
13541 <lyxtabular version="3" rows="3" columns="3">
13543 <column alignment="center" valignment="top" leftline="true" width="0">
13544 <column alignment="center" valignment="top" leftline="true" width="0">
13545 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13546 <row topline="true">
13547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13550 \begin_layout Standard
13556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13559 \begin_layout Standard
13565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13568 \begin_layout Standard
13575 <row topline="true">
13576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13579 \begin_layout Standard
13585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13588 \begin_layout Standard
13594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13597 \begin_layout Standard
13604 <row topline="true" bottomline="true">
13605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13608 \begin_layout Standard
13614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13617 \begin_layout Standard
13623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13626 \begin_layout Standard
13646 \begin_layout Standard
13656 \begin_layout Standard
13657 As you can see, the content of the first and last table row is not correctly
13658 aligned with the text line where the table is in.
13659 To get this alignment, the minipage box must be set into a raisebox
13663 \begin_layout Standard
13664 Raiseboxes are described in section\InsetSpace ~
13666 \begin_inset LatexCommand ref
13667 reference "sub:Vertical-Alignment"
13677 In the example above the second table in the first item is aligned using
13678 the TeX-Code-command
13681 \begin_layout Standard
13691 \begin_layout Standard
13693 Behind the box the closing brace
13697 is inserted as TeX-Code.
13698 For the second table in the last item the command
13701 \begin_layout Standard
13711 \begin_layout Standard
13715 \begin_layout Standard
13716 \begin_inset Note Greyedout
13719 \begin_layout Standard
13724 The alignment of the table row content to the surrounding text line is
13726 The needed factor of the
13732 command for this alignment depends on the document font, the font size,
13733 and the table line thickness.
13741 \begin_layout Section
13743 \begin_inset LatexCommand label
13744 name "sec:Colored-Tables"
13749 \begin_inset LatexCommand index
13750 name "Table ! Color"
13757 \begin_layout Subsection
13759 \begin_inset LatexCommand index
13760 name "Table Color ! for Cells"
13765 \begin_inset LatexCommand index
13766 name "Color ! for Table Cells"
13773 \begin_layout Standard
13774 \begin_inset Float table
13780 \begin_layout Standard
13781 \begin_inset Caption
13783 \begin_layout Standard
13784 \begin_inset LatexCommand label
13785 name "tab:Table-colored-without"
13789 Table colored without using the package
13794 \begin_inset OptArg
13797 \begin_layout Standard
13798 Table without colortbl
13811 \begin_layout Standard
13813 \begin_inset Tabular
13814 <lyxtabular version="3" rows="3" columns="3">
13816 <column alignment="center" valignment="top" leftline="true" width="0">
13817 <column alignment="center" valignment="top" leftline="true" width="0">
13818 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13819 <row topline="true">
13820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13823 \begin_layout Standard
13831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13834 \begin_layout Standard
13842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13845 \begin_layout Standard
13854 <row topline="true">
13855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13858 \begin_layout Standard
13866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13869 \begin_layout Standard
13877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13880 \begin_layout Standard
13889 <row topline="true" bottomline="true">
13890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13893 \begin_layout Standard
13901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13904 \begin_layout Standard
13912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13915 \begin_layout Standard
13936 \begin_layout Standard
13937 If you only need colored text, mark the cells and choose a color in the
13940 Edit\SpecialChar \menuseparator
13945 This was used to create Table\InsetSpace ~
13947 \begin_inset LatexCommand ref
13948 reference "tab:Table-colored-without"
13953 In any other case you have to use the LaTeX-package
13958 \begin_inset LatexCommand index
13959 name "LaTeX-packages ! colortbl"
13966 \begin_layout Standard
13970 \begin_layout Standard
13980 \begin_inset Note Note
13983 \begin_layout Standard
13984 The following section part will only be displayed when the LaTeX-package
13997 \begin_layout Standard
13998 To create colored tables,
14002 must be loaded in the preamble with the line
14005 \begin_layout Standard
14010 usepackage{colortbl}
14013 \begin_layout Standard
14014 The color of a column is adjusted with the command
14017 \begin_layout Standard
14022 columncolor{name of color}
14025 \begin_layout Standard
14031 More about the command
14035 is described in section\InsetSpace ~
14037 \begin_inset LatexCommand ref
14038 reference "sub:Multicolumn-Calculations"
14045 \begin_layout Standard
14046 The following color names are predefined:
14049 \begin_layout Standard
14083 \begin_layout Standard
14084 \begin_inset VSpace medskip
14090 \begin_layout Standard
14091 You can also define your own color with the command
14094 \begin_layout Standard
14099 def\SpecialChar \textcompwordmark{}
14100 inecolor{color name}{color model}{color values}
14103 \begin_layout Standard
14104 The color model can be
14107 \begin_layout Labeling
14108 \labelwidthstring 00.00.0000
14109 cmyk: cyan, magenta, yellow, black
14112 \begin_layout Labeling
14113 \labelwidthstring 00.00.0000
14114 rgb: red, green blue
14117 \begin_layout Labeling
14118 \labelwidthstring 00.00.0000
14122 \begin_layout Standard
14123 and the color values are comma separated numbers between 0 and 1 describing
14124 the factor for the corresponding color of the color model.
14127 \begin_layout Standard
14128 You can e.\InsetSpace \thinspace{}
14134 " in the preamble with
14137 \begin_layout Standard
14142 def\SpecialChar \textcompwordmark{}
14143 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14146 \begin_layout Standard
14154 \begin_layout Standard
14159 def\SpecialChar \textcompwordmark{}
14160 inecolor{lightgray}{gray}{0.8}
14163 \begin_layout Standard
14164 \begin_inset VSpace medskip
14170 \begin_layout Standard
14171 Lines are colored with the command
14174 \begin_layout Standard
14179 rowcolor{name of color}
14182 \begin_layout Standard
14183 and cells are colored with the command
14186 \begin_layout Standard
14191 cellcolor{name of color}
14194 \begin_layout Standard
14195 Both commands are inserted at the beginning of a cell as TeX-Code.
14198 \begin_layout Standard
14199 To color characters in the table, mark the cells and use the LyX menu
14201 Edit\SpecialChar \menuseparator
14206 If a cell contains TeX-Code mark only the characters, otherwise the colored
14207 TeX-Code will cause LaTeX-errors.
14210 \begin_layout Standard
14211 \begin_inset Note Greyedout
14214 \begin_layout Standard
14219 Not all DVI-viewers are able to display self-defined colors.
14227 \begin_layout Standard
14228 \begin_inset VSpace bigskip
14234 \begin_layout Standard
14235 To create Table\InsetSpace ~
14237 \begin_inset LatexCommand ref
14238 reference "tab:Table-colored-using"
14242 do the following: The color of the first column should be
14250 \begin_layout Standard
14255 columncolor{darkgreen}
14260 \begin_layout Standard
14261 as LaTeX-argument for this column.
14262 The first row should be blue, therefore the TeX-Code command
14265 \begin_layout Standard
14273 \begin_layout Standard
14274 is inserted to the first cell of this row.
14275 Note that this overwrites the column color for the first cell.
14276 The last cell of the last row is colored magenta by inserting the TeX-Code
14280 \begin_layout Standard
14288 \begin_layout Standard
14289 The characters could now be colored using the menu
14291 Edit\SpecialChar \menuseparator
14298 \begin_layout Standard
14299 \begin_inset Float table
14305 \begin_layout Standard
14306 \begin_inset Caption
14308 \begin_layout Standard
14309 \begin_inset LatexCommand label
14310 name "tab:Table-colored-using"
14314 Table colored using the package
14319 \begin_inset OptArg
14322 \begin_layout Standard
14323 Table with colortbl
14336 \begin_layout Standard
14338 \begin_inset Tabular
14339 <lyxtabular version="3" rows="3" columns="3">
14341 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
14342 <column alignment="center" valignment="top" width="0">
14343 <column alignment="center" valignment="top" width="0">
14345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14348 \begin_layout Standard
14352 \begin_layout Standard
14368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14371 \begin_layout Standard
14379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14382 \begin_layout Standard
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14395 \begin_layout Standard
14403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14406 \begin_layout Standard
14414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14417 \begin_layout Standard
14427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14430 \begin_layout Standard
14438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14441 \begin_layout Standard
14449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14452 \begin_layout Standard
14456 \begin_layout Standard
14485 \begin_layout Standard
14489 \begin_layout Standard
14499 \begin_inset Note Note
14502 \begin_layout Standard
14503 The following will be displayed when the LaTeX-package
14515 \begin_layout Standard
14516 You need to install the package
14520 to see the content of this section in the output.
14523 \begin_layout Standard
14527 \begin_layout Standard
14539 \begin_layout Subsection
14541 \begin_inset LatexCommand index
14542 name "Table Color ! for Lines"
14547 \begin_inset LatexCommand index
14548 name "Color ! for Table Lines"
14555 \begin_layout Standard
14556 As described in section\InsetSpace ~
14558 \begin_inset LatexCommand ref
14559 reference "sub:Line-Thickness"
14563 , the line thickness for all lines in a table can be adjusted with the length
14571 It is set to 1.5\InsetSpace \thinspace{}
14572 pt for all tables of this section.
14576 \begin_layout Standard
14582 arrayrulewidth}{1.5pt}
14590 \begin_layout Standard
14591 To color vertical lines for example with green, create the following column
14592 format in the document preamble, according to the description in section\InsetSpace ~
14594 \begin_inset LatexCommand ref
14595 reference "sub:Customized-Format"
14602 \begin_layout Standard
14607 newcolumntype{W}{!{
14614 \begin_layout Standard
14615 For Table\InsetSpace ~
14617 \begin_inset LatexCommand ref
14618 reference "tab:Table-with-vertical-colored"
14626 was used for the last column and
14630 for the other columns.
14633 \begin_layout Standard
14634 If you want to have several colors, define more column formats.
14637 \begin_layout Standard
14638 \begin_inset Float table
14643 \begin_layout Standard
14644 \begin_inset Caption
14646 \begin_layout Standard
14647 \begin_inset LatexCommand label
14648 name "tab:Table-with-vertical-colored"
14652 Table with colored vertical lines
14660 \begin_layout Standard
14662 \begin_inset Tabular
14663 <lyxtabular version="3" rows="3" columns="3">
14665 <column alignment="center" valignment="top" width="0" special="Wc">
14666 <column alignment="center" valignment="top" width="0" special="Wc">
14667 <column alignment="center" valignment="top" width="0" special="WcW">
14668 <row topline="true">
14669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14672 \begin_layout Standard
14678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14681 \begin_layout Standard
14687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14690 \begin_layout Standard
14697 <row topline="true">
14698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14701 \begin_layout Standard
14707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14710 \begin_layout Standard
14716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14719 \begin_layout Standard
14726 <row topline="true" bottomline="true">
14727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14730 \begin_layout Standard
14736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14739 \begin_layout Standard
14745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14748 \begin_layout Standard
14767 \begin_layout Standard
14768 \begin_inset VSpace bigskip
14771 To color horizontal lines for example with red, like in Table\InsetSpace ~
14773 \begin_inset LatexCommand ref
14774 reference "tab:Table-with-horizontal-colored"
14778 , insert these commands in TeX-Code before the table or table float:
14781 \begin_layout Standard
14802 \begin_layout Standard
14813 arrayrulecolor{red}
14817 arrayrulecolor{black}}
14820 \begin_layout Standard
14824 \begin_layout Standard
14835 \begin_layout Standard
14844 \begin_layout Standard
14848 arrayrulecolor{red}
14852 arrayrulecolor{black}}
14858 \begin_inset Float table
14863 \begin_layout Standard
14864 \begin_inset Caption
14866 \begin_layout Standard
14867 \begin_inset LatexCommand label
14868 name "tab:Table-with-horizontal-colored"
14872 Table with colored horizontal lines
14880 \begin_layout Standard
14882 \begin_inset Tabular
14883 <lyxtabular version="3" rows="3" columns="3">
14885 <column alignment="center" valignment="top" leftline="true" width="0">
14886 <column alignment="center" valignment="top" leftline="true" width="0">
14887 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14888 <row topline="true">
14889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14892 \begin_layout Standard
14898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14901 \begin_layout Standard
14907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14910 \begin_layout Standard
14917 <row topline="true">
14918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14921 \begin_layout Standard
14927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14930 \begin_layout Standard
14936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14939 \begin_layout Standard
14946 <row topline="true" bottomline="true">
14947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14950 \begin_layout Standard
14956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14959 \begin_layout Standard
14965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14968 \begin_layout Standard
14987 \begin_layout Standard
14991 \begin_layout Standard
15003 \begin_layout Standard
15004 To return to the default line color black, insert this command in TeX-Code
15005 behind the table or table float:
15008 \begin_layout Standard
15020 \begin_layout Standard
15023 \begin_inset LatexCommand ref
15024 reference "tab:Table-with-colored"
15028 is an example with colored vertical and horizontal lines.
15031 \begin_layout Standard
15032 \begin_inset Float table
15038 \begin_layout Standard
15039 \begin_inset Caption
15041 \begin_layout Standard
15042 \begin_inset LatexCommand label
15043 name "tab:Table-with-colored"
15047 Table with colored lines
15055 \begin_layout Standard
15057 \begin_inset Tabular
15058 <lyxtabular version="3" rows="3" columns="3">
15060 <column alignment="center" valignment="top" width="0" special="Wc">
15061 <column alignment="center" valignment="top" width="0" special="Wc">
15062 <column alignment="center" valignment="top" width="0" special="WcW">
15063 <row topline="true">
15064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15067 \begin_layout Standard
15073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15076 \begin_layout Standard
15082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15085 \begin_layout Standard
15092 <row topline="true">
15093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15096 \begin_layout Standard
15102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15105 \begin_layout Standard
15111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15114 \begin_layout Standard
15121 <row topline="true" bottomline="true" topspace="default">
15122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15125 \begin_layout Standard
15131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15134 \begin_layout Standard
15140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15143 \begin_layout Standard
15162 \begin_layout Standard
15166 \begin_layout Standard
15182 \begin_layout Standard
15186 \begin_layout Standard
15192 arrayrulewidth}{0.4pt}
15200 \begin_layout Section
15201 Table Customization
15202 \begin_inset LatexCommand index
15203 name "Table Customization"
15208 \begin_inset LatexCommand index
15209 name "Table ! Customization"
15216 \begin_layout Subsection
15218 \begin_inset LatexCommand label
15219 name "sub:Row-Spacing"
15224 \begin_inset LatexCommand index
15225 name "Table Customization ! Row Spacing"
15232 \begin_layout Standard
15233 You can add vertical space to table rows in the
15237 tab of the table dialog.
15238 You find there three possibilities:
15241 \begin_layout Description
15244 row will add space above the characters of the table row.
15245 If the table is a formal table
15249 \begin_layout Standard
15250 Formal tables are explained in section\InsetSpace ~
15252 \begin_inset LatexCommand ref
15253 reference "sec:Formal-Tables"
15262 LyX will insert as default 0.5\InsetSpace \thinspace{}
15264 For normal tables the inserted space will unfortunately destroy the vertical
15265 table lines as in the following table:
15266 \begin_inset VSpace medskip
15275 \begin_layout Standard
15287 \begin_inset Tabular
15288 <lyxtabular version="3" rows="3" columns="1">
15290 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15291 <row topline="true">
15292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15295 \begin_layout Standard
15302 <row topline="true" topspace="3mm">
15303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15306 \begin_layout Standard
15307 3\InsetSpace \thinspace{}
15308 mm space top of row
15314 <row topline="true" bottomline="true">
15315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15318 \begin_layout Standard
15335 \begin_layout Standard
15345 \begin_inset VSpace medskip
15350 So inserting space to the top of row for normal tables is only useful when
15351 you don't have vertical lines.
15354 \begin_layout Description
15355 Bottom\InsetSpace ~
15357 row will add space below the characters of the table row.
15358 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15360 normal tables the default size is 2\InsetSpace \thinspace{}
15364 \begin_layout Description
15365 Between\InsetSpace ~
15366 rows adds space between the current and the following row.
15367 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15369 For normal tables the inserted space will unfortunately destroy the vertical
15370 table lines as in the following table:
15371 \begin_inset VSpace medskip
15380 \begin_layout Standard
15392 \begin_inset Tabular
15393 <lyxtabular version="3" rows="3" columns="1">
15395 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15396 <row topline="true">
15397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15400 \begin_layout Standard
15407 <row topline="true" interlinespace="3mm">
15408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15411 \begin_layout Standard
15412 \begin_inset Formula $\downarrow$
15415 3\InsetSpace \thinspace{}
15416 mm space between row
15417 \begin_inset Formula $\downarrow$
15426 <row topline="true" bottomline="true">
15427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15430 \begin_layout Standard
15431 \begin_inset Formula $\uparrow$
15434 3\InsetSpace \thinspace{}
15435 mm space between row
15436 \begin_inset Formula $\uparrow$
15455 \begin_layout Standard
15465 \begin_inset VSpace medskip
15470 So inserting space between rows for normal tables is only useful when you
15471 don't have vertical lines.
15474 \begin_layout Standard
15475 \begin_inset VSpace bigskip
15478 When you want to add extra height to all cells of all tables, you can do
15479 this with the following preamble lines:
15482 \begin_layout Standard
15487 @ifundef\SpecialChar \textcompwordmark{}
15488 ined{extrarowheight}
15494 \begin_layout Standard
15505 usepackage{array}}{}
15511 extrarowheight}{height}
15514 \begin_layout Standard
15515 But this has the disadvantage that the cell texts are no longer exactly
15516 vertically centered.
15521 will be loaded automatically by LyX when you use self defined table formats.
15522 To avoid that it is loaded twice the command
15526 @ifundef\SpecialChar \textcompwordmark{}
15529 is used in the above command.)
15532 \begin_layout Subsection
15533 Special Cell Alignment
15534 \begin_inset LatexCommand index
15535 name "Table Customization ! Special Cell Alignment"
15542 \begin_layout Standard
15543 Sometimes it looks better when the cell entries of a column are aligned
15544 with a special character, e.\InsetSpace \thinspace{}
15546 with the decimal separator as in Table\InsetSpace ~
15548 \begin_inset LatexCommand ref
15549 reference "tab:Table-cells-of"
15556 \begin_layout Standard
15557 \begin_inset Float table
15563 \begin_layout Standard
15564 \begin_inset Caption
15566 \begin_layout Standard
15567 \begin_inset LatexCommand label
15568 name "tab:Table-cells-of"
15572 Table cells of a column aligned with the decimal separator.
15580 \begin_layout Standard
15582 \begin_inset Tabular
15583 <lyxtabular version="3" rows="4" columns="2">
15585 <column alignment="right" valignment="top" width="0">
15586 <column alignment="left" valignment="top" width="0" special="@{}l">
15587 <row bottomline="true">
15588 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15591 \begin_layout Standard
15597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15600 \begin_layout Standard
15608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15611 \begin_layout Standard
15617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15620 \begin_layout Standard
15628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15631 \begin_layout Standard
15637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15640 \begin_layout Standard
15648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15651 \begin_layout Standard
15657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15660 \begin_layout Standard
15679 \begin_layout Standard
15680 This table was created with a 4×2 table.
15681 The heading is a centered multicolumn.
15682 The first column is right-aligned and contains the digits before the decimal
15683 point and the decimal point.
15684 The second column is left aligned and contains the digits after the decimal
15686 To omit the space that is normally between two table columns, use the following
15687 LaTeX-argument for the second column:
15690 \begin_layout Standard
15696 \begin_layout Standard
15699 \begin_inset LatexCommand ref
15700 reference "tab:Several-table-cell"
15704 shows some example alignments.
15705 For the alignment with the relation sign, you must add the second smallest
15706 math-space at the beginning of the last column to get the correct space
15707 surrounding the relation sign.
15710 \begin_layout Standard
15711 \begin_inset Float table
15716 \begin_layout Standard
15717 \begin_inset Caption
15719 \begin_layout Standard
15720 \begin_inset LatexCommand label
15721 name "tab:Several-table-cell"
15725 Several table cell alignments.
15733 \begin_layout Standard
15735 \begin_inset Tabular
15736 <lyxtabular version="3" rows="4" columns="6">
15738 <column alignment="right" valignment="top" width="0">
15739 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15740 <column alignment="right" valignment="top" width="0">
15741 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15742 <column alignment="right" valignment="top" width="0">
15743 <column alignment="left" valignment="top" width="0" special="@{}l">
15744 <row bottomline="true">
15745 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15748 \begin_layout Standard
15754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15757 \begin_layout Standard
15763 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15766 \begin_layout Standard
15772 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15775 \begin_layout Standard
15781 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15784 \begin_layout Standard
15790 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15793 \begin_layout Standard
15801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15804 \begin_layout Standard
15810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15813 \begin_layout Standard
15814 24\InsetSpace \thinspace{}
15820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15823 \begin_layout Standard
15824 \begin_inset Formula $10\cdot$
15832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15835 \begin_layout Standard
15836 \begin_inset Formula $10^{\mbox{-}17}$
15844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15847 \begin_layout Standard
15848 \begin_inset Formula $\Gamma(t)\propto$
15856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15859 \begin_layout Standard
15860 \begin_inset Formula $\:\Upsilon(t)$
15870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15873 \begin_layout Standard
15879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15882 \begin_layout Standard
15883 768\InsetSpace \thinspace{}
15889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15892 \begin_layout Standard
15893 \begin_inset Formula $5.78\cdot$
15901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15904 \begin_layout Standard
15905 \begin_inset Formula $10^{7}$
15913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15916 \begin_layout Standard
15917 \begin_inset Formula $A\ne$
15925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15928 \begin_layout Standard
15929 \begin_inset Formula $\: B_{\mathrm{red}}$
15939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15942 \begin_layout Standard
15948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15951 \begin_layout Standard
15952 6\InsetSpace \thinspace{}
15958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15961 \begin_layout Standard
15963 \begin_inset Formula $33.5\cdot$
15971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15974 \begin_layout Standard
15975 \begin_inset Formula $10^{4}$
15983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15986 \begin_layout Standard
15987 \begin_inset Formula $\sin(\alpha)\ge$
15995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15998 \begin_layout Standard
15999 \begin_inset Formula $\:\sin(\beta)$
16020 \begin_layout Standard
16021 \begin_inset VSpace bigskip
16024 There is also the LaTeX-package
16029 \begin_inset LatexCommand index
16030 name "LaTeX-packages ! dcolumn"
16034 that provides table cell alignments.
16035 But this unfortunately treats the cell entries as math and doesn't allow
16036 formulas in table cells: The first column of Table\InsetSpace ~
16038 \begin_inset LatexCommand ref
16039 reference "tab:Several-table-cell"
16047 like the first column in Table\InsetSpace ~
16049 \begin_inset LatexCommand ref
16050 reference "tab:Alignments-when"
16054 and only with some tricks like the expected.
16055 The alignment of the second and third column of Table\InsetSpace ~
16057 \begin_inset LatexCommand ref
16058 reference "tab:Several-table-cell"
16062 is not possible with
16069 \begin_layout Standard
16070 \begin_inset Float table
16076 \begin_layout Standard
16077 \begin_inset Caption
16079 \begin_layout Standard
16080 \begin_inset LatexCommand label
16081 name "tab:Alignments-when"
16085 Alignments when LaTeX-package dcolumn is used.
16086 For all column alignments tricks have to be used to get the output.
16094 \begin_layout Standard
16096 \begin_inset Tabular
16097 <lyxtabular version="3" rows="4" columns="3">
16099 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
16100 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
16101 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16102 <row bottomline="true">
16103 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16106 \begin_layout Standard
16112 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16115 \begin_layout Standard
16121 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16124 \begin_layout Standard
16132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16135 \begin_layout Standard
16136 12x24\InsetSpace \thinspace{}
16142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16145 \begin_layout Standard
16146 12x24\InsetSpace \thinspace{}
16148 \begin_inset Formula $\mbox{bottles}$
16156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16159 \begin_layout Standard
16164 \begin_layout Standard
16174 \begin_inset Formula $\mbox{bottles}$
16184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16187 \begin_layout Standard
16188 1024x768\InsetSpace \thinspace{}
16194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16197 \begin_layout Standard
16198 1024x768\InsetSpace \thinspace{}
16200 \begin_inset Formula $\mbox{Pixels}$
16208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16211 \begin_layout Standard
16216 \begin_layout Standard
16226 \begin_inset Formula $\mbox{Pixels}$
16236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16239 \begin_layout Standard
16240 32x6\InsetSpace \thinspace{}
16246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16249 \begin_layout Standard
16250 32x6\InsetSpace \thinspace{}
16252 \begin_inset Formula $\mbox{cm}$
16260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16263 \begin_layout Standard
16268 \begin_layout Standard
16278 \begin_inset Formula $\mbox{cm}$
16299 \begin_layout Subsection
16300 Customized Cell/Column Format
16301 \begin_inset LatexCommand label
16302 name "sub:Customized-Format"
16307 \begin_inset LatexCommand index
16308 name "Table Customization ! Cell/Column Format"
16315 \begin_layout Standard
16316 Calculating the needed width for spanned columns like in section\InsetSpace ~
16318 \begin_inset LatexCommand ref
16319 reference "sub:Multicolumn-Calculations"
16323 is very annoying if you have several tables with multicolumn cells.
16324 To make life easier, you can define a cell/column format in the preamble,
16325 so that it can be used in all tables of the document.
16326 The format is defined with the command
16329 \begin_layout Standard
16334 newcolumntype{name of format}[number of arguments]{commands}
16337 \begin_layout Standard
16338 The format name may only consist of one letter.
16363 are predefined and cannot be used.
16364 But all letters are allowed as capitals.
16367 \begin_layout Standard
16368 \begin_inset VSpace medskip
16374 \begin_layout Standard
16375 For vertically and horizontally centered multicolumn cells with a fixed
16376 width you can define the cell format
16379 \begin_layout Standard
16384 newcolumntype{M}[1]{>{
16391 \begin_layout Standard
16398 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
16400 \begin_inset LatexCommand ref
16401 reference "sub:Multiple-Lines-in"
16406 Now you can simply enter
16409 \begin_layout Standard
16415 \begin_layout Standard
16416 as LaTeX-argument in the table dialog to create a multicolumn.
16419 \begin_layout Standard
16420 \begin_inset VSpace bigskip
16426 \begin_layout Standard
16427 For cells spanned by a multicolumn cell, you can define the format
16430 \begin_layout Standard
16435 newcolumntype{S}[2]{>{
16445 \begin_layout Standard
16460 \begin_layout Standard
16471 arrayrulewidth)*(1-#2))/#2}}
16474 \begin_layout Standard
16475 This format uses equation
16476 \begin_inset LatexCommand eqref
16481 to calculate the needed width so that each spanned cell has the same width.
16484 \begin_layout Standard
16488 \begin_layout Standard
16491 S{width of multicolumn cell}{number of spanned columns}
16494 \begin_layout Standard
16495 as LaTeX-argument of the column.
16498 \begin_layout Standard
16499 \begin_inset VSpace bigskip
16505 \begin_layout Standard
16506 For colored columns, you can define
16509 \begin_layout Standard
16514 newcolumntype{K}[1]{>{
16521 \begin_layout Standard
16523 \begin_inset Quotes eld
16527 \begin_inset Quotes erd
16530 at the end creates a column with a flexible width whose text is horizontally
16535 \begin_layout Standard
16541 \begin_layout Standard
16545 \begin_layout Standard
16546 \begin_inset VSpace bigskip
16552 \begin_layout Standard
16553 To create Table\InsetSpace ~
16555 \begin_inset LatexCommand ref
16556 reference "tab:Table-using-user-defined"
16560 use the LaTeX-arguments
16563 \begin_layout Standard
16569 \begin_layout Standard
16570 for the first column and the multicolumn,
16573 \begin_layout Standard
16579 \begin_layout Standard
16580 for the the last column, and
16583 \begin_layout Standard
16589 \begin_layout Standard
16590 for the cells in the second column.
16593 \begin_layout Standard
16594 \begin_inset Float table
16600 \begin_layout Standard
16601 \begin_inset Caption
16603 \begin_layout Standard
16604 \begin_inset LatexCommand label
16605 name "tab:Table-using-user-defined"
16609 Table using user-defined table formats
16617 \begin_layout Standard
16619 \begin_inset Tabular
16620 <lyxtabular version="3" rows="3" columns="4">
16622 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16623 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16624 <column alignment="center" valignment="middle" leftline="true" width="0">
16625 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16626 <row topline="true">
16627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16630 \begin_layout Standard
16631 verylongtablecellword
16636 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16639 \begin_layout Standard
16640 multiple lines multicolumn
16645 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16648 \begin_layout Standard
16654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16657 \begin_layout Standard
16664 <row topline="true">
16665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16668 \begin_layout Standard
16674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16677 \begin_layout Standard
16683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16686 \begin_layout Standard
16692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16695 \begin_layout Standard
16702 <row topline="true" bottomline="true">
16703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16706 \begin_layout Standard
16712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16715 \begin_layout Standard
16721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16724 \begin_layout Standard
16730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16733 \begin_layout Standard
16752 \begin_layout Subsection
16754 \begin_inset LatexCommand label
16755 name "sub:Line-Thickness"
16760 \begin_inset LatexCommand index
16761 name "Table Customization ! Line Thickness"
16768 \begin_layout Standard
16769 The line thickness for all lines in a table can be adjusted with the length
16777 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16778 pt, like in Table\InsetSpace ~
16780 \begin_inset LatexCommand ref
16781 reference "tab:Table-with-1.5"
16785 , insert the command
16788 \begin_layout Standard
16795 arrayrulewidth}{1.5pt}
16798 \begin_layout Standard
16799 in TeX-Code before the table or table float.
16800 The changed thickness is valid for all following tables.
16801 To use the default value again, set
16807 to 0.4\InsetSpace \thinspace{}
16808 pt in TeX-Code behind the table or table float.
16811 \begin_layout Standard
16815 \begin_layout Standard
16821 arrayrulewidth}{1.5pt}
16827 \begin_inset Float table
16832 \begin_layout Standard
16833 \begin_inset Caption
16835 \begin_layout Standard
16836 \begin_inset LatexCommand label
16837 name "tab:Table-with-1.5"
16841 Table with 1.5\InsetSpace \thinspace{}
16850 \begin_layout Standard
16852 \begin_inset Tabular
16853 <lyxtabular version="3" rows="3" columns="3">
16855 <column alignment="center" valignment="top" leftline="true" width="0">
16856 <column alignment="center" valignment="top" leftline="true" width="0">
16857 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16858 <row topline="true">
16859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16862 \begin_layout Standard
16868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16871 \begin_layout Standard
16877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16880 \begin_layout Standard
16887 <row topline="true">
16888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16891 \begin_layout Standard
16897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16900 \begin_layout Standard
16906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16909 \begin_layout Standard
16916 <row topline="true" bottomline="true">
16917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16920 \begin_layout Standard
16926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16929 \begin_layout Standard
16935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16938 \begin_layout Standard
16958 \begin_layout Standard
16964 arrayrulewidth}{0.4pt}
16972 \begin_layout Standard
16973 \begin_inset VSpace bigskip
16976 To set the line thickness to 1.5\InsetSpace \thinspace{}
16977 pt only for horizontal lines, like in Table\InsetSpace ~
16979 \begin_inset LatexCommand ref
16980 reference "tab:Table-with-horizontal"
16984 , insert these commands in TeX-Code before the table or table float:
16987 \begin_layout Standard
17010 arrayrulewidth 1.5pt}
17020 arrayrulewidth 0.4pt}}
17023 \begin_layout Standard
17024 To return to the default line thickness, insert this command in TeX-Code
17025 behind the table or table float:
17028 \begin_layout Standard
17040 \begin_layout Standard
17044 \begin_layout Standard
17055 \begin_layout Standard
17064 \begin_layout Standard
17072 arrayrulewidth 1.5pt}
17075 \begin_layout Standard
17085 arrayrulewidth 0.4pt}}
17091 \begin_inset Float table
17096 \begin_layout Standard
17097 \begin_inset Caption
17099 \begin_layout Standard
17100 \begin_inset LatexCommand label
17101 name "tab:Table-with-horizontal"
17105 Table with 1.5\InsetSpace \thinspace{}
17106 pt thick horizontal lines
17114 \begin_layout Standard
17116 \begin_inset Tabular
17117 <lyxtabular version="3" rows="3" columns="3">
17119 <column alignment="center" valignment="top" leftline="true" width="0">
17120 <column alignment="center" valignment="top" leftline="true" width="0">
17121 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17122 <row topline="true">
17123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17126 \begin_layout Standard
17132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17135 \begin_layout Standard
17141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17144 \begin_layout Standard
17151 <row topline="true">
17152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17155 \begin_layout Standard
17161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17164 \begin_layout Standard
17170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17173 \begin_layout Standard
17180 <row topline="true" bottomline="true">
17181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17184 \begin_layout Standard
17190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17193 \begin_layout Standard
17199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17202 \begin_layout Standard
17222 \begin_layout Standard
17238 \begin_layout Standard
17239 \begin_inset VSpace bigskip
17242 To set the line thickness to 1.5\InsetSpace \thinspace{}
17243 pt only for vertical lines, create the following
17244 column format in the document preamble, according to the description in
17245 section\InsetSpace ~
17247 \begin_inset LatexCommand ref
17248 reference "sub:Customized-Format"
17255 \begin_layout Standard
17260 newcolumntype{V}{!{
17262 vrule width 1.5pt}}
17265 \begin_layout Standard
17266 For Table\InsetSpace ~
17268 \begin_inset LatexCommand ref
17269 reference "tab:Table-with-vertical"
17276 \begin_layout Standard
17282 \begin_layout Standard
17283 was used for the last column and
17286 \begin_layout Standard
17292 \begin_layout Standard
17293 for the other columns.
17296 \begin_layout Standard
17297 \begin_inset Float table
17302 \begin_layout Standard
17303 \begin_inset Caption
17305 \begin_layout Standard
17306 \begin_inset LatexCommand label
17307 name "tab:Table-with-vertical"
17311 Table with 1.5\InsetSpace \thinspace{}
17312 pt thick vertical lines
17320 \begin_layout Standard
17322 \begin_inset Tabular
17323 <lyxtabular version="3" rows="3" columns="3">
17325 <column alignment="center" valignment="top" width="0" special="Vc">
17326 <column alignment="center" valignment="top" width="0" special="Vc">
17327 <column alignment="center" valignment="top" width="0" special="VcV">
17328 <row topline="true">
17329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17332 \begin_layout Standard
17338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17341 \begin_layout Standard
17347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17350 \begin_layout Standard
17357 <row topline="true">
17358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17361 \begin_layout Standard
17367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17370 \begin_layout Standard
17376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17379 \begin_layout Standard
17386 <row topline="true" bottomline="true">
17387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17390 \begin_layout Standard
17396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17399 \begin_layout Standard
17405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17408 \begin_layout Standard
17427 \begin_layout Subsection
17429 \begin_inset LatexCommand index
17430 name "Table Customization ! Dashed Lines"
17437 \begin_layout Standard
17441 \begin_layout Standard
17451 \begin_inset Note Note
17454 \begin_layout Standard
17455 The following section will only be displayed when the LaTeX-package
17467 \begin_layout Standard
17468 \begin_inset Float table
17474 \begin_layout Standard
17475 \begin_inset Caption
17477 \begin_layout Standard
17478 \begin_inset LatexCommand label
17479 name "tab:Table-with-dashed"
17483 Table with dashed lines
17491 \begin_layout Standard
17493 \begin_inset Tabular
17494 <lyxtabular version="3" rows="5" columns="5">
17496 <column alignment="center" valignment="top" leftline="true" width="0">
17497 <column alignment="center" valignment="top" leftline="true" width="0">
17498 <column alignment="center" valignment="top" width="0" special=":c">
17499 <column alignment="center" valignment="top" leftline="true" width="0">
17500 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17501 <row topline="true" bottomline="true">
17502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17505 \begin_layout Standard
17511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17514 \begin_layout Standard
17520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17523 \begin_layout Standard
17529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17532 \begin_layout Standard
17538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17541 \begin_layout Standard
17548 <row topline="true">
17549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17552 \begin_layout Standard
17558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17561 \begin_layout Standard
17567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17570 \begin_layout Standard
17576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17579 \begin_layout Standard
17585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17588 \begin_layout Standard
17596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17599 \begin_layout Standard
17603 \begin_layout Standard
17617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17620 \begin_layout Standard
17626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17629 \begin_layout Standard
17635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17638 \begin_layout Standard
17644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17647 \begin_layout Standard
17654 <row topline="true">
17655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17658 \begin_layout Standard
17662 \begin_layout Standard
17676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17679 \begin_layout Standard
17685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17688 \begin_layout Standard
17694 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17697 \begin_layout Standard
17703 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17706 \begin_layout Standard
17713 <row topline="true" bottomline="true">
17714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17717 \begin_layout Standard
17723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17726 \begin_layout Standard
17732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17735 \begin_layout Standard
17741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17744 \begin_layout Standard
17750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17753 \begin_layout Standard
17772 \begin_layout Standard
17773 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
17774 As prerequisite the LaTeX-package
17779 \begin_inset LatexCommand index
17780 name "LaTeX-packages ! arydshln"
17784 must be loaded in the document preamble with the command
17787 \begin_layout Standard
17792 usepackage{arydshln}
17795 \begin_layout Standard
17796 To make a vertical line dashed, enter the colon
17797 \begin_inset Quotes eld
17801 \begin_inset Quotes erd
17804 together with the character for the horizontal alignment as LaTeX-argument
17805 in the table cell dialog.
17808 \begin_layout Standard
17809 For a horizontal dashed line add the command
17812 \begin_layout Standard
17820 \begin_layout Standard
17821 in TeX-Code as first element of the first cell in the table row.
17824 \begin_layout Standard
17825 For dashed multicolumn lines use the command
17828 \begin_layout Standard
17833 cdashline{line number
17838 \begin_layout Standard
17839 in TeX-Code as first element of the first cell in the table row.
17840 If you have for example a multicolumn spanning over columns 2 to 4 and
17841 you want to have a dashed line above, add the command
17844 \begin_layout Standard
17852 \begin_layout Standard
17853 as first element of the first cell in the row of the multicolumn.
17856 \begin_layout Standard
17857 \begin_inset VSpace bigskip
17863 \begin_layout Standard
17866 \begin_inset LatexCommand ref
17867 reference "tab:Table-with-dashed"
17872 \begin_inset Quotes eld
17880 \begin_inset Quotes erd
17883 as LaTeX-argument of the third column.
17884 The TeX-Code command
17890 was inserted to the first cell of the third row and the the TeX-Code command
17899 was inserted to the first cell of the fourth row.
17902 \begin_layout Standard
17903 \begin_inset Note Greyedout
17906 \begin_layout Standard
17911 The used LaTeX-package
17915 is apparently not compatible with the LaTeX-package
17920 \begin_inset LatexCommand index
17921 name "LaTeX-packages ! colortbl"
17925 that is used for colored tables in section\InsetSpace ~
17927 \begin_inset LatexCommand ref
17928 reference "sec:Colored-Tables"
17933 That means colored tables cannot have dashed lines.
17941 \begin_layout Standard
17945 \begin_layout Standard
17955 \begin_inset Note Note
17958 \begin_layout Standard
17959 The following will be displayed when the LaTeX-package
17971 \begin_layout Standard
17972 You need to install the package
17976 to see the content of this section in the output.
17979 \begin_layout Standard
17983 \begin_layout Standard
17995 \begin_layout Chapter
17997 \begin_inset LatexCommand index
18003 \begin_inset LatexCommand label
18011 \begin_layout Section
18013 \begin_inset LatexCommand label
18014 name "sec:FloatIntroduction"
18019 \begin_inset LatexCommand index
18020 name "Floats ! Introduction"
18027 \begin_layout Standard
18028 A float is a block of text associated with some sort of label, which doesn't
18029 have a fixed location.
18031 \begin_inset Quotes eld
18035 \begin_inset Quotes erd
18038 forward or backward a page or two, to wherever it fits best.
18045 Margin\InsetSpace ~
18048 are also floats, because they can float to the next page when there are
18049 too many notes at the page.
18052 \begin_layout Standard
18053 Floats allow a high quality layout.
18054 Images and tables can evenly be spread to the pages to avoid white space
18055 and pages without text.
18056 As the floating often destroys the context between the text and the image/table
18057 , every float can be referenced in the text.
18058 Floats are therefore numbered.
18059 Referencing is described in section\InsetSpace ~
18061 \begin_inset LatexCommand ref
18062 reference "sec:Referencing-Floats"
18069 \begin_layout Standard
18070 To insert a float, use the menu
18072 Insert\SpecialChar \menuseparator
18080 inset, a box with a label.
18081 The label will automatically be translated to the document language in
18083 Behind the label you can insert the caption text.
18084 The image or table is inserted above or below the caption in a separate
18085 paragraph within the float.
18086 More about the caption placement is described in section\InsetSpace ~
18088 \begin_inset LatexCommand ref
18089 reference "sec:Caption-Placement"
18094 To keep your LyX-document readable, you can open and close the float box
18095 by left-clicking on the box label.
18096 A closed float box looks like this:
18097 \begin_inset Graphics
18098 filename clipart/floatQt4.png
18100 scaleBeforeRotation
18104 -- a gray button with a red label.
18107 \begin_layout Standard
18108 It is recommended to insert floats as a separate paragraph to avoid possible
18109 LaTeX-errors that can occur when the surrounding text is specially formatted.
18112 \begin_layout Standard
18113 Existing figures or tables can be put into a float by marking them and then
18114 pressing the corresponding toolbar button for a new float.
18117 \begin_layout Section
18121 \begin_layout Standard
18122 Besides figure and table floats that are described in section\InsetSpace ~
18124 \begin_inset LatexCommand ref
18125 reference "sec:Figure-Floats"
18130 \begin_inset LatexCommand ref
18131 reference "sec:Table-Floats"
18135 , respectively, LyX offers the float types
18148 \begin_layout Subsection
18150 \begin_inset LatexCommand index
18151 name "Floats ! Algorithms"
18156 \begin_inset LatexCommand label
18157 name "sub:Algorithm-Floats"
18164 \begin_layout Standard
18165 \begin_inset Float algorithm
18171 \begin_layout Standard
18172 \begin_inset Caption
18174 \begin_layout Standard
18175 \begin_inset LatexCommand label
18176 name "alg:Example-Algorithm-float"
18180 Example Algorithm float
18188 \begin_layout LyX-Code
18191 Sum:= Sum + A(I); /*comment*/
18194 \begin_inset VSpace -4mm
18205 \begin_layout Standard
18206 This float type is inserted with the menu
18208 Insert\SpecialChar \menuseparator
18209 Floats\SpecialChar \menuseparator
18213 It is used for program codes and descriptions of algorithms.
18214 A possible environment for algorithms is the
18218 , described in LyX's
18223 Algorithm\InsetSpace ~
18225 \begin_inset LatexCommand ref
18226 reference "alg:Example-Algorithm-float"
18230 is an example of an algorithm float where -4\InsetSpace \thinspace{}
18231 mm vertical space was added
18232 at the end of the float to have the bottom rule exactly below the last
18236 \begin_layout Standard
18237 The float label is not automatically translated into the document language.
18238 If your document is not in English, you have to do this manually by adding
18239 the following line to the document preamble
18244 \begin_layout Standard
18249 floatname{algorithm}{your\InsetSpace ~
18253 \begin_layout Standard
18260 \begin_inset Quotes eld
18268 \begin_inset Quotes erd
18274 \begin_layout Description
18279 When the LaTeX-package
18284 \begin_inset LatexCommand index
18285 name "LaTeX-packages ! hyperref"
18289 is used to link cross-references to floats in the PDF-output, it must be
18290 loaded in the document preamble before the definition of floats to be able
18291 to reference floats.
18292 As LyX sets the float definition for algorithm floats automatically before
18293 the user editable part of the document preamble, you need to insert the
18294 following preamble lines
18298 the loading command of
18303 \begin_inset VSpace defskip
18312 newfloat{Xalgorithm}{tbp}{loa}
18316 floatname{Xalgorithm}{your\InsetSpace ~
18329 renewenvironment{algorithm}[1][tbp]
18335 \begin_layout Standard
18346 begin{Xalgorithm}[#1]}{
18351 \begin_inset VSpace defskip
18356 To insert the list of algorithms you can in this case not use the menu
18358 Insert\SpecialChar \menuseparator
18359 List\InsetSpace \thinspace{}
18360 /\InsetSpace \thinspace{}
18361 TOC\SpecialChar \menuseparator
18364 but have to use this command in TeX-Code instead:
18370 listof{Xalgorithm}{List of Algorithms}
18373 \begin_inset Note Note
18376 \begin_layout Standard
18379 is used at the end of this document
18387 \begin_layout Standard
18388 Algorithm floats are not by default numbered in the scheme
18389 \begin_inset Quotes eld
18393 \begin_inset Quotes erd
18396 like it is the case for table and figure floats in many document-classes.
18397 To number algorithm floats in the same scheme, add this command to your
18401 \begin_layout Standard
18406 numberwithin{algorithm}{chapter}
18409 \begin_layout Standard
18410 If you use the LaTeX-package
18414 , add this line instead
18422 (the commands from above) to the preamble:
18425 \begin_layout Standard
18430 numberwithin{Xalgorithm}{chapter}
18433 \begin_layout Standard
18434 To be able to use the command
18445 in the document settings the option
18455 \begin_layout Subsection
18457 \begin_inset LatexCommand index
18458 name "Floats ! Text Wrap Floats"
18463 \begin_inset LatexCommand label
18464 name "sub:floatflt-wrap-float"
18471 \begin_layout Standard
18472 This float type is used if you want to
18473 \begin_inset Quotes eld
18477 \begin_inset Quotes erd
18480 text around a figure so that it only occupies some fraction of the column
18482 It can be inserted using the menu
18483 \begin_inset Wrap figure
18488 \begin_layout Standard
18489 \begin_inset Graphics
18490 filename clipart/mobius.eps
18493 scaleBeforeRotation
18494 rotateOrigin center
18501 \begin_layout Standard
18502 \begin_inset Caption
18504 \begin_layout Standard
18505 \begin_inset LatexCommand label
18506 name "fig:This-is-a"
18510 This is a wrapped figure, and this is the brilliant caption that describes
18512 \begin_inset VSpace medskip
18527 Insert\SpecialChar \menuseparator
18528 Floats\SpecialChar \menuseparator
18533 if the LaTeX-package
18535 f\SpecialChar \textcompwordmark{}
18536 loatf\SpecialChar \textcompwordmark{}
18540 \begin_inset LatexCommand index
18541 name "LaTeX-packages ! floatflt"
18549 \begin_layout Standard
18550 Installing a LaTeX-package is explained it in the
18560 The width and placement of the float is adjusted by right-clicking on the
18562 Figure\InsetSpace ~
18564 \begin_inset LatexCommand ref
18565 reference "fig:This-is-a"
18569 is an example text wrap float with a width of 40
18570 \begin_inset Formula $\,$
18577 \begin_layout Standard
18578 Available units are explained in
18579 \begin_inset LatexCommand ref
18580 reference "cha:Units-available-in"
18589 Some space was added under the caption to separate it better from the surroundi
18593 \begin_layout Standard
18596 f\SpecialChar \textcompwordmark{}
18597 loatf\SpecialChar \textcompwordmark{}
18600 also supports table wrap floats, but they are not yet supported by LyX.
18601 If you need this, read the documentation of
18603 f\SpecialChar \textcompwordmark{}
18604 loatf\SpecialChar \textcompwordmark{}
18608 \begin_inset LatexCommand cite
18616 \begin_layout Standard
18617 \begin_inset Note Greyedout
18620 \begin_layout Standard
18626 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18628 having a figure too close to the bottom
18629 of the page can mess things up in the way that the float doesn't appear
18630 in the output or that it is placed over some other text.
18634 \begin_layout Standard
18635 The better solution is to use the LaTeX-package
18637 wrapf\SpecialChar \textcompwordmark{}
18641 \begin_inset LatexCommand index
18642 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18648 f\SpecialChar \textcompwordmark{}
18649 loatf\SpecialChar \textcompwordmark{}
18652 , but it is currently not supported by LyX.
18665 \begin_layout Standard
18669 \begin_layout Itemize
18670 Wrap floats should not be placed in paragraphs that run over a page break.
18671 That means that wrap floats should better be inserted to the exact place
18672 when the document is nearly finished and you are able to estimate where
18673 page breaks will appear.
18676 \begin_layout Itemize
18677 Wrap floats should either be placed in an own paragraph before the paragraph
18678 where they should wrap into or within a paragraph.
18681 \begin_layout Itemize
18682 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18683 there is a text paragraph between them as separator.
18686 \begin_layout Itemize
18687 Wrap floats are not allowed in section headings or tables.
18690 \begin_layout Section
18692 \begin_inset LatexCommand label
18693 name "sec:Float-Numbering"
18698 \begin_inset LatexCommand index
18699 name "Floats ! Numbering"
18706 \begin_layout Standard
18707 Floats are usually numbered either independent from the sections the floats
18708 are in, or in the scheme
18709 \begin_inset Quotes eld
18713 \begin_inset Quotes erd
18717 \begin_inset Quotes eld
18721 \begin_inset Quotes erd
18725 This depends on the used document class.
18728 \begin_layout Standard
18729 To change the section independent numbering, you can use this command in
18730 the document preamble:
18733 \begin_layout Standard
18745 \begin_layout Standard
18752 is the command that prints the table number, for figure floats, the command
18766 prints in the command above the table number as small roman number.
18769 \begin_layout Standard
18770 To change the numbering scheme for example to
18771 \begin_inset Quotes eld
18775 \begin_inset Quotes erd
18778 , use this command in the preamble:
18781 \begin_layout Standard
18786 numberwithin{table}{subsection}
18789 \begin_layout Standard
18790 To be able to use the command
18801 in the document settings the option
18811 \begin_layout Standard
18812 Please also have a look at section\InsetSpace ~
18814 \begin_inset LatexCommand ref
18815 reference "sub:Footnote-Numbering"
18819 for the details and important notes about the numbering commands.
18822 \begin_layout Section
18824 \begin_inset LatexCommand label
18825 name "sec:Referencing-Floats"
18830 \begin_inset LatexCommand index
18831 name "Floats ! References"
18836 \begin_inset LatexCommand index
18844 \begin_layout Standard
18845 To reference a float, insert a label into its caption using the menu
18847 Insert\SpecialChar \menuseparator
18850 or the toolbar button
18851 \begin_inset Graphics
18852 filename ../images/label-insert.png
18854 scaleBeforeRotation
18859 A grey label box like this one:
18860 \begin_inset Graphics
18861 filename clipart/labelQt4.png
18863 scaleBeforeRotation
18867 will be inserted and the label window pops up asking for the label text.
18868 LyX offers as text the first words of the caption with a prefix.
18869 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18871 for figure floats the prefix will
18879 \begin_layout Standard
18880 The label is used as anchor and name for the reference.
18881 You can refer to the label using the menu
18883 Insert\SpecialChar \menuseparator
18886 or the toolbar button
18887 \begin_inset Graphics
18888 filename ../images/dialog-show-new-inset_ref.png
18890 scaleBeforeRotation
18895 A grey cross-reference box like this one:
18896 \begin_inset Graphics
18897 filename clipart/referenceQt4.png
18899 scaleBeforeRotation
18903 will be inserted and the cross-reference window appear showing all labels
18905 If you have multiple LyX-documents opened, choose the one you are working
18906 on from the drop-list at the top of the dialog.
18907 You can now sort the labels alphabetically and then choose one.
18908 At the position of the cross-reference box the float number will appear
18912 \begin_layout Standard
18913 It is recommended to use a protected space between the cross-reference name
18914 and its number to avoid line breaks between them.
18915 If a cross-reference refers to a non-existing label, you will see two question
18916 marks in the output instead of the reference.
18919 \begin_layout Standard
18920 You can change labels at any time by clicking on the label box.
18921 References to the changed label will automatically change its link to the
18922 new label text, so that you don't need to take care about this.
18925 \begin_layout Standard
18932 in the cross-reference window sets the cursor before the referred label.
18933 The button text changes then to Go\InsetSpace ~
18934 Back and you can use it to set the cursor
18935 back to the cross-reference.
18936 Right-clicking on a cross-reference box also sets the cursor before the
18937 referenced label but without a possibility to go back.
18940 \begin_layout Subsection
18941 Cross-Reference Formats
18942 \begin_inset LatexCommand label
18943 name "sub:Cross-Reference-Formats"
18948 \begin_inset LatexCommand index
18949 name "References ! Formats"
18956 \begin_layout Standard
18957 There are six varieties of cross-references:
18960 \begin_layout Description
18961 <reference>: prints the float number, this is the default:
18962 \begin_inset LatexCommand ref
18963 reference "fig:Two-distorted-images"
18970 \begin_layout Description
18971 (<reference>): prints the float number within two parentheses, this is the
18972 style normally used to reference formulas, especially when the reference
18974 \begin_inset Quotes eld
18978 \begin_inset Quotes erd
18982 \begin_inset LatexCommand eqref
18990 \begin_layout Description
18991 <page>: prints the page number: Page\InsetSpace ~
18993 \begin_inset LatexCommand pageref
18994 reference "fig:Two-distorted-images"
19001 \begin_layout Description
19004 <page>: prints the text "on page" and the page number:
19005 \begin_inset LatexCommand vpageref
19006 reference "fig:Two-distorted-images"
19013 \begin_layout Description
19014 <reference>\InsetSpace ~
19017 <page>: prints the float number, the text "on page", and
19019 \begin_inset LatexCommand vref
19020 reference "fig:Two-distorted-images"
19027 \begin_layout Description
19028 Formatted\InsetSpace ~
19029 reference: prints a self defined cross-reference format.
19031 \begin_inset Note Greyedout
19034 \begin_layout Standard
19039 This feature is only available when you have the LaTeX-package
19051 \begin_layout Standard
19052 Note that the style <page> won't print the page number if the label is on
19053 the previous, the same, or the next page.
19054 You will e.\InsetSpace \thinspace{}
19057 \begin_inset Quotes eld
19065 \begin_inset Quotes erd
19071 \begin_layout Standard
19072 The number and current page of the referred document part in the output,
19073 is automatically calculated by LaTeX.
19074 The varieties are adjusted in the field
19078 of the cross-reference window, that appear when you click on the cross-referenc
19082 \begin_layout Subsection
19083 Referencing Subfigures
19084 \begin_inset LatexCommand label
19085 name "sub:Referencing-Subfigures"
19090 \begin_inset LatexCommand index
19091 name "References ! to Subfigures"
19098 \begin_layout Standard
19099 Currently referencing subfigures is not supported by LyX, so you have to
19100 use LaTeX-commands.
19101 The label is the created with the command
19104 \begin_layout Standard
19109 label{fig:YourLabelName}
19112 \begin_layout Standard
19113 that is directly inserted into the subfigure caption field.
19114 To reference the label add this command in TeX-Code
19117 \begin_layout Standard
19122 ref{fig:YourLabelName}
19125 \begin_layout Standard
19126 to the position in your document where the reference should be placed.
19127 Here is a reference to a subfigure: Subfigure\InsetSpace ~
19132 \begin_layout Standard
19144 \begin_layout Subsection
19145 Automatic Reference Naming
19146 \begin_inset LatexCommand index
19147 name "References ! Automatic Reference Naming"
19154 \begin_layout Standard
19159 provides a very useful feature that cross-references automatically include
19160 the name of the referenced floats (or text parts like sections).
19161 You save to write e.\InsetSpace \thinspace{}
19164 \begin_inset Quotes eld
19168 \begin_inset Quotes erd
19171 before every reference box.
19172 To get this automatic reference naming, you have to load the LaTeX-package
19178 \begin_inset LatexCommand index
19179 name "LaTeX-packages ! hyperref"
19183 in the document preamble with
19186 \begin_layout Standard
19191 usepackage[pdfborder={0 0 0}]{hyperref}
19206 \begin_layout Standard
19211 is used to link cross-references in the DVI- and PDF-output, this means
19212 that the reader of your document will be able to click on a table of content
19213 (TOC) entry or on a reference and he will be shown the referenced document
19219 also creates PDF-bookmarks for every section of your document to make it
19220 easier for readers to navigate through the document.
19221 This is also used in this document but when you have a look in the document
19222 preamble you will find various options in the load command of
19227 To learn more about the
19231 package, we refer to its documentation
19232 \begin_inset LatexCommand cite
19240 \begin_layout Standard
19241 \begin_inset Note Greyedout
19244 \begin_layout Standard
19249 Automatic reference naming cannot be used when you use cross-references
19252 Formatted\InsetSpace ~
19255 style, described in section\InsetSpace ~
19257 \begin_inset LatexCommand ref
19258 reference "sub:Cross-Reference-Formats"
19270 \begin_layout Subsection
19272 \begin_inset LatexCommand label
19273 name "sub:Reference-Position"
19278 \begin_inset LatexCommand index
19279 name "References ! Reference Position"
19286 \begin_layout Standard
19292 \begin_inset LatexCommand index
19293 name "LaTeX-packages ! hyperref"
19297 to link cross-references in the output, you will see that clicking on an
19298 image float reference jumps to the image label.
19299 The caption will be the first text part on the screen, so that you cannot
19300 see the image without scrolling.
19301 This is because the reference link anchor is placed at the position of
19303 With the use of the package
19308 \begin_inset LatexCommand index
19309 name "LaTeX-packages ! hypcap"
19313 , which is part of the LaTeX-package
19318 \begin_inset LatexCommand index
19319 name "LaTeX-packages ! oberdiek"
19323 , the link anchor is placed at the beginning of a float.
19324 To use this feature for figure floats, load
19328 in the document preamble with the line
19331 \begin_layout Standard
19336 usepackage[figure]{hypcap}
19339 \begin_layout Standard
19344 for all floats but this isn't recommended for stability reasons.
19345 For more informations, have a look at
19350 \begin_inset LatexCommand cite
19358 \begin_layout Standard
19359 \begin_inset Note Greyedout
19362 \begin_layout Standard
19371 must be loaded after
19375 in the document preamble.
19383 \begin_layout Standard
19384 \begin_inset Note Greyedout
19387 \begin_layout Standard
19396 has no effect for references to subfigures.
19404 \begin_layout Section
19406 \begin_inset LatexCommand label
19407 name "sec:Float-Placement"
19412 \begin_inset LatexCommand index
19413 name "Floats ! Placement"
19420 \begin_layout Standard
19421 Right-clicking on a float-box opens a dialog where you can alter the placement
19422 options that LaTeX uses for positioning the float.
19429 is only useful for two-column documents: If you select it, the float will
19430 span across both columns on the page instead of being confined to just
19435 Rotate\InsetSpace ~
19438 is used to rotate floats, see section
19439 \begin_inset LatexCommand ref
19440 reference "sec:Rotated-Floats"
19447 \begin_layout Standard
19448 You can use one ore more of the following options in the float dialog to
19449 set the placement for a particular float when you uncheck the option
19452 default\InsetSpace ~
19458 \begin_layout Description
19461 possible try to place the float on the position where it is inserted
19464 \begin_layout Description
19467 page try to place the float on the top of the current page
19470 \begin_layout Description
19471 Bottom\InsetSpace ~
19473 page try to place the float on the bottom of the current page
19476 \begin_layout Description
19479 floats try to place the float on an own page
19482 \begin_layout Standard
19483 The order of the above option is
19488 That means, if you use the default placement, LaTeX will first try out
19501 , and then the others.
19502 If you don't use the default, LaTeX will try only the checked options but
19504 If none of the 4 placements are possible the procedure is internally repeated
19505 but it is tried to put the float on the following page.
19508 \begin_layout Standard
19509 By default, each option has its own rules:
19512 \begin_layout Labeling
19513 \labelwidthstring 00.00.0000
19520 only floats occupying less than 70\InsetSpace \thinspace{}
19521 % of the page can be placed at the top
19531 \begin_layout Labeling
19532 \labelwidthstring 00.00.0000
19535 Bottom\InsetSpace ~
19539 : only floats occupying less than 30\InsetSpace \thinspace{}
19540 % of the page can be placed at the bottom
19551 \begin_layout Labeling
19552 \labelwidthstring 00.00.0000
19559 : only if more than 50\InsetSpace \thinspace{}
19560 % of the page are occupied by floats, several floats
19561 can be set together on a page.
19571 \begin_layout Standard
19572 If you don't like these rules, you can ignore them by using the additional
19575 Ignore\InsetSpace ~
19581 You can also redefine the rules with LaTeX-commands that are given in parenthese
19582 s behind the rules description above.
19583 To increase for example the often too small default of the bottom-rule
19584 to 50\InsetSpace \thinspace{}
19585 % of the page, add this line to your document preamble:
19588 \begin_layout Standard
19595 bottomfraction}{0.5}
19598 \begin_layout Standard
19599 Sometimes you might need, under all circumstances, a float to be placed
19600 exactly at the position where it is inserted.
19601 For this case you can use the option
19607 Use this option very rarely and only if the document is nearly ready to
19609 Because the float is then no longer able to
19610 \begin_inset Quotes eld
19614 \begin_inset Quotes erd
19617 when you change your document and this will often destroy the page layout.
19620 \begin_layout Standard
19621 There are no placement options for text wrap floats, because they are always
19622 surrounded by the text of a certain paragraph.
19623 \begin_inset VSpace bigskip
19629 \begin_layout Standard
19630 Sometimes you have the problem that a float is placed at the top of a page
19631 while its corresponding section starts at the middle of the page, so that
19632 the reader could think the float is part of the previous section.
19633 To avoid this the LaTeX-command
19640 It suppresses a given float placement for the page where it is inserted
19641 and can therefore be used to avoid that floats could be set before a section
19643 To get this, add these commands to your document preamble:
19646 \begin_layout Standard
19668 \begin_layout Standard
19669 You can define the same for all section headings, like chapters and subsections.
19670 This definition is not recommended to be used for small text parts like
19671 subsubsections because LaTeX may then have problems to find a suitable
19675 \begin_layout Standard
19676 \begin_inset VSpace bigskip
19679 In some cases it is required to have all figures/tables at the end of the
19681 For this purpose the LaTeX-package
19686 \begin_inset LatexCommand index
19687 name "LaTeX-packages ! endfloat"
19692 It puts all figure and table floats at the end of the document into own
19694 At the original float position a text hint like
19695 \begin_inset Quotes eld
19700 [Figure\InsetSpace ~
19704 \begin_inset Quotes erd
19708 The endfloat-package is loaded in the preamble with the line
19711 \begin_layout Standard
19716 usepackage[options]{endfloat}
19719 \begin_layout Standard
19720 There are various package options to format the created figure/table sections.
19721 For more information we refer to the
19726 \begin_inset LatexCommand cite
19734 \begin_inset Note Greyedout
19737 \begin_layout Standard
19742 doesn't provide an automatic translation for the text hint, you have to
19743 do this manually, see section\InsetSpace ~
19745 \begin_inset LatexCommand cite
19758 \begin_inset Note Greyedout
19761 \begin_layout Standard
19766 There is currently a bug in
19770 when the caption contains a German
19771 \begin_inset Quotes eld
19775 \begin_inset Quotes erd
19779 Use in this case the command
19780 \begin_inset Quotes eld
19790 \begin_inset Quotes erd
19793 in TeX-Code instead of
19794 \begin_inset Quotes eld
19798 \begin_inset Quotes erd
19809 \begin_layout Standard
19810 \begin_inset VSpace bigskip
19813 For more details about float placements, have a look at LaTeX books,
19814 \begin_inset LatexCommand cite
19815 key "latexcompanion,latexguide,latexbook"
19822 \begin_layout Section
19824 \begin_inset LatexCommand label
19825 name "sec:Rotated-Floats"
19830 \begin_inset LatexCommand index
19831 name "Floats ! Rotating"
19838 \begin_layout Standard
19839 Especially for wide tables you might have floats rotated.
19840 To rotate a whole float including the caption, right-click on the float-box
19843 Rotate\InsetSpace ~
19849 \begin_layout Standard
19850 Rotated floats are always placed on its own page (or column, when you have
19851 a two-column document).
19852 They are rotated so that you can read them from the outside margin.
19853 To force a certain rotation direction for all pages, you can add either
19862 to the document class options.
19865 \begin_layout Standard
19866 Referencing rotated floats is the same like for normal floats, the caption
19867 format is also the same: Table\InsetSpace ~
19869 \begin_inset LatexCommand ref
19870 reference "tab:Rotated-table"
19874 is an example of a rotated table float.
19877 \begin_layout Standard
19878 \begin_inset Note Greyedout
19881 \begin_layout Standard
19886 Not all DVI-viewers are able to display rotated floats.
19894 \begin_layout Standard
19895 \begin_inset Float table
19900 \begin_layout Standard
19901 \begin_inset Caption
19903 \begin_layout Standard
19904 \begin_inset LatexCommand label
19905 name "tab:Rotated-table"
19917 \begin_layout Standard
19919 \begin_inset Tabular
19920 <lyxtabular version="3" rows="1" columns="5">
19922 <column alignment="center" valignment="top" leftline="true" width="0">
19923 <column alignment="center" valignment="top" leftline="true" width="0">
19924 <column alignment="center" valignment="top" leftline="true" width="0">
19925 <column alignment="center" valignment="top" leftline="true" width="0">
19926 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19927 <row topline="true" bottomline="true">
19928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19931 \begin_layout Standard
19937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19940 \begin_layout Standard
19946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19949 \begin_layout Standard
19955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19958 \begin_layout Standard
19964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19967 \begin_layout Standard
19986 \begin_layout Section
19987 Floats Side by Side
19988 \begin_inset LatexCommand index
19989 name "Floats ! Side by side"
19996 \begin_layout Standard
19997 To place floats side by side, like for Figure\InsetSpace ~
19999 \begin_inset LatexCommand ref
20000 reference "fig:Float-left"
20005 \begin_inset LatexCommand ref
20006 reference "fig:Float-right"
20015 In it two minipage boxes are inserted.
20019 \begin_layout Standard
20020 Minipages are explained in section\InsetSpace ~
20022 \begin_inset LatexCommand ref
20023 reference "sec:Minipages"
20032 The width is set to 45\InsetSpace \thinspace{}
20033 -50\InsetSpace \thinspace{}
20034 column% and the box alignment to
20039 The minipage boxes contain the image and the caption in the same way as
20040 they are in a float.
20041 The only difference is that the image unit
20043 Column\InsetSpace ~
20047 is now calculated according to the width of the minipage boxes.
20050 \begin_layout Standard
20051 \begin_inset Float figure
20056 \begin_layout Standard
20057 \begin_inset Box Frameless
20066 height_special "totalheight"
20069 \begin_layout Standard
20071 \begin_inset Graphics
20072 filename clipart/mobius.eps
20075 scaleBeforeRotation
20082 \begin_layout Standard
20083 \begin_inset Caption
20085 \begin_layout Standard
20086 \begin_inset LatexCommand label
20087 name "fig:Float-left"
20091 Float on the left side.
20104 \begin_inset Box Frameless
20113 height_special "totalheight"
20116 \begin_layout Standard
20118 \begin_inset Graphics
20119 filename clipart/platypus.eps
20122 scaleBeforeRotation
20129 \begin_layout Standard
20130 \begin_inset Caption
20132 \begin_layout Standard
20133 \begin_inset LatexCommand label
20134 name "fig:Float-right"
20138 Float on the right side.
20151 \begin_layout Standard
20160 \begin_layout Section
20162 \begin_inset LatexCommand index
20163 name "Caption ! Formatting"
20168 \begin_inset LatexCommand index
20169 name "Floats ! Caption Formatting"
20174 \begin_inset LatexCommand index
20175 name "LaTeX-packages ! caption"
20180 \begin_inset LatexCommand label
20181 name "sec:Caption-Formatting"
20188 \begin_layout Standard
20193 environment is the default paragraph environment for
20198 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
20201 \begin_inset Quotes eld
20209 \begin_inset Quotes erd
20212 followed by the caption text.
20214 \begin_inset Quotes eld
20218 \begin_inset Quotes erd
20221 is the actual reference number.
20222 By default the label and the number are in the same font as the caption
20223 text and a colon follows the number to divide the label from the text.
20224 This caption format is not suitable for all document formats.
20228 \begin_layout Standard
20229 To change the default caption format, load the LaTeX-package
20234 \begin_inset LatexCommand index
20235 name "LaTeX-packages ! caption"
20239 in the document preamble with this line:
20242 \begin_layout Standard
20247 usepackage[format definition]{caption}
20250 \begin_layout Standard
20251 To have for example the label and the number in sans-serif bold font and
20252 the table captions always above the table like in this document, use the
20256 \begin_layout Standard
20261 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
20264 \begin_layout Standard
20265 You can also define different caption formats for the different float types.
20266 In this case load the
20270 package without format specific options and define the different formats
20271 with the help of the command
20274 \begin_layout Standard
20279 captionsetup[float type]{format definition}
20282 \begin_layout Standard
20283 in the document preamble.
20284 For example the caption formats of Figure\InsetSpace ~
20286 \begin_inset LatexCommand ref
20287 reference "fig:This-is-an-fig"
20291 and Table\InsetSpace ~
20293 \begin_inset LatexCommand ref
20294 reference "tab:This-is-an-tab"
20298 can be created using these commands in the document preamble:
20301 \begin_layout Standard
20306 usepackage[tableposition=top]{caption}
20314 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
20320 \begin_layout Standard
20328 captionsetup[figure]
20339 captionsetup[table]{labelfont={bf,sf}}
20342 \begin_layout Standard
20343 \begin_inset Note Greyedout
20346 \begin_layout Standard
20355 has no effect when a
20360 \begin_inset LatexCommand index
20361 name "LaTeX-packages ! koma-script"
20365 document class is used.
20366 In this case the document class option
20378 \begin_layout Standard
20379 For more information about the package
20383 we refer to its documentation
20384 \begin_inset LatexCommand cite
20385 key "caption,caption-de"
20392 \begin_layout Standard
20393 To change the label name from e.g.
20395 \begin_inset Quotes eld
20399 \begin_inset Quotes erd
20403 \begin_inset Quotes eld
20407 \begin_inset Quotes erd
20410 use this preamble command:
20413 \begin_layout Standard
20420 fnum@figure}{Image~
20425 \begin_layout Standard
20432 inserts the figure number and
20435 \begin_inset Quotes eld
20441 \begin_inset Quotes erd
20444 creates a protected space.
20447 \begin_layout Standard
20448 \begin_inset VSpace bigskip
20456 \begin_inset LatexCommand index
20457 name "LaTeX-packages ! koma-script"
20463 article (koma-script)
20471 letter (koma-script)
20475 report (koma-script)
20477 \InsetSpace \thinspace{}
20478 ), you can alternatively to the
20486 's built-in command
20493 For example, to have the caption label in bold, add this command to your
20497 \begin_layout Standard
20502 setkomafont{captionlabel}{
20507 \begin_layout Standard
20508 For more information about
20519 \begin_inset LatexCommand cite
20520 key "koma-script,koma-script-de"
20527 \begin_layout Standard
20531 \begin_layout Standard
20535 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
20542 \begin_inset Note Note
20545 \begin_layout Standard
20546 The caption format is changed only for this example.
20554 \begin_layout Standard
20555 \begin_inset Float figure
20561 \begin_layout Standard
20563 \begin_inset Graphics
20564 filename clipart/mobius.eps
20567 scaleBeforeRotation
20574 \begin_layout Standard
20575 \begin_inset Caption
20577 \begin_layout Standard
20578 \begin_inset LatexCommand label
20579 name "fig:This-is-an-fig"
20583 This is an example figure caption that is longer than one line to show the
20584 different caption format.
20585 Here a self-defined caption format is used.
20598 \begin_layout Standard
20602 \begin_layout Standard
20606 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
20615 \begin_layout Standard
20616 \begin_inset Float table
20622 \begin_layout Standard
20623 \begin_inset Caption
20625 \begin_layout Standard
20626 \begin_inset LatexCommand label
20627 name "tab:This-is-an-tab"
20631 This is an example table caption that is longer than one line to show the
20632 different caption format.
20633 Here the standard caption format for tables in this document is used.
20641 \begin_layout Standard
20643 \begin_inset Tabular
20644 <lyxtabular version="3" rows="1" columns="5">
20646 <column alignment="center" valignment="top" leftline="true" width="0">
20647 <column alignment="center" valignment="top" leftline="true" width="0">
20648 <column alignment="center" valignment="top" leftline="true" width="0">
20649 <column alignment="center" valignment="top" leftline="true" width="0">
20650 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20651 <row topline="true" bottomline="true">
20652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20655 \begin_layout Standard
20661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20664 \begin_layout Standard
20670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20673 \begin_layout Standard
20679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20682 \begin_layout Standard
20688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20691 \begin_layout Standard
20710 \begin_layout Section
20712 \begin_inset LatexCommand index
20713 name "Caption ! Placement"
20718 \begin_inset LatexCommand index
20719 name "Floats ! Caption Placement"
20724 \begin_inset LatexCommand label
20725 name "sec:Caption-Placement"
20732 \begin_layout Standard
20733 The common caption placement rule is:
20736 \begin_layout Description
20737 Figure: Caption is set below the figure
20740 \begin_layout Description
20741 Table: Caption is set above the table
20744 \begin_layout Standard
20745 Having the caption above the table is unfortunately not supported in LaTeX's
20747 That means if you are using the document classes
20763 there will be no space between the caption and the table.
20764 To insert the needed space, add the following option to the load command
20765 of the LaTeX-package
20769 in your document preamble
20773 \begin_layout Standard
20774 See section\InsetSpace ~
20776 \begin_inset LatexCommand ref
20777 reference "sec:Caption-Formatting"
20781 for more information of the package
20793 \begin_layout Standard
20799 \begin_layout Standard
20805 \begin_inset LatexCommand index
20806 name "LaTeX-packages ! koma-script"
20812 article (koma-script)
20820 letter (koma-script)
20824 report (koma-script)
20826 \InsetSpace \thinspace{}
20827 ), you can alternatively to the
20831 package set the document class option
20838 \begin_layout Standard
20839 \begin_inset VSpace bigskip
20842 It is also possible to set the caption beside a figure or table.
20843 To get this the LaTeX-package
20848 \begin_inset LatexCommand index
20849 name "LaTeX-packages ! sidecap"
20853 has to be loaded in the document preamble with the line
20856 \begin_layout Standard
20861 usepackage[option]{sidecap}
20864 \begin_layout Standard
20865 If you set no option, the caption is placed on the side of the outer page
20866 margin -- to the right on odd pages, to the left on even pages.
20867 You can change the placement to inner margin with the option
20872 To force the placement always to the right or left, use the option
20883 \begin_layout Standard
20884 To place in LyX the caption of a float on the side, it is necessary to add
20885 these commands to the document preamble:
20888 \begin_layout Standard
20894 \begin_layout Standard
20907 \begin_layout Standard
20928 \begin_layout Standard
20949 \begin_layout Standard
20960 renewenvironment{table}{
20967 \begin_layout Standard
20980 \begin_layout Standard
21001 \begin_layout Standard
21019 \begin_layout Standard
21032 \begin_layout Standard
21053 \begin_layout Standard
21074 \begin_layout Standard
21085 renewenvironment{figure}{
21092 \begin_layout Standard
21105 \begin_layout Standard
21126 \begin_layout Standard
21144 \begin_layout Standard
21150 \begin_layout Standard
21151 The commands allow you to redefine the floats so that the caption is set
21153 For figure floats use the command
21156 \begin_layout Standard
21164 \begin_layout Standard
21165 in TeX-Code before the float.
21166 Behind the float insert the command
21169 \begin_layout Standard
21177 \begin_layout Standard
21178 in TeX-Code to get back to the original float definition.
21181 \begin_layout Standard
21182 For table floats use the corresponding commands
21185 \begin_layout Standard
21199 \begin_layout Standard
21200 Figure\InsetSpace ~
21202 \begin_inset LatexCommand ref
21203 reference "fig:cap-beside-fig"
21207 and Table\InsetSpace ~
21209 \begin_inset LatexCommand ref
21210 reference "tab:cap-beside-tab"
21214 are examples where the caption is set beside.
21217 \begin_layout Standard
21218 You can see in the examples that the caption text appears at the top of
21219 the floats for table floats and at the bottom for figure floats.
21220 To change this, you can use the command
21223 \begin_layout Standard
21228 sidecaptionvpos{float type}{placement}
21231 \begin_layout Standard
21232 in the document preamble or in TeX-Code before the float.
21233 The float type is either
21241 , the placement can be
21242 \begin_inset Quotes eld
21250 \begin_inset Quotes erd
21254 \begin_inset Quotes eld
21262 \begin_inset Quotes erd
21266 \begin_inset Quotes eld
21274 \begin_inset Quotes erd
21278 To have for example the caption of figure floats vertically centered, use
21282 \begin_layout Standard
21287 sidecaptionvpos{figure}{c}
21290 \begin_layout Standard
21291 This was used for Figure\InsetSpace ~
21293 \begin_inset LatexCommand ref
21294 reference "fig:cap-beside-fig-2"
21301 \begin_layout Standard
21302 \begin_inset VSpace medskip
21305 For more information about the package
21309 we refer to its documentation
21310 \begin_inset LatexCommand cite
21318 \begin_layout Standard
21319 \begin_inset Note Greyedout
21322 \begin_layout Standard
21332 \begin_inset LatexCommand index
21333 name "LaTeX-packages ! hypcap"
21337 , described in section\InsetSpace ~
21339 \begin_inset LatexCommand ref
21340 reference "sub:Reference-Position"
21344 , has no effect on floats with the caption set beside.
21352 \begin_layout Standard
21356 \begin_layout Standard
21368 \begin_layout Standard
21369 \begin_inset Float figure
21374 \begin_layout Standard
21375 \begin_inset Graphics
21376 filename clipart/escher-lsd.eps
21378 scaleBeforeRotation
21385 \begin_layout Standard
21386 \begin_inset Caption
21388 \begin_layout Standard
21389 \begin_inset LatexCommand label
21390 name "fig:cap-beside-fig"
21394 This is a caption beside a figure.
21407 \begin_layout Standard
21411 \begin_layout Standard
21423 \begin_layout Standard
21424 \begin_inset Float table
21429 \begin_layout Standard
21430 \begin_inset Caption
21432 \begin_layout Standard
21433 \begin_inset LatexCommand label
21434 name "tab:cap-beside-tab"
21438 This is a caption beside a table.
21446 \begin_layout Standard
21447 \begin_inset Tabular
21448 <lyxtabular version="3" rows="4" columns="5">
21450 <column alignment="center" valignment="top" leftline="true" width="0">
21451 <column alignment="center" valignment="top" leftline="true" width="0">
21452 <column alignment="center" valignment="top" leftline="true" width="0">
21453 <column alignment="center" valignment="top" leftline="true" width="0">
21454 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
21455 <row topline="true">
21456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21459 \begin_layout Standard
21465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21468 \begin_layout Standard
21474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21477 \begin_layout Standard
21483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21486 \begin_layout Standard
21492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21495 \begin_layout Standard
21502 <row topline="true">
21503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21506 \begin_layout Standard
21512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21515 \begin_layout Standard
21521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21524 \begin_layout Standard
21530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21533 \begin_layout Standard
21539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21542 \begin_layout Standard
21549 <row topline="true">
21550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21553 \begin_layout Standard
21559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21562 \begin_layout Standard
21568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21571 \begin_layout Standard
21577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21580 \begin_layout Standard
21586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21589 \begin_layout Standard
21596 <row topline="true" bottomline="true">
21597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21600 \begin_layout Standard
21606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21609 \begin_layout Standard
21615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21618 \begin_layout Standard
21624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21627 \begin_layout Standard
21633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21636 \begin_layout Standard
21655 \begin_layout Standard
21659 \begin_layout Standard
21671 \begin_layout Standard
21675 \begin_layout Standard
21679 sidecaptionvpos{figure}{c}
21685 \begin_inset Float figure
21690 \begin_layout Standard
21691 \begin_inset Graphics
21692 filename clipart/escher-lsd.eps
21694 scaleBeforeRotation
21701 \begin_layout Standard
21702 \begin_inset Caption
21704 \begin_layout Standard
21705 \begin_inset LatexCommand label
21706 name "fig:cap-beside-fig-2"
21710 This is a vertically centered caption beside a figure.
21723 \begin_layout Standard
21727 \begin_layout Standard
21739 \begin_layout Section
21741 \begin_inset LatexCommand label
21742 name "sec:Listings-of-Floats"
21747 \begin_inset LatexCommand index
21748 name "Floats ! Float Lists"
21755 \begin_layout Standard
21756 Similar to the the table of contents where the sections of the document
21757 are listed, there are listings for all float types, like the figures of
21759 You can insert them via the
21761 Insert\SpecialChar \menuseparator
21769 \begin_layout Standard
21770 The list entries are the float captions or its short title, the float number,
21771 and the page number where they appear in the document.
21774 \begin_layout Standard
21775 You can find the list of figures and tables at the end of this document.
21778 \begin_layout Chapter
21782 \begin_layout Section
21784 \begin_inset LatexCommand label
21785 name "sec:LyX-Notes"
21790 \begin_inset LatexCommand index
21791 name "Notes ! LyX Notes"
21798 \begin_layout Standard
21799 Notes are inserted with the toolbar button
21800 \begin_inset Graphics
21801 filename ../images/note-insert.png
21803 scaleBeforeRotation
21809 Insert\SpecialChar \menuseparator
21813 There are five types of notes:
21816 \begin_layout Description
21818 Note This note type is for internal notes that won't appear in the output.
21819 Its note-box looks like this:
21824 \begin_inset Graphics
21825 filename clipart/LyXNoteImageQt4.png
21828 scaleBeforeRotation
21833 \begin_inset Note Note
21836 \begin_layout Standard
21837 This is text in a note box that doesn't appear in the output.
21845 \begin_layout Description
21846 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21847 ent, when you export the document to LaTeX via the menu
21849 File\SpecialChar \menuseparator
21850 Export\SpecialChar \menuseparator
21851 LaTeX (pdflatex) / (plain)
21854 Its note-box looks like this:
21859 \begin_inset Graphics
21860 filename clipart/CommentNoteImageQt4.png
21863 scaleBeforeRotation
21868 \begin_inset Note Comment
21871 \begin_layout Standard
21872 This is text in a note box that only appears as comment in LaTeX-files.
21880 \begin_layout Description
21881 Greyed\InsetSpace ~
21882 Out This note will appear in the output as grey text.
21883 Its note-box looks like this:
21888 \begin_inset Graphics
21889 filename clipart/GreyedOutNoteImageQt4.png
21892 scaleBeforeRotation
21902 \begin_layout Standard
21906 renewenvironment{lyxgreyedout}
21909 \begin_layout Standard
21913 textcolor[gray]{0.8}
21923 \begin_inset Note Greyedout
21926 \begin_layout Standard
21931 \begin_layout Standard
21932 This is an example footnote within a greyed out note.
21937 of a comment that appears in the output as grey text.
21946 \begin_layout Standard
21950 renewenvironment{lyxgreyedout}
21953 \begin_layout Standard
21967 \begin_inset Note Note
21970 \begin_layout Standard
21971 The greyed out note is here redefined to show it with the original LyX definitio
21972 n because greyed out notes are redefined in the preamble of this document,
21973 as described below, to have blue text.
21982 As you can see in the example, the first line of greyed out notes is a bit
21983 indented and greyed out notes can have footnotes.
21986 \begin_layout Description
21987 Framed This note will appear in the output as framed text.
21988 Its note-box looks like this:
21993 \begin_inset Graphics
21994 filename clipart/FramedNoteImageQt4.png
21997 scaleBeforeRotation
22002 \begin_inset Note Framed
22005 \begin_layout Standard
22006 This is text in a note box that appears framed in the output.
22011 In contrary to framed boxes
22015 \begin_layout Standard
22016 Framed boxes are described in section\InsetSpace ~
22018 \begin_inset LatexCommand ref
22019 reference "sec:Framed-Boxes"
22028 the frame uses always the whole text width and the note is set into its
22032 \begin_layout Description
22033 Shaded This note will appear in the output with red background color.
22034 Its note box looks like this:
22039 \begin_inset Graphics
22040 filename clipart/ShadedNoteImageQt4.png
22043 scaleBeforeRotation
22048 \begin_inset Note Shaded
22051 \begin_layout Standard
22052 This text in a note box appears in the output with red background.
22057 In contrary to colored boxes
22061 \begin_layout Standard
22062 Colored boxes are described in section\InsetSpace ~
22064 \begin_inset LatexCommand ref
22065 reference "sec:Colored-Boxes"
22074 the note uses always the whole text width and the note is set into its
22078 \begin_layout Standard
22079 \begin_inset VSpace bigskip
22082 When you use the toolbar button
22083 \begin_inset Graphics
22084 filename ../images/note-insert.png
22086 scaleBeforeRotation
22096 You can switch between the five note types by right-clicking on the note-box.
22101 If you want to turn existing text into a note, mark it and click on the
22115 To change a note to text, press the backspace key when the cursor is in
22116 the first position of a note, or press the deletey key when the cursor
22117 is in the very last position of the note, respectively.
22120 \begin_layout Standard
22121 \begin_inset VSpace bigskip
22124 You can change the text color of the greyed out notes in the preamble with
22125 the following command:
22128 \begin_layout Standard
22133 renewenvironment{lyxgreyedout}
22139 \begin_layout Standard
22157 \begin_layout Standard
22158 The available colors and the method to define own colors is explained in
22159 section\InsetSpace ~
22161 \begin_inset LatexCommand ref
22162 reference "sec:Colored-Tables"
22169 \begin_layout Standard
22170 Notes that appear in blue in this document are set using greyed out notes
22174 \begin_layout Standard
22175 \begin_inset VSpace bigskip
22181 \begin_layout Standard
22190 notes can be set in the
22197 \begin_layout Standard
22198 The default frame width for
22202 notes is 0.4\InsetSpace \thinspace{}
22203 pt; it can be changed by changing the size
22210 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
22212 be changed by changing the size
22219 For example the frame appearance of the following
22223 note is set with the TeX-Code commands
22226 \begin_layout Standard
22236 \begin_layout Standard
22240 \begin_layout Standard
22252 \begin_inset Note Framed
22255 \begin_layout Standard
22269 \begin_layout Standard
22283 \begin_layout Standard
22284 \begin_inset VSpace bigskip
22290 \begin_layout Standard
22295 notes the default space between the note content and the note border is
22296 3\InsetSpace \thinspace{}
22297 pt; it can be changed by changing the size
22305 The default background color red can be changed with the command
22309 def\SpecialChar \textcompwordmark{}
22317 def\SpecialChar \textcompwordmark{}
22320 command is explained in section\InsetSpace ~
22322 \begin_inset LatexCommand ref
22323 reference "sec:Colored-Tables"
22331 \begin_layout Standard
22338 \SpecialChar \textcompwordmark{}
22343 requires the LaTeX-package
22347 in the preamble, see section\InsetSpace ~
22349 \begin_inset LatexCommand ref
22350 reference "sec:Colored-Boxes"
22362 \begin_layout Standard
22363 For example the appearance of the following
22367 note is set with the TeX-Code commands
22370 \begin_layout Standard
22383 def\SpecialChar \textcompwordmark{}
22384 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22387 \begin_layout Standard
22391 \begin_layout Standard
22404 \begin_layout Standard
22408 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22414 \begin_inset Note Shaded
22417 \begin_layout Standard
22420 This is yellow text in a
22430 note with darkgreen background.
22439 \begin_layout Standard
22452 \begin_layout Standard
22456 definecolor{shadecolor}{rgb}{1,0,0}
22464 \begin_layout Section
22466 \begin_inset LatexCommand label
22467 name "sec:Footnotes"
22472 \begin_inset LatexCommand index
22473 name "Notes ! Footnotes"
22478 \begin_inset LatexCommand index
22486 \begin_layout Standard
22487 Footnotes can be inserted using the toolbar button
22488 \begin_inset Graphics
22489 filename ../images/footnote-insert.png
22491 scaleBeforeRotation
22497 Insert\SpecialChar \menuseparator
22509 then the following footnote-box:
22510 \begin_inset Graphics
22511 filename clipart/footnoteQt4.png
22513 scaleBeforeRotation
22521 where you can enter the footnote text.
22522 If you want to turn existing text into a footnote, mark it and click on
22544 to text, press the Backspace key when the cursor is in the first position
22553 , or press the Delete key when the cursor is in the very last position of
22565 \begin_layout Standard
22566 Here is an example footnote:
22574 \begin_layout Standard
22575 \begin_inset LatexCommand label
22576 name "foot:This-is-an"
22580 This is an example footnote.
22593 \begin_layout Standard
22597 newcounter{MyRepeatFoot}
22600 \begin_layout Standard
22604 setcounter{MyRepeatFoot}{
22614 \begin_layout Standard
22615 The footnote will appear in the output as a superscript number at the text
22616 position where the footnote box is placed.
22617 The footnote text is placed at the bottom of the current page.
22618 The footnote number is calculated by LaTeX, the numbers are consecutive.
22619 It depends on your document-class, if the footnote number is reset for
22623 \begin_layout Standard
22624 Footnotes can be referenced like floats: Insert a label into the footnote
22625 and cross-reference this label in the text as described in section\InsetSpace ~
22627 \begin_inset LatexCommand ref
22628 reference "sec:Referencing-Floats"
22634 This is a cross-reference of Footnote\InsetSpace ~
22636 \begin_inset LatexCommand ref
22637 reference "foot:This-is-an"
22644 \begin_layout Standard
22645 \begin_inset VSpace defskip
22648 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
22650 \begin_inset LatexCommand ref
22651 reference "sec:Minipages"
22656 Footnotes within longtables are described in section\InsetSpace ~
22658 \begin_inset LatexCommand ref
22659 reference "sub:Footnotes-in-Longtables"
22666 \begin_layout Standard
22667 \begin_inset VSpace defskip
22670 To create only a mark for a footnote, use the command
22674 footnotemark[number]
22677 This is used when you have the same annotation several times in a text
22678 but doesn't want to print the footnote text every time.
22681 the number of the repeating footnote while you are writing the text, you
22682 have to store its number.
22683 For the following footnote mark example, these commands were inserted in
22684 TeX-Code behind Footnote\InsetSpace ~
22686 \begin_inset LatexCommand ref
22687 reference "foot:This-is-an"
22691 to store the footnote number:
22694 \begin_layout Standard
22699 newcounter{MyRepeatFoot}
22703 setcounter{MyRepeatFoot}{
22708 \begin_layout Standard
22709 The footnote mark was then created with this command:
22712 \begin_layout Standard
22722 \begin_layout Standard
22723 Here is an example footnote mark:
22731 \begin_layout Standard
22745 \begin_layout Subsection
22747 \begin_inset LatexCommand label
22748 name "sub:Footnote-Numbering"
22753 \begin_inset LatexCommand index
22754 name "Footnotes ! Numbering"
22761 \begin_layout Standard
22762 To reset the footnote number back to 1 after each section
22764 , add this command to your document preamble:
22767 \begin_layout Standard
22772 @addtoreset{footnote}{section}
22775 \begin_layout Standard
22776 \begin_inset VSpace bigskip
22779 The following preamble command changes the footnote numbering style to small
22783 \begin_layout Standard
22795 \begin_layout Standard
22799 \begin_layout Standard
22812 This is a footnote with roman numbering:
22816 \begin_layout Standard
22817 This is an example footnote with roman numbering.
22825 \begin_layout Standard
22826 To change the numbering style to capital roman numerals replace in the command
22841 \begin_inset Quotes eld
22845 \begin_inset Quotes erd
22848 footnotes with capital or small Latin letters use
22862 \begin_inset Quotes eld
22866 \begin_inset Quotes erd
22869 footnotes with symbols use
22878 \begin_layout Standard
22879 \begin_inset Note Greyedout
22882 \begin_layout Standard
22887 You can only number 26 footnotes with Latin letters, because this numbering
22888 is limited to single letters.
22896 \begin_inset Note Greyedout
22899 \begin_layout Standard
22904 You can only number 9 footnotes with symbols.
22912 \begin_layout Standard
22913 To return to the default numbering style when you changed to another one,
22926 in the command above.
22930 \begin_layout Standard
22946 \begin_layout Standard
22947 \begin_inset VSpace bigskip
22953 \begin_layout Standard
22954 If you want to have footnotes numbered in the scheme
22955 \begin_inset Quotes eld
22959 \begin_inset Quotes erd
22962 , add the following command to your document preamble:
22965 \begin_layout Standard
22970 numberwithin{footnote}{chapter}
22973 \begin_layout Standard
22974 To be able to use the command
22985 in the document settings the option
22995 \begin_layout Standard
22999 \begin_layout Standard
23003 numberwithin{footnote}{chapter}
23008 This is another example footnote:
23014 \begin_layout Standard
23015 This is a footnote numbered in the scheme
23016 \begin_inset Quotes eld
23020 \begin_inset Quotes erd
23034 \begin_layout Standard
23050 \begin_layout Standard
23051 \begin_inset Note Greyedout
23054 \begin_layout Standard
23065 always prints out the footnote number as arabic number; previous redefinitions
23066 to get non-arabic numbers are overwritten.
23074 \begin_layout Standard
23075 So to get for example the scheme
23076 \begin_inset Quotes eld
23082 \begin_inset Quotes erd
23085 , use this command instead of
23094 \begin_layout Standard
23108 \begin_layout Subsection
23110 \begin_inset LatexCommand index
23111 name "Footnotes ! Placement"
23118 \begin_layout Standard
23119 If you have several footnotes in one page, they appear without vertical
23120 space between them at the bottom of the page.
23121 To make them better readable you can e.\InsetSpace \thinspace{}
23123 add 1.5\InsetSpace \thinspace{}
23124 mm space with the following
23128 \begin_layout Standard
23150 \begin_layout Standard
23151 \begin_inset VSpace bigskip
23154 In a two-column document the footnotes appear at the bottom of every column,
23155 see Figure\InsetSpace ~
23157 \begin_inset LatexCommand ref
23158 reference "fig:Standard-footnote-placement"
23163 If the footnotes should only appear at the bottom of the right column,
23164 as in Figure\InsetSpace ~
23166 \begin_inset LatexCommand ref
23167 reference "fig:Footnote-placement-in"
23171 , use the LaTeX-package
23176 \begin_inset LatexCommand index
23177 name "LaTeX-packages ! ftnright"
23181 with this command in the document preamble:
23184 \begin_layout Standard
23189 usepackage{ftnright}
23192 \begin_layout Standard
23193 \begin_inset Float figure
23199 \begin_layout Standard
23203 \begin_layout Standard
23213 \begin_inset Graphics
23214 filename clipart/without_fntright.pdf
23216 scaleBeforeRotation
23224 \begin_layout Standard
23234 \begin_layout Standard
23235 \begin_inset Caption
23237 \begin_layout Standard
23238 \begin_inset LatexCommand label
23239 name "fig:Standard-footnote-placement"
23243 Standard footnote placement in two-column documents.
23256 \begin_layout Standard
23257 \begin_inset Float figure
23263 \begin_layout Standard
23267 \begin_layout Standard
23277 \begin_inset Graphics
23278 filename clipart/with_fntright.pdf
23280 scaleBeforeRotation
23288 \begin_layout Standard
23298 \begin_layout Standard
23299 \begin_inset Caption
23301 \begin_layout Standard
23302 \begin_inset LatexCommand label
23303 name "fig:Footnote-placement-in"
23307 Footnote placement in two-column documents when the LaTeX-package
23324 \begin_layout Standard
23325 \begin_inset VSpace bigskip
23328 In some scientific literature it is usual to collect the footnotes and print
23329 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
23331 \begin_inset LatexCommand ref
23332 reference "fig:Endnotes----footnotes"
23337 They are then so called
23338 \begin_inset Quotes eld
23342 \begin_inset Quotes erd
23346 To use endnotes instead of footnotes in your document, load the LaTeX-package
23352 \begin_inset LatexCommand index
23353 name "LaTeX-packages ! endnotes"
23357 with the document preamble lines
23360 \begin_layout Standard
23365 usepackage{endnotes}
23376 \begin_layout Standard
23377 To insert the collected footnotes, insert the command
23380 \begin_layout Standard
23388 \begin_layout Standard
23389 in TeX-Code at the the end of a section or chapter.
23392 \begin_layout Standard
23393 \begin_inset Float figure
23398 \begin_layout Standard
23403 \begin_layout Standard
23413 \begin_inset Graphics
23414 filename clipart/endnotes.pdf
23415 scaleBeforeRotation
23423 \begin_layout Standard
23433 \begin_layout Standard
23434 \begin_inset Caption
23436 \begin_layout Standard
23437 \begin_inset LatexCommand label
23438 name "fig:Endnotes----footnotes"
23442 Endnotes -- footnotes are printed in a separate paragraph at the end of
23443 sections or chapters.
23456 \begin_layout Standard
23457 \begin_inset VSpace medskip
23460 The paragraph heading for the endnotes isn't automatically translated into
23461 the document language, this must be done manually.
23462 The following preamble command translate the default English name
23463 \begin_inset Quotes eld
23467 \begin_inset Quotes erd
23470 to the German translation
23471 \begin_inset Quotes eld
23475 \begin_inset Quotes erd
23481 \begin_layout Standard
23488 notesname}{Anmerkungen}
23491 \begin_layout Standard
23492 \begin_inset VSpace medskip
23495 The numbering of endnotes can be changed like the footnote numbering as
23496 described in section\InsetSpace ~
23498 \begin_inset LatexCommand ref
23499 reference "sub:Footnote-Numbering"
23503 ; just replace the command
23516 To reset the endnote number use the command
23522 as described in section\InsetSpace ~
23524 \begin_inset LatexCommand ref
23525 reference "sub:Footnote-Numbering"
23529 and replace the command parameter
23540 \begin_layout Standard
23541 To create only a mark for an endnote, use the command
23545 endnotemark[number]
23547 similar to the command
23553 , described in section\InsetSpace ~
23555 \begin_inset LatexCommand ref
23556 reference "sec:Footnotes"
23563 \begin_layout Standard
23564 \begin_inset VSpace bigskip
23567 Footnotes can also be placed in the page margin and the footnote text alignment
23568 can be changed, see the LaTeX-package
23573 \begin_inset LatexCommand index
23574 name "LaTeX-packages ! footmisc"
23579 \begin_inset LatexCommand cite
23584 for more information about this.
23587 \begin_layout Standard
23588 For various further footnote formatting issues have a look at LaTeX-books,
23590 \begin_inset LatexCommand cite
23591 key "latexcompanion,latexguide,latexbook"
23598 \begin_layout Section
23600 \begin_inset LatexCommand index
23601 name "Notes ! Margin Notes"
23608 \begin_layout Standard
23609 Margin notes look and behave in LyX like footnotes.
23610 They are inserted via the menu
23612 Insert\SpecialChar \menuseparator
23613 Marginal\InsetSpace ~
23616 or the toolbar button
23617 \begin_inset Graphics
23618 filename ../images/marginalnote-insert.png
23620 scaleBeforeRotation
23635 \begin_inset Quotes eld
23639 \begin_inset Quotes erd
23642 appears where you can enter the text of the margin note.
23645 \begin_layout Standard
23646 At the side is an example margin note.
23650 \begin_inset Marginal
23653 \begin_layout Standard
23654 This is a margin note.
23662 \begin_layout Standard
23663 Margin notes appear at the right side in single-sided documents.
23664 In double-sided documents they appear in the outer margin -- left on even
23665 pages, right on odd pages.
23666 The text of margin notes is aligned opposite to the outer margin -- right-align
23667 ed when the note appears in the left margin.
23668 The first line of the margin note is placed at the position of the text
23669 line where it is inserted in the document.
23672 \begin_layout Standard
23673 \begin_inset VSpace bigskip
23676 To place the margin note in the inner margin, add the command
23679 \begin_layout Standard
23687 \begin_layout Standard
23688 in TeX-Code before a margin note.
23689 The new placement is valid for all following margin notes.
23693 \begin_layout Standard
23703 \begin_inset Marginal
23706 \begin_layout Standard
23707 This is a margin note in the inner margin.
23719 \begin_inset Note Greyedout
23722 \begin_layout Standard
23727 There is often not enough space in the inner margin so that the notes are
23728 not correctly displayed in the output.
23736 \begin_layout Standard
23737 To return to the default placement insert the command
23740 \begin_layout Standard
23748 \begin_layout Standard
23753 \begin_layout Standard
23763 \begin_inset Note Greyedout
23766 \begin_layout Standard
23771 The command is ignored when it is within a paragraph where also the command
23786 \begin_layout Standard
23787 \begin_inset VSpace bigskip
23794 \begin_inset Marginal
23797 \begin_layout Standard
23798 AVeryLongMarginParWord that isn't hyphenated.
23806 Similar to the case described in section\InsetSpace ~
23808 \begin_inset LatexCommand ref
23809 reference "sub:Multiple-Lines-in"
23813 , long words cannot be hyphenated when they are the first word in a margin
23815 To avoid this, insert the command
23818 \begin_layout Standard
23826 \begin_layout Standard
23827 in TeX-Code before the word
23831 \begin_inset Marginal
23834 \begin_layout Standard
23838 \begin_layout Standard
23847 AVeryLongMarginParWord that is hyphenated.
23855 \begin_layout Standard
23856 \begin_inset VSpace bigskip
23862 \begin_layout Standard
23863 \begin_inset Note Greyedout
23866 \begin_layout Standard
23871 Margin notes can normally not be used inside tables, floats, and footnotes.
23879 \begin_layout Standard
23880 \begin_inset VSpace bigskip
23886 \begin_layout Standard
23890 \begin_layout Standard
23900 \begin_inset Note Note
23903 \begin_layout Standard
23904 The following section will only be displayed when the LaTeX-package
23916 \begin_layout Standard
23917 This restriction can be evaded by using the LaTeX-package
23922 \begin_inset LatexCommand index
23923 name "LaTeX-packages ! marginnote"
23928 By adding these two lines to your document preamble, the command used by
23929 LyX for margin notes is redefined to use the command provided by the
23936 \begin_layout Standard
23941 usepackage{marginnote}
23952 \begin_layout Standard
23953 This is also used in this document because
23957 has another useful feature: You can set a vertical offset for the note.
23958 This is often needed when too many margin notes are too close together
23959 or for a better page layout.
23960 The offset is set in LyX as TeX-Code directly behind the margin note in
23964 \begin_layout Standard
23970 \begin_layout Standard
23971 where the offset is a length with one of the units listed in Table\InsetSpace ~
23973 \begin_inset LatexCommand ref
23974 reference "tab:Units"
23979 A negative value shifts the note up, a positive value shifts it down.
23983 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23985 the TeX-Code-command
23986 \begin_inset Quotes eld
23996 \begin_inset Quotes erd
24000 \begin_inset Marginal
24003 \begin_layout Standard
24004 This margin note is shifted up 1.5\InsetSpace \thinspace{}
24005 cm from its original position.
24017 \begin_layout Standard
24027 \begin_layout Standard
24028 \begin_inset VSpace medskip
24035 you can also change the alignment of the text in the margin note.
24036 For example the commands
24039 \begin_layout Standard
24046 raggedleftmarginnote}{
24054 raggedrightmarginnote}{
24059 \begin_layout Standard
24060 set the alignment to centered.
24065 raggedleftmarginnote
24067 denotes margin notes that appear at the left side.
24074 \begin_layout Standard
24080 raggedleftmarginnote}{
24085 \begin_layout Standard
24091 raggedrightmarginnote}{
24099 \begin_inset Marginal
24102 \begin_layout Standard
24103 The text of this margin note is centered.
24114 \begin_layout Standard
24121 raggedleftmarginnote}{
24129 raggedrightmarginnote}{
24138 \begin_layout Standard
24144 raggedleftmarginnote}{
24149 \begin_layout Standard
24155 raggedrightmarginnote}{
24165 \begin_layout Standard
24166 \begin_inset VSpace medskip
24169 For the other features of
24173 we refer to its documentation
24174 \begin_inset LatexCommand cite
24182 \begin_layout Standard
24183 \begin_inset VSpace bigskip
24186 You can adjust the layout of margin notes by changing its definition.
24187 To create for example a header for all margin notes with the underlined,
24188 sans-serif, and bold header text
24189 \begin_inset Quotes eld
24201 \begin_inset Quotes erd
24204 , add this to your document preamble:
24207 \begin_layout Standard
24230 \begin_layout Standard
24247 underbar{Attention!}}}%
24253 \begin_layout Standard
24271 \begin_layout Standard
24278 \begin_layout Standard
24289 \begin_layout Standard
24300 \begin_layout Standard
24308 underbar{Attention!}}}%
24311 \begin_layout Standard
24325 \begin_inset Marginal
24328 \begin_layout Standard
24329 This is a margin note with a defined heading.
24341 \begin_layout Standard
24355 \begin_layout Standard
24372 \begin_inset Note Note
24375 \begin_layout Standard
24376 The margin note format is changed only for this example.
24384 \begin_layout Standard
24388 \begin_layout Standard
24398 \begin_inset Note Note
24401 \begin_layout Standard
24402 The following will be displayed when the LaTeX-package
24414 \begin_layout Standard
24415 You need to install the LaTeX-package
24419 to see the following part of this section in the output.
24422 \begin_layout Standard
24426 \begin_layout Standard
24438 \begin_layout Chapter
24442 \begin_layout Section
24444 \begin_inset LatexCommand index
24445 name "Boxes ! Introduction"
24452 \begin_layout Standard
24453 Boxes are used to format a block of text.
24454 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24456 \begin_inset LatexCommand ref
24457 reference "sec:Minipages"
24461 , to frame texts, see section\InsetSpace ~
24463 \begin_inset LatexCommand ref
24464 reference "sec:Framed-Boxes"
24468 , to prevent words to be hyphenated, see section\InsetSpace ~
24470 \begin_inset LatexCommand ref
24471 reference "sec:Prevent-Hyphenation"
24475 , to align text, see section\InsetSpace ~
24477 \begin_inset LatexCommand ref
24478 reference "sub:Vertical-Alignment"
24482 , or to set the background color of texts, see section\InsetSpace ~
24484 \begin_inset LatexCommand ref
24485 reference "sec:Colored-Boxes"
24492 \begin_layout Standard
24493 Boxes can be inserted with the menu
24495 Insert\SpecialChar \menuseparator
24498 or the toolbar button
24499 \begin_inset Graphics
24500 filename ../images/box-insert.png
24502 scaleBeforeRotation
24507 A grey box with the label
24512 \begin_inset Graphics
24513 filename clipart/BoxInsetDefaultQt4.png
24515 scaleBeforeRotation
24519 , will be inserted.
24520 The box type can be specified by right-clicking on the box.
24521 The appearing box dialog offers the
24539 is the default for new boxes and is explained in section\InsetSpace ~
24541 \begin_inset LatexCommand ref
24542 reference "sec:Minipages"
24550 is described in section\InsetSpace ~
24552 \begin_inset LatexCommand ref
24553 reference "sec:Parboxes"
24560 \begin_layout Standard
24561 Boxes aren't numbered and can therefore not be referenced like floats or
24565 \begin_layout Standard
24566 \begin_inset Note Greyedout
24569 \begin_layout Standard
24574 Boxes must not be the item in an
24590 \begin_layout Standard
24591 \begin_inset Note Greyedout
24594 \begin_layout Standard
24599 For an unknown reason you can only set the
24608 when you use a framed box.
24614 type and without frames are explained in section\InsetSpace ~
24616 \begin_inset LatexCommand ref
24617 reference "sec:Prevent-Hyphenation"
24629 \begin_layout Section
24631 \begin_inset LatexCommand label
24632 name "sec:Box-Dialog"
24637 \begin_inset LatexCommand index
24638 name "Boxes ! Box Dialog"
24643 \begin_inset LatexCommand index
24644 name "Boxes ! Alignment"
24651 \begin_layout Standard
24652 In the box dialog you can adjust the box geometry in the fields
24661 The available units for the geometry are explained in Table\InsetSpace ~
24663 \begin_inset LatexCommand ref
24664 reference "tab:Units"
24673 offers the following additional sizes:
24676 \begin_layout Description
24677 Depth This is the plain text
24678 \begin_inset Quotes eld
24682 \begin_inset Quotes erd
24686 It ignores the total depth when there are multiple text lines in the box:
24693 \begin_inset Box Boxed
24702 height_special "depth"
24705 \begin_layout Standard
24707 Box height set to 1\InsetSpace \thinspace{}
24720 \begin_layout Description
24721 Height This is the heigth of the text that is inside the box.
24722 A value of e.\InsetSpace \thinspace{}
24724 2 for this size will set the box heigth to 2 times the text
24726 \begin_inset Box Boxed
24735 height_special "height"
24738 \begin_layout Standard
24740 Box height set to 2\InsetSpace \thinspace{}
24749 \begin_layout Description
24751 Height This is the Height\InsetSpace \thinspace{}
24752 +\InsetSpace \thinspace{}
24754 \begin_inset Box Boxed
24763 height_special "totalheight"
24766 \begin_layout Standard
24768 Box height set to 1\InsetSpace \thinspace{}
24778 \begin_layout Description
24779 Width This sets the width of the box as heigth:
24780 \begin_inset Box Boxed
24789 height_special "width"
24792 \begin_layout Standard
24794 Box height set to 1\InsetSpace \thinspace{}
24803 \begin_layout Standard
24804 \begin_inset VSpace bigskip
24807 When you have chosen an
24812 , the vertical box alignment can be:
24815 \begin_layout Description
24816 Top This is an example text line.
24818 \begin_inset Box Boxed
24827 height_special "totalheight"
24830 \begin_layout Standard
24832 This box is top-aligned.
24837 This is an example text line.
24840 \begin_layout Description
24841 Middle This is an example text line.
24843 \begin_inset Box Boxed
24852 height_special "totalheight"
24855 \begin_layout Standard
24857 This box is middle-aligned.
24862 This is an example text line.
24865 \begin_layout Description
24866 Bottom This is an example text line.
24868 \begin_inset Box Boxed
24877 height_special "totalheight"
24880 \begin_layout Standard
24882 This box is bottom-aligned.
24887 This is an example text line.
24890 \begin_layout Standard
24891 The horizontal box alignment can be set via LyX's paragraph dialog when
24892 you set the box into its own paragraph.
24895 \begin_layout Standard
24896 \begin_inset VSpace bigskip
24899 When you have chosen an
24904 , the box content can be vertical aligned to:
24907 \begin_layout Description
24908 top This is an example text line.
24910 \begin_inset Box Boxed
24919 height_special "totalheight"
24922 \begin_layout Standard
24924 This box text is top-aligned.
24929 This is an example text line.
24932 \begin_layout Description
24933 middle This is an example text line.
24935 \begin_inset Box Boxed
24944 height_special "totalheight"
24947 \begin_layout Standard
24949 This box text is middle-aligned.
24954 This is an example text line.
24957 \begin_layout Description
24958 bottom This is an example text line.
24960 \begin_inset Box Boxed
24969 height_special "totalheight"
24972 \begin_layout Standard
24974 This box text is bottom-aligned.
24979 This is an example text line.
24982 \begin_layout Description
24983 stretch This is an example text line.
24985 \begin_inset Box Boxed
24994 height_special "totalheight"
24997 \begin_layout Standard
25002 \begin_layout Standard
25007 \begin_layout Standard
25014 This is an example text line.
25017 \begin_layout Standard
25018 To stretch the box content, it must consist of more than one paragraph.
25019 In the example above every text line is in an own paragraph.
25022 \begin_layout Standard
25023 \begin_inset VSpace bigskip
25026 To align the box content horizontally you can use LyX's paragraph dialog
25027 when you have chosen an
25035 \begin_layout Standard
25037 \begin_inset Box Boxed
25046 height_special "totalheight"
25049 \begin_layout Standard
25054 \begin_layout Standard
25059 \begin_layout Standard
25069 \begin_layout Standard
25070 If you haven't set an
25075 , you can align the box content horizontally in the box dialog.
25078 \begin_layout Standard
25080 \begin_inset Box Boxed
25089 height_special "totalheight"
25092 \begin_layout Standard
25094 This box text is horizontally stretched.
25102 \begin_layout Section
25104 \begin_inset LatexCommand label
25105 name "sec:Framed-Boxes"
25110 \begin_inset LatexCommand index
25111 name "Boxes ! Frames"
25118 \begin_layout Standard
25119 The frame style of the box can be specified in the box-dialog in the drop-down
25125 The following frame types are possible:
25128 \begin_layout Description
25129 Rectangular\InsetSpace ~
25130 box This draws a rectangle frame around the box.
25131 The frame line thickness has the size of
25139 \begin_inset Box Boxed
25148 height_special "totalheight"
25151 \begin_layout Standard
25161 \begin_layout Description
25164 thin This draws an oval frame around the box.
25165 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
25168 \begin_inset Box ovalbox
25177 height_special "totalheight"
25180 \begin_layout Standard
25190 \begin_layout Description
25193 thick This draws an oval frame around the box.
25194 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
25197 \begin_inset Box Ovalbox
25206 height_special "totalheight"
25209 \begin_layout Standard
25219 \begin_layout Description
25220 Shadow\InsetSpace ~
25221 box This draws a rectangle frame with a shadow around the box.
25222 The frame line thickness has the size of
25228 , the shadow has a width of 4\InsetSpace \thinspace{}
25231 \begin_inset Box Shadowbox
25240 height_special "totalheight"
25243 \begin_layout Standard
25253 \begin_layout Description
25254 Double\InsetSpace ~
25255 box This draws a double-line rectangle frame around the box.
25256 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
25263 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
25271 The distance between the lines is 1.5\InsetSpace \thinspace{}
25278 \InsetSpace \thinspace{}
25279 +\InsetSpace \thinspace{}
25280 0.5\InsetSpace \thinspace{}
25283 \begin_inset Box Doublebox
25292 height_special "totalheight"
25295 \begin_layout Standard
25305 \begin_layout Standard
25306 \begin_inset VSpace bigskip
25309 LyX's box label will change to the used frame style when you set a frame.
25310 To be able to use the different frame styles, the LaTeX-package
25315 \begin_inset LatexCommand index
25316 name "LaTeX-packages ! fancybox"
25323 \begin_layout Standard
25324 \begin_inset VSpace bigskip
25327 The default value for the size
25333 is 0.4\InsetSpace \thinspace{}
25335 It can be changed with the following command in TeX-Code to e.\InsetSpace \thinspace{}
25337 2\InsetSpace \thinspace{}
25341 \begin_layout Standard
25351 \begin_layout Standard
25355 \begin_layout Standard
25367 \begin_inset Box Boxed
25376 height_special "totalheight"
25379 \begin_layout Standard
25381 Rectangular box with
25387 \InsetSpace \thinspace{}
25388 =\InsetSpace \thinspace{}
25389 2\InsetSpace \thinspace{}
25399 \begin_layout Standard
25413 \begin_layout Standard
25414 \begin_inset VSpace bigskip
25417 The space between the frame and the box content is for all frame styles
25418 by default 3\InsetSpace \thinspace{}
25420 You can change it by setting the length
25427 For example the command
25430 \begin_layout Standard
25440 \begin_layout Standard
25441 sets the value to 10\InsetSpace \thinspace{}
25442 pt, like for the following box:
25445 \begin_layout Standard
25449 \begin_layout Standard
25461 \begin_inset Box Boxed
25470 height_special "totalheight"
25473 \begin_layout Standard
25475 Rectangular box with
25481 \InsetSpace \thinspace{}
25482 =\InsetSpace \thinspace{}
25483 10\InsetSpace \thinspace{}
25493 \begin_layout Standard
25507 \begin_layout Standard
25508 \begin_inset VSpace bigskip
25511 The diameter of the round corners of the oval boxes can be set with the
25522 \begin_layout Standard
25530 \begin_layout Standard
25531 sets the diameter to 1\InsetSpace \thinspace{}
25536 \begin_layout Standard
25544 \begin_layout Standard
25545 sets the diameter to
25547 num\InsetSpace \thinspace{}
25548 ×\InsetSpace \thinspace{}
25549 minimum(width and heigth of box)
25561 \begin_layout Standard
25565 \begin_layout Standard
25575 \begin_inset Box Ovalbox
25584 height_special "totalheight"
25587 \begin_layout Standard
25595 \InsetSpace \thinspace{}
25596 =\InsetSpace \thinspace{}
25597 1.5\InsetSpace \thinspace{}
25607 \begin_layout Standard
25619 \begin_layout Standard
25620 \begin_inset VSpace bigskip
25623 The size of the shadow can be adjusted by changing the length
25630 It it set to 2\InsetSpace \thinspace{}
25631 pt for the following box by this command:
25634 \begin_layout Standard
25644 \begin_layout Standard
25648 \begin_layout Standard
25660 \begin_inset Box Shadowbox
25669 height_special "totalheight"
25672 \begin_layout Standard
25680 \InsetSpace \thinspace{}
25681 =\InsetSpace \thinspace{}
25682 2\InsetSpace \thinspace{}
25692 \begin_layout Standard
25706 \begin_layout Standard
25707 \begin_inset VSpace bigskip
25710 Changed lengths and widths are valid for all boxes following the commands
25714 \begin_layout Section
25716 \begin_inset LatexCommand label
25717 name "sec:Minipages"
25722 \begin_inset LatexCommand index
25723 name "Boxes ! Minipages"
25730 \begin_layout Standard
25731 Minipages are treated by LaTeX as pages within pages and can therefore for
25732 example have their own footnotes.
25735 \begin_layout Standard
25736 Minipages are useful when you write documents with different languages.
25739 \begin_layout Standard
25740 Below are two example minipages side by side.
25741 Their width is set to 45\InsetSpace \thinspace{}
25742 col% and they are separated by a horizontal fill,
25743 that was inserted via the menu
25745 Insert\SpecialChar \menuseparator
25746 Special\InsetSpace ~
25747 Formatting\SpecialChar \menuseparator
25748 Horizontal\InsetSpace ~
25754 \begin_layout Standard
25755 \begin_inset Box Frameless
25764 height_special "totalheight"
25767 \begin_layout Standard
25770 Dies ist ein deutscher Text.
25771 Dies ist ein deutscher Text.
25772 Dies ist ein deutscher Text.
25773 Dies ist ein deutscher Text.
25774 Dies ist ein deutscher Text.
25775 Dies ist ein deutscher Text.
25776 Dies ist ein deutscher Text.
25777 Dies ist ein deutscher Text.
25778 Dies ist ein deutscher Text.
25779 Dies ist ein deutscher Text.
25780 Dies ist ein deutscher Text.
25781 Dies ist ein deutscher Text.
25782 Dies ist ein deutscher Text
25786 \begin_layout Standard
25789 Dies ist eine deutsche Fußnote.
25795 Dies ist ein deutscher Text.
25796 Dies ist ein deutscher Text.
25804 \begin_inset Box Frameless
25813 height_special "totalheight"
25816 \begin_layout Standard
25817 This is an English Text.
25818 This is an English Text.
25819 This is an English Text.
25820 This is an English Text.
25821 This is an English Text.
25822 This is an English Text.
25823 This is an English Text.
25824 This is an English Text.
25825 This is an English Text.
25826 This is an English Text.
25827 This is an English Text.
25828 This is an English Text.
25829 This is an English Text.
25830 This is an English Text.
25831 This is an English Text.
25832 This is an English Text.
25836 \begin_layout Standard
25837 This is an English footnote.
25842 This is an English Text.
25851 \begin_layout Standard
25852 \begin_inset VSpace bigskip
25855 Another application for minipages are footnotes within tables.
25856 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25857 bottom of the current page.
25858 But when you put the table with the footnote to a minipage, the footnote
25859 will appear at its bottom, numbered with Latin letters.
25860 The footnote number is reset to 1 in every minipage but not outside the
25864 \begin_layout Standard
25865 The footnote of this table doesn't appear:
25866 \begin_inset Tabular
25867 <lyxtabular version="3" rows="3" columns="4">
25869 <column alignment="center" valignment="top" leftline="true" width="0pt">
25870 <column alignment="center" valignment="top" leftline="true" width="0pt">
25871 <column alignment="center" valignment="top" leftline="true" width="0pt">
25872 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25873 <row topline="true">
25874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25877 \begin_layout Standard
25883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25886 \begin_layout Standard
25892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25895 \begin_layout Standard
25900 \begin_layout Standard
25901 This is a footnote within a table.
25911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25914 \begin_layout Standard
25921 <row topline="true">
25922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25925 \begin_layout Standard
25931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25934 \begin_layout Standard
25940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25943 \begin_layout Standard
25949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25952 \begin_layout Standard
25959 <row topline="true" bottomline="true">
25960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25963 \begin_layout Standard
25969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25972 \begin_layout Standard
25978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25981 \begin_layout Standard
25987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25990 \begin_layout Standard
26004 \begin_layout Standard
26006 \begin_inset Box Frameless
26015 height_special "totalheight"
26018 \begin_layout Standard
26020 \begin_inset Tabular
26021 <lyxtabular version="3" rows="3" columns="4">
26023 <column alignment="center" valignment="top" leftline="true" width="0pt">
26024 <column alignment="center" valignment="top" leftline="true" width="0pt">
26025 <column alignment="center" valignment="top" leftline="true" width="0pt">
26026 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
26027 <row topline="true">
26028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26031 \begin_layout Standard
26037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26040 \begin_layout Standard
26046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26049 \begin_layout Standard
26054 \begin_layout Standard
26055 This is a footnote within a table.
26065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26068 \begin_layout Standard
26075 <row topline="true">
26076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26079 \begin_layout Standard
26085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26088 \begin_layout Standard
26094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26097 \begin_layout Standard
26103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26106 \begin_layout Standard
26113 <row topline="true" bottomline="true">
26114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26117 \begin_layout Standard
26123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26126 \begin_layout Standard
26132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26135 \begin_layout Standard
26141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26144 \begin_layout Standard
26163 \begin_layout Standard
26164 \begin_inset VSpace bigskip
26167 The document-wide paragraph settings are ignored within minipages.
26168 That means that there will be no space between paragraphs in minipages
26169 although you set it to e.\InsetSpace \thinspace{}
26175 in the document settings.
26178 \begin_layout Standard
26179 Minipages can also be used to set a background color for text parts, see
26180 section\InsetSpace ~
26182 \begin_inset LatexCommand ref
26183 reference "sub:Color-for-Paragraphs"
26190 \begin_layout Standard
26191 \begin_inset Note Greyedout
26194 \begin_layout Standard
26199 You cannot have floats or margin notes inside minipages but minipages can
26200 be used inside tables, floats, and other boxes.
26208 \begin_layout Section
26210 \begin_inset LatexCommand label
26211 name "sec:Parboxes"
26216 \begin_inset LatexCommand index
26217 name "Boxes ! Parboxes"
26224 \begin_layout Standard
26225 Parboxes are very similar to minipages with the difference that they cannot
26227 The main difference to minipages is that minipages are in contrary to parboxes
26228 no real boxes but LaTeX-environments.
26231 \begin_layout Standard
26233 \begin_inset Box Frameless
26242 height_special "totalheight"
26245 \begin_layout Standard
26246 This a text within a parbox.
26247 This a text within a parbox.
26250 \begin_layout Standard
26251 This footnote won't appear:
26255 \begin_layout Standard
26256 This footnote is inside a parbox and will therefore not appear.
26269 \begin_layout Section
26270 Boxes for Words and Characters
26271 \begin_inset LatexCommand index
26272 name "Boxes ! for Characters"
26279 \begin_layout Subsection
26280 Prevent Hyphenation
26281 \begin_inset LatexCommand label
26282 name "sec:Prevent-Hyphenation"
26287 \begin_inset LatexCommand index
26288 name "Boxes ! to Prevent Hyphenation"
26295 \begin_layout Standard
26296 You can use a special kind of boxes to prevent words or text to be hyphenated.
26299 e is an example text:
26302 \begin_layout Standard
26303 This line is an example to show how you can prevent the hyphenation of
26304 \begin_inset Quotes eld
26308 \begin_inset Quotes erd
26314 \begin_layout Standard
26315 To prevent the hyphenation of the word
26316 \begin_inset Quotes eld
26320 \begin_inset Quotes erd
26326 \begin_layout Standard
26334 \begin_layout Standard
26335 in TeX-Code before the word.
26336 Behind the word insert a closing brace
26337 \begin_inset Quotes eld
26345 \begin_inset Quotes erd
26352 \begin_layout Standard
26364 \begin_layout Standard
26365 This is the result:
26368 \begin_layout Standard
26369 This line is an example to show how you can prevent the hyphenation of
26373 \begin_layout Standard
26383 \begin_inset Quotes eld
26387 \begin_inset Quotes erd
26394 \begin_layout Standard
26404 \begin_layout Standard
26405 You can alternatively set the command
26406 \begin_inset Quotes eld
26416 \begin_inset Quotes grd
26419 as TeX-Code directly before the word:
26422 \begin_layout Standard
26423 This line is an example to show how you can prevent the hyphenation of
26424 \begin_inset Quotes eld
26431 \begin_layout Standard
26441 \begin_inset Quotes erd
26447 \begin_layout Standard
26448 Of course the word now protrudes over the side margin.
26449 To avoid this, add via the menu
26451 Insert\SpecialChar \menuseparator
26452 Special\InsetSpace ~
26453 Formatting\SpecialChar \menuseparator
26461 ) a line break before the word:
26464 \begin_layout Standard
26465 This line is an example to show how you can prevent the hyphenation of
26471 \begin_layout Standard
26481 \begin_inset Quotes eld
26485 \begin_inset Quotes erd
26492 \begin_layout Standard
26502 \begin_layout Subsection
26504 \begin_inset LatexCommand label
26505 name "sub:Vertical-Alignment"
26510 \begin_inset LatexCommand index
26511 name "Boxes ! for Vertical Alignment"
26516 \begin_inset LatexCommand index
26517 name "Boxes ! Raiseboxes"
26524 \begin_layout Standard
26525 With the help of the command
26531 you can align words, characters or other boxes vertically to the surrounding
26539 is used with the following scheme:
26542 \begin_layout Standard
26547 raisebox{lift}[height][depth]{box content}
26550 \begin_layout Standard
26551 The lift can be a positive value to raise the box or a negative value to
26555 \begin_layout Standard
26556 To align for example the word
26557 \begin_inset Quotes eld
26561 \begin_inset Quotes erd
26564 so that the bottom of the
26565 \begin_inset Quotes eld
26569 \begin_inset Quotes erd
26573 \begin_inset Quotes eld
26577 \begin_inset Quotes erd
26580 is at the baseline, insert the command
26583 \begin_layout Standard
26593 \begin_layout Standard
26594 in TeX-Code before the word.
26595 Behind the word insert a closing brace
26596 \begin_inset Quotes eld
26604 \begin_inset Quotes erd
26609 This is the result:
26612 \begin_layout Standard
26613 This is a text line with the word
26617 \begin_layout Standard
26629 \begin_inset Quotes eld
26633 \begin_inset Quotes erd
26640 \begin_layout Standard
26650 \begin_layout Standard
26651 \begin_inset VSpace bigskip
26654 When you raise or lower characters in a line, the line distance will be
26658 \begin_layout Standard
26659 This is a text line with the word
26663 \begin_layout Standard
26675 \begin_inset Quotes eld
26679 \begin_inset Quotes erd
26686 \begin_layout Standard
26695 This is a text line with the word
26699 \begin_layout Standard
26709 \begin_inset Quotes eld
26713 \begin_inset Quotes erd
26720 \begin_layout Standard
26730 \begin_layout Standard
26731 If you want to prevent this for a certain reason, set the box height to
26736 \begin_layout Standard
26746 \begin_layout Standard
26747 This is a text line with the word
26751 \begin_layout Standard
26763 \begin_inset Quotes eld
26767 \begin_inset Quotes erd
26774 \begin_layout Standard
26783 This is a text line with the word
26787 \begin_layout Standard
26791 raisebox{0.5cm}[0pt]{
26797 \begin_inset Quotes eld
26801 \begin_inset Quotes erd
26808 \begin_layout Standard
26818 \begin_layout Section
26820 \begin_inset LatexCommand label
26821 name "sec:Colored-Boxes"
26826 \begin_inset LatexCommand index
26827 name "Boxes ! Color"
26834 \begin_layout Subsection
26836 \begin_inset LatexCommand index
26837 name "Color ! for Text"
26844 \begin_layout Standard
26845 To color the background of text the text must be put into a so called
26846 \begin_inset Quotes eld
26850 \begin_inset Quotes erd
26854 This requires that the LaTeX-package
26859 \begin_inset LatexCommand index
26860 name "LaTeX-packages ! color"
26864 is loaded in the document preamble with the command
26867 \begin_layout Standard
26872 @ifundefined{textcolor}
26878 \begin_layout Standard
26889 usepackage{color}}{}
26892 \begin_layout Standard
26897 will be loaded automatically by LyX when you color text
26901 \begin_layout Standard
26902 To avoid that it is loaded twice the command
26906 @ifundef\SpecialChar \textcompwordmark{}
26917 \begin_layout Standard
26918 \begin_inset VSpace medskip
26921 Colorboxes are created with the command
26928 This will be used with the following scheme:
26931 \begin_layout Standard
26936 colorbox{color}{box content}
26939 \begin_layout Standard
26940 The box content can also be a box and colorboxes can also be within other
26944 \begin_layout Standard
26945 The following colors are predefined:
26984 You can also define your own color as described in section\InsetSpace ~
26986 \begin_inset LatexCommand ref
26987 reference "sec:Colored-Tables"
26994 \begin_layout Standard
26995 To have e.\InsetSpace \thinspace{}
26997 a red background for a word, insert the command
27000 \begin_layout Standard
27008 \begin_layout Standard
27009 before the word in TeX-Code.
27010 Behind the word insert a closing brace
27011 \begin_inset Quotes eld
27019 \begin_inset Quotes erd
27024 This is the result:
27027 \begin_layout Standard
27028 This is a line where the word
27032 \begin_layout Standard
27042 \begin_inset Quotes eld
27046 \begin_inset Quotes erd
27053 \begin_layout Standard
27060 has a red background.
27063 \begin_layout Standard
27064 \begin_inset VSpace bigskip
27067 If you would have the box frame in a different color, you can use the command
27074 with the following scheme:
27077 \begin_layout Standard
27082 fcolorbox{frame color}{box color}{box content}
27085 \begin_layout Standard
27099 The frame thickness and the space between the frame and the box content
27100 can be adjusted with the lengths
27112 , respectively, as described in section\InsetSpace ~
27114 \begin_inset LatexCommand ref
27115 reference "sec:Framed-Boxes"
27122 \begin_layout Standard
27123 For the following example the command
27126 \begin_layout Standard
27131 fcolorbox{cyan}{magenta}{
27134 \begin_layout Standard
27138 \begin_layout Standard
27139 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
27146 \begin_layout Standard
27161 \begin_layout Standard
27165 fcolorbox{cyan}{magenta}{
27170 This is text within a colored, framed box.
27174 \begin_layout Standard
27184 \begin_layout Standard
27185 \begin_inset VSpace bigskip
27188 Of course you can also have colored text inside a colorbox:
27194 \begin_layout Standard
27198 fcolorbox{cyan}{magenta}{
27205 This is colored text within a colored, framed box.
27211 \begin_layout Standard
27222 \begin_layout Standard
27236 \begin_layout Standard
27239 \begin_inset VSpace medskip
27245 \begin_layout Standard
27246 \begin_inset Note Greyedout
27249 \begin_layout Standard
27254 Text in colorboxes cannot have line breaks.
27255 To color multiple text lines or paragraphs, use a box inside a colorbox
27256 as described in the following.
27264 \begin_layout Subsection
27265 Color for Paragraphs
27266 \begin_inset LatexCommand label
27267 name "sub:Color-for-Paragraphs"
27272 \begin_inset LatexCommand index
27273 name "Color ! for Paragraphs"
27280 \begin_layout Standard
27281 To set the background color for more than one text line, put the text into
27283 Before the minipage insert the
27292 \begin_layout Standard
27300 \begin_layout Standard
27302 Behind the minipage insert a closing brace
27303 \begin_inset Quotes eld
27311 \begin_inset Quotes erd
27317 \begin_layout Standard
27321 \begin_layout Standard
27325 colorbox{lightgrey}{
27331 \begin_inset Box Frameless
27340 height_special "totalheight"
27343 \begin_layout Standard
27344 This is text with background color.
27345 This is text with background color.
27348 \begin_layout Standard
27349 \begin_inset VSpace defskip
27352 The text can have footnotes
27356 \begin_layout Standard
27357 Another example footnote
27362 and can include tables and figures.
27365 \begin_layout Standard
27367 \begin_inset Tabular
27368 <lyxtabular version="3" rows="3" columns="3">
27370 <column alignment="center" valignment="top" leftline="true" width="0">
27371 <column alignment="center" valignment="top" leftline="true" width="0">
27372 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27373 <row topline="true">
27374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27377 \begin_layout Standard
27383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27386 \begin_layout Standard
27392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27395 \begin_layout Standard
27402 <row topline="true">
27403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27406 \begin_layout Standard
27412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27415 \begin_layout Standard
27417 \begin_inset Quotes erd
27425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27428 \begin_layout Standard
27435 <row topline="true" bottomline="true">
27436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27439 \begin_layout Standard
27445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27448 \begin_layout Standard
27454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27457 \begin_layout Standard
27477 \begin_layout Standard
27487 \begin_layout Section
27488 Rotated and Scaled Boxes
27491 \begin_layout Standard
27492 To use the the commands described in this section, the LaTeX-package
27497 \begin_inset LatexCommand index
27498 name "LaTeX-packages ! graphicx"
27502 needs to be loaded in the document preamble with the command
27505 \begin_layout Standard
27510 @ifundefined{rotatebox}
27516 \begin_layout Standard
27527 usepackage{graphicx}}{}
27530 \begin_layout Standard
27531 \begin_inset Note Greyedout
27534 \begin_layout Standard
27539 Some DVI-viewers can't display rotated or scaled material.
27547 \begin_layout Standard
27548 \begin_inset Note Greyedout
27551 \begin_layout Standard
27556 Floats mustn't be inside a rotated or scaled box.
27564 \begin_layout Subsection
27566 \begin_inset LatexCommand index
27567 name "Boxes ! rotated"
27572 \begin_inset LatexCommand index
27573 name "Rotated material"
27578 \begin_inset LatexCommand index
27579 name "Figures ! rotated"
27584 \begin_inset LatexCommand index
27585 name "Table Customization ! Rotating"
27592 \begin_layout Standard
27593 To rotate material, you can put it into a rotated box.
27594 Such a box is created using the command
27600 in TeX-Code with the following scheme:
27603 \begin_layout Standard
27608 rotatebox[rotation origin]{rotation angle}{box content}
27611 \begin_layout Standard
27612 The rotation origin is specified in the form
27617 The following positions are possible:
27637 (top), and also expedient combinations of the four base positions.
27642 means, that the rotation origin is at the top left corner of the box.
27643 When no rotation origin is specified, the position
27648 The rotation angle is a number that can be negative that specifies the
27650 The rotation direction is counterclockwise.
27653 \begin_layout Standard
27654 In the following example the command
27658 rotatebox[origin=c]{60}{
27660 was inserted as TeX-Code before the text
27661 \begin_inset Quotes eld
27665 \begin_inset Quotes erd
27668 ; after the text the box was closed by a closing brace
27675 \begin_layout Standard
27680 \begin_layout Standard
27684 rotatebox[origin=c]{60}{
27693 \begin_layout Standard
27703 \begin_layout Standard
27704 The box content can also be another box or an inline formula:
27707 \begin_layout Standard
27712 \begin_layout Standard
27716 rotatebox[origin=r]{-60}{
27722 \begin_inset Box Doublebox
27731 height_special "totalheight"
27734 \begin_layout Standard
27744 \begin_layout Standard
27755 \begin_layout Standard
27759 rotatebox[origin=lb]{60}{
27765 \begin_inset Formula $\int A\,\mathrm{d}x=B$
27772 \begin_layout Standard
27782 \begin_layout Standard
27783 or an image or table:
27786 \begin_layout Standard
27791 \begin_layout Standard
27795 rotatebox[origin=lb]{90}{
27801 \begin_inset Graphics
27802 filename clipart/platypus.eps
27812 \begin_layout Standard
27819 with a rotated image
27823 \begin_layout Standard
27827 rotatebox[origin=l]{-90}{
27833 \begin_inset Tabular
27834 <lyxtabular version="3" rows="2" columns="2">
27836 <column alignment="center" valignment="top" leftline="true" width="0">
27837 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27838 <row topline="true">
27839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27842 \begin_layout Standard
27848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27851 \begin_layout Standard
27858 <row topline="true" bottomline="true">
27859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27862 \begin_layout Standard
27868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27871 \begin_layout Standard
27886 \begin_layout Standard
27896 \begin_layout Subsection
27898 \begin_inset LatexCommand index
27899 name "Boxes ! scaled"
27904 \begin_inset LatexCommand index
27905 name "Scaled material"
27910 \begin_inset LatexCommand index
27911 name "Figures ! scaled"
27916 \begin_inset LatexCommand index
27917 name "Table Customization ! Scaling"
27924 \begin_layout Standard
27925 To scale material the commands
27937 can be used as TeX-Code.
27940 \begin_layout Standard
27947 is used with the following scheme:
27950 \begin_layout Standard
27955 scalebox{horizontal}[vertical]{box content}
27958 \begin_layout Standard
27959 Horizontal and vertical are the corresponding scaling factors.
27960 If no vertical scaling factor is given, the horizontal factor will also
27961 be used as vertical one.
27964 \begin_layout Standard
27971 creates for example a double size
27975 \begin_layout Standard
27988 \begin_layout Standard
27995 , compared to the document text size.
27998 \begin_layout Standard
28003 scalebox{2}[1]{Hello}
28005 in contrary distorts the
28009 \begin_layout Standard
28022 \begin_layout Standard
28032 \begin_layout Standard
28033 If a the scaling factor is negative, the box content will be mirrored.
28034 Therefore the command
28038 scalebox{-1}[1]{Hello}
28040 can be used to create mirror writing:
28044 \begin_layout Standard
28057 \begin_layout Standard
28067 \begin_layout Standard
28072 scalebox{1}[-1]{Hello}
28078 \begin_layout Standard
28091 \begin_layout Standard
28101 \begin_layout Standard
28106 scalebox{-1}[1]{box content}
28108 there exists the command
28114 reflectbox{box content}
28119 \begin_layout Standard
28120 \begin_inset VSpace bigskip
28129 is used to scale the box to a defined width and height.
28130 The command scheme is:
28133 \begin_layout Standard
28138 resizebox{width}{height}{box content}
28141 \begin_layout Standard
28142 Is one of the two command arguments given as exclamation mark
28146 , the size is set so that the aspect ratio of the box content is kept.
28149 \begin_layout Standard
28154 resizebox{2cm}{1cm}{Hello}
28160 \begin_layout Standard
28164 resizebox{2cm}{1cm}{
28173 \begin_layout Standard
28186 resizebox{2cm}{!}{Hello}
28192 \begin_layout Standard
28205 \begin_layout Standard
28215 \begin_layout Standard
28216 \begin_inset VSpace bigskip
28220 \begin_inset Note Greyedout
28223 \begin_layout Standard
28240 are set to zero, no LaTeX-errors occur when exporting the document but
28241 the exported files can not or only partly be displayed.
28249 \begin_layout Standard
28250 \begin_inset VSpace bigskip
28256 \begin_layout Standard
28257 The boxes can be combined in any order.
28258 E.\InsetSpace \thinspace{}
28266 rotatebox[origin=c]{-45}{
28270 reflectbox{Hello}}}
28277 \begin_layout Standard
28282 \begin_layout Standard
28286 rotatebox[origin=c]{-45}{
28299 \begin_layout Standard
28309 \begin_layout Standard
28311 Images, tables, and inline formulas are allowed as box content:
28314 \begin_layout Standard
28319 \begin_layout Standard
28323 rotatebox[origin=c]{-30}{
28333 \begin_inset Graphics
28334 filename clipart/platypus.eps
28344 \begin_layout Standard
28355 \begin_layout Standard
28359 rotatebox[origin=c]{-45}{
28369 \begin_inset Tabular
28370 <lyxtabular version="3" rows="2" columns="2">
28372 <column alignment="center" valignment="top" leftline="true" width="0">
28373 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28374 <row topline="true">
28375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28378 \begin_layout Standard
28384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28387 \begin_layout Standard
28394 <row topline="true" bottomline="true">
28395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28398 \begin_layout Standard
28404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28407 \begin_layout Standard
28422 \begin_layout Standard
28433 \begin_layout Standard
28437 rotatebox[origin=c]{-45}{
28447 \begin_inset Formula $\int A\,\mathrm{d}x=B$
28454 \begin_layout Standard
28464 \begin_layout Standard
28465 When the global formula style
28469 is used in the document
28473 \begin_layout Standard
28475 \begin_inset Quotes eld
28479 \begin_inset Quotes erd
28482 is added to the document class options.
28487 , also display formulas can be scaled.
28490 \begin_layout Section
28491 URLs (Uniform Resource Locators)
28492 \begin_inset LatexCommand index
28500 \begin_layout Standard
28501 Links to web pages or email addresses can be inserted via the menu
28503 Insert\SpecialChar \menuseparator
28507 The appearing URL dialog has two fields; the
28515 field for the URL description, which will be typeset as plain text immediately
28519 \begin_layout Standard
28520 Here is an example URL:
28521 \begin_inset LatexCommand url
28522 name "LyX's homepage"
28523 target "http://www.lyx.org"
28530 \begin_layout Standard
28533 Generate\InsetSpace ~
28536 in the URL dialog does nothing.
28537 This relict will be removed in the next LyX-version.
28540 \begin_layout Standard
28541 You cannot change the style of the link text.
28546 field will have the default text style of the document while the text of
28551 field will have the style
28552 \begin_inset Quotes eld
28560 \begin_inset Quotes erd
28566 \begin_layout Standard
28567 When you use the LaTeX-package
28572 \begin_inset LatexCommand index
28573 name "LaTeX-packages ! hyperref"
28577 to link cross-references in the output, URLs will automatically become
28578 clickable hyperlinks in DVI and PDF-output.
28581 \begin_layout Standard
28582 \begin_inset Note Greyedout
28585 \begin_layout Standard
28590 When you use the following characters: "%", "#", "^", you have to write
28591 them with a preceding backslash, e.\InsetSpace \thinspace{}
28594 \begin_inset Quotes eld
28600 \begin_inset Quotes erd
28604 URLs must not end with a backslash.
28612 \begin_layout Standard
28613 \begin_inset VSpace bigskip
28616 To create real hyperlinks without the force to write the link location to
28617 the text, you can use the command
28620 \begin_layout Standard
28625 href{link location}{link text}
28628 \begin_layout Standard
28630 To get for example a link to LyX's web page, write the command
28633 \begin_layout Standard
28638 href{http://www.lyx.org}{
28641 \begin_layout Standard
28643 Insert after the command the link text
28644 \begin_inset Quotes eld
28648 \begin_inset Quotes erd
28651 as normal text followed by a closing brace
28652 \begin_inset Quotes eld
28660 \begin_inset Quotes erd
28664 This is the result:
28668 \begin_layout Standard
28672 href{http://www.lyx.org}{
28681 \begin_layout Standard
28691 \begin_layout Standard
28692 To link to email addresses, add the prefix
28693 \begin_inset Quotes eld
28701 \begin_inset Quotes erd
28704 to the link location:
28710 \begin_layout Standard
28714 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
28719 lyx-docs mailing list
28723 \begin_layout Standard
28733 \begin_layout Standard
28740 instead of LyX's URL box has the advantage that you can specify the text
28741 style of the link text like for all other text parts.
28742 You can then set hyphenation points and forced linebreaks to have long
28743 link text broken at the page margin.
28744 You are furthermore able to change the text style for all URLs in your
28745 document with an option in
28749 's load command and the restrictions mentioned above doesn't apply for
28758 \begin_layout Chapter
28760 \begin_inset LatexCommand index
28761 name "External Stuff"
28768 \begin_layout Standard
28771 Insert\SpecialChar \menuseparator
28774 you can insert external material to your document.
28778 \begin_layout Description
28780 Document Another LyX document; its content is directly inserted to your
28784 \begin_layout Description
28786 Text A text document; every of its text lines is inserted to your document
28790 \begin_layout Description
28794 Lines A text document; its text lines are inserted as they
28796 Empty text lines creates a new paragraph in your document.
28799 \begin_layout Description
28800 External\InsetSpace ~
28801 Material Files in various formats.
28804 \begin_layout Description
28806 Document LyX or LaTeX-documents.
28809 \begin_layout Section
28811 \begin_inset LatexCommand index
28812 name "External Stuff ! External Material"
28819 \begin_layout Standard
28820 The external material feature allows you to insert files to your document
28821 without converting them previously to a format that can be read by the
28822 document output format because LyX takes care of needed conversions.
28823 This is similar to images that can be inserted in various image formats
28827 \begin_layout Standard
28828 External material can be inserted via the
28832 dialog that is accessible with the menu
28834 Insert\SpecialChar \menuseparator
28835 File\SpecialChar \menuseparator
28836 External\InsetSpace ~
28840 Currently the following file types (
28847 \begin_layout Description
28848 ChessDiagram This template supports chess position diagrams made with the
28853 \begin_layout Standard
28857 href{http://en.wikipedia.org/wiki/XBoard}{
28870 \begin_layout Standard
28880 \begin_layout Description
28881 Date This inserts the date in the form
28886 This is a date inserted as external material:
28887 \begin_inset External
28895 The date is not shown within LyX, only in the output.
28896 There are two other methods of inserting a date: Via menu
28898 Insert\SpecialChar \menuseparator
28901 and with the LaTeX command
28908 The different methods are compared in Table\InsetSpace ~
28910 \begin_inset LatexCommand ref
28911 reference "tab:Comparison-of-the"
28918 \begin_layout Description
28919 LilyPond This template is used for music notation typeset with the program
28923 \begin_layout Standard
28936 \begin_layout Standard
28940 href{http://en.wikipedia.org/wiki/LilyPond}{
28953 \begin_layout Standard
28961 \begin_inset Note Note
28964 \begin_layout Standard
28971 breaks the line while the remaining text in the line is stretched to the
28980 \begin_layout Description
28981 RasterImage This can be used for bitmap images.
28982 Nearly all popular image formats are supported.
28983 The image can be treated in the
28987 dialog like the images that are usually included via the
28991 dialog as described in section\InsetSpace ~
28993 \begin_inset LatexCommand ref
28994 reference "sec:Graphics-Dialog"
28999 The difference is that only raster images are allowed, that means that
29000 PDF and EPS-images are not supported.
29003 \begin_layout Description
29004 XFig This template supports images created with the program
29008 \begin_layout Standard
29012 href{http://en.wikipedia.org/wiki/Xfig}{
29025 \begin_layout Standard
29035 \begin_layout Standard
29036 \begin_inset Float table
29042 \begin_layout Standard
29043 \begin_inset Caption
29045 \begin_layout Standard
29046 \begin_inset LatexCommand label
29047 name "tab:Comparison-of-the"
29051 Comparison of the date input methods.
29059 \begin_layout Standard
29061 \begin_inset Tabular
29062 <lyxtabular version="3" rows="4" columns="4">
29064 <column alignment="center" valignment="top" leftline="true" width="0">
29065 <column alignment="center" valignment="top" leftline="true" width="0">
29066 <column alignment="center" valignment="top" leftline="true" width="0">
29067 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
29068 <row topline="true">
29069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29072 \begin_layout Standard
29078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29081 \begin_layout Standard
29084 External Material\SpecialChar \menuseparator
29090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29093 \begin_layout Standard
29096 Insert\SpecialChar \menuseparator
29102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29105 \begin_layout Standard
29116 <row topline="true">
29117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29120 \begin_layout Standard
29126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29129 \begin_layout Standard
29135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29138 \begin_layout Standard
29144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29147 \begin_layout Standard
29148 as TeX-Code inset box
29154 <row topline="true">
29155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29158 \begin_layout Standard
29164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29167 \begin_layout Standard
29173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29176 \begin_layout Standard
29182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29185 \begin_layout Standard
29192 <row topline="true" bottomline="true">
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" usebox="none">
29214 \begin_layout Standard
29220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29223 \begin_layout Standard
29242 \begin_layout Standard
29243 When you use the option
29255 dialog, only the path to the inserted file is shown in the output.
29258 material is displayed in LyX either as box like this:
29259 \begin_inset Graphics
29260 filename clipart/ExternalMaterialQt4.png
29262 scaleBeforeRotation
29266 or as image, depending on the setting in the
29278 \begin_layout Standard
29285 manual explains how you can define your own templates.
29288 \begin_layout Section
29290 \begin_inset LatexCommand label
29291 name "sec:Child-Documents"
29296 \begin_inset LatexCommand index
29297 name "External Stuff ! Child Documents"
29302 \begin_inset LatexCommand index
29303 name "Files ! Include"
29310 \begin_layout Standard
29311 Child documents are used when you have a long document consisting of several
29312 larger parts or sections.
29313 For maintenance it is often useful and sometimes even required to split
29314 the document in several files that can be revised separately.
29315 The different documents are then the so called child documents and a master
29316 document connects them to print the full document or parts of it.
29319 \begin_layout Standard
29320 Included documents are displayed in LyX as a box like this:
29321 \begin_inset Graphics
29322 filename clipart/ChildDocumentQt4.png
29324 scaleBeforeRotation
29328 To include child documents to a master document use the menu
29330 Insert\SpecialChar \menuseparator
29331 File\SpecialChar \menuseparator
29336 A dialog pops up where you can choose between four include methods:
29339 \begin_layout Description
29340 Include You can include LyX and LaTeX-documents.
29349 dialog, the included documents will be opened in LyX in a new file tab
29350 so that you can modify it.
29355 \begin_layout Standard
29356 Here is a child document inserted using
29361 \begin_inset Include \include{DummyDocument1.lyx}
29369 \begin_layout Standard
29370 The section numbering includes the sections of the included files in the
29371 order they are inserted in the master document.
29372 The included example document has for example a subsection that is numbered
29373 as subsection of this section.
29374 Labels of included documents can be referenced: Subsection\InsetSpace ~
29376 \begin_inset LatexCommand ref
29377 reference "sub:External-Subsection-1"
29384 \begin_layout Standard
29385 The preamble of the child document is ignored, only the preamble of the
29386 master document is used.
29387 Included documents are inserted starting on a new page and end with a pagebreak.
29390 \begin_layout Standard
29391 With the LaTeX-command
29397 you can specify which included child documents are processed when the output
29399 This is useful when you are perhaps only working on a certain chapter of
29400 your large document as this saves compiling time.
29407 is inserted to the master document preamble.
29408 It takes a comma-separated list of the filenames as argument, e.g.
29411 \begin_layout Standard
29416 includeonly{chapter1,chapter5}
29419 \begin_layout Standard
29420 will only process the included files named
29421 \begin_inset Quotes eld
29425 \begin_inset Quotes erd
29429 \begin_inset Quotes eld
29433 \begin_inset Quotes erd
29437 \begin_inset Quotes eld
29441 \begin_inset Quotes erd
29447 \begin_layout Standard
29448 \begin_inset Note Greyedout
29451 \begin_layout Standard
29456 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
29457 w the document in case that the child document uses another document class
29458 than the master document as this will lead to unexpected outputs.
29466 \begin_layout Description
29467 Input This method is very similar to the Include method.
29468 The differences are:
29472 \begin_layout Itemize
29473 Input files don't start with a new page and don't end with a pagebreak.
29476 \begin_layout Itemize
29477 Input files can be previewed in LyX when
29479 Instant\InsetSpace ~
29482 is enabled in LyX's preferences under
29486 feel\SpecialChar \menuseparator
29492 \begin_layout Itemize
29503 \begin_layout Standard
29504 Here is a child document inserted using
29509 \begin_inset Include \input{DummyDocument2.lyx}
29517 \begin_layout Description
29518 Verbatim With this method every text file can be included.
29519 The file is shown in the output with its source code, no command used in
29520 the text is invoked.
29521 You can use the option
29523 Mark spaces in output
29525 that displays the character
29526 \begin_inset Quotes eld
29533 \begin_layout Standard
29543 \begin_inset Quotes erd
29546 for every space character in the source code.
29547 The difference to the method via the menu
29549 Insert\SpecialChar \menuseparator
29550 File\SpecialChar \menuseparator
29554 is that the document content is not shown in LyX.
29557 \begin_layout Standard
29558 Here is a child document inserted as Verbatim:
29559 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
29565 \begin_inset VSpace bigskip
29568 Here is a child document inserted as Verbatim using the
29570 Mark spaces in output
29573 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
29581 \begin_layout Standard
29582 \begin_inset VSpace bigskip
29588 \begin_layout Standard
29589 \begin_inset Note Greyedout
29592 \begin_layout Standard
29597 As you can see in the examples above, the text of the documents included
29602 is not broken at the end of the document lines.
29610 \begin_layout Description
29611 Listings This type is described in chapter\InsetSpace ~
29613 \begin_inset LatexCommand ref
29614 reference "cha:Program-Code-Listings"
29621 \begin_layout Standard
29622 \begin_inset Note Greyedout
29625 \begin_layout Standard
29630 Including the same document twice in a document using different methods
29631 could cause LaTeX-problems.
29639 \begin_layout Chapter
29640 Program Code Listings
29641 \begin_inset LatexCommand label
29642 name "cha:Program-Code-Listings"
29647 \begin_inset LatexCommand index
29653 \begin_inset LatexCommand index
29654 name "Program Code"
29659 \begin_inset LatexCommand index
29660 name "Floats ! Listings"
29667 \begin_layout Standard
29668 To include and typeset program code you can use the
29672 inset that can be inserted via the menu
29674 Insert\SpecialChar \menuseparator
29683 \begin_inset LatexCommand index
29684 name "LaTeX-packages ! listings"
29688 provides a powerful and flexible way to insert program source code to your
29692 \begin_layout Standard
29693 When right-clicking on a listings inset a dialog pops up where you can set
29694 the listings format.
29697 \begin_layout Standard
29698 By default, a listing starts a new paragraph in the output.
29699 The placement option
29701 Inline\InsetSpace ~
29704 prints the listing inline like this:
29705 \begin_inset listings
29706 lstparams "language={C++}"
29710 \begin_layout Standard
29723 creates a listings float where you can specify the placement options
29724 \begin_inset Quotes eld
29732 \begin_inset Quotes erd
29736 \begin_inset Quotes eld
29744 \begin_inset Quotes erd
29748 \begin_inset Quotes eld
29756 \begin_inset Quotes erd
29760 \begin_inset Quotes eld
29768 \begin_inset Quotes erd
29771 corresponding to the float placement options described in section\InsetSpace ~
29773 \begin_inset LatexCommand ref
29774 reference "sec:Float-Placement"
29779 The placement options can be mixed and are inserted without any separation,
29780 e.\InsetSpace \thinspace{}
29783 \begin_inset Quotes eld
29791 \begin_inset Quotes erd
29796 \begin_inset Quotes eld
29800 \begin_inset Quotes erd
29803 has sometimes no effect, but you don't need to use the
29807 option in this case as also non-float listings can have captions and be
29811 \begin_layout Standard
29812 You can add captions to listings with the menu
29814 Insert\SpecialChar \menuseparator
29818 Listings can be referenced like floats: Listing\InsetSpace ~
29820 \begin_inset LatexCommand ref
29821 reference "lst:Example-Listing"
29828 \begin_layout Standard
29829 \begin_inset listings
29830 lstparams "language=Python"
29834 \begin_layout Standard
29836 \begin_inset Caption
29838 \begin_layout Standard
29839 \begin_inset LatexCommand label
29840 name "lst:Example-Listing"
29844 Example Listing float
29849 # Example listing float
29852 \begin_layout Standard
29857 \begin_layout Standard
29859 'this is a python function'
29862 \begin_layout Standard
29872 \begin_layout Standard
29873 When you have set a programming language in the listings dialog, the keywords
29874 of this language will be recognized and specially typeset in the output.
29875 In the example listings the Python keyword
29876 \begin_inset Quotes eld
29880 \begin_inset Quotes erd
29883 is recognized and printed bold in the output.
29886 \begin_layout Standard
29887 \begin_inset Note Greyedout
29890 \begin_layout Standard
29895 If you don't get bold keywords when using typewriter fonts, your typewriter
29896 font probably doesn't provide a bold shape.
29897 In this case select a different one in the menu
29899 Document\SpecialChar \menuseparator
29900 Settings\SpecialChar \menuseparator
29912 provide bold shapes.)
29920 \begin_layout Standard
29926 of the listings dialog you can specify the line numbering style.
29927 You can insert a number to specify which lines are numbered to the field
29933 When you insert e.g.
29935 \begin_inset Quotes eld
29939 \begin_inset Quotes erd
29942 , only every 3rd line will be numbered.
29945 \begin_layout Standard
29946 You can furthermore specify a range of lines, only these will then appear
29950 Extended\InsetSpace ~
29953 should be used when you use national characters like the German umlauts
29956 Here is an example listing with left line numbering, step
29958 \begin_inset Quotes eld
29962 \begin_inset Quotes erd
29966 \begin_inset Quotes eld
29970 \begin_inset Quotes erd
29974 \begin_inset Quotes eld
29977 Extended\InsetSpace ~
29979 \begin_inset Quotes erd
29983 \begin_inset Quotes eld
29989 \begin_inset Quotes erd
29992 , range lines 3\InsetSpace \thinspace{}
29993 -\InsetSpace \thinspace{}
29997 \begin_layout Standard
29998 \begin_inset listings
29999 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
30003 \begin_layout Standard
30008 \begin_layout Standard
30010 'this is a python function'
30013 \begin_layout Standard
30018 \begin_layout Standard
30023 \begin_layout Standard
30025 'This is a German word: Tschüß'
30028 \begin_layout Standard
30033 \begin_layout Standard
30038 \begin_layout Standard
30040 'this is a python function'
30043 \begin_layout Standard
30053 \begin_layout Standard
30054 \begin_inset Note Greyedout
30057 \begin_layout Standard
30062 Due to a bug in the
30066 package the line numbering is shifted by a line by every previous listing.
30067 That's the reason why the lines 2 and 5 are numbered in the above listing
30068 and not the lines 3 and 6.
30076 \begin_layout Standard
30077 \begin_inset VSpace bigskip
30083 \begin_layout Standard
30084 It is also possible to print lines from a file as listing.
30085 To do this, use the menu
30087 Insert\SpecialChar \menuseparator
30088 File\SpecialChar \menuseparator
30091 and choose the type
30099 \begin_layout Standard
30100 The other child document types are described in section\InsetSpace ~
30102 \begin_inset LatexCommand ref
30103 reference "sec:Child-Documents"
30112 In the child document dialog you can specify the listing parameters in
30114 To show a list of all available parameters, type in a question mark
30115 \begin_inset Quotes eld
30119 \begin_inset Quotes erd
30125 \begin_layout Standard
30126 To reference child document listings, write a label text into the corresponding
30127 field of the child document dialog.
30128 The label can then be referenced using the menu
30130 Insert\SpecialChar \menuseparator
30136 \begin_layout Standard
30137 Listing\InsetSpace ~
30139 \begin_inset LatexCommand ref
30140 reference "lst:file-listing"
30144 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
30145 -\InsetSpace \thinspace{}
30150 \begin_layout Standard
30151 \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]
30159 \begin_layout Standard
30160 \begin_inset VSpace bigskip
30166 \begin_layout Standard
30167 Global listings settings can be set in the
30169 Document\SpecialChar \menuseparator
30170 Settings\SpecialChar \menuseparator
30174 To get there a list of available options, type in a question mark
30175 \begin_inset Quotes eld
30179 \begin_inset Quotes erd
30184 Listings\InsetSpace ~
30190 \begin_layout Standard
30191 For more information about the
30195 package, we refer to its documentation
30196 \begin_inset LatexCommand cite
30204 \begin_layout Standard
30210 \begin_layout Chapter
30212 Units available in LyX
30213 \begin_inset LatexCommand index
30219 \begin_inset LatexCommand label
30220 name "cha:Units-available-in"
30227 \begin_layout Standard
30228 To understand the units described in this documentation, Table\InsetSpace ~
30230 \begin_inset LatexCommand ref
30231 reference "tab:Units"
30235 explains all units available in LyX.
30238 \begin_layout Standard
30239 \begin_inset Float table
30245 \begin_layout Standard
30246 \begin_inset Caption
30248 \begin_layout Standard
30249 \begin_inset LatexCommand label
30262 \begin_layout Standard
30263 \begin_inset VSpace medskip
30269 \begin_layout Standard
30271 \begin_inset Tabular
30272 <lyxtabular version="3" rows="20" columns="2">
30274 <column alignment="center" valignment="top" leftline="true" width="0">
30275 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
30276 <row topline="true" bottomline="true">
30277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30280 \begin_layout Standard
30286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30289 \begin_layout Standard
30296 <row topline="true">
30297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30300 \begin_layout Standard
30306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30309 \begin_layout Standard
30316 <row topline="true">
30317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30320 \begin_layout Standard
30326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30329 \begin_layout Standard
30336 <row topline="true">
30337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30340 \begin_layout Standard
30346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30349 \begin_layout Standard
30356 <row topline="true">
30357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30360 \begin_layout Standard
30366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30369 \begin_layout Standard
30370 point (72.27\InsetSpace \thinspace{}
30371 pt = 1\InsetSpace \thinspace{}
30378 <row topline="true">
30379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30382 \begin_layout Standard
30388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30391 \begin_layout Standard
30392 pica (1\InsetSpace \thinspace{}
30393 pc = 12\InsetSpace \thinspace{}
30400 <row topline="true">
30401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30404 \begin_layout Standard
30410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30413 \begin_layout Standard
30414 scaled point (65536\InsetSpace \thinspace{}
30415 sp = 1\InsetSpace \thinspace{}
30422 <row topline="true">
30423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30426 \begin_layout Standard
30432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30435 \begin_layout Standard
30436 big point (72\InsetSpace \thinspace{}
30437 bp = 1\InsetSpace \thinspace{}
30444 <row topline="true">
30445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30448 \begin_layout Standard
30454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30457 \begin_layout Standard
30458 didot (1\InsetSpace \thinspace{}
30460 \begin_inset Formula $\approx$
30463 0.376\InsetSpace \thinspace{}
30470 <row topline="true">
30471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30474 \begin_layout Standard
30480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30483 \begin_layout Standard
30484 cicero (1\InsetSpace \thinspace{}
30485 cc = 12\InsetSpace \thinspace{}
30492 <row topline="true">
30493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30496 \begin_layout Standard
30502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30505 \begin_layout Standard
30506 % of original image width
30512 <row topline="true">
30513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30516 \begin_layout Standard
30522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30525 \begin_layout Standard
30532 <row topline="true">
30533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30536 \begin_layout Standard
30542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30545 \begin_layout Standard
30552 <row topline="true">
30553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30556 \begin_layout Standard
30562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30565 \begin_layout Standard
30572 <row topline="true">
30573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30576 \begin_layout Standard
30582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30585 \begin_layout Standard
30592 <row topline="true">
30593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30596 \begin_layout Standard
30602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30605 \begin_layout Standard
30612 <row topline="true">
30613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30616 \begin_layout Standard
30622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30625 \begin_layout Standard
30632 <row topline="true">
30633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30636 \begin_layout Standard
30642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30645 \begin_layout Standard
30656 <row topline="true">
30657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30660 \begin_layout Standard
30666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30669 \begin_layout Standard
30680 <row topline="true" bottomline="true">
30681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30684 \begin_layout Standard
30690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30693 \begin_layout Standard
30694 math unit (1\InsetSpace \thinspace{}
30695 mu = 1/18\InsetSpace \thinspace{}
30714 \begin_layout Chapter
30715 Output File Formats with Graphics
30716 \begin_inset LatexCommand label
30717 name "cha:Output-File-Formats"
30724 \begin_layout Section
30726 \begin_inset LatexCommand index
30727 name "File Formats ! DVI"
30732 \begin_inset LatexCommand index
30733 name "DVI|see{File Formats}"
30740 \begin_layout Standard
30741 This file type has the extension
30742 \begin_inset Quotes eld
30750 \begin_inset Quotes erd
30755 \begin_inset Quotes eld
30759 \begin_inset Quotes erd
30762 (DVI), because it is completely portable; you can move them from one machine
30763 to another without needing to do any sort of conversion.
30764 At the time when this file-format was developed, this was no matter of
30766 DVIs are used for quick previews and as pre-stage for other output formats,
30770 \begin_layout Standard
30771 \begin_inset Note Greyedout
30774 \begin_layout Standard
30779 DVI-files doesn't contain images, they will only be a linked.
30784 So don't forget this, if you move your
30788 file to another computer.
30789 This property can also slow down your computer when you view the DVI.
30790 Because the DVI-viewer has to convert the image in the background to make
30791 it visible when you scroll in the DVI.
30792 So we recommend to use PDF for files with many images.
30795 \begin_layout Standard
30796 You can export your document to DVI by using the menu
30798 File\SpecialChar \menuseparator
30799 Export\SpecialChar \menuseparator
30803 You can view your document as DVI via the
30807 menu or by using the toolbar button
30808 \begin_inset Graphics
30809 filename ../images/buffer-view_dvi.png
30811 scaleBeforeRotation
30818 \begin_layout Section
30820 \begin_inset LatexCommand label
30821 name "sec:PostScript"
30826 \begin_inset LatexCommand index
30827 name "File Formats ! PostScript"
30832 \begin_inset LatexCommand index
30833 name "PostScript|see{File Formats}"
30840 \begin_layout Standard
30841 This file type has the extension
30842 \begin_inset Quotes eld
30850 \begin_inset Quotes erd
30854 PostScript was developed by the company
30858 as printer language.
30859 The file contains therefore commands that the printer uses to print the
30861 PostScript can be seen as
30862 \begin_inset Quotes eld
30865 programming language
30866 \begin_inset Quotes erd
30869 ; you can calculate with it and draw diagrams and images
30873 \begin_layout Standard
30874 If you are interested to learn more about this, have a look at the LaTeX-package
30880 \begin_inset LatexCommand cite
30891 Due to this ability, the files are often bigger than PDFs.
30894 \begin_layout Standard
30895 PostScript can only contain images in the format
30896 \begin_inset Quotes eld
30899 Encapsulated PostScript
30900 \begin_inset Quotes erd
30903 (EPS, file extension
30904 \begin_inset Quotes eld
30912 \begin_inset Quotes erd
30916 As LyX allows you to use any known image format in your document, it has
30917 to convert images in the background to EPS.
30918 If you have e.g 50 images in your document, LyX has to do 50 conversions
30919 whenever you view or export your document.
30920 This will slow down your work flow with LyX drastically.
30921 So if you plan to use PostScript, you can insert your images directly as
30922 EPS to avoid this problem.
30925 \begin_layout Standard
30926 You can export your document to PostScript using the menu
30928 File\SpecialChar \menuseparator
30929 Export\SpecialChar \menuseparator
30933 You can view your document as PostScript via the
30937 menu or by using the toolbar button
30938 \begin_inset Graphics
30939 filename ../images/buffer-view_ps.png
30941 scaleBeforeRotation
30948 \begin_layout Section
30950 \begin_inset LatexCommand label
30956 \begin_inset LatexCommand index
30957 name "File Formats ! PDF"
30962 \begin_inset LatexCommand index
30970 \begin_layout Standard
30971 This file type has the extension
30972 \begin_inset Quotes eld
30980 \begin_inset Quotes erd
30985 \begin_inset Quotes eld
30988 Portable Document Format
30989 \begin_inset Quotes erd
30992 (PDF) is developed by
30996 as derivative from PostScript.
30997 It is more compressed and it uses much less commands than PostScript.
30999 \begin_inset Quotes eld
31003 \begin_inset Quotes erd
31006 implies, it can be processed at any computer system and the printed output
31007 looks exactly the same.
31010 \begin_layout Standard
31011 PDF can contain images in its own PDF format, in the format
31012 \begin_inset Quotes eld
31015 Joint Photographic Experts Group
31016 \begin_inset Quotes erd
31019 (JPG, file extension
31020 \begin_inset Quotes eld
31028 \begin_inset Quotes erd
31032 \begin_inset Quotes eld
31040 \begin_inset Quotes erd
31043 ), and in the format
31044 \begin_inset Quotes eld
31047 Portable Network Graphics
31048 \begin_inset Quotes erd
31051 (PNG, file extension
31052 \begin_inset Quotes eld
31060 \begin_inset Quotes erd
31064 Nevertheless you can use any other image format, because LyX converts them
31065 in the background to one of these formats.
31066 But as described in the section about PostScript, the image conversion
31067 will slow down your work flow.
31068 So it is recommended to use images in one of the three mentioned formats.
31071 \begin_layout Standard
31072 You can export your document to PDF via the menu
31074 File\SpecialChar \menuseparator
31077 in three different ways:
31080 \begin_layout Description
31082 (ps2pdf) This uses the program
31086 that creates a PDF from a PostScript-version of your file.
31087 The PostScript-version is produced by the program
31091 which uses a DVI-version as intermediate step.
31092 So this export variant consist of three conversions.
31095 \begin_layout Description
31097 (dvipdfm) This uses the program
31101 that converts your file in the background to DVI and in a second step to
31105 \begin_layout Description
31107 (pdflatex) This uses the program
31111 that converts your file directly to PDF.
31114 \begin_layout Standard
31115 It is recommended to use
31124 supports all features of actual PDF-versions, is quick and works stable
31130 is not under development and therefore a bit outdated.
31133 \begin_layout Standard
31134 You can view your document as PDF via the
31138 menu or by using the toolbar button
31139 \begin_inset Graphics
31140 filename ../images/buffer-view_pdf2.png
31142 scaleBeforeRotation
31158 \begin_layout Chapter
31159 Explanation of Equation\InsetSpace ~
31161 \begin_inset LatexCommand eqref
31167 \begin_inset LatexCommand label
31168 name "cha:Explanation-of-Equation"
31175 \begin_layout Standard
31181 \begin_inset Formula $W_{\mathrm{tot\, n}}$
31184 can be calculated to
31187 \begin_layout Standard
31188 \begin_inset Formula \begin{equation}
31189 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}
31196 \begin_layout Standard
31198 \begin_inset Formula $W_{g\, n}$
31201 is the given width of all cells.
31208 is the LaTeX-length between the cell text and the cell border, its default
31209 value is 6\InsetSpace \thinspace{}
31217 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
31221 \begin_layout Standard
31222 Following equation\InsetSpace ~
31224 \begin_inset LatexCommand eqref
31225 reference "eq:Wtot_n"
31229 , the total width of a multicolumn
31230 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
31236 \begin_layout Standard
31237 \begin_inset Formula \begin{equation}
31238 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
31245 \begin_layout Standard
31246 By setting equation\InsetSpace ~
31248 \begin_inset LatexCommand eqref
31249 reference "eq:Wtot_n"
31254 \begin_inset LatexCommand eqref
31255 reference "eq:Wtot_mult"
31259 equal we can calculate the needed given width
31260 \begin_inset Formula $W_{g\, n}$
31267 columns are spanned, so that each column has a total width of
31268 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
31274 \begin_layout Standard
31275 \begin_inset Formula \begin{equation}
31276 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
31283 \begin_layout Bibliography
31284 \begin_inset LatexCommand bibitem
31285 key "latexcompanion"
31289 Frank Mittelbach and Michel Goossens:
31291 The LaTeX Companion Second Edition.
31294 Addison-Wesley, 2004
31297 \begin_layout Bibliography
31298 \begin_inset LatexCommand bibitem
31303 Helmut Kopka and Patrick W.
31306 A Guide to LaTeX Fourth Edition.
31309 Addison-Wesley, 2003
31312 \begin_layout Bibliography
31313 \begin_inset LatexCommand bibitem
31320 LaTeX: A Document Preparation System.
31323 Addison-Wesley, second edition, 1994
31326 \begin_layout Bibliography
31327 \begin_inset LatexCommand bibitem
31336 \begin_layout Standard
31340 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
31350 \begin_layout Standard
31357 of the LaTeX-package
31362 \begin_inset LatexCommand index
31363 name "LaTeX-packages ! booktabs"
31370 \begin_layout Bibliography
31371 \begin_inset LatexCommand bibitem
31380 \begin_layout Standard
31384 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
31393 \begin_layout Standard
31400 of the LaTeX-package
31405 \begin_inset LatexCommand index
31406 name "LaTeX-packages ! caption"
31413 \begin_layout Bibliography
31414 \begin_inset LatexCommand bibitem
31423 \begin_layout Standard
31427 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
31437 \begin_layout Standard
31444 of the LaTeX-package
31449 \begin_layout Bibliography
31450 \begin_inset LatexCommand bibitem
31459 \begin_layout Standard
31463 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
31473 \begin_layout Standard
31480 of the LaTeX-package
31482 endf\SpecialChar \textcompwordmark{}
31486 \begin_inset LatexCommand index
31487 name "LaTeX-packages ! endfloat"
31494 \begin_layout Bibliography
31495 \begin_inset LatexCommand bibitem
31504 \begin_layout Standard
31508 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
31518 \begin_layout Standard
31525 of the LaTeX-package
31527 f\SpecialChar \textcompwordmark{}
31528 loatf\SpecialChar \textcompwordmark{}
31532 \begin_inset LatexCommand index
31533 name "LaTeX-packages ! floatflt"
31540 \begin_layout Bibliography
31541 \begin_inset LatexCommand bibitem
31550 \begin_layout Standard
31554 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
31564 \begin_layout Standard
31571 of the LaTeX-package
31576 \begin_inset LatexCommand index
31577 name "LaTeX-packages ! footmisc"
31584 \begin_layout Bibliography
31585 \begin_inset LatexCommand bibitem
31594 \begin_layout Standard
31598 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
31607 \begin_layout Standard
31614 of the LaTeX-package
31619 \begin_inset LatexCommand index
31620 name "LaTeX-packages ! hyperref"
31627 \begin_layout Bibliography
31628 \begin_inset LatexCommand bibitem
31637 \begin_layout Standard
31641 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
31651 \begin_layout Standard
31658 of the LaTeX-package
31663 \begin_inset LatexCommand index
31664 name "LaTeX-packages ! hyperref"
31671 \begin_layout Bibliography
31672 \begin_inset LatexCommand bibitem
31681 \begin_layout Standard
31685 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
31695 \begin_layout Standard
31702 of the LaTeX-package
31707 \begin_inset LatexCommand index
31708 name "LaTeX-packages ! koma-script"
31715 \begin_layout Bibliography
31716 \begin_inset LatexCommand bibitem
31717 key "koma-script-de"
31725 \begin_layout Standard
31729 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
31739 \begin_layout Standard
31746 of the LaTeX-package
31751 \begin_inset LatexCommand index
31752 name "LaTeX-packages ! koma-script"
31759 \begin_layout Bibliography
31760 \begin_inset LatexCommand bibitem
31769 \begin_layout Standard
31773 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
31783 \begin_layout Standard
31790 of the LaTeX-package
31795 \begin_inset LatexCommand index
31796 name "LaTeX-packages ! listings"
31803 \begin_layout Bibliography
31804 \begin_inset LatexCommand bibitem
31813 \begin_layout Standard
31817 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
31827 \begin_layout Standard
31834 of the LaTeX-package
31839 \begin_inset LatexCommand index
31840 name "LaTeX-packages ! marginnote"
31847 \begin_layout Bibliography
31848 \begin_inset LatexCommand bibitem
31857 \begin_layout Standard
31861 href{http://tug.org/PSTricks/main.cgi/}{
31870 \begin_layout Standard
31877 of the LaTeX-package
31882 \begin_inset LatexCommand index
31883 name "LaTeX-packages ! PSTricks"
31890 \begin_layout Bibliography
31891 \begin_inset LatexCommand bibitem
31900 \begin_layout Standard
31904 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
31913 \begin_layout Standard
31920 of the LaTeX-package
31925 \begin_inset LatexCommand index
31926 name "LaTeX-packages ! sidecap"
31933 \begin_layout Bibliography
31934 \begin_inset LatexCommand bibitem
31943 \begin_layout Standard
31947 href{http://wiki.lyx.org/LyX/NewInLyX15}{
31956 \begin_layout Standard
31963 about new features in
31970 \begin_layout Standard
31971 \begin_inset LatexCommand printindex
31978 \begin_layout Standard
31979 \begin_inset FloatList figure
31986 \begin_layout Standard
31987 \begin_inset FloatList table
31994 \begin_layout Standard
31998 \begin_layout Standard
32002 listof{Xalgorithm}{List of Algorithms}
32008 \begin_inset Note Note
32011 \begin_layout Standard
32012 see section\InsetSpace ~
32014 \begin_inset LatexCommand ref
32015 reference "sub:Algorithm-Floats"