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
18538 \begin_inset LatexCommand index
18539 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18547 \begin_layout Standard
18548 Installing a LaTeX-package is explained it in the
18558 The width and placement of the float is adjusted by right-clicking on the
18560 Figure\InsetSpace ~
18562 \begin_inset LatexCommand ref
18563 reference "fig:This-is-a"
18567 is an example text wrap float with a width of 40\InsetSpace \thinspace{}
18572 \begin_layout Standard
18573 Available units are explained in appendix\InsetSpace ~
18575 \begin_inset LatexCommand ref
18576 reference "cha:Units-available-in"
18585 Some space was added under the caption to separate it better from the surroundi
18589 \begin_layout Standard
18594 also supports table wrap floats, but they are not yet supported by LyX.
18595 If you need this, read the documentation of
18600 \begin_inset LatexCommand cite
18608 \begin_layout Standard
18609 \begin_inset Note Greyedout
18612 \begin_layout Standard
18618 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18620 having a figure too close to the bottom
18621 of the page can mess things up in the way that the float doesn't appear
18622 in the output or that it is placed over some other text.
18630 \begin_layout Standard
18634 \begin_layout Itemize
18635 Wrap floats should not be placed in paragraphs that run over a page break.
18636 That means that wrap floats should better be inserted to the exact place
18637 when the document is nearly finished and you are able to estimate where
18638 page breaks will appear.
18641 \begin_layout Itemize
18642 Wrap floats should either be placed in an own paragraph before the paragraph
18643 where they should wrap into or within a paragraph.
18646 \begin_layout Itemize
18647 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18648 there is a text paragraph between them as separator.
18651 \begin_layout Itemize
18652 Wrap floats are not allowed in section headings or tables.
18655 \begin_layout Section
18657 \begin_inset LatexCommand label
18658 name "sec:Float-Numbering"
18663 \begin_inset LatexCommand index
18664 name "Floats ! Numbering"
18671 \begin_layout Standard
18672 Floats are usually numbered either independent from the sections the floats
18673 are in, or in the scheme
18674 \begin_inset Quotes eld
18678 \begin_inset Quotes erd
18682 \begin_inset Quotes eld
18686 \begin_inset Quotes erd
18690 This depends on the used document class.
18693 \begin_layout Standard
18694 To change the section independent numbering, you can use this command in
18695 the document preamble:
18698 \begin_layout Standard
18710 \begin_layout Standard
18717 is the command that prints the table number, for figure floats, the command
18731 prints in the command above the table number as small roman number.
18734 \begin_layout Standard
18735 To change the numbering scheme for example to
18736 \begin_inset Quotes eld
18740 \begin_inset Quotes erd
18743 , use this command in the preamble:
18746 \begin_layout Standard
18751 numberwithin{table}{subsection}
18754 \begin_layout Standard
18755 To be able to use the command
18766 in the document settings the option
18776 \begin_layout Standard
18777 Please also have a look at section\InsetSpace ~
18779 \begin_inset LatexCommand ref
18780 reference "sub:Footnote-Numbering"
18784 for the details and important notes about the numbering commands.
18787 \begin_layout Section
18789 \begin_inset LatexCommand label
18790 name "sec:Referencing-Floats"
18795 \begin_inset LatexCommand index
18796 name "Floats ! References"
18801 \begin_inset LatexCommand index
18809 \begin_layout Standard
18810 To reference a float, insert a label into its caption using the menu
18812 Insert\SpecialChar \menuseparator
18815 or the toolbar button
18816 \begin_inset Graphics
18817 filename ../images/label-insert.png
18819 scaleBeforeRotation
18824 A grey label box like this one:
18825 \begin_inset Graphics
18826 filename clipart/labelQt4.png
18828 scaleBeforeRotation
18832 will be inserted and the label window pops up asking for the label text.
18833 LyX offers as text the first words of the caption with a prefix.
18834 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18836 for figure floats the prefix will
18844 \begin_layout Standard
18845 The label is used as anchor and name for the reference.
18846 You can refer to the label using the menu
18848 Insert\SpecialChar \menuseparator
18851 or the toolbar button
18852 \begin_inset Graphics
18853 filename ../images/dialog-show-new-inset_ref.png
18855 scaleBeforeRotation
18860 A grey cross-reference box like this one:
18861 \begin_inset Graphics
18862 filename clipart/referenceQt4.png
18864 scaleBeforeRotation
18868 will be inserted and the cross-reference window appear showing all labels
18870 If you have multiple LyX-documents opened, choose the one you are working
18871 on from the drop-list at the top of the dialog.
18872 You can now sort the labels alphabetically and then choose one.
18873 At the position of the cross-reference box the float number will appear
18877 \begin_layout Standard
18878 It is recommended to use a protected space between the cross-reference name
18879 and its number to avoid line breaks between them.
18880 If a cross-reference refers to a non-existing label, you will see two question
18881 marks in the output instead of the reference.
18884 \begin_layout Standard
18885 You can change labels at any time by clicking on the label box.
18886 References to the changed label will automatically change its link to the
18887 new label text, so that you don't need to take care about this.
18890 \begin_layout Standard
18897 in the cross-reference window sets the cursor before the referred label.
18898 The button text changes then to Go\InsetSpace ~
18899 Back and you can use it to set the cursor
18900 back to the cross-reference.
18901 Right-clicking on a cross-reference box also sets the cursor before the
18902 referenced label but without a possibility to go back.
18905 \begin_layout Subsection
18906 Cross-Reference Formats
18907 \begin_inset LatexCommand label
18908 name "sub:Cross-Reference-Formats"
18913 \begin_inset LatexCommand index
18914 name "References ! Formats"
18921 \begin_layout Standard
18922 There are six varieties of cross-references:
18925 \begin_layout Description
18926 <reference>: prints the float number, this is the default:
18927 \begin_inset LatexCommand ref
18928 reference "fig:Two-distorted-images"
18935 \begin_layout Description
18936 (<reference>): prints the float number within two parentheses, this is the
18937 style normally used to reference formulas, especially when the reference
18939 \begin_inset Quotes eld
18943 \begin_inset Quotes erd
18947 \begin_inset LatexCommand eqref
18955 \begin_layout Description
18956 <page>: prints the page number: Page\InsetSpace ~
18958 \begin_inset LatexCommand pageref
18959 reference "fig:Two-distorted-images"
18966 \begin_layout Description
18969 <page>: prints the text "on page" and the page number:
18970 \begin_inset LatexCommand vpageref
18971 reference "fig:Two-distorted-images"
18978 \begin_layout Description
18979 <reference>\InsetSpace ~
18982 <page>: prints the float number, the text "on page", and
18984 \begin_inset LatexCommand vref
18985 reference "fig:Two-distorted-images"
18992 \begin_layout Description
18993 Formatted\InsetSpace ~
18994 reference: prints a self defined cross-reference format.
18996 \begin_inset Note Greyedout
18999 \begin_layout Standard
19004 This feature is only available when you have the LaTeX-package
19016 \begin_layout Standard
19017 Note that the style <page> won't print the page number if the label is on
19018 the previous, the same, or the next page.
19019 You will e.\InsetSpace \thinspace{}
19022 \begin_inset Quotes eld
19030 \begin_inset Quotes erd
19036 \begin_layout Standard
19037 The number and current page of the referred document part in the output,
19038 is automatically calculated by LaTeX.
19039 The varieties are adjusted in the field
19043 of the cross-reference window, that appear when you click on the cross-referenc
19047 \begin_layout Subsection
19048 Referencing Subfigures
19049 \begin_inset LatexCommand label
19050 name "sub:Referencing-Subfigures"
19055 \begin_inset LatexCommand index
19056 name "References ! to Subfigures"
19063 \begin_layout Standard
19064 Currently referencing subfigures is not supported by LyX, so you have to
19065 use LaTeX-commands.
19066 The label is the created with the command
19069 \begin_layout Standard
19074 label{fig:YourLabelName}
19077 \begin_layout Standard
19078 that is directly inserted into the subfigure caption field.
19079 To reference the label add this command in TeX-Code
19082 \begin_layout Standard
19087 ref{fig:YourLabelName}
19090 \begin_layout Standard
19091 to the position in your document where the reference should be placed.
19092 Here is a reference to a subfigure: Subfigure\InsetSpace ~
19097 \begin_layout Standard
19109 \begin_layout Subsection
19110 Automatic Reference Naming
19111 \begin_inset LatexCommand index
19112 name "References ! Automatic Reference Naming"
19119 \begin_layout Standard
19124 provides a very useful feature that cross-references automatically include
19125 the name of the referenced floats (or text parts like sections).
19126 You save to write e.\InsetSpace \thinspace{}
19129 \begin_inset Quotes eld
19133 \begin_inset Quotes erd
19136 before every reference box.
19137 To get this automatic reference naming, you have to load the LaTeX-package
19143 \begin_inset LatexCommand index
19144 name "LaTeX-packages ! hyperref"
19148 in the document preamble with
19151 \begin_layout Standard
19156 usepackage[pdfborder={0 0 0}]{hyperref}
19171 \begin_layout Standard
19176 is used to link cross-references in the DVI- and PDF-output, this means
19177 that the reader of your document will be able to click on a table of content
19178 (TOC) entry or on a reference and he will be shown the referenced document
19184 also creates PDF-bookmarks for every section of your document to make it
19185 easier for readers to navigate through the document.
19186 This is also used in this document but when you have a look in the document
19187 preamble you will find various options in the load command of
19192 To learn more about the
19196 package, we refer to its documentation
19197 \begin_inset LatexCommand cite
19205 \begin_layout Standard
19206 \begin_inset Note Greyedout
19209 \begin_layout Standard
19214 Automatic reference naming cannot be used when you use cross-references
19217 Formatted\InsetSpace ~
19220 style, described in section\InsetSpace ~
19222 \begin_inset LatexCommand ref
19223 reference "sub:Cross-Reference-Formats"
19235 \begin_layout Subsection
19237 \begin_inset LatexCommand label
19238 name "sub:Reference-Position"
19243 \begin_inset LatexCommand index
19244 name "References ! Reference Position"
19251 \begin_layout Standard
19257 \begin_inset LatexCommand index
19258 name "LaTeX-packages ! hyperref"
19262 to link cross-references in the output, you will see that clicking on an
19263 image float reference jumps to the image label.
19264 The caption will be the first text part on the screen, so that you cannot
19265 see the image without scrolling.
19266 This is because the reference link anchor is placed at the position of
19268 With the use of the package
19273 \begin_inset LatexCommand index
19274 name "LaTeX-packages ! hypcap"
19278 , which is part of the LaTeX-package
19283 \begin_inset LatexCommand index
19284 name "LaTeX-packages ! oberdiek"
19288 , the link anchor is placed at the beginning of a float.
19289 To use this feature for figure floats, load
19293 in the document preamble with the line
19296 \begin_layout Standard
19301 usepackage[figure]{hypcap}
19304 \begin_layout Standard
19309 for all floats but this isn't recommended for stability reasons.
19310 For more informations, have a look at
19315 \begin_inset LatexCommand cite
19323 \begin_layout Standard
19324 \begin_inset Note Greyedout
19327 \begin_layout Standard
19336 must be loaded after
19340 in the document preamble.
19348 \begin_layout Standard
19349 \begin_inset Note Greyedout
19352 \begin_layout Standard
19361 has no effect for references to subfigures.
19369 \begin_layout Section
19371 \begin_inset LatexCommand label
19372 name "sec:Float-Placement"
19377 \begin_inset LatexCommand index
19378 name "Floats ! Placement"
19385 \begin_layout Standard
19386 Right-clicking on a float-box opens a dialog where you can alter the placement
19387 options that LaTeX uses for positioning the float.
19394 is only useful for two-column documents: If you select it, the float will
19395 span across both columns on the page instead of being confined to just
19400 Rotate\InsetSpace ~
19403 is used to rotate floats, see section
19404 \begin_inset LatexCommand ref
19405 reference "sec:Rotated-Floats"
19412 \begin_layout Standard
19413 You can use one ore more of the following options in the float dialog to
19414 set the placement for a particular float when you uncheck the option
19417 default\InsetSpace ~
19423 \begin_layout Description
19426 possible try to place the float on the position where it is inserted
19429 \begin_layout Description
19432 page try to place the float on the top of the current page
19435 \begin_layout Description
19436 Bottom\InsetSpace ~
19438 page try to place the float on the bottom of the current page
19441 \begin_layout Description
19444 floats try to place the float on an own page
19447 \begin_layout Standard
19448 The order of the above option is
19453 That means, if you use the default placement, LaTeX will first try out
19466 , and then the others.
19467 If you don't use the default, LaTeX will try only the checked options but
19469 If none of the 4 placements are possible the procedure is internally repeated
19470 but it is tried to put the float on the following page.
19473 \begin_layout Standard
19474 By default, each option has its own rules:
19477 \begin_layout Labeling
19478 \labelwidthstring 00.00.0000
19485 only floats occupying less than 70\InsetSpace \thinspace{}
19486 % of the page can be placed at the top
19496 \begin_layout Labeling
19497 \labelwidthstring 00.00.0000
19500 Bottom\InsetSpace ~
19504 : only floats occupying less than 30\InsetSpace \thinspace{}
19505 % of the page can be placed at the bottom
19516 \begin_layout Labeling
19517 \labelwidthstring 00.00.0000
19524 : only if more than 50\InsetSpace \thinspace{}
19525 % of the page are occupied by floats, several floats
19526 can be set together on a page.
19536 \begin_layout Standard
19537 If you don't like these rules, you can ignore them by using the additional
19540 Ignore\InsetSpace ~
19546 You can also redefine the rules with LaTeX-commands that are given in parenthese
19547 s behind the rules description above.
19548 To increase for example the often too small default of the bottom-rule
19549 to 50\InsetSpace \thinspace{}
19550 % of the page, add this line to your document preamble:
19553 \begin_layout Standard
19560 bottomfraction}{0.5}
19563 \begin_layout Standard
19564 Sometimes you might need, under all circumstances, a float to be placed
19565 exactly at the position where it is inserted.
19566 For this case you can use the option
19572 Use this option very rarely and only if the document is nearly ready to
19574 Because the float is then no longer able to
19575 \begin_inset Quotes eld
19579 \begin_inset Quotes erd
19582 when you change your document and this will often destroy the page layout.
19585 \begin_layout Standard
19586 There are no placement options for text wrap floats, because they are always
19587 surrounded by the text of a certain paragraph.
19588 \begin_inset VSpace bigskip
19594 \begin_layout Standard
19595 Sometimes you have the problem that a float is placed at the top of a page
19596 while its corresponding section starts at the middle of the page, so that
19597 the reader could think the float is part of the previous section.
19598 To avoid this the LaTeX-command
19605 It suppresses a given float placement for the page where it is inserted
19606 and can therefore be used to avoid that floats could be set before a section
19608 To get this, add these commands to your document preamble:
19611 \begin_layout Standard
19633 \begin_layout Standard
19634 You can define the same for all section headings, like chapters and subsections.
19635 This definition is not recommended to be used for small text parts like
19636 subsubsections because LaTeX may then have problems to find a suitable
19640 \begin_layout Standard
19641 \begin_inset VSpace bigskip
19644 In some cases it is required to have all figures/tables at the end of the
19646 For this purpose the LaTeX-package
19651 \begin_inset LatexCommand index
19652 name "LaTeX-packages ! endfloat"
19657 It puts all figure and table floats at the end of the document into own
19659 At the original float position a text hint like
19660 \begin_inset Quotes eld
19665 [Figure\InsetSpace ~
19669 \begin_inset Quotes erd
19673 The endfloat-package is loaded in the preamble with the line
19676 \begin_layout Standard
19681 usepackage[options]{endfloat}
19684 \begin_layout Standard
19685 There are various package options to format the created figure/table sections.
19686 For more information we refer to the
19691 \begin_inset LatexCommand cite
19699 \begin_inset Note Greyedout
19702 \begin_layout Standard
19707 doesn't provide an automatic translation for the text hint, you have to
19708 do this manually, see section\InsetSpace ~
19710 \begin_inset LatexCommand cite
19723 \begin_inset Note Greyedout
19726 \begin_layout Standard
19731 There is currently a bug in
19735 when the caption contains a German
19736 \begin_inset Quotes eld
19740 \begin_inset Quotes erd
19744 Use in this case the command
19745 \begin_inset Quotes eld
19755 \begin_inset Quotes erd
19758 in TeX-Code instead of
19759 \begin_inset Quotes eld
19763 \begin_inset Quotes erd
19774 \begin_layout Standard
19775 \begin_inset VSpace bigskip
19778 For more details about float placements, have a look at LaTeX books,
19779 \begin_inset LatexCommand cite
19780 key "latexcompanion,latexguide,latexbook"
19787 \begin_layout Section
19789 \begin_inset LatexCommand label
19790 name "sec:Rotated-Floats"
19795 \begin_inset LatexCommand index
19796 name "Floats ! Rotating"
19803 \begin_layout Standard
19804 Especially for wide tables you might have floats rotated.
19805 To rotate a whole float including the caption, right-click on the float-box
19808 Rotate\InsetSpace ~
19814 \begin_layout Standard
19815 Rotated floats are always placed on its own page (or column, when you have
19816 a two-column document).
19817 They are rotated so that you can read them from the outside margin.
19818 To force a certain rotation direction for all pages, you can add either
19827 to the document class options.
19830 \begin_layout Standard
19831 Referencing rotated floats is the same like for normal floats, the caption
19832 format is also the same: Table\InsetSpace ~
19834 \begin_inset LatexCommand ref
19835 reference "tab:Rotated-table"
19839 is an example of a rotated table float.
19842 \begin_layout Standard
19843 \begin_inset Note Greyedout
19846 \begin_layout Standard
19851 Not all DVI-viewers are able to display rotated floats.
19859 \begin_layout Standard
19860 \begin_inset Float table
19865 \begin_layout Standard
19866 \begin_inset Caption
19868 \begin_layout Standard
19869 \begin_inset LatexCommand label
19870 name "tab:Rotated-table"
19882 \begin_layout Standard
19884 \begin_inset Tabular
19885 <lyxtabular version="3" rows="1" columns="5">
19887 <column alignment="center" valignment="top" leftline="true" width="0">
19888 <column alignment="center" valignment="top" leftline="true" width="0">
19889 <column alignment="center" valignment="top" leftline="true" width="0">
19890 <column alignment="center" valignment="top" leftline="true" width="0">
19891 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19892 <row topline="true" bottomline="true">
19893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19896 \begin_layout Standard
19902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19905 \begin_layout Standard
19911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19914 \begin_layout Standard
19920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19923 \begin_layout Standard
19929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19932 \begin_layout Standard
19951 \begin_layout Section
19952 Floats Side by Side
19953 \begin_inset LatexCommand index
19954 name "Floats ! Side by side"
19961 \begin_layout Standard
19962 To place floats side by side, like for Figure\InsetSpace ~
19964 \begin_inset LatexCommand ref
19965 reference "fig:Float-left"
19970 \begin_inset LatexCommand ref
19971 reference "fig:Float-right"
19980 In it two minipage boxes are inserted.
19984 \begin_layout Standard
19985 Minipages are explained in section\InsetSpace ~
19987 \begin_inset LatexCommand ref
19988 reference "sec:Minipages"
19997 The width is set to 45\InsetSpace \thinspace{}
19998 -50\InsetSpace \thinspace{}
19999 column% and the box alignment to
20004 The minipage boxes contain the image and the caption in the same way as
20005 they are in a float.
20006 The only difference is that the image unit
20008 Column\InsetSpace ~
20012 is now calculated according to the width of the minipage boxes.
20015 \begin_layout Standard
20016 \begin_inset Float figure
20021 \begin_layout Standard
20022 \begin_inset Box Frameless
20031 height_special "totalheight"
20034 \begin_layout Standard
20036 \begin_inset Graphics
20037 filename clipart/mobius.eps
20040 scaleBeforeRotation
20047 \begin_layout Standard
20048 \begin_inset Caption
20050 \begin_layout Standard
20051 \begin_inset LatexCommand label
20052 name "fig:Float-left"
20056 Float on the left side.
20069 \begin_inset Box Frameless
20078 height_special "totalheight"
20081 \begin_layout Standard
20083 \begin_inset Graphics
20084 filename clipart/platypus.eps
20087 scaleBeforeRotation
20094 \begin_layout Standard
20095 \begin_inset Caption
20097 \begin_layout Standard
20098 \begin_inset LatexCommand label
20099 name "fig:Float-right"
20103 Float on the right side.
20116 \begin_layout Standard
20125 \begin_layout Section
20127 \begin_inset LatexCommand index
20128 name "Caption ! Formatting"
20133 \begin_inset LatexCommand index
20134 name "Floats ! Caption Formatting"
20139 \begin_inset LatexCommand index
20140 name "LaTeX-packages ! caption"
20145 \begin_inset LatexCommand label
20146 name "sec:Caption-Formatting"
20153 \begin_layout Standard
20158 environment is the default paragraph environment for
20163 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
20166 \begin_inset Quotes eld
20174 \begin_inset Quotes erd
20177 followed by the caption text.
20179 \begin_inset Quotes eld
20183 \begin_inset Quotes erd
20186 is the actual reference number.
20187 By default the label and the number are in the same font as the caption
20188 text and a colon follows the number to divide the label from the text.
20189 This caption format is not suitable for all document formats.
20193 \begin_layout Standard
20194 To change the default caption format, load the LaTeX-package
20199 \begin_inset LatexCommand index
20200 name "LaTeX-packages ! caption"
20204 in the document preamble with this line:
20207 \begin_layout Standard
20212 usepackage[format definition]{caption}
20215 \begin_layout Standard
20216 To have for example the label and the number in sans-serif bold font and
20217 the table captions always above the table like in this document, use the
20221 \begin_layout Standard
20226 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
20229 \begin_layout Standard
20230 You can also define different caption formats for the different float types.
20231 In this case load the
20235 package without format specific options and define the different formats
20236 with the help of the command
20239 \begin_layout Standard
20244 captionsetup[float type]{format definition}
20247 \begin_layout Standard
20248 in the document preamble.
20249 For example the caption formats of Figure\InsetSpace ~
20251 \begin_inset LatexCommand ref
20252 reference "fig:This-is-an-fig"
20256 and Table\InsetSpace ~
20258 \begin_inset LatexCommand ref
20259 reference "tab:This-is-an-tab"
20263 can be created using these commands in the document preamble:
20266 \begin_layout Standard
20271 usepackage[tableposition=top]{caption}
20279 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
20285 \begin_layout Standard
20293 captionsetup[figure]
20304 captionsetup[table]{labelfont={bf,sf}}
20307 \begin_layout Standard
20308 \begin_inset Note Greyedout
20311 \begin_layout Standard
20320 has no effect when a
20325 \begin_inset LatexCommand index
20326 name "LaTeX-packages ! koma-script"
20330 document class is used.
20331 In this case the document class option
20343 \begin_layout Standard
20344 For more information about the package
20348 we refer to its documentation
20349 \begin_inset LatexCommand cite
20350 key "caption,caption-de"
20357 \begin_layout Standard
20358 To change the label name from e.g.
20360 \begin_inset Quotes eld
20364 \begin_inset Quotes erd
20368 \begin_inset Quotes eld
20372 \begin_inset Quotes erd
20375 use this preamble command:
20378 \begin_layout Standard
20385 fnum@figure}{Image~
20390 \begin_layout Standard
20397 inserts the figure number and
20400 \begin_inset Quotes eld
20406 \begin_inset Quotes erd
20409 creates a protected space.
20412 \begin_layout Standard
20413 \begin_inset VSpace bigskip
20421 \begin_inset LatexCommand index
20422 name "LaTeX-packages ! koma-script"
20428 article (koma-script)
20436 letter (koma-script)
20440 report (koma-script)
20442 \InsetSpace \thinspace{}
20443 ), you can alternatively to the
20451 's built-in command
20458 For example, to have the caption label in bold, add this command to your
20462 \begin_layout Standard
20467 setkomafont{captionlabel}{
20472 \begin_layout Standard
20473 For more information about
20484 \begin_inset LatexCommand cite
20492 \begin_layout Standard
20496 \begin_layout Standard
20500 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
20507 \begin_inset Note Note
20510 \begin_layout Standard
20511 The caption format is changed only for this example.
20519 \begin_layout Standard
20520 \begin_inset Float figure
20526 \begin_layout Standard
20528 \begin_inset Graphics
20529 filename clipart/mobius.eps
20532 scaleBeforeRotation
20539 \begin_layout Standard
20540 \begin_inset Caption
20542 \begin_layout Standard
20543 \begin_inset LatexCommand label
20544 name "fig:This-is-an-fig"
20548 This is an example figure caption that is longer than one line to show the
20549 different caption format.
20550 Here a self-defined caption format is used.
20563 \begin_layout Standard
20567 \begin_layout Standard
20571 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
20580 \begin_layout Standard
20581 \begin_inset Float table
20587 \begin_layout Standard
20588 \begin_inset Caption
20590 \begin_layout Standard
20591 \begin_inset LatexCommand label
20592 name "tab:This-is-an-tab"
20596 This is an example table caption that is longer than one line to show the
20597 different caption format.
20598 Here the standard caption format for tables in this document is used.
20606 \begin_layout Standard
20608 \begin_inset Tabular
20609 <lyxtabular version="3" rows="1" columns="5">
20611 <column alignment="center" valignment="top" leftline="true" width="0">
20612 <column alignment="center" valignment="top" leftline="true" width="0">
20613 <column alignment="center" valignment="top" leftline="true" width="0">
20614 <column alignment="center" valignment="top" leftline="true" width="0">
20615 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20616 <row topline="true" bottomline="true">
20617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20620 \begin_layout Standard
20626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20629 \begin_layout Standard
20635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20638 \begin_layout Standard
20644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20647 \begin_layout Standard
20653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20656 \begin_layout Standard
20675 \begin_layout Section
20677 \begin_inset LatexCommand index
20678 name "Caption ! Placement"
20683 \begin_inset LatexCommand index
20684 name "Floats ! Caption Placement"
20689 \begin_inset LatexCommand label
20690 name "sec:Caption-Placement"
20697 \begin_layout Standard
20698 The common caption placement rule is:
20701 \begin_layout Description
20702 Figure: Caption is set below the figure
20705 \begin_layout Description
20706 Table: Caption is set above the table
20709 \begin_layout Standard
20710 Having the caption above the table is unfortunately not supported in LaTeX's
20712 That means if you are using the document classes
20728 there will be no space between the caption and the table.
20729 To insert the needed space, add the following option to the load command
20730 of the LaTeX-package
20734 in your document preamble
20738 \begin_layout Standard
20739 See section\InsetSpace ~
20741 \begin_inset LatexCommand ref
20742 reference "sec:Caption-Formatting"
20746 for more information of the package
20758 \begin_layout Standard
20764 \begin_layout Standard
20770 \begin_inset LatexCommand index
20771 name "LaTeX-packages ! koma-script"
20777 article (koma-script)
20785 letter (koma-script)
20789 report (koma-script)
20791 \InsetSpace \thinspace{}
20792 ), you can alternatively to the
20796 package set the document class option
20803 \begin_layout Standard
20804 \begin_inset VSpace bigskip
20807 It is also possible to set the caption beside a figure or table.
20808 To get this the LaTeX-package
20813 \begin_inset LatexCommand index
20814 name "LaTeX-packages ! sidecap"
20818 has to be loaded in the document preamble with the line
20821 \begin_layout Standard
20826 usepackage[option]{sidecap}
20829 \begin_layout Standard
20830 If you set no option, the caption is placed on the side of the outer page
20831 margin -- to the right on odd pages, to the left on even pages.
20832 You can change the placement to inner margin with the option
20837 To force the placement always to the right or left, use the option
20848 \begin_layout Standard
20849 To place in LyX the caption of a float on the side, it is necessary to add
20850 these commands to the document preamble:
20853 \begin_layout Standard
20859 \begin_layout Standard
20872 \begin_layout Standard
20893 \begin_layout Standard
20914 \begin_layout Standard
20925 renewenvironment{table}{
20932 \begin_layout Standard
20945 \begin_layout Standard
20966 \begin_layout Standard
20984 \begin_layout Standard
20997 \begin_layout Standard
21018 \begin_layout Standard
21039 \begin_layout Standard
21050 renewenvironment{figure}{
21057 \begin_layout Standard
21070 \begin_layout Standard
21091 \begin_layout Standard
21109 \begin_layout Standard
21115 \begin_layout Standard
21116 The commands allow you to redefine the floats so that the caption is set
21118 For figure floats use the command
21121 \begin_layout Standard
21129 \begin_layout Standard
21130 in TeX-Code before the float.
21131 Behind the float insert the command
21134 \begin_layout Standard
21142 \begin_layout Standard
21143 in TeX-Code to get back to the original float definition.
21146 \begin_layout Standard
21147 For table floats use the corresponding commands
21150 \begin_layout Standard
21164 \begin_layout Standard
21165 Figure\InsetSpace ~
21167 \begin_inset LatexCommand ref
21168 reference "fig:cap-beside-fig"
21172 and Table\InsetSpace ~
21174 \begin_inset LatexCommand ref
21175 reference "tab:cap-beside-tab"
21179 are examples where the caption is set beside.
21182 \begin_layout Standard
21183 You can see in the examples that the caption text appears at the top of
21184 the floats for table floats and at the bottom for figure floats.
21185 To change this, you can use the command
21188 \begin_layout Standard
21193 sidecaptionvpos{float type}{placement}
21196 \begin_layout Standard
21197 in the document preamble or in TeX-Code before the float.
21198 The float type is either
21206 , the placement can be
21207 \begin_inset Quotes eld
21215 \begin_inset Quotes erd
21219 \begin_inset Quotes eld
21227 \begin_inset Quotes erd
21231 \begin_inset Quotes eld
21239 \begin_inset Quotes erd
21243 To have for example the caption of figure floats vertically centered, use
21247 \begin_layout Standard
21252 sidecaptionvpos{figure}{c}
21255 \begin_layout Standard
21256 This was used for Figure\InsetSpace ~
21258 \begin_inset LatexCommand ref
21259 reference "fig:cap-beside-fig-2"
21266 \begin_layout Standard
21267 \begin_inset VSpace medskip
21270 For more information about the package
21274 we refer to its documentation
21275 \begin_inset LatexCommand cite
21283 \begin_layout Standard
21284 \begin_inset Note Greyedout
21287 \begin_layout Standard
21297 \begin_inset LatexCommand index
21298 name "LaTeX-packages ! hypcap"
21302 , described in section\InsetSpace ~
21304 \begin_inset LatexCommand ref
21305 reference "sub:Reference-Position"
21309 , has no effect on floats with the caption set beside.
21317 \begin_layout Standard
21321 \begin_layout Standard
21333 \begin_layout Standard
21334 \begin_inset Float figure
21339 \begin_layout Standard
21340 \begin_inset Graphics
21341 filename clipart/escher-lsd.eps
21343 scaleBeforeRotation
21350 \begin_layout Standard
21351 \begin_inset Caption
21353 \begin_layout Standard
21354 \begin_inset LatexCommand label
21355 name "fig:cap-beside-fig"
21359 This is a caption beside a figure.
21372 \begin_layout Standard
21376 \begin_layout Standard
21388 \begin_layout Standard
21389 \begin_inset Float table
21394 \begin_layout Standard
21395 \begin_inset Caption
21397 \begin_layout Standard
21398 \begin_inset LatexCommand label
21399 name "tab:cap-beside-tab"
21403 This is a caption beside a table.
21411 \begin_layout Standard
21412 \begin_inset Tabular
21413 <lyxtabular version="3" rows="4" columns="5">
21415 <column alignment="center" valignment="top" leftline="true" width="0">
21416 <column alignment="center" valignment="top" leftline="true" width="0">
21417 <column alignment="center" valignment="top" leftline="true" width="0">
21418 <column alignment="center" valignment="top" leftline="true" width="0">
21419 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
21420 <row topline="true">
21421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21424 \begin_layout Standard
21430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21433 \begin_layout Standard
21439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21442 \begin_layout Standard
21448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21451 \begin_layout Standard
21457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21460 \begin_layout Standard
21467 <row topline="true">
21468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21471 \begin_layout Standard
21477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21480 \begin_layout Standard
21486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21489 \begin_layout Standard
21495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21498 \begin_layout Standard
21504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21507 \begin_layout Standard
21514 <row topline="true">
21515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21518 \begin_layout Standard
21524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21527 \begin_layout Standard
21533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21536 \begin_layout Standard
21542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21545 \begin_layout Standard
21551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21554 \begin_layout Standard
21561 <row topline="true" bottomline="true">
21562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21565 \begin_layout Standard
21571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21574 \begin_layout Standard
21580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21583 \begin_layout Standard
21589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21592 \begin_layout Standard
21598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21601 \begin_layout Standard
21620 \begin_layout Standard
21624 \begin_layout Standard
21636 \begin_layout Standard
21640 \begin_layout Standard
21644 sidecaptionvpos{figure}{c}
21650 \begin_inset Float figure
21655 \begin_layout Standard
21656 \begin_inset Graphics
21657 filename clipart/escher-lsd.eps
21659 scaleBeforeRotation
21666 \begin_layout Standard
21667 \begin_inset Caption
21669 \begin_layout Standard
21670 \begin_inset LatexCommand label
21671 name "fig:cap-beside-fig-2"
21675 This is a vertically centered caption beside a figure.
21688 \begin_layout Standard
21692 \begin_layout Standard
21704 \begin_layout Section
21706 \begin_inset LatexCommand label
21707 name "sec:Listings-of-Floats"
21712 \begin_inset LatexCommand index
21713 name "Floats ! Float Lists"
21720 \begin_layout Standard
21721 Similar to the the table of contents where the sections of the document
21722 are listed, there are listings for all float types, like the figures of
21724 You can insert them via the
21726 Insert\SpecialChar \menuseparator
21734 \begin_layout Standard
21735 The list entries are the float captions or its short title, the float number,
21736 and the page number where they appear in the document.
21739 \begin_layout Standard
21740 You can find the list of figures and tables at the end of this document.
21743 \begin_layout Chapter
21747 \begin_layout Section
21749 \begin_inset LatexCommand label
21750 name "sec:LyX-Notes"
21755 \begin_inset LatexCommand index
21756 name "Notes ! LyX Notes"
21763 \begin_layout Standard
21764 Notes are inserted with the toolbar button
21765 \begin_inset Graphics
21766 filename ../images/note-insert.png
21768 scaleBeforeRotation
21774 Insert\SpecialChar \menuseparator
21778 There are five types of notes:
21781 \begin_layout Description
21783 Note This note type is for internal notes that won't appear in the output.
21784 Its note-box looks like this:
21789 \begin_inset Graphics
21790 filename clipart/LyXNoteImageQt4.png
21793 scaleBeforeRotation
21798 \begin_inset Note Note
21801 \begin_layout Standard
21802 This is text in a note box that doesn't appear in the output.
21810 \begin_layout Description
21811 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21812 ent, when you export the document to LaTeX via the menu
21814 File\SpecialChar \menuseparator
21815 Export\SpecialChar \menuseparator
21816 LaTeX (pdflatex) / (plain)
21819 Its note-box looks like this:
21824 \begin_inset Graphics
21825 filename clipart/CommentNoteImageQt4.png
21828 scaleBeforeRotation
21833 \begin_inset Note Comment
21836 \begin_layout Standard
21837 This is text in a note box that only appears as comment in LaTeX-files.
21845 \begin_layout Description
21846 Greyed\InsetSpace ~
21847 Out This note will appear in the output as grey text.
21848 Its note-box looks like this:
21853 \begin_inset Graphics
21854 filename clipart/GreyedOutNoteImageQt4.png
21857 scaleBeforeRotation
21867 \begin_layout Standard
21871 renewenvironment{lyxgreyedout}
21874 \begin_layout Standard
21878 textcolor[gray]{0.8}
21888 \begin_inset Note Greyedout
21891 \begin_layout Standard
21896 \begin_layout Standard
21897 This is an example footnote within a greyed out note.
21902 of a comment that appears in the output as grey text.
21911 \begin_layout Standard
21915 renewenvironment{lyxgreyedout}
21918 \begin_layout Standard
21932 \begin_inset Note Note
21935 \begin_layout Standard
21936 The greyed out note is here redefined to show it with the original LyX definitio
21937 n because greyed out notes are redefined in the preamble of this document,
21938 as described below, to have blue text.
21947 As you can see in the example, the first line of greyed out notes is a bit
21948 indented and greyed out notes can have footnotes.
21951 \begin_layout Description
21952 Framed This note will appear in the output as framed text.
21953 Its note-box looks like this:
21958 \begin_inset Graphics
21959 filename clipart/FramedNoteImageQt4.png
21962 scaleBeforeRotation
21967 \begin_inset Note Framed
21970 \begin_layout Standard
21971 This is text in a note box that appears framed in the output.
21976 In contrary to framed boxes
21980 \begin_layout Standard
21981 Framed boxes are described in section\InsetSpace ~
21983 \begin_inset LatexCommand ref
21984 reference "sec:Framed-Boxes"
21993 the frame uses always the whole text width and the note is set into its
21997 \begin_layout Description
21998 Shaded This note will appear in the output with red background color.
21999 Its note box looks like this:
22004 \begin_inset Graphics
22005 filename clipart/ShadedNoteImageQt4.png
22008 scaleBeforeRotation
22013 \begin_inset Note Shaded
22016 \begin_layout Standard
22017 This text in a note box appears in the output with red background.
22022 In contrary to colored boxes
22026 \begin_layout Standard
22027 Colored boxes are described in section\InsetSpace ~
22029 \begin_inset LatexCommand ref
22030 reference "sec:Colored-Boxes"
22039 the note uses always the whole text width and the note is set into its
22043 \begin_layout Standard
22044 \begin_inset VSpace bigskip
22047 When you use the toolbar button
22048 \begin_inset Graphics
22049 filename ../images/note-insert.png
22051 scaleBeforeRotation
22061 You can switch between the five note types by right-clicking on the note-box.
22066 If you want to turn existing text into a note, mark it and click on the
22080 To change a note to text, press the backspace key when the cursor is in
22081 the first position of a note, or press the deletey key when the cursor
22082 is in the very last position of the note, respectively.
22085 \begin_layout Standard
22086 \begin_inset VSpace bigskip
22089 You can change the text color of the greyed out notes in the preamble with
22090 the following command:
22093 \begin_layout Standard
22098 renewenvironment{lyxgreyedout}
22104 \begin_layout Standard
22122 \begin_layout Standard
22123 The available colors and the method to define own colors is explained in
22124 section\InsetSpace ~
22126 \begin_inset LatexCommand ref
22127 reference "sec:Colored-Tables"
22134 \begin_layout Standard
22135 Notes that appear in blue in this document are set using greyed out notes
22139 \begin_layout Standard
22140 \begin_inset VSpace bigskip
22146 \begin_layout Standard
22155 notes can be set in the
22162 \begin_layout Standard
22163 The default frame width for
22167 notes is 0.4\InsetSpace \thinspace{}
22168 pt; it can be changed by changing the size
22175 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
22177 be changed by changing the size
22184 For example the frame appearance of the following
22188 note is set with the TeX-Code commands
22191 \begin_layout Standard
22201 \begin_layout Standard
22205 \begin_layout Standard
22217 \begin_inset Note Framed
22220 \begin_layout Standard
22234 \begin_layout Standard
22248 \begin_layout Standard
22249 \begin_inset VSpace bigskip
22255 \begin_layout Standard
22260 notes the default space between the note content and the note border is
22261 3\InsetSpace \thinspace{}
22262 pt; it can be changed by changing the size
22270 The default background color red can be changed with the command
22274 def\SpecialChar \textcompwordmark{}
22282 def\SpecialChar \textcompwordmark{}
22285 command is explained in section\InsetSpace ~
22287 \begin_inset LatexCommand ref
22288 reference "sec:Colored-Tables"
22296 \begin_layout Standard
22303 \SpecialChar \textcompwordmark{}
22308 requires the LaTeX-package
22312 in the preamble, see section\InsetSpace ~
22314 \begin_inset LatexCommand ref
22315 reference "sec:Colored-Boxes"
22327 \begin_layout Standard
22328 For example the appearance of the following
22332 note is set with the TeX-Code commands
22335 \begin_layout Standard
22348 def\SpecialChar \textcompwordmark{}
22349 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22352 \begin_layout Standard
22356 \begin_layout Standard
22369 \begin_layout Standard
22373 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22379 \begin_inset Note Shaded
22382 \begin_layout Standard
22385 This is yellow text in a
22395 note with darkgreen background.
22404 \begin_layout Standard
22417 \begin_layout Standard
22421 definecolor{shadecolor}{rgb}{1,0,0}
22429 \begin_layout Section
22431 \begin_inset LatexCommand label
22432 name "sec:Footnotes"
22437 \begin_inset LatexCommand index
22438 name "Notes ! Footnotes"
22443 \begin_inset LatexCommand index
22451 \begin_layout Standard
22452 Footnotes can be inserted using the toolbar button
22453 \begin_inset Graphics
22454 filename ../images/footnote-insert.png
22456 scaleBeforeRotation
22462 Insert\SpecialChar \menuseparator
22474 then the following footnote-box:
22475 \begin_inset Graphics
22476 filename clipart/footnoteQt4.png
22478 scaleBeforeRotation
22486 where you can enter the footnote text.
22487 If you want to turn existing text into a footnote, mark it and click on
22509 to text, press the Backspace key when the cursor is in the first position
22518 , or press the Delete key when the cursor is in the very last position of
22530 \begin_layout Standard
22531 Here is an example footnote:
22539 \begin_layout Standard
22540 \begin_inset LatexCommand label
22541 name "foot:This-is-an"
22545 This is an example footnote.
22558 \begin_layout Standard
22562 newcounter{MyRepeatFoot}
22565 \begin_layout Standard
22569 setcounter{MyRepeatFoot}{
22579 \begin_layout Standard
22580 The footnote will appear in the output as a superscript number at the text
22581 position where the footnote box is placed.
22582 The footnote text is placed at the bottom of the current page.
22583 The footnote number is calculated by LaTeX, the numbers are consecutive.
22584 It depends on your document-class, if the footnote number is reset for
22588 \begin_layout Standard
22589 Footnotes can be referenced like floats: Insert a label into the footnote
22590 and cross-reference this label in the text as described in section\InsetSpace ~
22592 \begin_inset LatexCommand ref
22593 reference "sec:Referencing-Floats"
22599 This is a cross-reference of Footnote\InsetSpace ~
22601 \begin_inset LatexCommand ref
22602 reference "foot:This-is-an"
22609 \begin_layout Standard
22610 \begin_inset VSpace defskip
22613 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
22615 \begin_inset LatexCommand ref
22616 reference "sec:Minipages"
22621 Footnotes within longtables are described in section\InsetSpace ~
22623 \begin_inset LatexCommand ref
22624 reference "sub:Footnotes-in-Longtables"
22631 \begin_layout Standard
22632 \begin_inset VSpace defskip
22635 To create only a mark for a footnote, use the command
22639 footnotemark[number]
22642 This is used when you have the same annotation several times in a text
22643 but doesn't want to print the footnote text every time.
22646 the number of the repeating footnote while you are writing the text, you
22647 have to store its number.
22648 For the following footnote mark example, these commands were inserted in
22649 TeX-Code behind Footnote\InsetSpace ~
22651 \begin_inset LatexCommand ref
22652 reference "foot:This-is-an"
22656 to store the footnote number:
22659 \begin_layout Standard
22664 newcounter{MyRepeatFoot}
22668 setcounter{MyRepeatFoot}{
22673 \begin_layout Standard
22674 The footnote mark was then created with this command:
22677 \begin_layout Standard
22687 \begin_layout Standard
22688 Here is an example footnote mark:
22696 \begin_layout Standard
22710 \begin_layout Subsection
22712 \begin_inset LatexCommand label
22713 name "sub:Footnote-Numbering"
22718 \begin_inset LatexCommand index
22719 name "Footnotes ! Numbering"
22726 \begin_layout Standard
22727 To reset the footnote number back to 1 after each section
22729 , add this command to your document preamble:
22732 \begin_layout Standard
22737 @addtoreset{footnote}{section}
22740 \begin_layout Standard
22741 \begin_inset VSpace bigskip
22744 The following preamble command changes the footnote numbering style to small
22748 \begin_layout Standard
22760 \begin_layout Standard
22764 \begin_layout Standard
22777 This is a footnote with roman numbering:
22781 \begin_layout Standard
22782 This is an example footnote with roman numbering.
22790 \begin_layout Standard
22791 To change the numbering style to capital roman numerals replace in the command
22806 \begin_inset Quotes eld
22810 \begin_inset Quotes erd
22813 footnotes with capital or small Latin letters use
22827 \begin_inset Quotes eld
22831 \begin_inset Quotes erd
22834 footnotes with symbols use
22843 \begin_layout Standard
22844 \begin_inset Note Greyedout
22847 \begin_layout Standard
22852 You can only number 26 footnotes with Latin letters, because this numbering
22853 is limited to single letters.
22861 \begin_inset Note Greyedout
22864 \begin_layout Standard
22869 You can only number 9 footnotes with symbols.
22877 \begin_layout Standard
22878 To return to the default numbering style when you changed to another one,
22891 in the command above.
22895 \begin_layout Standard
22911 \begin_layout Standard
22912 \begin_inset VSpace bigskip
22918 \begin_layout Standard
22919 If you want to have footnotes numbered in the scheme
22920 \begin_inset Quotes eld
22924 \begin_inset Quotes erd
22927 , add the following command to your document preamble:
22930 \begin_layout Standard
22935 numberwithin{footnote}{chapter}
22938 \begin_layout Standard
22939 To be able to use the command
22950 in the document settings the option
22960 \begin_layout Standard
22964 \begin_layout Standard
22968 numberwithin{footnote}{chapter}
22973 This is another example footnote:
22979 \begin_layout Standard
22980 This is a footnote numbered in the scheme
22981 \begin_inset Quotes eld
22985 \begin_inset Quotes erd
22999 \begin_layout Standard
23015 \begin_layout Standard
23016 \begin_inset Note Greyedout
23019 \begin_layout Standard
23030 always prints out the footnote number as arabic number; previous redefinitions
23031 to get non-arabic numbers are overwritten.
23039 \begin_layout Standard
23040 So to get for example the scheme
23041 \begin_inset Quotes eld
23047 \begin_inset Quotes erd
23050 , use this command instead of
23059 \begin_layout Standard
23073 \begin_layout Subsection
23075 \begin_inset LatexCommand index
23076 name "Footnotes ! Placement"
23083 \begin_layout Standard
23084 If you have several footnotes in one page, they appear without vertical
23085 space between them at the bottom of the page.
23086 To make them better readable you can e.\InsetSpace \thinspace{}
23088 add 1.5\InsetSpace \thinspace{}
23089 mm space with the following
23093 \begin_layout Standard
23115 \begin_layout Standard
23116 \begin_inset VSpace bigskip
23119 In a two-column document the footnotes appear at the bottom of every column,
23120 see Figure\InsetSpace ~
23122 \begin_inset LatexCommand ref
23123 reference "fig:Standard-footnote-placement"
23128 If the footnotes should only appear at the bottom of the right column,
23129 as in Figure\InsetSpace ~
23131 \begin_inset LatexCommand ref
23132 reference "fig:Footnote-placement-in"
23136 , use the LaTeX-package
23141 \begin_inset LatexCommand index
23142 name "LaTeX-packages ! ftnright"
23146 with this command in the document preamble:
23149 \begin_layout Standard
23154 usepackage{ftnright}
23157 \begin_layout Standard
23158 \begin_inset Float figure
23164 \begin_layout Standard
23168 \begin_layout Standard
23178 \begin_inset Graphics
23179 filename clipart/without_fntright.pdf
23181 scaleBeforeRotation
23189 \begin_layout Standard
23199 \begin_layout Standard
23200 \begin_inset Caption
23202 \begin_layout Standard
23203 \begin_inset LatexCommand label
23204 name "fig:Standard-footnote-placement"
23208 Standard footnote placement in two-column documents.
23221 \begin_layout Standard
23222 \begin_inset Float figure
23228 \begin_layout Standard
23232 \begin_layout Standard
23242 \begin_inset Graphics
23243 filename clipart/with_fntright.pdf
23245 scaleBeforeRotation
23253 \begin_layout Standard
23263 \begin_layout Standard
23264 \begin_inset Caption
23266 \begin_layout Standard
23267 \begin_inset LatexCommand label
23268 name "fig:Footnote-placement-in"
23272 Footnote placement in two-column documents when the LaTeX-package
23289 \begin_layout Standard
23290 \begin_inset VSpace bigskip
23293 In some scientific literature it is usual to collect the footnotes and print
23294 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
23296 \begin_inset LatexCommand ref
23297 reference "fig:Endnotes----footnotes"
23302 They are then so called
23303 \begin_inset Quotes eld
23307 \begin_inset Quotes erd
23311 To use endnotes instead of footnotes in your document, load the LaTeX-package
23317 \begin_inset LatexCommand index
23318 name "LaTeX-packages ! endnotes"
23322 with the document preamble lines
23325 \begin_layout Standard
23330 usepackage{endnotes}
23341 \begin_layout Standard
23342 To insert the collected footnotes, insert the command
23345 \begin_layout Standard
23353 \begin_layout Standard
23354 in TeX-Code at the the end of a section or chapter.
23357 \begin_layout Standard
23358 \begin_inset Float figure
23363 \begin_layout Standard
23368 \begin_layout Standard
23378 \begin_inset Graphics
23379 filename clipart/endnotes.pdf
23380 scaleBeforeRotation
23388 \begin_layout Standard
23398 \begin_layout Standard
23399 \begin_inset Caption
23401 \begin_layout Standard
23402 \begin_inset LatexCommand label
23403 name "fig:Endnotes----footnotes"
23407 Endnotes -- footnotes are printed in a separate paragraph at the end of
23408 sections or chapters.
23421 \begin_layout Standard
23422 \begin_inset VSpace medskip
23425 The paragraph heading for the endnotes isn't automatically translated into
23426 the document language, this must be done manually.
23427 The following preamble command translate the default English name
23428 \begin_inset Quotes eld
23432 \begin_inset Quotes erd
23435 to the German translation
23436 \begin_inset Quotes eld
23440 \begin_inset Quotes erd
23446 \begin_layout Standard
23453 notesname}{Anmerkungen}
23456 \begin_layout Standard
23457 \begin_inset VSpace medskip
23460 The numbering of endnotes can be changed like the footnote numbering as
23461 described in section\InsetSpace ~
23463 \begin_inset LatexCommand ref
23464 reference "sub:Footnote-Numbering"
23468 ; just replace the command
23481 To reset the endnote number use the command
23487 as described in section\InsetSpace ~
23489 \begin_inset LatexCommand ref
23490 reference "sub:Footnote-Numbering"
23494 and replace the command parameter
23505 \begin_layout Standard
23506 To create only a mark for an endnote, use the command
23510 endnotemark[number]
23512 similar to the command
23518 , described in section\InsetSpace ~
23520 \begin_inset LatexCommand ref
23521 reference "sec:Footnotes"
23528 \begin_layout Standard
23529 \begin_inset VSpace bigskip
23532 Footnotes can also be placed in the page margin and the footnote text alignment
23533 can be changed, see the LaTeX-package
23538 \begin_inset LatexCommand index
23539 name "LaTeX-packages ! footmisc"
23544 \begin_inset LatexCommand cite
23549 for more information about this.
23552 \begin_layout Standard
23553 For various further footnote formatting issues have a look at LaTeX-books,
23555 \begin_inset LatexCommand cite
23556 key "latexcompanion,latexguide,latexbook"
23563 \begin_layout Section
23565 \begin_inset LatexCommand index
23566 name "Notes ! Margin Notes"
23573 \begin_layout Standard
23574 Margin notes look and behave in LyX like footnotes.
23575 They are inserted via the menu
23577 Insert\SpecialChar \menuseparator
23578 Marginal\InsetSpace ~
23581 or the toolbar button
23582 \begin_inset Graphics
23583 filename ../images/marginalnote-insert.png
23585 scaleBeforeRotation
23600 \begin_inset Quotes eld
23604 \begin_inset Quotes erd
23607 appears where you can enter the text of the margin note.
23610 \begin_layout Standard
23611 At the side is an example margin note.
23615 \begin_inset Marginal
23618 \begin_layout Standard
23619 This is a margin note.
23627 \begin_layout Standard
23628 Margin notes appear at the right side in single-sided documents.
23629 In double-sided documents they appear in the outer margin -- left on even
23630 pages, right on odd pages.
23631 The text of margin notes is aligned opposite to the outer margin -- right-align
23632 ed when the note appears in the left margin.
23633 The first line of the margin note is placed at the position of the text
23634 line where it is inserted in the document.
23637 \begin_layout Standard
23638 \begin_inset VSpace bigskip
23641 To place the margin note in the inner margin, add the command
23644 \begin_layout Standard
23652 \begin_layout Standard
23653 in TeX-Code before a margin note.
23654 The new placement is valid for all following margin notes.
23658 \begin_layout Standard
23668 \begin_inset Marginal
23671 \begin_layout Standard
23672 This is a margin note in the inner margin.
23684 \begin_inset Note Greyedout
23687 \begin_layout Standard
23692 There is often not enough space in the inner margin so that the notes are
23693 not correctly displayed in the output.
23701 \begin_layout Standard
23702 To return to the default placement insert the command
23705 \begin_layout Standard
23713 \begin_layout Standard
23718 \begin_layout Standard
23728 \begin_inset Note Greyedout
23731 \begin_layout Standard
23736 The command is ignored when it is within a paragraph where also the command
23751 \begin_layout Standard
23752 \begin_inset VSpace bigskip
23759 \begin_inset Marginal
23762 \begin_layout Standard
23763 AVeryLongMarginParWord that isn't hyphenated.
23771 Similar to the case described in section\InsetSpace ~
23773 \begin_inset LatexCommand ref
23774 reference "sub:Multiple-Lines-in"
23778 , long words cannot be hyphenated when they are the first word in a margin
23780 To avoid this, insert the command
23783 \begin_layout Standard
23791 \begin_layout Standard
23792 in TeX-Code before the word
23796 \begin_inset Marginal
23799 \begin_layout Standard
23803 \begin_layout Standard
23812 AVeryLongMarginParWord that is hyphenated.
23820 \begin_layout Standard
23821 \begin_inset VSpace bigskip
23827 \begin_layout Standard
23828 \begin_inset Note Greyedout
23831 \begin_layout Standard
23836 Margin notes can normally not be used inside tables, floats, and footnotes.
23844 \begin_layout Standard
23845 \begin_inset VSpace bigskip
23851 \begin_layout Standard
23855 \begin_layout Standard
23865 \begin_inset Note Note
23868 \begin_layout Standard
23869 The following section will only be displayed when the LaTeX-package
23881 \begin_layout Standard
23882 This restriction can be evaded by using the LaTeX-package
23887 \begin_inset LatexCommand index
23888 name "LaTeX-packages ! marginnote"
23893 By adding these two lines to your document preamble, the command used by
23894 LyX for margin notes is redefined to use the command provided by the
23901 \begin_layout Standard
23906 usepackage{marginnote}
23917 \begin_layout Standard
23918 This is also used in this document because
23922 has another useful feature: You can set a vertical offset for the note.
23923 This is often needed when too many margin notes are too close together
23924 or for a better page layout.
23925 The offset is set in LyX as TeX-Code directly behind the margin note in
23929 \begin_layout Standard
23935 \begin_layout Standard
23936 where the offset is a length with one of the units listed in Table\InsetSpace ~
23938 \begin_inset LatexCommand ref
23939 reference "tab:Units"
23944 A negative value shifts the note up, a positive value shifts it down.
23948 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23950 the TeX-Code-command
23951 \begin_inset Quotes eld
23961 \begin_inset Quotes erd
23965 \begin_inset Marginal
23968 \begin_layout Standard
23969 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23970 cm from its original position.
23982 \begin_layout Standard
23992 \begin_layout Standard
23993 \begin_inset VSpace medskip
24000 you can also change the alignment of the text in the margin note.
24001 For example the commands
24004 \begin_layout Standard
24011 raggedleftmarginnote}{
24019 raggedrightmarginnote}{
24024 \begin_layout Standard
24025 set the alignment to centered.
24030 raggedleftmarginnote
24032 denotes margin notes that appear at the left side.
24039 \begin_layout Standard
24045 raggedleftmarginnote}{
24050 \begin_layout Standard
24056 raggedrightmarginnote}{
24064 \begin_inset Marginal
24067 \begin_layout Standard
24068 The text of this margin note is centered.
24079 \begin_layout Standard
24086 raggedleftmarginnote}{
24094 raggedrightmarginnote}{
24103 \begin_layout Standard
24109 raggedleftmarginnote}{
24114 \begin_layout Standard
24120 raggedrightmarginnote}{
24130 \begin_layout Standard
24131 \begin_inset VSpace medskip
24134 For the other features of
24138 we refer to its documentation
24139 \begin_inset LatexCommand cite
24147 \begin_layout Standard
24148 \begin_inset VSpace bigskip
24151 You can adjust the layout of margin notes by changing its definition.
24152 To create for example a header for all margin notes with the underlined,
24153 sans-serif, and bold header text
24154 \begin_inset Quotes eld
24166 \begin_inset Quotes erd
24169 , add this to your document preamble:
24172 \begin_layout Standard
24195 \begin_layout Standard
24212 underbar{Attention!}}}%
24218 \begin_layout Standard
24236 \begin_layout Standard
24243 \begin_layout Standard
24254 \begin_layout Standard
24265 \begin_layout Standard
24273 underbar{Attention!}}}%
24276 \begin_layout Standard
24290 \begin_inset Marginal
24293 \begin_layout Standard
24294 This is a margin note with a defined heading.
24306 \begin_layout Standard
24320 \begin_layout Standard
24337 \begin_inset Note Note
24340 \begin_layout Standard
24341 The margin note format is changed only for this example.
24349 \begin_layout Standard
24353 \begin_layout Standard
24363 \begin_inset Note Note
24366 \begin_layout Standard
24367 The following will be displayed when the LaTeX-package
24379 \begin_layout Standard
24380 You need to install the LaTeX-package
24384 to see the following part of this section in the output.
24387 \begin_layout Standard
24391 \begin_layout Standard
24403 \begin_layout Chapter
24407 \begin_layout Section
24409 \begin_inset LatexCommand index
24410 name "Boxes ! Introduction"
24417 \begin_layout Standard
24418 Boxes are used to format a block of text.
24419 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24421 \begin_inset LatexCommand ref
24422 reference "sec:Minipages"
24426 , to frame texts, see section\InsetSpace ~
24428 \begin_inset LatexCommand ref
24429 reference "sec:Framed-Boxes"
24433 , to prevent words to be hyphenated, see section\InsetSpace ~
24435 \begin_inset LatexCommand ref
24436 reference "sec:Prevent-Hyphenation"
24440 , to align text, see section\InsetSpace ~
24442 \begin_inset LatexCommand ref
24443 reference "sub:Vertical-Alignment"
24447 , or to set the background color of texts, see section\InsetSpace ~
24449 \begin_inset LatexCommand ref
24450 reference "sec:Colored-Boxes"
24457 \begin_layout Standard
24458 Boxes can be inserted with the menu
24460 Insert\SpecialChar \menuseparator
24463 or the toolbar button
24464 \begin_inset Graphics
24465 filename ../images/box-insert.png
24467 scaleBeforeRotation
24472 A grey box with the label
24477 \begin_inset Graphics
24478 filename clipart/BoxInsetDefaultQt4.png
24480 scaleBeforeRotation
24484 , will be inserted.
24485 The box type can be specified by right-clicking on the box.
24486 The appearing box dialog offers the
24504 is the default for new boxes and is explained in section\InsetSpace ~
24506 \begin_inset LatexCommand ref
24507 reference "sec:Minipages"
24515 is described in section\InsetSpace ~
24517 \begin_inset LatexCommand ref
24518 reference "sec:Parboxes"
24525 \begin_layout Standard
24526 Boxes aren't numbered and can therefore not be referenced like floats or
24530 \begin_layout Standard
24531 \begin_inset Note Greyedout
24534 \begin_layout Standard
24539 Boxes must not be the item in an
24555 \begin_layout Standard
24556 \begin_inset Note Greyedout
24559 \begin_layout Standard
24564 For an unknown reason you can only set the
24573 when you use a framed box.
24579 type and without frames are explained in section\InsetSpace ~
24581 \begin_inset LatexCommand ref
24582 reference "sec:Prevent-Hyphenation"
24594 \begin_layout Section
24596 \begin_inset LatexCommand label
24597 name "sec:Box-Dialog"
24602 \begin_inset LatexCommand index
24603 name "Boxes ! Box Dialog"
24608 \begin_inset LatexCommand index
24609 name "Boxes ! Alignment"
24616 \begin_layout Standard
24617 In the box dialog you can adjust the box geometry in the fields
24626 The available units for the geometry are explained in Table\InsetSpace ~
24628 \begin_inset LatexCommand ref
24629 reference "tab:Units"
24638 offers the following additional sizes:
24641 \begin_layout Description
24642 Depth This is the plain text
24643 \begin_inset Quotes eld
24647 \begin_inset Quotes erd
24651 It ignores the total depth when there are multiple text lines in the box:
24658 \begin_inset Box Boxed
24667 height_special "depth"
24670 \begin_layout Standard
24672 Box height set to 1\InsetSpace \thinspace{}
24685 \begin_layout Description
24686 Height This is the heigth of the text that is inside the box.
24687 A value of e.\InsetSpace \thinspace{}
24689 2 for this size will set the box heigth to 2 times the text
24691 \begin_inset Box Boxed
24700 height_special "height"
24703 \begin_layout Standard
24705 Box height set to 2\InsetSpace \thinspace{}
24714 \begin_layout Description
24716 Height This is the Height\InsetSpace \thinspace{}
24717 +\InsetSpace \thinspace{}
24719 \begin_inset Box Boxed
24728 height_special "totalheight"
24731 \begin_layout Standard
24733 Box height set to 1\InsetSpace \thinspace{}
24743 \begin_layout Description
24744 Width This sets the width of the box as heigth:
24745 \begin_inset Box Boxed
24754 height_special "width"
24757 \begin_layout Standard
24759 Box height set to 1\InsetSpace \thinspace{}
24768 \begin_layout Standard
24769 \begin_inset VSpace bigskip
24772 When you have chosen an
24777 , the vertical box alignment can be:
24780 \begin_layout Description
24781 Top This is an example text line.
24783 \begin_inset Box Boxed
24792 height_special "totalheight"
24795 \begin_layout Standard
24797 This box is top-aligned.
24802 This is an example text line.
24805 \begin_layout Description
24806 Middle This is an example text line.
24808 \begin_inset Box Boxed
24817 height_special "totalheight"
24820 \begin_layout Standard
24822 This box is middle-aligned.
24827 This is an example text line.
24830 \begin_layout Description
24831 Bottom This is an example text line.
24833 \begin_inset Box Boxed
24842 height_special "totalheight"
24845 \begin_layout Standard
24847 This box is bottom-aligned.
24852 This is an example text line.
24855 \begin_layout Standard
24856 The horizontal box alignment can be set via LyX's paragraph dialog when
24857 you set the box into its own paragraph.
24860 \begin_layout Standard
24861 \begin_inset VSpace bigskip
24864 When you have chosen an
24869 , the box content can be vertical aligned to:
24872 \begin_layout Description
24873 top This is an example text line.
24875 \begin_inset Box Boxed
24884 height_special "totalheight"
24887 \begin_layout Standard
24889 This box text is top-aligned.
24894 This is an example text line.
24897 \begin_layout Description
24898 middle This is an example text line.
24900 \begin_inset Box Boxed
24909 height_special "totalheight"
24912 \begin_layout Standard
24914 This box text is middle-aligned.
24919 This is an example text line.
24922 \begin_layout Description
24923 bottom This is an example text line.
24925 \begin_inset Box Boxed
24934 height_special "totalheight"
24937 \begin_layout Standard
24939 This box text is bottom-aligned.
24944 This is an example text line.
24947 \begin_layout Description
24948 stretch This is an example text line.
24950 \begin_inset Box Boxed
24959 height_special "totalheight"
24962 \begin_layout Standard
24967 \begin_layout Standard
24972 \begin_layout Standard
24979 This is an example text line.
24982 \begin_layout Standard
24983 To stretch the box content, it must consist of more than one paragraph.
24984 In the example above every text line is in an own paragraph.
24987 \begin_layout Standard
24988 \begin_inset VSpace bigskip
24991 To align the box content horizontally you can use LyX's paragraph dialog
24992 when you have chosen an
25000 \begin_layout Standard
25002 \begin_inset Box Boxed
25011 height_special "totalheight"
25014 \begin_layout Standard
25019 \begin_layout Standard
25024 \begin_layout Standard
25034 \begin_layout Standard
25035 If you haven't set an
25040 , you can align the box content horizontally in the box dialog.
25043 \begin_layout Standard
25045 \begin_inset Box Boxed
25054 height_special "totalheight"
25057 \begin_layout Standard
25059 This box text is horizontally stretched.
25067 \begin_layout Section
25069 \begin_inset LatexCommand label
25070 name "sec:Framed-Boxes"
25075 \begin_inset LatexCommand index
25076 name "Boxes ! Frames"
25083 \begin_layout Standard
25084 The frame style of the box can be specified in the box-dialog in the drop-down
25090 The following frame types are possible:
25093 \begin_layout Description
25094 Rectangular\InsetSpace ~
25095 box This draws a rectangle frame around the box.
25096 The frame line thickness has the size of
25104 \begin_inset Box Boxed
25113 height_special "totalheight"
25116 \begin_layout Standard
25126 \begin_layout Description
25129 thin This draws an oval frame around the box.
25130 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
25133 \begin_inset Box ovalbox
25142 height_special "totalheight"
25145 \begin_layout Standard
25155 \begin_layout Description
25158 thick This draws an oval frame around the box.
25159 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
25162 \begin_inset Box Ovalbox
25171 height_special "totalheight"
25174 \begin_layout Standard
25184 \begin_layout Description
25185 Shadow\InsetSpace ~
25186 box This draws a rectangle frame with a shadow around the box.
25187 The frame line thickness has the size of
25193 , the shadow has a width of 4\InsetSpace \thinspace{}
25196 \begin_inset Box Shadowbox
25205 height_special "totalheight"
25208 \begin_layout Standard
25218 \begin_layout Description
25219 Double\InsetSpace ~
25220 box This draws a double-line rectangle frame around the box.
25221 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
25228 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
25236 The distance between the lines is 1.5\InsetSpace \thinspace{}
25243 \InsetSpace \thinspace{}
25244 +\InsetSpace \thinspace{}
25245 0.5\InsetSpace \thinspace{}
25248 \begin_inset Box Doublebox
25257 height_special "totalheight"
25260 \begin_layout Standard
25270 \begin_layout Standard
25271 \begin_inset VSpace bigskip
25274 LyX's box label will change to the used frame style when you set a frame.
25275 To be able to use the different frame styles, the LaTeX-package
25280 \begin_inset LatexCommand index
25281 name "LaTeX-packages ! fancybox"
25288 \begin_layout Standard
25289 \begin_inset VSpace bigskip
25292 The default value for the size
25298 is 0.4\InsetSpace \thinspace{}
25300 It can be changed with the following command in TeX-Code to e.\InsetSpace \thinspace{}
25302 2\InsetSpace \thinspace{}
25306 \begin_layout Standard
25316 \begin_layout Standard
25320 \begin_layout Standard
25332 \begin_inset Box Boxed
25341 height_special "totalheight"
25344 \begin_layout Standard
25346 Rectangular box with
25352 \InsetSpace \thinspace{}
25353 =\InsetSpace \thinspace{}
25354 2\InsetSpace \thinspace{}
25364 \begin_layout Standard
25378 \begin_layout Standard
25379 \begin_inset VSpace bigskip
25382 The space between the frame and the box content is for all frame styles
25383 by default 3\InsetSpace \thinspace{}
25385 You can change it by setting the length
25392 For example the command
25395 \begin_layout Standard
25405 \begin_layout Standard
25406 sets the value to 10\InsetSpace \thinspace{}
25407 pt, like for the following box:
25410 \begin_layout Standard
25414 \begin_layout Standard
25426 \begin_inset Box Boxed
25435 height_special "totalheight"
25438 \begin_layout Standard
25440 Rectangular box with
25446 \InsetSpace \thinspace{}
25447 =\InsetSpace \thinspace{}
25448 10\InsetSpace \thinspace{}
25458 \begin_layout Standard
25472 \begin_layout Standard
25473 \begin_inset VSpace bigskip
25476 The diameter of the round corners of the oval boxes can be set with the
25487 \begin_layout Standard
25495 \begin_layout Standard
25496 sets the diameter to 1\InsetSpace \thinspace{}
25501 \begin_layout Standard
25509 \begin_layout Standard
25510 sets the diameter to
25512 num\InsetSpace \thinspace{}
25513 ×\InsetSpace \thinspace{}
25514 minimum(width and heigth of box)
25526 \begin_layout Standard
25530 \begin_layout Standard
25540 \begin_inset Box Ovalbox
25549 height_special "totalheight"
25552 \begin_layout Standard
25560 \InsetSpace \thinspace{}
25561 =\InsetSpace \thinspace{}
25562 1.5\InsetSpace \thinspace{}
25572 \begin_layout Standard
25584 \begin_layout Standard
25585 \begin_inset VSpace bigskip
25588 The size of the shadow can be adjusted by changing the length
25595 It it set to 2\InsetSpace \thinspace{}
25596 pt for the following box by this command:
25599 \begin_layout Standard
25609 \begin_layout Standard
25613 \begin_layout Standard
25625 \begin_inset Box Shadowbox
25634 height_special "totalheight"
25637 \begin_layout Standard
25645 \InsetSpace \thinspace{}
25646 =\InsetSpace \thinspace{}
25647 2\InsetSpace \thinspace{}
25657 \begin_layout Standard
25671 \begin_layout Standard
25672 \begin_inset VSpace bigskip
25675 Changed lengths and widths are valid for all boxes following the commands
25679 \begin_layout Section
25681 \begin_inset LatexCommand label
25682 name "sec:Minipages"
25687 \begin_inset LatexCommand index
25688 name "Boxes ! Minipages"
25695 \begin_layout Standard
25696 Minipages are treated by LaTeX as pages within pages and can therefore for
25697 example have their own footnotes.
25700 \begin_layout Standard
25701 Minipages are useful when you write documents with different languages.
25704 \begin_layout Standard
25705 Below are two example minipages side by side.
25706 Their width is set to 45\InsetSpace \thinspace{}
25707 col% and they are separated by a horizontal fill,
25708 that was inserted via the menu
25710 Insert\SpecialChar \menuseparator
25711 Special\InsetSpace ~
25712 Formatting\SpecialChar \menuseparator
25713 Horizontal\InsetSpace ~
25719 \begin_layout Standard
25720 \begin_inset Box Frameless
25729 height_special "totalheight"
25732 \begin_layout Standard
25735 Dies ist ein deutscher Text.
25736 Dies ist ein deutscher Text.
25737 Dies ist ein deutscher Text.
25738 Dies ist ein deutscher Text.
25739 Dies ist ein deutscher Text.
25740 Dies ist ein deutscher Text.
25741 Dies ist ein deutscher Text.
25742 Dies ist ein deutscher Text.
25743 Dies ist ein deutscher Text.
25744 Dies ist ein deutscher Text.
25745 Dies ist ein deutscher Text.
25746 Dies ist ein deutscher Text.
25747 Dies ist ein deutscher Text
25751 \begin_layout Standard
25754 Dies ist eine deutsche Fußnote.
25760 Dies ist ein deutscher Text.
25761 Dies ist ein deutscher Text.
25769 \begin_inset Box Frameless
25778 height_special "totalheight"
25781 \begin_layout Standard
25782 This is an English Text.
25783 This is an English Text.
25784 This is an English Text.
25785 This is an English Text.
25786 This is an English Text.
25787 This is an English Text.
25788 This is an English Text.
25789 This is an English Text.
25790 This is an English Text.
25791 This is an English Text.
25792 This is an English Text.
25793 This is an English Text.
25794 This is an English Text.
25795 This is an English Text.
25796 This is an English Text.
25797 This is an English Text.
25801 \begin_layout Standard
25802 This is an English footnote.
25807 This is an English Text.
25816 \begin_layout Standard
25817 \begin_inset VSpace bigskip
25820 Another application for minipages are footnotes within tables.
25821 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25822 bottom of the current page.
25823 But when you put the table with the footnote to a minipage, the footnote
25824 will appear at its bottom, numbered with Latin letters.
25825 The footnote number is reset to 1 in every minipage but not outside the
25829 \begin_layout Standard
25830 The footnote of this table doesn't appear:
25831 \begin_inset Tabular
25832 <lyxtabular version="3" rows="3" columns="4">
25834 <column alignment="center" valignment="top" leftline="true" width="0pt">
25835 <column alignment="center" valignment="top" leftline="true" width="0pt">
25836 <column alignment="center" valignment="top" leftline="true" width="0pt">
25837 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25838 <row topline="true">
25839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25842 \begin_layout Standard
25848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25851 \begin_layout Standard
25857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25860 \begin_layout Standard
25865 \begin_layout Standard
25866 This is a footnote within a table.
25876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25879 \begin_layout Standard
25886 <row topline="true">
25887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25890 \begin_layout Standard
25896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25899 \begin_layout Standard
25905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25908 \begin_layout Standard
25914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25917 \begin_layout Standard
25924 <row topline="true" bottomline="true">
25925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25928 \begin_layout Standard
25934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25937 \begin_layout Standard
25943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25946 \begin_layout Standard
25952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25955 \begin_layout Standard
25969 \begin_layout Standard
25971 \begin_inset Box Frameless
25980 height_special "totalheight"
25983 \begin_layout Standard
25985 \begin_inset Tabular
25986 <lyxtabular version="3" rows="3" columns="4">
25988 <column alignment="center" valignment="top" leftline="true" width="0pt">
25989 <column alignment="center" valignment="top" leftline="true" width="0pt">
25990 <column alignment="center" valignment="top" leftline="true" width="0pt">
25991 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25992 <row topline="true">
25993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25996 \begin_layout Standard
26002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26005 \begin_layout Standard
26011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26014 \begin_layout Standard
26019 \begin_layout Standard
26020 This is a footnote within a table.
26030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26033 \begin_layout Standard
26040 <row topline="true">
26041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26044 \begin_layout Standard
26050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26053 \begin_layout Standard
26059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26062 \begin_layout Standard
26068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26071 \begin_layout Standard
26078 <row topline="true" bottomline="true">
26079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26082 \begin_layout Standard
26088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26091 \begin_layout Standard
26097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26100 \begin_layout Standard
26106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26109 \begin_layout Standard
26128 \begin_layout Standard
26129 \begin_inset VSpace bigskip
26132 The document-wide paragraph settings are ignored within minipages.
26133 That means that there will be no space between paragraphs in minipages
26134 although you set it to e.\InsetSpace \thinspace{}
26140 in the document settings.
26143 \begin_layout Standard
26144 Minipages can also be used to set a background color for text parts, see
26145 section\InsetSpace ~
26147 \begin_inset LatexCommand ref
26148 reference "sub:Color-for-Paragraphs"
26155 \begin_layout Standard
26156 \begin_inset Note Greyedout
26159 \begin_layout Standard
26164 You cannot have floats or margin notes inside minipages but minipages can
26165 be used inside tables, floats, and other boxes.
26173 \begin_layout Section
26175 \begin_inset LatexCommand label
26176 name "sec:Parboxes"
26181 \begin_inset LatexCommand index
26182 name "Boxes ! Parboxes"
26189 \begin_layout Standard
26190 Parboxes are very similar to minipages with the difference that they cannot
26192 The main difference to minipages is that minipages are in contrary to parboxes
26193 no real boxes but LaTeX-environments.
26196 \begin_layout Standard
26198 \begin_inset Box Frameless
26207 height_special "totalheight"
26210 \begin_layout Standard
26211 This a text within a parbox.
26212 This a text within a parbox.
26215 \begin_layout Standard
26216 This footnote won't appear:
26220 \begin_layout Standard
26221 This footnote is inside a parbox and will therefore not appear.
26234 \begin_layout Section
26235 Boxes for Words and Characters
26236 \begin_inset LatexCommand index
26237 name "Boxes ! for Characters"
26244 \begin_layout Subsection
26245 Prevent Hyphenation
26246 \begin_inset LatexCommand label
26247 name "sec:Prevent-Hyphenation"
26252 \begin_inset LatexCommand index
26253 name "Boxes ! to Prevent Hyphenation"
26260 \begin_layout Standard
26261 You can use a special kind of boxes to prevent words or text to be hyphenated.
26264 e is an example text:
26267 \begin_layout Standard
26268 This line is an example to show how you can prevent the hyphenation of
26269 \begin_inset Quotes eld
26273 \begin_inset Quotes erd
26279 \begin_layout Standard
26280 To prevent the hyphenation of the word
26281 \begin_inset Quotes eld
26285 \begin_inset Quotes erd
26291 \begin_layout Standard
26299 \begin_layout Standard
26300 in TeX-Code before the word.
26301 Behind the word insert a closing brace
26302 \begin_inset Quotes eld
26310 \begin_inset Quotes erd
26317 \begin_layout Standard
26329 \begin_layout Standard
26330 This is the result:
26333 \begin_layout Standard
26334 This line is an example to show how you can prevent the hyphenation of
26338 \begin_layout Standard
26348 \begin_inset Quotes eld
26352 \begin_inset Quotes erd
26359 \begin_layout Standard
26369 \begin_layout Standard
26370 You can alternatively set the command
26371 \begin_inset Quotes eld
26381 \begin_inset Quotes grd
26384 as TeX-Code directly before the word:
26387 \begin_layout Standard
26388 This line is an example to show how you can prevent the hyphenation of
26389 \begin_inset Quotes eld
26396 \begin_layout Standard
26406 \begin_inset Quotes erd
26412 \begin_layout Standard
26413 Of course the word now protrudes over the side margin.
26414 To avoid this, add via the menu
26416 Insert\SpecialChar \menuseparator
26417 Special\InsetSpace ~
26418 Formatting\SpecialChar \menuseparator
26426 ) a line break before the word:
26429 \begin_layout Standard
26430 This line is an example to show how you can prevent the hyphenation of
26436 \begin_layout Standard
26446 \begin_inset Quotes eld
26450 \begin_inset Quotes erd
26457 \begin_layout Standard
26467 \begin_layout Subsection
26469 \begin_inset LatexCommand label
26470 name "sub:Vertical-Alignment"
26475 \begin_inset LatexCommand index
26476 name "Boxes ! for Vertical Alignment"
26481 \begin_inset LatexCommand index
26482 name "Boxes ! Raiseboxes"
26489 \begin_layout Standard
26490 With the help of the command
26496 you can align words, characters or other boxes vertically to the surrounding
26504 is used with the following scheme:
26507 \begin_layout Standard
26512 raisebox{lift}[height][depth]{box content}
26515 \begin_layout Standard
26516 The lift can be a positive value to raise the box or a negative value to
26520 \begin_layout Standard
26521 To align for example the word
26522 \begin_inset Quotes eld
26526 \begin_inset Quotes erd
26529 so that the bottom of the
26530 \begin_inset Quotes eld
26534 \begin_inset Quotes erd
26538 \begin_inset Quotes eld
26542 \begin_inset Quotes erd
26545 is at the baseline, insert the command
26548 \begin_layout Standard
26558 \begin_layout Standard
26559 in TeX-Code before the word.
26560 Behind the word insert a closing brace
26561 \begin_inset Quotes eld
26569 \begin_inset Quotes erd
26574 This is the result:
26577 \begin_layout Standard
26578 This is a text line with the word
26582 \begin_layout Standard
26594 \begin_inset Quotes eld
26598 \begin_inset Quotes erd
26605 \begin_layout Standard
26615 \begin_layout Standard
26616 \begin_inset VSpace bigskip
26619 When you raise or lower characters in a line, the line distance will be
26623 \begin_layout Standard
26624 This is a text line with the word
26628 \begin_layout Standard
26640 \begin_inset Quotes eld
26644 \begin_inset Quotes erd
26651 \begin_layout Standard
26660 This is a text line with the word
26664 \begin_layout Standard
26674 \begin_inset Quotes eld
26678 \begin_inset Quotes erd
26685 \begin_layout Standard
26695 \begin_layout Standard
26696 If you want to prevent this for a certain reason, set the box height to
26701 \begin_layout Standard
26711 \begin_layout Standard
26712 This is a text line with the word
26716 \begin_layout Standard
26728 \begin_inset Quotes eld
26732 \begin_inset Quotes erd
26739 \begin_layout Standard
26748 This is a text line with the word
26752 \begin_layout Standard
26756 raisebox{0.5cm}[0pt]{
26762 \begin_inset Quotes eld
26766 \begin_inset Quotes erd
26773 \begin_layout Standard
26783 \begin_layout Section
26785 \begin_inset LatexCommand label
26786 name "sec:Colored-Boxes"
26791 \begin_inset LatexCommand index
26792 name "Boxes ! Color"
26799 \begin_layout Subsection
26801 \begin_inset LatexCommand index
26802 name "Color ! for Text"
26809 \begin_layout Standard
26810 To color the background of text the text must be put into a so called
26811 \begin_inset Quotes eld
26815 \begin_inset Quotes erd
26819 This requires that the LaTeX-package
26824 \begin_inset LatexCommand index
26825 name "LaTeX-packages ! color"
26829 is loaded in the document preamble with the command
26832 \begin_layout Standard
26837 @ifundefined{textcolor}
26843 \begin_layout Standard
26854 usepackage{color}}{}
26857 \begin_layout Standard
26862 will be loaded automatically by LyX when you color text
26866 \begin_layout Standard
26867 To avoid that it is loaded twice the command
26871 @ifundef\SpecialChar \textcompwordmark{}
26882 \begin_layout Standard
26883 \begin_inset VSpace medskip
26886 Colorboxes are created with the command
26893 This will be used with the following scheme:
26896 \begin_layout Standard
26901 colorbox{color}{box content}
26904 \begin_layout Standard
26905 The box content can also be a box and colorboxes can also be within other
26909 \begin_layout Standard
26910 The following colors are predefined:
26949 You can also define your own color as described in section\InsetSpace ~
26951 \begin_inset LatexCommand ref
26952 reference "sec:Colored-Tables"
26959 \begin_layout Standard
26960 To have e.\InsetSpace \thinspace{}
26962 a red background for a word, insert the command
26965 \begin_layout Standard
26973 \begin_layout Standard
26974 before the word in TeX-Code.
26975 Behind the word insert a closing brace
26976 \begin_inset Quotes eld
26984 \begin_inset Quotes erd
26989 This is the result:
26992 \begin_layout Standard
26993 This is a line where the word
26997 \begin_layout Standard
27007 \begin_inset Quotes eld
27011 \begin_inset Quotes erd
27018 \begin_layout Standard
27025 has a red background.
27028 \begin_layout Standard
27029 \begin_inset VSpace bigskip
27032 If you would have the box frame in a different color, you can use the command
27039 with the following scheme:
27042 \begin_layout Standard
27047 fcolorbox{frame color}{box color}{box content}
27050 \begin_layout Standard
27064 The frame thickness and the space between the frame and the box content
27065 can be adjusted with the lengths
27077 , respectively, as described in section\InsetSpace ~
27079 \begin_inset LatexCommand ref
27080 reference "sec:Framed-Boxes"
27087 \begin_layout Standard
27088 For the following example the command
27091 \begin_layout Standard
27096 fcolorbox{cyan}{magenta}{
27099 \begin_layout Standard
27103 \begin_layout Standard
27104 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
27111 \begin_layout Standard
27126 \begin_layout Standard
27130 fcolorbox{cyan}{magenta}{
27135 This is text within a colored, framed box.
27139 \begin_layout Standard
27149 \begin_layout Standard
27150 \begin_inset VSpace bigskip
27153 Of course you can also have colored text inside a colorbox:
27159 \begin_layout Standard
27163 fcolorbox{cyan}{magenta}{
27170 This is colored text within a colored, framed box.
27176 \begin_layout Standard
27187 \begin_layout Standard
27201 \begin_layout Standard
27204 \begin_inset VSpace medskip
27210 \begin_layout Standard
27211 \begin_inset Note Greyedout
27214 \begin_layout Standard
27219 Text in colorboxes cannot have line breaks.
27220 To color multiple text lines or paragraphs, use a box inside a colorbox
27221 as described in the following.
27229 \begin_layout Subsection
27230 Color for Paragraphs
27231 \begin_inset LatexCommand label
27232 name "sub:Color-for-Paragraphs"
27237 \begin_inset LatexCommand index
27238 name "Color ! for Paragraphs"
27245 \begin_layout Standard
27246 To set the background color for more than one text line, put the text into
27248 Before the minipage insert the
27257 \begin_layout Standard
27265 \begin_layout Standard
27267 Behind the minipage insert a closing brace
27268 \begin_inset Quotes eld
27276 \begin_inset Quotes erd
27282 \begin_layout Standard
27286 \begin_layout Standard
27290 colorbox{lightgrey}{
27296 \begin_inset Box Frameless
27305 height_special "totalheight"
27308 \begin_layout Standard
27309 This is text with background color.
27310 This is text with background color.
27313 \begin_layout Standard
27314 \begin_inset VSpace defskip
27317 The text can have footnotes
27321 \begin_layout Standard
27322 Another example footnote
27327 and can include tables and figures.
27330 \begin_layout Standard
27332 \begin_inset Tabular
27333 <lyxtabular version="3" rows="3" columns="3">
27335 <column alignment="center" valignment="top" leftline="true" width="0">
27336 <column alignment="center" valignment="top" leftline="true" width="0">
27337 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27338 <row topline="true">
27339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27342 \begin_layout Standard
27348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27351 \begin_layout Standard
27357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27360 \begin_layout Standard
27367 <row topline="true">
27368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27371 \begin_layout Standard
27377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27380 \begin_layout Standard
27382 \begin_inset Quotes erd
27390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27393 \begin_layout Standard
27400 <row topline="true" bottomline="true">
27401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27404 \begin_layout Standard
27410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27413 \begin_layout Standard
27419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27422 \begin_layout Standard
27442 \begin_layout Standard
27452 \begin_layout Section
27453 Rotated and Scaled Boxes
27456 \begin_layout Standard
27457 To use the the commands described in this section, the LaTeX-package
27462 \begin_inset LatexCommand index
27463 name "LaTeX-packages ! graphicx"
27467 needs to be loaded in the document preamble with the command
27470 \begin_layout Standard
27475 @ifundefined{rotatebox}
27481 \begin_layout Standard
27492 usepackage{graphicx}}{}
27495 \begin_layout Standard
27496 \begin_inset Note Greyedout
27499 \begin_layout Standard
27504 Some DVI-viewers can't display rotated or scaled material.
27512 \begin_layout Standard
27513 \begin_inset Note Greyedout
27516 \begin_layout Standard
27521 Floats mustn't be inside a rotated or scaled box.
27529 \begin_layout Subsection
27531 \begin_inset LatexCommand index
27532 name "Boxes ! rotated"
27537 \begin_inset LatexCommand index
27538 name "Rotated material"
27543 \begin_inset LatexCommand index
27544 name "Figures ! rotated"
27549 \begin_inset LatexCommand index
27550 name "Table Customization ! Rotating"
27557 \begin_layout Standard
27558 To rotate material, you can put it into a rotated box.
27559 Such a box is created using the command
27565 in TeX-Code with the following scheme:
27568 \begin_layout Standard
27573 rotatebox[rotation origin]{rotation angle}{box content}
27576 \begin_layout Standard
27577 The rotation origin is specified in the form
27582 The following positions are possible:
27602 (top), and also expedient combinations of the four base positions.
27607 means, that the rotation origin is at the top left corner of the box.
27608 When no rotation origin is specified, the position
27613 The rotation angle is a number that can be negative that specifies the
27615 The rotation direction is counterclockwise.
27618 \begin_layout Standard
27619 In the following example the command
27623 rotatebox[origin=c]{60}{
27625 was inserted as TeX-Code before the text
27626 \begin_inset Quotes eld
27630 \begin_inset Quotes erd
27633 ; after the text the box was closed by a closing brace
27640 \begin_layout Standard
27645 \begin_layout Standard
27649 rotatebox[origin=c]{60}{
27658 \begin_layout Standard
27668 \begin_layout Standard
27669 The box content can also be another box or an inline formula:
27672 \begin_layout Standard
27677 \begin_layout Standard
27681 rotatebox[origin=r]{-60}{
27687 \begin_inset Box Doublebox
27696 height_special "totalheight"
27699 \begin_layout Standard
27709 \begin_layout Standard
27720 \begin_layout Standard
27724 rotatebox[origin=lb]{60}{
27730 \begin_inset Formula $\int A\,\mathrm{d}x=B$
27737 \begin_layout Standard
27747 \begin_layout Standard
27748 or an image or table:
27751 \begin_layout Standard
27756 \begin_layout Standard
27760 rotatebox[origin=lb]{90}{
27766 \begin_inset Graphics
27767 filename clipart/platypus.eps
27777 \begin_layout Standard
27784 with a rotated image
27788 \begin_layout Standard
27792 rotatebox[origin=l]{-90}{
27798 \begin_inset Tabular
27799 <lyxtabular version="3" rows="2" columns="2">
27801 <column alignment="center" valignment="top" leftline="true" width="0">
27802 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27803 <row topline="true">
27804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27807 \begin_layout Standard
27813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27816 \begin_layout Standard
27823 <row topline="true" bottomline="true">
27824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27827 \begin_layout Standard
27833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27836 \begin_layout Standard
27851 \begin_layout Standard
27861 \begin_layout Subsection
27863 \begin_inset LatexCommand index
27864 name "Boxes ! scaled"
27869 \begin_inset LatexCommand index
27870 name "Scaled material"
27875 \begin_inset LatexCommand index
27876 name "Figures ! scaled"
27881 \begin_inset LatexCommand index
27882 name "Table Customization ! Scaling"
27889 \begin_layout Standard
27890 To scale material the commands
27902 can be used as TeX-Code.
27905 \begin_layout Standard
27912 is used with the following scheme:
27915 \begin_layout Standard
27920 scalebox{horizontal}[vertical]{box content}
27923 \begin_layout Standard
27924 Horizontal and vertical are the corresponding scaling factors.
27925 If no vertical scaling factor is given, the horizontal factor will also
27926 be used as vertical one.
27929 \begin_layout Standard
27936 creates for example a double size
27940 \begin_layout Standard
27953 \begin_layout Standard
27960 , compared to the document text size.
27963 \begin_layout Standard
27968 scalebox{2}[1]{Hello}
27970 in contrary distorts the
27974 \begin_layout Standard
27987 \begin_layout Standard
27997 \begin_layout Standard
27998 If a the scaling factor is negative, the box content will be mirrored.
27999 Therefore the command
28003 scalebox{-1}[1]{Hello}
28005 can be used to create mirror writing:
28009 \begin_layout Standard
28022 \begin_layout Standard
28032 \begin_layout Standard
28037 scalebox{1}[-1]{Hello}
28043 \begin_layout Standard
28056 \begin_layout Standard
28066 \begin_layout Standard
28071 scalebox{-1}[1]{box content}
28073 there exists the command
28079 reflectbox{box content}
28084 \begin_layout Standard
28085 \begin_inset VSpace bigskip
28094 is used to scale the box to a defined width and height.
28095 The command scheme is:
28098 \begin_layout Standard
28103 resizebox{width}{height}{box content}
28106 \begin_layout Standard
28107 Is one of the two command arguments given as exclamation mark
28111 , the size is set so that the aspect ratio of the box content is kept.
28114 \begin_layout Standard
28119 resizebox{2cm}{1cm}{Hello}
28125 \begin_layout Standard
28129 resizebox{2cm}{1cm}{
28138 \begin_layout Standard
28151 resizebox{2cm}{!}{Hello}
28157 \begin_layout Standard
28170 \begin_layout Standard
28180 \begin_layout Standard
28181 \begin_inset VSpace bigskip
28185 \begin_inset Note Greyedout
28188 \begin_layout Standard
28205 are set to zero, no LaTeX-errors occur when exporting the document but
28206 the exported files can not or only partly be displayed.
28214 \begin_layout Standard
28215 \begin_inset VSpace bigskip
28221 \begin_layout Standard
28222 The boxes can be combined in any order.
28223 E.\InsetSpace \thinspace{}
28231 rotatebox[origin=c]{-45}{
28235 reflectbox{Hello}}}
28242 \begin_layout Standard
28247 \begin_layout Standard
28251 rotatebox[origin=c]{-45}{
28264 \begin_layout Standard
28274 \begin_layout Standard
28276 Images, tables, and inline formulas are allowed as box content:
28279 \begin_layout Standard
28284 \begin_layout Standard
28288 rotatebox[origin=c]{-30}{
28298 \begin_inset Graphics
28299 filename clipart/platypus.eps
28309 \begin_layout Standard
28320 \begin_layout Standard
28324 rotatebox[origin=c]{-45}{
28334 \begin_inset Tabular
28335 <lyxtabular version="3" rows="2" columns="2">
28337 <column alignment="center" valignment="top" leftline="true" width="0">
28338 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28339 <row topline="true">
28340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28343 \begin_layout Standard
28349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28352 \begin_layout Standard
28359 <row topline="true" bottomline="true">
28360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28363 \begin_layout Standard
28369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28372 \begin_layout Standard
28387 \begin_layout Standard
28398 \begin_layout Standard
28402 rotatebox[origin=c]{-45}{
28412 \begin_inset Formula $\int A\,\mathrm{d}x=B$
28419 \begin_layout Standard
28429 \begin_layout Standard
28430 When the global formula style
28434 is used in the document
28438 \begin_layout Standard
28440 \begin_inset Quotes eld
28444 \begin_inset Quotes erd
28447 is added to the document class options.
28452 , also display formulas can be scaled.
28455 \begin_layout Section
28456 URLs (Uniform Resource Locators)
28457 \begin_inset LatexCommand index
28465 \begin_layout Standard
28466 Links to web pages or email addresses can be inserted via the menu
28468 Insert\SpecialChar \menuseparator
28472 The appearing URL dialog has two fields; the
28480 field for the URL description, which will be typeset as plain text immediately
28484 \begin_layout Standard
28485 Here is an example URL:
28486 \begin_inset LatexCommand url
28487 name "LyX's homepage"
28488 target "http://www.lyx.org"
28495 \begin_layout Standard
28498 Generate\InsetSpace ~
28501 in the URL dialog does nothing.
28502 This relict will be removed in the next LyX-version.
28505 \begin_layout Standard
28506 You cannot change the style of the link text.
28511 field will have the default text style of the document while the text of
28516 field will have the style
28517 \begin_inset Quotes eld
28525 \begin_inset Quotes erd
28531 \begin_layout Standard
28532 When you use the LaTeX-package
28537 \begin_inset LatexCommand index
28538 name "LaTeX-packages ! hyperref"
28542 to link cross-references in the output, URLs will automatically become
28543 clickable hyperlinks in DVI and PDF-output.
28546 \begin_layout Standard
28547 \begin_inset Note Greyedout
28550 \begin_layout Standard
28555 When you use the following characters: "%", "#", "^", you have to write
28556 them with a preceding backslash, e.\InsetSpace \thinspace{}
28559 \begin_inset Quotes eld
28565 \begin_inset Quotes erd
28569 URLs must not end with a backslash.
28577 \begin_layout Standard
28578 \begin_inset VSpace bigskip
28581 To create real hyperlinks without the force to write the link location to
28582 the text, you can use the command
28585 \begin_layout Standard
28590 href{link location}{link text}
28593 \begin_layout Standard
28595 To get for example a link to LyX's web page, write the command
28598 \begin_layout Standard
28603 href{http://www.lyx.org}{
28606 \begin_layout Standard
28608 Insert after the command the link text
28609 \begin_inset Quotes eld
28613 \begin_inset Quotes erd
28616 as normal text followed by a closing brace
28617 \begin_inset Quotes eld
28625 \begin_inset Quotes erd
28629 This is the result:
28633 \begin_layout Standard
28637 href{http://www.lyx.org}{
28646 \begin_layout Standard
28656 \begin_layout Standard
28657 To link to email addresses, add the prefix
28658 \begin_inset Quotes eld
28666 \begin_inset Quotes erd
28669 to the link location:
28675 \begin_layout Standard
28679 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
28684 lyx-docs mailing list
28688 \begin_layout Standard
28698 \begin_layout Standard
28705 instead of LyX's URL box has the advantage that you can specify the text
28706 style of the link text like for all other text parts.
28707 You can then set hyphenation points and forced linebreaks to have long
28708 link text broken at the page margin.
28709 You are furthermore able to change the text style for all URLs in your
28710 document with an option in
28714 's load command and the restrictions mentioned above doesn't apply for
28723 \begin_layout Chapter
28725 \begin_inset LatexCommand index
28726 name "External Stuff"
28733 \begin_layout Standard
28736 Insert\SpecialChar \menuseparator
28739 you can insert external material to your document.
28743 \begin_layout Description
28745 Document Another LyX document; its content is directly inserted to your
28749 \begin_layout Description
28751 Text A text document; every of its text lines is inserted to your document
28755 \begin_layout Description
28759 Lines A text document; its text lines are inserted as they
28761 Empty text lines creates a new paragraph in your document.
28764 \begin_layout Description
28765 External\InsetSpace ~
28766 Material Files in various formats.
28769 \begin_layout Description
28771 Document LyX or LaTeX-documents.
28774 \begin_layout Section
28776 \begin_inset LatexCommand index
28777 name "External Stuff ! External Material"
28784 \begin_layout Standard
28785 The external material feature allows you to insert files to your document
28786 without converting them previously to a format that can be read by the
28787 document output format because LyX takes care of needed conversions.
28788 This is similar to images that can be inserted in various image formats
28792 \begin_layout Standard
28793 External material can be inserted via the
28797 dialog that is accessible with the menu
28799 Insert\SpecialChar \menuseparator
28800 File\SpecialChar \menuseparator
28801 External\InsetSpace ~
28805 Currently the following file types (
28812 \begin_layout Description
28813 ChessDiagram This template supports chess position diagrams made with the
28818 \begin_layout Standard
28822 href{http://en.wikipedia.org/wiki/XBoard}{
28835 \begin_layout Standard
28845 \begin_layout Description
28846 Date This inserts the date in the form
28851 This is a date inserted as external material:
28852 \begin_inset External
28860 The date is not shown within LyX, only in the output.
28861 There are two other methods of inserting a date: Via menu
28863 Insert\SpecialChar \menuseparator
28866 and with the LaTeX command
28873 The different methods are compared in Table\InsetSpace ~
28875 \begin_inset LatexCommand ref
28876 reference "tab:Comparison-of-the"
28883 \begin_layout Description
28884 LilyPond This template is used for music notation typeset with the program
28888 \begin_layout Standard
28901 \begin_layout Standard
28905 href{http://en.wikipedia.org/wiki/LilyPond}{
28918 \begin_layout Standard
28926 \begin_inset Note Note
28929 \begin_layout Standard
28936 breaks the line while the remaining text in the line is stretched to the
28945 \begin_layout Description
28946 RasterImage This can be used for bitmap images.
28947 Nearly all popular image formats are supported.
28948 The image can be treated in the
28952 dialog like the images that are usually included via the
28956 dialog as described in section\InsetSpace ~
28958 \begin_inset LatexCommand ref
28959 reference "sec:Graphics-Dialog"
28964 The difference is that only raster images are allowed, that means that
28965 PDF and EPS-images are not supported.
28968 \begin_layout Description
28969 XFig This template supports images created with the program
28973 \begin_layout Standard
28977 href{http://en.wikipedia.org/wiki/Xfig}{
28990 \begin_layout Standard
29000 \begin_layout Standard
29001 \begin_inset Float table
29007 \begin_layout Standard
29008 \begin_inset Caption
29010 \begin_layout Standard
29011 \begin_inset LatexCommand label
29012 name "tab:Comparison-of-the"
29016 Comparison of the date input methods.
29024 \begin_layout Standard
29026 \begin_inset Tabular
29027 <lyxtabular version="3" rows="4" columns="4">
29029 <column alignment="center" valignment="top" leftline="true" width="0">
29030 <column alignment="center" valignment="top" leftline="true" width="0">
29031 <column alignment="center" valignment="top" leftline="true" width="0">
29032 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
29033 <row topline="true">
29034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29037 \begin_layout Standard
29043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29046 \begin_layout Standard
29049 External Material\SpecialChar \menuseparator
29055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29058 \begin_layout Standard
29061 Insert\SpecialChar \menuseparator
29067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29070 \begin_layout Standard
29081 <row topline="true">
29082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29085 \begin_layout Standard
29091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29094 \begin_layout Standard
29100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29103 \begin_layout Standard
29109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29112 \begin_layout Standard
29113 as TeX-Code inset box
29119 <row topline="true">
29120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29123 \begin_layout Standard
29129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29132 \begin_layout Standard
29138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29141 \begin_layout Standard
29147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29150 \begin_layout Standard
29157 <row topline="true" bottomline="true">
29158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29161 \begin_layout Standard
29167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29170 \begin_layout Standard
29176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29179 \begin_layout Standard
29185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29188 \begin_layout Standard
29207 \begin_layout Standard
29208 When you use the option
29220 dialog, only the path to the inserted file is shown in the output.
29223 material is displayed in LyX either as box like this:
29224 \begin_inset Graphics
29225 filename clipart/ExternalMaterialQt4.png
29227 scaleBeforeRotation
29231 or as image, depending on the setting in the
29243 \begin_layout Standard
29250 manual explains how you can define your own templates.
29253 \begin_layout Section
29255 \begin_inset LatexCommand label
29256 name "sec:Child-Documents"
29261 \begin_inset LatexCommand index
29262 name "External Stuff ! Child Documents"
29267 \begin_inset LatexCommand index
29268 name "Files ! Include"
29275 \begin_layout Standard
29276 Child documents are used when you have a long document consisting of several
29277 larger parts or sections.
29278 For maintenance it is often useful and sometimes even required to split
29279 the document in several files that can be revised separately.
29280 The different documents are then the so called child documents and a master
29281 document connects them to print the full document or parts of it.
29284 \begin_layout Standard
29285 Included documents are displayed in LyX as a box like this:
29286 \begin_inset Graphics
29287 filename clipart/ChildDocumentQt4.png
29289 scaleBeforeRotation
29293 To include child documents to a master document use the menu
29295 Insert\SpecialChar \menuseparator
29296 File\SpecialChar \menuseparator
29301 A dialog pops up where you can choose between four include methods:
29304 \begin_layout Description
29305 Include You can include LyX and LaTeX-documents.
29314 dialog, the included documents will be opened in LyX in a new file tab
29315 so that you can modify it.
29320 \begin_layout Standard
29321 Here is a child document inserted using
29326 \begin_inset Include \include{DummyDocument1.lyx}
29334 \begin_layout Standard
29335 The section numbering includes the sections of the included files in the
29336 order they are inserted in the master document.
29337 The included example document has for example a subsection that is numbered
29338 as subsection of this section.
29339 Labels of included documents can be referenced: Subsection\InsetSpace ~
29341 \begin_inset LatexCommand ref
29342 reference "sub:External-Subsection-1"
29349 \begin_layout Standard
29350 The preamble of the child document is ignored, only the preamble of the
29351 master document is used.
29352 Included documents are inserted starting on a new page and end with a pagebreak.
29355 \begin_layout Standard
29356 With the LaTeX-command
29362 you can specify which included child documents are processed when the output
29364 This is useful when you are perhaps only working on a certain chapter of
29365 your large document as this saves compiling time.
29372 is inserted to the master document preamble.
29373 It takes a comma-separated list of the filenames as argument, e.g.
29376 \begin_layout Standard
29381 includeonly{chapter1,chapter5}
29384 \begin_layout Standard
29385 will only process the included files named
29386 \begin_inset Quotes eld
29390 \begin_inset Quotes erd
29394 \begin_inset Quotes eld
29398 \begin_inset Quotes erd
29402 \begin_inset Quotes eld
29406 \begin_inset Quotes erd
29412 \begin_layout Standard
29413 \begin_inset Note Greyedout
29416 \begin_layout Standard
29421 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
29422 w the document in case that the child document uses another document class
29423 than the master document as this will lead to unexpected outputs.
29431 \begin_layout Description
29432 Input This method is very similar to the Include method.
29433 The differences are:
29437 \begin_layout Itemize
29438 Input files don't start with a new page and don't end with a pagebreak.
29441 \begin_layout Itemize
29442 Input files can be previewed in LyX when
29444 Instant\InsetSpace ~
29447 is enabled in LyX's preferences under
29451 feel\SpecialChar \menuseparator
29457 \begin_layout Itemize
29468 \begin_layout Standard
29469 Here is a child document inserted using
29474 \begin_inset Include \input{DummyDocument2.lyx}
29482 \begin_layout Description
29483 Verbatim With this method every text file can be included.
29484 The file is shown in the output with its source code, no command used in
29485 the text is invoked.
29486 You can use the option
29488 Mark spaces in output
29490 that displays the character
29491 \begin_inset Quotes eld
29498 \begin_layout Standard
29508 \begin_inset Quotes erd
29511 for every space character in the source code.
29512 The difference to the method via the menu
29514 Insert\SpecialChar \menuseparator
29515 File\SpecialChar \menuseparator
29519 is that the document content is not shown in LyX.
29522 \begin_layout Standard
29523 Here is a child document inserted as Verbatim:
29524 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
29530 \begin_inset VSpace bigskip
29533 Here is a child document inserted as Verbatim using the
29535 Mark spaces in output
29538 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
29546 \begin_layout Standard
29547 \begin_inset VSpace bigskip
29553 \begin_layout Standard
29554 \begin_inset Note Greyedout
29557 \begin_layout Standard
29562 As you can see in the examples above, the text of the documents included
29567 is not broken at the end of the document lines.
29575 \begin_layout Description
29576 Listings This type is described in chapter\InsetSpace ~
29578 \begin_inset LatexCommand ref
29579 reference "cha:Program-Code-Listings"
29586 \begin_layout Standard
29587 \begin_inset Note Greyedout
29590 \begin_layout Standard
29595 Including the same document twice in a document using different methods
29596 could cause LaTeX-problems.
29604 \begin_layout Chapter
29605 Program Code Listings
29606 \begin_inset LatexCommand label
29607 name "cha:Program-Code-Listings"
29612 \begin_inset LatexCommand index
29618 \begin_inset LatexCommand index
29619 name "Program Code"
29624 \begin_inset LatexCommand index
29625 name "Floats ! Listings"
29632 \begin_layout Standard
29633 To include and typeset program code you can use the
29637 inset that can be inserted via the menu
29639 Insert\SpecialChar \menuseparator
29648 \begin_inset LatexCommand index
29649 name "LaTeX-packages ! listings"
29653 provides a powerful and flexible way to insert program source code to your
29657 \begin_layout Standard
29658 When right-clicking on a listings inset a dialog pops up where you can set
29659 the listings format.
29662 \begin_layout Standard
29663 By default, a listing starts a new paragraph in the output.
29664 The placement option
29666 Inline\InsetSpace ~
29669 prints the listing inline like this:
29670 \begin_inset listings
29671 lstparams "language={C++}"
29675 \begin_layout Standard
29688 creates a listings float where you can specify the placement options
29689 \begin_inset Quotes eld
29697 \begin_inset Quotes erd
29701 \begin_inset Quotes eld
29709 \begin_inset Quotes erd
29713 \begin_inset Quotes eld
29721 \begin_inset Quotes erd
29725 \begin_inset Quotes eld
29733 \begin_inset Quotes erd
29736 corresponding to the float placement options described in section\InsetSpace ~
29738 \begin_inset LatexCommand ref
29739 reference "sec:Float-Placement"
29744 The placement options can be mixed and are inserted without any separation,
29745 e.\InsetSpace \thinspace{}
29748 \begin_inset Quotes eld
29756 \begin_inset Quotes erd
29761 \begin_inset Quotes eld
29765 \begin_inset Quotes erd
29768 has sometimes no effect, but you don't need to use the
29772 option in this case as also non-float listings can have captions and be
29776 \begin_layout Standard
29777 You can add captions to listings with the menu
29779 Insert\SpecialChar \menuseparator
29783 Listings can be referenced like floats: Listing\InsetSpace ~
29785 \begin_inset LatexCommand ref
29786 reference "lst:Example-Listing"
29793 \begin_layout Standard
29794 \begin_inset listings
29795 lstparams "language=Python"
29799 \begin_layout Standard
29801 \begin_inset Caption
29803 \begin_layout Standard
29804 \begin_inset LatexCommand label
29805 name "lst:Example-Listing"
29809 Example Listing float
29814 # Example listing float
29817 \begin_layout Standard
29822 \begin_layout Standard
29824 'this is a python function'
29827 \begin_layout Standard
29837 \begin_layout Standard
29838 When you have set a programming language in the listings dialog, the keywords
29839 of this language will be recognized and specially typeset in the output.
29840 In the example listings the Python keyword
29841 \begin_inset Quotes eld
29845 \begin_inset Quotes erd
29848 is recognized and printed bold in the output.
29851 \begin_layout Standard
29852 \begin_inset Note Greyedout
29855 \begin_layout Standard
29860 If you don't get bold keywords when using typewriter fonts, your typewriter
29861 font probably doesn't provide a bold shape.
29862 In this case select a different one in the menu
29864 Document\SpecialChar \menuseparator
29865 Settings\SpecialChar \menuseparator
29877 provide bold shapes.)
29885 \begin_layout Standard
29891 of the listings dialog you can specify the line numbering style.
29892 You can insert a number to specify which lines are numbered to the field
29898 When you insert e.g.
29900 \begin_inset Quotes eld
29904 \begin_inset Quotes erd
29907 , only every 3rd line will be numbered.
29910 \begin_layout Standard
29911 You can furthermore specify a range of lines, only these will then appear
29915 Extended\InsetSpace ~
29918 should be used when you use national characters like the German umlauts
29921 Here is an example listing with left line numbering, step
29923 \begin_inset Quotes eld
29927 \begin_inset Quotes erd
29931 \begin_inset Quotes eld
29935 \begin_inset Quotes erd
29939 \begin_inset Quotes eld
29942 Extended\InsetSpace ~
29944 \begin_inset Quotes erd
29948 \begin_inset Quotes eld
29954 \begin_inset Quotes erd
29957 , range lines 3\InsetSpace \thinspace{}
29958 -\InsetSpace \thinspace{}
29962 \begin_layout Standard
29963 \begin_inset listings
29964 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
29968 \begin_layout Standard
29973 \begin_layout Standard
29975 'this is a python function'
29978 \begin_layout Standard
29983 \begin_layout Standard
29988 \begin_layout Standard
29990 'This is a German word: Tschüß'
29993 \begin_layout Standard
29998 \begin_layout Standard
30003 \begin_layout Standard
30005 'this is a python function'
30008 \begin_layout Standard
30018 \begin_layout Standard
30019 \begin_inset Note Greyedout
30022 \begin_layout Standard
30027 Due to a bug in the
30031 package the line numbering is shifted by a line by every previous listing.
30032 That's the reason why the lines 2 and 5 are numbered in the above listing
30033 and not the lines 3 and 6.
30041 \begin_layout Standard
30042 \begin_inset VSpace bigskip
30048 \begin_layout Standard
30049 It is also possible to print lines from a file as listing.
30050 To do this, use the menu
30052 Insert\SpecialChar \menuseparator
30053 File\SpecialChar \menuseparator
30056 and choose the type
30064 \begin_layout Standard
30065 The other child document types are described in section\InsetSpace ~
30067 \begin_inset LatexCommand ref
30068 reference "sec:Child-Documents"
30077 In the child document dialog you can specify the listing parameters in
30079 To show a list of all available parameters, type in a question mark
30080 \begin_inset Quotes eld
30084 \begin_inset Quotes erd
30090 \begin_layout Standard
30091 To reference child document listings, write a label text into the corresponding
30092 field of the child document dialog.
30093 The label can then be referenced using the menu
30095 Insert\SpecialChar \menuseparator
30101 \begin_layout Standard
30102 Listing\InsetSpace ~
30104 \begin_inset LatexCommand ref
30105 reference "lst:file-listing"
30109 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
30110 -\InsetSpace \thinspace{}
30115 \begin_layout Standard
30116 \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]
30124 \begin_layout Standard
30125 \begin_inset VSpace bigskip
30131 \begin_layout Standard
30132 Global listings settings can be set in the
30134 Document\SpecialChar \menuseparator
30135 Settings\SpecialChar \menuseparator
30139 To get there a list of available options, type in a question mark
30140 \begin_inset Quotes eld
30144 \begin_inset Quotes erd
30149 Listings\InsetSpace ~
30155 \begin_layout Standard
30156 For more information about the
30160 package, we refer to its documentation
30161 \begin_inset LatexCommand cite
30169 \begin_layout Standard
30175 \begin_layout Chapter
30177 Units available in LyX
30178 \begin_inset LatexCommand index
30184 \begin_inset LatexCommand label
30185 name "cha:Units-available-in"
30192 \begin_layout Standard
30193 To understand the units described in this documentation, Table\InsetSpace ~
30195 \begin_inset LatexCommand ref
30196 reference "tab:Units"
30200 explains all units available in LyX.
30203 \begin_layout Standard
30204 \begin_inset Float table
30210 \begin_layout Standard
30211 \begin_inset Caption
30213 \begin_layout Standard
30214 \begin_inset LatexCommand label
30227 \begin_layout Standard
30228 \begin_inset VSpace medskip
30234 \begin_layout Standard
30236 \begin_inset Tabular
30237 <lyxtabular version="3" rows="20" columns="2">
30239 <column alignment="center" valignment="top" leftline="true" width="0">
30240 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
30241 <row topline="true" bottomline="true">
30242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30245 \begin_layout Standard
30251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30254 \begin_layout Standard
30261 <row topline="true">
30262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30265 \begin_layout Standard
30271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30274 \begin_layout Standard
30281 <row topline="true">
30282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30285 \begin_layout Standard
30291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30294 \begin_layout Standard
30301 <row topline="true">
30302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30305 \begin_layout Standard
30311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30314 \begin_layout Standard
30321 <row topline="true">
30322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30325 \begin_layout Standard
30331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30334 \begin_layout Standard
30335 point (72.27\InsetSpace \thinspace{}
30336 pt = 1\InsetSpace \thinspace{}
30343 <row topline="true">
30344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30347 \begin_layout Standard
30353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30356 \begin_layout Standard
30357 pica (1\InsetSpace \thinspace{}
30358 pc = 12\InsetSpace \thinspace{}
30365 <row topline="true">
30366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30369 \begin_layout Standard
30375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30378 \begin_layout Standard
30379 scaled point (65536\InsetSpace \thinspace{}
30380 sp = 1\InsetSpace \thinspace{}
30387 <row topline="true">
30388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30391 \begin_layout Standard
30397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30400 \begin_layout Standard
30401 big point (72\InsetSpace \thinspace{}
30402 bp = 1\InsetSpace \thinspace{}
30409 <row topline="true">
30410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30413 \begin_layout Standard
30419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30422 \begin_layout Standard
30423 didot (1\InsetSpace \thinspace{}
30425 \begin_inset Formula $\approx$
30428 0.376\InsetSpace \thinspace{}
30435 <row topline="true">
30436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30439 \begin_layout Standard
30445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30448 \begin_layout Standard
30449 cicero (1\InsetSpace \thinspace{}
30450 cc = 12\InsetSpace \thinspace{}
30457 <row topline="true">
30458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30461 \begin_layout Standard
30467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30470 \begin_layout Standard
30471 % of original image width
30477 <row topline="true">
30478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30481 \begin_layout Standard
30487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30490 \begin_layout Standard
30497 <row topline="true">
30498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30501 \begin_layout Standard
30507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30510 \begin_layout Standard
30517 <row topline="true">
30518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30521 \begin_layout Standard
30527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30530 \begin_layout Standard
30537 <row topline="true">
30538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30541 \begin_layout Standard
30547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30550 \begin_layout Standard
30557 <row topline="true">
30558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30561 \begin_layout Standard
30567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30570 \begin_layout Standard
30577 <row topline="true">
30578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30581 \begin_layout Standard
30587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30590 \begin_layout Standard
30597 <row topline="true">
30598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30601 \begin_layout Standard
30607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30610 \begin_layout Standard
30621 <row topline="true">
30622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30625 \begin_layout Standard
30631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30634 \begin_layout Standard
30645 <row topline="true" bottomline="true">
30646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30649 \begin_layout Standard
30655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30658 \begin_layout Standard
30659 math unit (1\InsetSpace \thinspace{}
30660 mu = 1/18\InsetSpace \thinspace{}
30679 \begin_layout Chapter
30680 Output File Formats with Graphics
30681 \begin_inset LatexCommand label
30682 name "cha:Output-File-Formats"
30689 \begin_layout Section
30691 \begin_inset LatexCommand index
30692 name "File Formats ! DVI"
30697 \begin_inset LatexCommand index
30698 name "DVI|see{File Formats}"
30705 \begin_layout Standard
30706 This file type has the extension
30707 \begin_inset Quotes eld
30715 \begin_inset Quotes erd
30720 \begin_inset Quotes eld
30724 \begin_inset Quotes erd
30727 (DVI), because it is completely portable; you can move them from one machine
30728 to another without needing to do any sort of conversion.
30729 At the time when this file-format was developed, this was no matter of
30731 DVIs are used for quick previews and as pre-stage for other output formats,
30735 \begin_layout Standard
30736 \begin_inset Note Greyedout
30739 \begin_layout Standard
30744 DVI-files doesn't contain images, they will only be a linked.
30749 So don't forget this, if you move your
30753 file to another computer.
30754 This property can also slow down your computer when you view the DVI.
30755 Because the DVI-viewer has to convert the image in the background to make
30756 it visible when you scroll in the DVI.
30757 So we recommend to use PDF for files with many images.
30760 \begin_layout Standard
30761 You can export your document to DVI by using the menu
30763 File\SpecialChar \menuseparator
30764 Export\SpecialChar \menuseparator
30768 You can view your document as DVI via the
30772 menu or by using the toolbar button
30773 \begin_inset Graphics
30774 filename ../images/buffer-view_dvi.png
30776 scaleBeforeRotation
30783 \begin_layout Section
30785 \begin_inset LatexCommand label
30786 name "sec:PostScript"
30791 \begin_inset LatexCommand index
30792 name "File Formats ! PostScript"
30797 \begin_inset LatexCommand index
30798 name "PostScript|see{File Formats}"
30805 \begin_layout Standard
30806 This file type has the extension
30807 \begin_inset Quotes eld
30815 \begin_inset Quotes erd
30819 PostScript was developed by the company
30823 as printer language.
30824 The file contains therefore commands that the printer uses to print the
30826 PostScript can be seen as
30827 \begin_inset Quotes eld
30830 programming language
30831 \begin_inset Quotes erd
30834 ; you can calculate with it and draw diagrams and images
30838 \begin_layout Standard
30839 If you are interested to learn more about this, have a look at the LaTeX-package
30845 \begin_inset LatexCommand cite
30856 Due to this ability, the files are often bigger than PDFs.
30859 \begin_layout Standard
30860 PostScript can only contain images in the format
30861 \begin_inset Quotes eld
30864 Encapsulated PostScript
30865 \begin_inset Quotes erd
30868 (EPS, file extension
30869 \begin_inset Quotes eld
30877 \begin_inset Quotes erd
30881 As LyX allows you to use any known image format in your document, it has
30882 to convert images in the background to EPS.
30883 If you have e.g 50 images in your document, LyX has to do 50 conversions
30884 whenever you view or export your document.
30885 This will slow down your work flow with LyX drastically.
30886 So if you plan to use PostScript, you can insert your images directly as
30887 EPS to avoid this problem.
30890 \begin_layout Standard
30891 You can export your document to PostScript using the menu
30893 File\SpecialChar \menuseparator
30894 Export\SpecialChar \menuseparator
30898 You can view your document as PostScript via the
30902 menu or by using the toolbar button
30903 \begin_inset Graphics
30904 filename ../images/buffer-view_ps.png
30906 scaleBeforeRotation
30913 \begin_layout Section
30915 \begin_inset LatexCommand label
30921 \begin_inset LatexCommand index
30922 name "File Formats ! PDF"
30927 \begin_inset LatexCommand index
30935 \begin_layout Standard
30936 This file type has the extension
30937 \begin_inset Quotes eld
30945 \begin_inset Quotes erd
30950 \begin_inset Quotes eld
30953 Portable Document Format
30954 \begin_inset Quotes erd
30957 (PDF) is developed by
30961 as derivative from PostScript.
30962 It is more compressed and it uses much less commands than PostScript.
30964 \begin_inset Quotes eld
30968 \begin_inset Quotes erd
30971 implies, it can be processed at any computer system and the printed output
30972 looks exactly the same.
30975 \begin_layout Standard
30976 PDF can contain images in its own PDF format, in the format
30977 \begin_inset Quotes eld
30980 Joint Photographic Experts Group
30981 \begin_inset Quotes erd
30984 (JPG, file extension
30985 \begin_inset Quotes eld
30993 \begin_inset Quotes erd
30997 \begin_inset Quotes eld
31005 \begin_inset Quotes erd
31008 ), and in the format
31009 \begin_inset Quotes eld
31012 Portable Network Graphics
31013 \begin_inset Quotes erd
31016 (PNG, file extension
31017 \begin_inset Quotes eld
31025 \begin_inset Quotes erd
31029 Nevertheless you can use any other image format, because LyX converts them
31030 in the background to one of these formats.
31031 But as described in the section about PostScript, the image conversion
31032 will slow down your work flow.
31033 So it is recommended to use images in one of the three mentioned formats.
31036 \begin_layout Standard
31037 You can export your document to PDF via the menu
31039 File\SpecialChar \menuseparator
31042 in three different ways:
31045 \begin_layout Description
31047 (ps2pdf) This uses the program
31051 that creates a PDF from a PostScript-version of your file.
31052 The PostScript-version is produced by the program
31056 which uses a DVI-version as intermediate step.
31057 So this export variant consist of three conversions.
31060 \begin_layout Description
31062 (dvipdfm) This uses the program
31066 that converts your file in the background to DVI and in a second step to
31070 \begin_layout Description
31072 (pdflatex) This uses the program
31076 that converts your file directly to PDF.
31079 \begin_layout Standard
31080 It is recommended to use
31089 supports all features of actual PDF-versions, is quick and works stable
31095 is not under development and therefore a bit outdated.
31098 \begin_layout Standard
31099 You can view your document as PDF via the
31103 menu or by using the toolbar button
31104 \begin_inset Graphics
31105 filename ../images/buffer-view_pdf2.png
31107 scaleBeforeRotation
31123 \begin_layout Chapter
31124 Explanation of Equation\InsetSpace ~
31126 \begin_inset LatexCommand eqref
31132 \begin_inset LatexCommand label
31133 name "cha:Explanation-of-Equation"
31140 \begin_layout Standard
31146 \begin_inset Formula $W_{\mathrm{tot\, n}}$
31149 can be calculated to
31152 \begin_layout Standard
31153 \begin_inset Formula \begin{equation}
31154 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}
31161 \begin_layout Standard
31163 \begin_inset Formula $W_{g\, n}$
31166 is the given width of all cells.
31173 is the LaTeX-length between the cell text and the cell border, its default
31174 value is 6\InsetSpace \thinspace{}
31182 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
31186 \begin_layout Standard
31187 Following equation\InsetSpace ~
31189 \begin_inset LatexCommand eqref
31190 reference "eq:Wtot_n"
31194 , the total width of a multicolumn
31195 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
31201 \begin_layout Standard
31202 \begin_inset Formula \begin{equation}
31203 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
31210 \begin_layout Standard
31211 By setting equation\InsetSpace ~
31213 \begin_inset LatexCommand eqref
31214 reference "eq:Wtot_n"
31219 \begin_inset LatexCommand eqref
31220 reference "eq:Wtot_mult"
31224 equal we can calculate the needed given width
31225 \begin_inset Formula $W_{g\, n}$
31232 columns are spanned, so that each column has a total width of
31233 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
31239 \begin_layout Standard
31240 \begin_inset Formula \begin{equation}
31241 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
31248 \begin_layout Bibliography
31249 \begin_inset LatexCommand bibitem
31250 key "latexcompanion"
31254 Frank Mittelbach and Michel Goossens:
31256 The LaTeX Companion Second Edition.
31259 Addison-Wesley, 2004
31262 \begin_layout Bibliography
31263 \begin_inset LatexCommand bibitem
31268 Helmut Kopka and Patrick W.
31271 A Guide to LaTeX Fourth Edition.
31274 Addison-Wesley, 2003
31277 \begin_layout Bibliography
31278 \begin_inset LatexCommand bibitem
31285 LaTeX: A Document Preparation System.
31288 Addison-Wesley, second edition, 1994
31291 \begin_layout Bibliography
31292 \begin_inset LatexCommand bibitem
31301 \begin_layout Standard
31305 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
31315 \begin_layout Standard
31322 of the LaTeX-package
31327 \begin_inset LatexCommand index
31328 name "LaTeX-packages ! booktabs"
31335 \begin_layout Bibliography
31336 \begin_inset LatexCommand bibitem
31345 \begin_layout Standard
31349 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
31358 \begin_layout Standard
31365 of the LaTeX-package
31370 \begin_inset LatexCommand index
31371 name "LaTeX-packages ! caption"
31378 \begin_layout Bibliography
31379 \begin_inset LatexCommand bibitem
31388 \begin_layout Standard
31392 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
31402 \begin_layout Standard
31409 of the LaTeX-package
31414 \begin_layout Bibliography
31415 \begin_inset LatexCommand bibitem
31424 \begin_layout Standard
31428 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
31438 \begin_layout Standard
31445 of the LaTeX-package
31450 \begin_inset LatexCommand index
31451 name "LaTeX-packages ! endfloat"
31458 \begin_layout Bibliography
31459 \begin_inset LatexCommand bibitem
31468 \begin_layout Standard
31472 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty}{
31481 \begin_layout Standard
31488 of the LaTeX-package
31493 \begin_inset LatexCommand index
31494 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
31501 \begin_layout Bibliography
31502 \begin_inset LatexCommand bibitem
31511 \begin_layout Standard
31515 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
31525 \begin_layout Standard
31532 of the LaTeX-package
31537 \begin_inset LatexCommand index
31538 name "LaTeX-packages ! footmisc"
31545 \begin_layout Bibliography
31546 \begin_inset LatexCommand bibitem
31555 \begin_layout Standard
31559 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
31568 \begin_layout Standard
31575 of the LaTeX-package
31580 \begin_inset LatexCommand index
31581 name "LaTeX-packages ! hyperref"
31588 \begin_layout Bibliography
31589 \begin_inset LatexCommand bibitem
31598 \begin_layout Standard
31602 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
31612 \begin_layout Standard
31619 of the LaTeX-package
31624 \begin_inset LatexCommand index
31625 name "LaTeX-packages ! hyperref"
31632 \begin_layout Bibliography
31633 \begin_inset LatexCommand bibitem
31642 \begin_layout Standard
31646 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
31656 \begin_layout Standard
31663 of the LaTeX-package
31668 \begin_inset LatexCommand index
31669 name "LaTeX-packages ! koma-script"
31676 \begin_layout Bibliography
31677 \begin_inset LatexCommand bibitem
31686 \begin_layout Standard
31690 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
31700 \begin_layout Standard
31707 of the LaTeX-package
31712 \begin_inset LatexCommand index
31713 name "LaTeX-packages ! listings"
31720 \begin_layout Bibliography
31721 \begin_inset LatexCommand bibitem
31730 \begin_layout Standard
31734 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
31744 \begin_layout Standard
31751 of the LaTeX-package
31756 \begin_inset LatexCommand index
31757 name "LaTeX-packages ! marginnote"
31764 \begin_layout Bibliography
31765 \begin_inset LatexCommand bibitem
31774 \begin_layout Standard
31778 href{http://tug.org/PSTricks/main.cgi/}{
31787 \begin_layout Standard
31794 of the LaTeX-package
31799 \begin_inset LatexCommand index
31800 name "LaTeX-packages ! PSTricks"
31807 \begin_layout Bibliography
31808 \begin_inset LatexCommand bibitem
31817 \begin_layout Standard
31821 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
31830 \begin_layout Standard
31837 of the LaTeX-package
31842 \begin_inset LatexCommand index
31843 name "LaTeX-packages ! sidecap"
31850 \begin_layout Bibliography
31851 \begin_inset LatexCommand bibitem
31860 \begin_layout Standard
31864 href{http://wiki.lyx.org/LyX/NewInLyX15}{
31873 \begin_layout Standard
31880 about new features in
31887 \begin_layout Standard
31888 \begin_inset LatexCommand printindex
31895 \begin_layout Standard
31896 \begin_inset FloatList figure
31903 \begin_layout Standard
31904 \begin_inset FloatList table
31911 \begin_layout Standard
31915 \begin_layout Standard
31919 listof{Xalgorithm}{List of Algorithms}
31925 \begin_inset Note Note
31928 \begin_layout Standard
31929 see section\InsetSpace ~
31931 \begin_inset LatexCommand ref
31932 reference "sub:Algorithm-Floats"