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 \begin_inset LatexCommand index
23316 To use endnotes instead of footnotes in your document, load the LaTeX-package
23322 \begin_inset LatexCommand index
23323 name "LaTeX-packages ! endnotes"
23327 with the document preamble lines
23330 \begin_layout Standard
23335 usepackage{endnotes}
23346 \begin_layout Standard
23347 To insert the collected footnotes, insert the command
23350 \begin_layout Standard
23358 \begin_layout Standard
23359 in TeX-Code at the the end of a section or chapter.
23362 \begin_layout Standard
23363 \begin_inset Float figure
23368 \begin_layout Standard
23373 \begin_layout Standard
23383 \begin_inset Graphics
23384 filename clipart/endnotes.pdf
23385 scaleBeforeRotation
23393 \begin_layout Standard
23403 \begin_layout Standard
23404 \begin_inset Caption
23406 \begin_layout Standard
23407 \begin_inset LatexCommand label
23408 name "fig:Endnotes----footnotes"
23412 Endnotes -- footnotes are printed in a separate paragraph at the end of
23413 sections or chapters.
23426 \begin_layout Standard
23427 \begin_inset VSpace medskip
23430 The paragraph heading for the endnotes isn't automatically translated into
23431 the document language, this must be done manually.
23432 The following preamble command translate the default English name
23433 \begin_inset Quotes eld
23437 \begin_inset Quotes erd
23440 to the German translation
23441 \begin_inset Quotes eld
23445 \begin_inset Quotes erd
23451 \begin_layout Standard
23458 notesname}{Anmerkungen}
23461 \begin_layout Standard
23462 \begin_inset VSpace medskip
23465 The numbering of endnotes can be changed like the footnote numbering as
23466 described in section\InsetSpace ~
23468 \begin_inset LatexCommand ref
23469 reference "sub:Footnote-Numbering"
23473 ; just replace the command
23486 To reset the endnote number use the command
23492 as described in section\InsetSpace ~
23494 \begin_inset LatexCommand ref
23495 reference "sub:Footnote-Numbering"
23499 and replace the command parameter
23510 \begin_layout Standard
23511 To create only a mark for an endnote, use the command
23515 endnotemark[number]
23517 similar to the command
23523 , described in section\InsetSpace ~
23525 \begin_inset LatexCommand ref
23526 reference "sec:Footnotes"
23533 \begin_layout Standard
23534 \begin_inset VSpace bigskip
23537 Footnotes can also be placed in the page margin and the footnote text alignment
23538 can be changed, see the LaTeX-package
23543 \begin_inset LatexCommand index
23544 name "LaTeX-packages ! footmisc"
23549 \begin_inset LatexCommand cite
23554 for more information about this.
23557 \begin_layout Standard
23558 For various further footnote formatting issues have a look at LaTeX-books,
23560 \begin_inset LatexCommand cite
23561 key "latexcompanion,latexguide,latexbook"
23568 \begin_layout Section
23570 \begin_inset LatexCommand index
23571 name "Notes ! Margin Notes"
23578 \begin_layout Standard
23579 Margin notes look and behave in LyX like footnotes.
23580 They are inserted via the menu
23582 Insert\SpecialChar \menuseparator
23583 Marginal\InsetSpace ~
23586 or the toolbar button
23587 \begin_inset Graphics
23588 filename ../images/marginalnote-insert.png
23590 scaleBeforeRotation
23605 \begin_inset Quotes eld
23609 \begin_inset Quotes erd
23612 appears where you can enter the text of the margin note.
23615 \begin_layout Standard
23616 At the side is an example margin note.
23620 \begin_inset Marginal
23623 \begin_layout Standard
23624 This is a margin note.
23632 \begin_layout Standard
23633 Margin notes appear at the right side in single-sided documents.
23634 In double-sided documents they appear in the outer margin -- left on even
23635 pages, right on odd pages.
23636 The text of margin notes is aligned opposite to the outer margin -- right-align
23637 ed when the note appears in the left margin.
23638 The first line of the margin note is placed at the position of the text
23639 line where it is inserted in the document.
23642 \begin_layout Standard
23643 \begin_inset VSpace bigskip
23646 To place the margin note in the inner margin, add the command
23649 \begin_layout Standard
23657 \begin_layout Standard
23658 in TeX-Code before a margin note.
23659 The new placement is valid for all following margin notes.
23663 \begin_layout Standard
23673 \begin_inset Marginal
23676 \begin_layout Standard
23677 This is a margin note in the inner margin.
23689 \begin_inset Note Greyedout
23692 \begin_layout Standard
23697 There is often not enough space in the inner margin so that the notes are
23698 not correctly displayed in the output.
23706 \begin_layout Standard
23707 To return to the default placement insert the command
23710 \begin_layout Standard
23718 \begin_layout Standard
23723 \begin_layout Standard
23733 \begin_inset Note Greyedout
23736 \begin_layout Standard
23741 The command is ignored when it is within a paragraph where also the command
23756 \begin_layout Standard
23757 \begin_inset VSpace bigskip
23764 \begin_inset Marginal
23767 \begin_layout Standard
23768 AVeryLongMarginParWord that isn't hyphenated.
23776 Similar to the case described in section\InsetSpace ~
23778 \begin_inset LatexCommand ref
23779 reference "sub:Multiple-Lines-in"
23783 , long words cannot be hyphenated when they are the first word in a margin
23785 To avoid this, insert the command
23788 \begin_layout Standard
23796 \begin_layout Standard
23797 in TeX-Code before the word
23801 \begin_inset Marginal
23804 \begin_layout Standard
23808 \begin_layout Standard
23817 AVeryLongMarginParWord that is hyphenated.
23825 \begin_layout Standard
23826 \begin_inset VSpace bigskip
23832 \begin_layout Standard
23833 \begin_inset Note Greyedout
23836 \begin_layout Standard
23841 Margin notes can normally not be used inside tables, floats, and footnotes.
23849 \begin_layout Standard
23850 \begin_inset VSpace bigskip
23856 \begin_layout Standard
23860 \begin_layout Standard
23870 \begin_inset Note Note
23873 \begin_layout Standard
23874 The following section will only be displayed when the LaTeX-package
23886 \begin_layout Standard
23887 This restriction can be evaded by using the LaTeX-package
23892 \begin_inset LatexCommand index
23893 name "LaTeX-packages ! marginnote"
23898 By adding these two lines to your document preamble, the command used by
23899 LyX for margin notes is redefined to use the command provided by the
23906 \begin_layout Standard
23911 usepackage{marginnote}
23922 \begin_layout Standard
23923 This is also used in this document because
23927 has another useful feature: You can set a vertical offset for the note.
23928 This is often needed when too many margin notes are too close together
23929 or for a better page layout.
23930 The offset is set in LyX as TeX-Code directly behind the margin note in
23934 \begin_layout Standard
23940 \begin_layout Standard
23941 where the offset is a length with one of the units listed in Table\InsetSpace ~
23943 \begin_inset LatexCommand ref
23944 reference "tab:Units"
23949 A negative value shifts the note up, a positive value shifts it down.
23953 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23955 the TeX-Code-command
23956 \begin_inset Quotes eld
23966 \begin_inset Quotes erd
23970 \begin_inset Marginal
23973 \begin_layout Standard
23974 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23975 cm from its original position.
23987 \begin_layout Standard
23997 \begin_layout Standard
23998 \begin_inset VSpace medskip
24005 you can also change the alignment of the text in the margin note.
24006 For example the commands
24009 \begin_layout Standard
24016 raggedleftmarginnote}{
24024 raggedrightmarginnote}{
24029 \begin_layout Standard
24030 set the alignment to centered.
24035 raggedleftmarginnote
24037 denotes margin notes that appear at the left side.
24044 \begin_layout Standard
24050 raggedleftmarginnote}{
24055 \begin_layout Standard
24061 raggedrightmarginnote}{
24069 \begin_inset Marginal
24072 \begin_layout Standard
24073 The text of this margin note is centered.
24084 \begin_layout Standard
24091 raggedleftmarginnote}{
24099 raggedrightmarginnote}{
24108 \begin_layout Standard
24114 raggedleftmarginnote}{
24119 \begin_layout Standard
24125 raggedrightmarginnote}{
24135 \begin_layout Standard
24136 \begin_inset VSpace medskip
24139 For the other features of
24143 we refer to its documentation
24144 \begin_inset LatexCommand cite
24152 \begin_layout Standard
24153 \begin_inset VSpace bigskip
24156 You can adjust the layout of margin notes by changing its definition.
24157 To create for example a header for all margin notes with the underlined,
24158 sans-serif, and bold header text
24159 \begin_inset Quotes eld
24171 \begin_inset Quotes erd
24174 , add this to your document preamble:
24177 \begin_layout Standard
24200 \begin_layout Standard
24217 underbar{Attention!}}}%
24223 \begin_layout Standard
24241 \begin_layout Standard
24248 \begin_layout Standard
24259 \begin_layout Standard
24270 \begin_layout Standard
24278 underbar{Attention!}}}%
24281 \begin_layout Standard
24295 \begin_inset Marginal
24298 \begin_layout Standard
24299 This is a margin note with a defined heading.
24311 \begin_layout Standard
24325 \begin_layout Standard
24342 \begin_inset Note Note
24345 \begin_layout Standard
24346 The margin note format is changed only for this example.
24354 \begin_layout Standard
24358 \begin_layout Standard
24368 \begin_inset Note Note
24371 \begin_layout Standard
24372 The following will be displayed when the LaTeX-package
24384 \begin_layout Standard
24385 You need to install the LaTeX-package
24389 to see the following part of this section in the output.
24392 \begin_layout Standard
24396 \begin_layout Standard
24408 \begin_layout Chapter
24412 \begin_layout Section
24414 \begin_inset LatexCommand index
24415 name "Boxes ! Introduction"
24422 \begin_layout Standard
24423 Boxes are used to format a block of text.
24424 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24426 \begin_inset LatexCommand ref
24427 reference "sec:Minipages"
24431 , to frame texts, see section\InsetSpace ~
24433 \begin_inset LatexCommand ref
24434 reference "sec:Framed-Boxes"
24438 , to prevent words to be hyphenated, see section\InsetSpace ~
24440 \begin_inset LatexCommand ref
24441 reference "sec:Prevent-Hyphenation"
24445 , to align text, see section\InsetSpace ~
24447 \begin_inset LatexCommand ref
24448 reference "sub:Vertical-Alignment"
24452 , or to set the background color of texts, see section\InsetSpace ~
24454 \begin_inset LatexCommand ref
24455 reference "sec:Colored-Boxes"
24462 \begin_layout Standard
24463 Boxes can be inserted with the menu
24465 Insert\SpecialChar \menuseparator
24468 or the toolbar button
24469 \begin_inset Graphics
24470 filename ../images/box-insert.png
24472 scaleBeforeRotation
24477 A grey box with the label
24482 \begin_inset Graphics
24483 filename clipart/BoxInsetDefaultQt4.png
24485 scaleBeforeRotation
24489 , will be inserted.
24490 The box type can be specified by right-clicking on the box.
24491 The appearing box dialog offers the
24509 is the default for new boxes and is explained in section\InsetSpace ~
24511 \begin_inset LatexCommand ref
24512 reference "sec:Minipages"
24520 is described in section\InsetSpace ~
24522 \begin_inset LatexCommand ref
24523 reference "sec:Parboxes"
24530 \begin_layout Standard
24531 Boxes aren't numbered and can therefore not be referenced like floats or
24535 \begin_layout Standard
24536 \begin_inset Note Greyedout
24539 \begin_layout Standard
24544 Boxes must not be the item in an
24560 \begin_layout Standard
24561 \begin_inset Note Greyedout
24564 \begin_layout Standard
24569 For an unknown reason you can only set the
24578 when you use a framed box.
24584 type and without frames are explained in section\InsetSpace ~
24586 \begin_inset LatexCommand ref
24587 reference "sec:Prevent-Hyphenation"
24599 \begin_layout Section
24601 \begin_inset LatexCommand label
24602 name "sec:Box-Dialog"
24607 \begin_inset LatexCommand index
24608 name "Boxes ! Box Dialog"
24613 \begin_inset LatexCommand index
24614 name "Boxes ! Alignment"
24621 \begin_layout Standard
24622 In the box dialog you can adjust the box geometry in the fields
24631 The available units for the geometry are explained in Table\InsetSpace ~
24633 \begin_inset LatexCommand ref
24634 reference "tab:Units"
24643 offers the following additional sizes:
24646 \begin_layout Description
24647 Depth This is the plain text
24648 \begin_inset Quotes eld
24652 \begin_inset Quotes erd
24656 It ignores the total depth when there are multiple text lines in the box:
24663 \begin_inset Box Boxed
24672 height_special "depth"
24675 \begin_layout Standard
24677 Box height set to 1\InsetSpace \thinspace{}
24690 \begin_layout Description
24691 Height This is the heigth of the text that is inside the box.
24692 A value of e.\InsetSpace \thinspace{}
24694 2 for this size will set the box heigth to 2 times the text
24696 \begin_inset Box Boxed
24705 height_special "height"
24708 \begin_layout Standard
24710 Box height set to 2\InsetSpace \thinspace{}
24719 \begin_layout Description
24721 Height This is the Height\InsetSpace \thinspace{}
24722 +\InsetSpace \thinspace{}
24724 \begin_inset Box Boxed
24733 height_special "totalheight"
24736 \begin_layout Standard
24738 Box height set to 1\InsetSpace \thinspace{}
24748 \begin_layout Description
24749 Width This sets the width of the box as heigth:
24750 \begin_inset Box Boxed
24759 height_special "width"
24762 \begin_layout Standard
24764 Box height set to 1\InsetSpace \thinspace{}
24773 \begin_layout Standard
24774 \begin_inset VSpace bigskip
24777 When you have chosen an
24782 , the vertical box alignment can be:
24785 \begin_layout Description
24786 Top This is an example text line.
24788 \begin_inset Box Boxed
24797 height_special "totalheight"
24800 \begin_layout Standard
24802 This box is top-aligned.
24807 This is an example text line.
24810 \begin_layout Description
24811 Middle This is an example text line.
24813 \begin_inset Box Boxed
24822 height_special "totalheight"
24825 \begin_layout Standard
24827 This box is middle-aligned.
24832 This is an example text line.
24835 \begin_layout Description
24836 Bottom This is an example text line.
24838 \begin_inset Box Boxed
24847 height_special "totalheight"
24850 \begin_layout Standard
24852 This box is bottom-aligned.
24857 This is an example text line.
24860 \begin_layout Standard
24861 The horizontal box alignment can be set via LyX's paragraph dialog when
24862 you set the box into its own paragraph.
24865 \begin_layout Standard
24866 \begin_inset VSpace bigskip
24869 When you have chosen an
24874 , the box content can be vertical aligned to:
24877 \begin_layout Description
24878 top This is an example text line.
24880 \begin_inset Box Boxed
24889 height_special "totalheight"
24892 \begin_layout Standard
24894 This box text is top-aligned.
24899 This is an example text line.
24902 \begin_layout Description
24903 middle This is an example text line.
24905 \begin_inset Box Boxed
24914 height_special "totalheight"
24917 \begin_layout Standard
24919 This box text is middle-aligned.
24924 This is an example text line.
24927 \begin_layout Description
24928 bottom This is an example text line.
24930 \begin_inset Box Boxed
24939 height_special "totalheight"
24942 \begin_layout Standard
24944 This box text is bottom-aligned.
24949 This is an example text line.
24952 \begin_layout Description
24953 stretch This is an example text line.
24955 \begin_inset Box Boxed
24964 height_special "totalheight"
24967 \begin_layout Standard
24972 \begin_layout Standard
24977 \begin_layout Standard
24984 This is an example text line.
24987 \begin_layout Standard
24988 To stretch the box content, it must consist of more than one paragraph.
24989 In the example above every text line is in an own paragraph.
24992 \begin_layout Standard
24993 \begin_inset VSpace bigskip
24996 To align the box content horizontally you can use LyX's paragraph dialog
24997 when you have chosen an
25005 \begin_layout Standard
25007 \begin_inset Box Boxed
25016 height_special "totalheight"
25019 \begin_layout Standard
25024 \begin_layout Standard
25029 \begin_layout Standard
25039 \begin_layout Standard
25040 If you haven't set an
25045 , you can align the box content horizontally in the box dialog.
25048 \begin_layout Standard
25050 \begin_inset Box Boxed
25059 height_special "totalheight"
25062 \begin_layout Standard
25064 This box text is horizontally stretched.
25072 \begin_layout Section
25074 \begin_inset LatexCommand label
25075 name "sec:Framed-Boxes"
25080 \begin_inset LatexCommand index
25081 name "Boxes ! Frames"
25088 \begin_layout Standard
25089 The frame style of the box can be specified in the box-dialog in the drop-down
25095 The following frame types are possible:
25098 \begin_layout Description
25099 Rectangular\InsetSpace ~
25100 box This draws a rectangle frame around the box.
25101 The frame line thickness has the size of
25109 \begin_inset Box Boxed
25118 height_special "totalheight"
25121 \begin_layout Standard
25131 \begin_layout Description
25134 thin This draws an oval frame around the box.
25135 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
25138 \begin_inset Box ovalbox
25147 height_special "totalheight"
25150 \begin_layout Standard
25160 \begin_layout Description
25163 thick This draws an oval frame around the box.
25164 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
25167 \begin_inset Box Ovalbox
25176 height_special "totalheight"
25179 \begin_layout Standard
25189 \begin_layout Description
25190 Shadow\InsetSpace ~
25191 box This draws a rectangle frame with a shadow around the box.
25192 The frame line thickness has the size of
25198 , the shadow has a width of 4\InsetSpace \thinspace{}
25201 \begin_inset Box Shadowbox
25210 height_special "totalheight"
25213 \begin_layout Standard
25223 \begin_layout Description
25224 Double\InsetSpace ~
25225 box This draws a double-line rectangle frame around the box.
25226 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
25233 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
25241 The distance between the lines is 1.5\InsetSpace \thinspace{}
25248 \InsetSpace \thinspace{}
25249 +\InsetSpace \thinspace{}
25250 0.5\InsetSpace \thinspace{}
25253 \begin_inset Box Doublebox
25262 height_special "totalheight"
25265 \begin_layout Standard
25275 \begin_layout Standard
25276 \begin_inset VSpace bigskip
25279 LyX's box label will change to the used frame style when you set a frame.
25280 To be able to use the different frame styles, the LaTeX-package
25285 \begin_inset LatexCommand index
25286 name "LaTeX-packages ! fancybox"
25293 \begin_layout Standard
25294 \begin_inset VSpace bigskip
25297 The default value for the size
25303 is 0.4\InsetSpace \thinspace{}
25305 It can be changed with the following command in TeX-Code to e.\InsetSpace \thinspace{}
25307 2\InsetSpace \thinspace{}
25311 \begin_layout Standard
25321 \begin_layout Standard
25325 \begin_layout Standard
25337 \begin_inset Box Boxed
25346 height_special "totalheight"
25349 \begin_layout Standard
25351 Rectangular box with
25357 \InsetSpace \thinspace{}
25358 =\InsetSpace \thinspace{}
25359 2\InsetSpace \thinspace{}
25369 \begin_layout Standard
25383 \begin_layout Standard
25384 \begin_inset VSpace bigskip
25387 The space between the frame and the box content is for all frame styles
25388 by default 3\InsetSpace \thinspace{}
25390 You can change it by setting the length
25397 For example the command
25400 \begin_layout Standard
25410 \begin_layout Standard
25411 sets the value to 10\InsetSpace \thinspace{}
25412 pt, like for the following box:
25415 \begin_layout Standard
25419 \begin_layout Standard
25431 \begin_inset Box Boxed
25440 height_special "totalheight"
25443 \begin_layout Standard
25445 Rectangular box with
25451 \InsetSpace \thinspace{}
25452 =\InsetSpace \thinspace{}
25453 10\InsetSpace \thinspace{}
25463 \begin_layout Standard
25477 \begin_layout Standard
25478 \begin_inset VSpace bigskip
25481 The diameter of the round corners of the oval boxes can be set with the
25492 \begin_layout Standard
25500 \begin_layout Standard
25501 sets the diameter to 1\InsetSpace \thinspace{}
25506 \begin_layout Standard
25514 \begin_layout Standard
25515 sets the diameter to
25517 num\InsetSpace \thinspace{}
25518 ×\InsetSpace \thinspace{}
25519 minimum(width and heigth of box)
25531 \begin_layout Standard
25535 \begin_layout Standard
25545 \begin_inset Box Ovalbox
25554 height_special "totalheight"
25557 \begin_layout Standard
25565 \InsetSpace \thinspace{}
25566 =\InsetSpace \thinspace{}
25567 1.5\InsetSpace \thinspace{}
25577 \begin_layout Standard
25589 \begin_layout Standard
25590 \begin_inset VSpace bigskip
25593 The size of the shadow can be adjusted by changing the length
25600 It it set to 2\InsetSpace \thinspace{}
25601 pt for the following box by this command:
25604 \begin_layout Standard
25614 \begin_layout Standard
25618 \begin_layout Standard
25630 \begin_inset Box Shadowbox
25639 height_special "totalheight"
25642 \begin_layout Standard
25650 \InsetSpace \thinspace{}
25651 =\InsetSpace \thinspace{}
25652 2\InsetSpace \thinspace{}
25662 \begin_layout Standard
25676 \begin_layout Standard
25677 \begin_inset VSpace bigskip
25680 Changed lengths and widths are valid for all boxes following the commands
25684 \begin_layout Section
25686 \begin_inset LatexCommand label
25687 name "sec:Minipages"
25692 \begin_inset LatexCommand index
25693 name "Boxes ! Minipages"
25700 \begin_layout Standard
25701 Minipages are treated by LaTeX as pages within pages and can therefore for
25702 example have their own footnotes.
25705 \begin_layout Standard
25706 Minipages are useful when you write documents with different languages.
25709 \begin_layout Standard
25710 Below are two example minipages side by side.
25711 Their width is set to 45\InsetSpace \thinspace{}
25712 col% and they are separated by a horizontal fill,
25713 that was inserted via the menu
25715 Insert\SpecialChar \menuseparator
25716 Special\InsetSpace ~
25717 Formatting\SpecialChar \menuseparator
25718 Horizontal\InsetSpace ~
25724 \begin_layout Standard
25725 \begin_inset Box Frameless
25734 height_special "totalheight"
25737 \begin_layout Standard
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.
25748 Dies ist ein deutscher Text.
25749 Dies ist ein deutscher Text.
25750 Dies ist ein deutscher Text.
25751 Dies ist ein deutscher Text.
25752 Dies ist ein deutscher Text
25756 \begin_layout Standard
25759 Dies ist eine deutsche Fußnote.
25765 Dies ist ein deutscher Text.
25766 Dies ist ein deutscher Text.
25774 \begin_inset Box Frameless
25783 height_special "totalheight"
25786 \begin_layout Standard
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.
25798 This is an English Text.
25799 This is an English Text.
25800 This is an English Text.
25801 This is an English Text.
25802 This is an English Text.
25806 \begin_layout Standard
25807 This is an English footnote.
25812 This is an English Text.
25821 \begin_layout Standard
25822 \begin_inset VSpace bigskip
25825 Another application for minipages are footnotes within tables.
25826 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25827 bottom of the current page.
25828 But when you put the table with the footnote to a minipage, the footnote
25829 will appear at its bottom, numbered with Latin letters.
25830 The footnote number is reset to 1 in every minipage but not outside the
25834 \begin_layout Standard
25835 The footnote of this table doesn't appear:
25836 \begin_inset Tabular
25837 <lyxtabular version="3" rows="3" columns="4">
25839 <column alignment="center" valignment="top" leftline="true" width="0pt">
25840 <column alignment="center" valignment="top" leftline="true" width="0pt">
25841 <column alignment="center" valignment="top" leftline="true" width="0pt">
25842 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25843 <row topline="true">
25844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25847 \begin_layout Standard
25853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25856 \begin_layout Standard
25862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25865 \begin_layout Standard
25870 \begin_layout Standard
25871 This is a footnote within a table.
25881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25884 \begin_layout Standard
25891 <row topline="true">
25892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25895 \begin_layout Standard
25901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25904 \begin_layout Standard
25910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25913 \begin_layout Standard
25919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25922 \begin_layout Standard
25929 <row topline="true" bottomline="true">
25930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25933 \begin_layout Standard
25939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25942 \begin_layout Standard
25948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25951 \begin_layout Standard
25957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25960 \begin_layout Standard
25974 \begin_layout Standard
25976 \begin_inset Box Frameless
25985 height_special "totalheight"
25988 \begin_layout Standard
25990 \begin_inset Tabular
25991 <lyxtabular version="3" rows="3" columns="4">
25993 <column alignment="center" valignment="top" leftline="true" width="0pt">
25994 <column alignment="center" valignment="top" leftline="true" width="0pt">
25995 <column alignment="center" valignment="top" leftline="true" width="0pt">
25996 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25997 <row topline="true">
25998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26001 \begin_layout Standard
26007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26010 \begin_layout Standard
26016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26019 \begin_layout Standard
26024 \begin_layout Standard
26025 This is a footnote within a table.
26035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26038 \begin_layout Standard
26045 <row topline="true">
26046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26049 \begin_layout Standard
26055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26058 \begin_layout Standard
26064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26067 \begin_layout Standard
26073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26076 \begin_layout Standard
26083 <row topline="true" bottomline="true">
26084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26087 \begin_layout Standard
26093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26096 \begin_layout Standard
26102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26105 \begin_layout Standard
26111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26114 \begin_layout Standard
26133 \begin_layout Standard
26134 \begin_inset VSpace bigskip
26137 The document-wide paragraph settings are ignored within minipages.
26138 That means that there will be no space between paragraphs in minipages
26139 although you set it to e.\InsetSpace \thinspace{}
26145 in the document settings.
26148 \begin_layout Standard
26149 Minipages can also be used to set a background color for text parts, see
26150 section\InsetSpace ~
26152 \begin_inset LatexCommand ref
26153 reference "sub:Color-for-Paragraphs"
26160 \begin_layout Standard
26161 \begin_inset Note Greyedout
26164 \begin_layout Standard
26169 You cannot have floats or margin notes inside minipages but minipages can
26170 be used inside tables, floats, and other boxes.
26178 \begin_layout Section
26180 \begin_inset LatexCommand label
26181 name "sec:Parboxes"
26186 \begin_inset LatexCommand index
26187 name "Boxes ! Parboxes"
26194 \begin_layout Standard
26195 Parboxes are very similar to minipages with the difference that they cannot
26197 The main difference to minipages is that minipages are in contrary to parboxes
26198 no real boxes but LaTeX-environments.
26201 \begin_layout Standard
26203 \begin_inset Box Frameless
26212 height_special "totalheight"
26215 \begin_layout Standard
26216 This a text within a parbox.
26217 This a text within a parbox.
26220 \begin_layout Standard
26221 This footnote won't appear:
26225 \begin_layout Standard
26226 This footnote is inside a parbox and will therefore not appear.
26239 \begin_layout Section
26240 Boxes for Words and Characters
26241 \begin_inset LatexCommand index
26242 name "Boxes ! for Characters"
26249 \begin_layout Subsection
26250 Prevent Hyphenation
26251 \begin_inset LatexCommand label
26252 name "sec:Prevent-Hyphenation"
26257 \begin_inset LatexCommand index
26258 name "Boxes ! to Prevent Hyphenation"
26265 \begin_layout Standard
26266 You can use a special kind of boxes to prevent words or text to be hyphenated.
26269 e is an example text:
26272 \begin_layout Standard
26273 This line is an example to show how you can prevent the hyphenation of
26274 \begin_inset Quotes eld
26278 \begin_inset Quotes erd
26284 \begin_layout Standard
26285 To prevent the hyphenation of the word
26286 \begin_inset Quotes eld
26290 \begin_inset Quotes erd
26296 \begin_layout Standard
26304 \begin_layout Standard
26305 in TeX-Code before the word.
26306 Behind the word insert a closing brace
26307 \begin_inset Quotes eld
26315 \begin_inset Quotes erd
26322 \begin_layout Standard
26334 \begin_layout Standard
26335 This is the result:
26338 \begin_layout Standard
26339 This line is an example to show how you can prevent the hyphenation of
26343 \begin_layout Standard
26353 \begin_inset Quotes eld
26357 \begin_inset Quotes erd
26364 \begin_layout Standard
26374 \begin_layout Standard
26375 You can alternatively set the command
26376 \begin_inset Quotes eld
26386 \begin_inset Quotes grd
26389 as TeX-Code directly before the word:
26392 \begin_layout Standard
26393 This line is an example to show how you can prevent the hyphenation of
26394 \begin_inset Quotes eld
26401 \begin_layout Standard
26411 \begin_inset Quotes erd
26417 \begin_layout Standard
26418 Of course the word now protrudes over the side margin.
26419 To avoid this, add via the menu
26421 Insert\SpecialChar \menuseparator
26422 Special\InsetSpace ~
26423 Formatting\SpecialChar \menuseparator
26431 ) a line break before the word:
26434 \begin_layout Standard
26435 This line is an example to show how you can prevent the hyphenation of
26441 \begin_layout Standard
26451 \begin_inset Quotes eld
26455 \begin_inset Quotes erd
26462 \begin_layout Standard
26472 \begin_layout Subsection
26474 \begin_inset LatexCommand label
26475 name "sub:Vertical-Alignment"
26480 \begin_inset LatexCommand index
26481 name "Boxes ! for Vertical Alignment"
26486 \begin_inset LatexCommand index
26487 name "Boxes ! Raiseboxes"
26494 \begin_layout Standard
26495 With the help of the command
26501 you can align words, characters or other boxes vertically to the surrounding
26509 is used with the following scheme:
26512 \begin_layout Standard
26517 raisebox{lift}[height][depth]{box content}
26520 \begin_layout Standard
26521 The lift can be a positive value to raise the box or a negative value to
26525 \begin_layout Standard
26526 To align for example the word
26527 \begin_inset Quotes eld
26531 \begin_inset Quotes erd
26534 so that the bottom of the
26535 \begin_inset Quotes eld
26539 \begin_inset Quotes erd
26543 \begin_inset Quotes eld
26547 \begin_inset Quotes erd
26550 is at the baseline, insert the command
26553 \begin_layout Standard
26563 \begin_layout Standard
26564 in TeX-Code before the word.
26565 Behind the word insert a closing brace
26566 \begin_inset Quotes eld
26574 \begin_inset Quotes erd
26579 This is the result:
26582 \begin_layout Standard
26583 This is a text line with the word
26587 \begin_layout Standard
26599 \begin_inset Quotes eld
26603 \begin_inset Quotes erd
26610 \begin_layout Standard
26620 \begin_layout Standard
26621 \begin_inset VSpace bigskip
26624 When you raise or lower characters in a line, the line distance will be
26628 \begin_layout Standard
26629 This is a text line with the word
26633 \begin_layout Standard
26645 \begin_inset Quotes eld
26649 \begin_inset Quotes erd
26656 \begin_layout Standard
26665 This is a text line with the word
26669 \begin_layout Standard
26679 \begin_inset Quotes eld
26683 \begin_inset Quotes erd
26690 \begin_layout Standard
26700 \begin_layout Standard
26701 If you want to prevent this for a certain reason, set the box height to
26706 \begin_layout Standard
26716 \begin_layout Standard
26717 This is a text line with the word
26721 \begin_layout Standard
26733 \begin_inset Quotes eld
26737 \begin_inset Quotes erd
26744 \begin_layout Standard
26753 This is a text line with the word
26757 \begin_layout Standard
26761 raisebox{0.5cm}[0pt]{
26767 \begin_inset Quotes eld
26771 \begin_inset Quotes erd
26778 \begin_layout Standard
26788 \begin_layout Section
26790 \begin_inset LatexCommand label
26791 name "sec:Colored-Boxes"
26796 \begin_inset LatexCommand index
26797 name "Boxes ! Color"
26804 \begin_layout Subsection
26806 \begin_inset LatexCommand index
26807 name "Color ! for Text"
26814 \begin_layout Standard
26815 To color the background of text the text must be put into a so called
26816 \begin_inset Quotes eld
26820 \begin_inset Quotes erd
26824 This requires that the LaTeX-package
26829 \begin_inset LatexCommand index
26830 name "LaTeX-packages ! color"
26834 is loaded in the document preamble with the command
26837 \begin_layout Standard
26842 @ifundefined{textcolor}
26848 \begin_layout Standard
26859 usepackage{color}}{}
26862 \begin_layout Standard
26867 will be loaded automatically by LyX when you color text
26871 \begin_layout Standard
26872 To avoid that it is loaded twice the command
26876 @ifundef\SpecialChar \textcompwordmark{}
26887 \begin_layout Standard
26888 \begin_inset VSpace medskip
26891 Colorboxes are created with the command
26898 This will be used with the following scheme:
26901 \begin_layout Standard
26906 colorbox{color}{box content}
26909 \begin_layout Standard
26910 The box content can also be a box and colorboxes can also be within other
26914 \begin_layout Standard
26915 The following colors are predefined:
26954 You can also define your own color as described in section\InsetSpace ~
26956 \begin_inset LatexCommand ref
26957 reference "sec:Colored-Tables"
26964 \begin_layout Standard
26965 To have e.\InsetSpace \thinspace{}
26967 a red background for a word, insert the command
26970 \begin_layout Standard
26978 \begin_layout Standard
26979 before the word in TeX-Code.
26980 Behind the word insert a closing brace
26981 \begin_inset Quotes eld
26989 \begin_inset Quotes erd
26994 This is the result:
26997 \begin_layout Standard
26998 This is a line where the word
27002 \begin_layout Standard
27012 \begin_inset Quotes eld
27016 \begin_inset Quotes erd
27023 \begin_layout Standard
27030 has a red background.
27033 \begin_layout Standard
27034 \begin_inset VSpace bigskip
27037 If you would have the box frame in a different color, you can use the command
27044 with the following scheme:
27047 \begin_layout Standard
27052 fcolorbox{frame color}{box color}{box content}
27055 \begin_layout Standard
27069 The frame thickness and the space between the frame and the box content
27070 can be adjusted with the lengths
27082 , respectively, as described in section\InsetSpace ~
27084 \begin_inset LatexCommand ref
27085 reference "sec:Framed-Boxes"
27092 \begin_layout Standard
27093 For the following example the command
27096 \begin_layout Standard
27101 fcolorbox{cyan}{magenta}{
27104 \begin_layout Standard
27108 \begin_layout Standard
27109 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
27116 \begin_layout Standard
27131 \begin_layout Standard
27135 fcolorbox{cyan}{magenta}{
27140 This is text within a colored, framed box.
27144 \begin_layout Standard
27154 \begin_layout Standard
27155 \begin_inset VSpace bigskip
27158 Of course you can also have colored text inside a colorbox:
27164 \begin_layout Standard
27168 fcolorbox{cyan}{magenta}{
27175 This is colored text within a colored, framed box.
27181 \begin_layout Standard
27192 \begin_layout Standard
27206 \begin_layout Standard
27209 \begin_inset VSpace medskip
27215 \begin_layout Standard
27216 \begin_inset Note Greyedout
27219 \begin_layout Standard
27224 Text in colorboxes cannot have line breaks.
27225 To color multiple text lines or paragraphs, use a box inside a colorbox
27226 as described in the following.
27234 \begin_layout Subsection
27235 Color for Paragraphs
27236 \begin_inset LatexCommand label
27237 name "sub:Color-for-Paragraphs"
27242 \begin_inset LatexCommand index
27243 name "Color ! for Paragraphs"
27250 \begin_layout Standard
27251 To set the background color for more than one text line, put the text into
27253 Before the minipage insert the
27262 \begin_layout Standard
27270 \begin_layout Standard
27272 Behind the minipage insert a closing brace
27273 \begin_inset Quotes eld
27281 \begin_inset Quotes erd
27287 \begin_layout Standard
27291 \begin_layout Standard
27295 colorbox{lightgrey}{
27301 \begin_inset Box Frameless
27310 height_special "totalheight"
27313 \begin_layout Standard
27314 This is text with background color.
27315 This is text with background color.
27318 \begin_layout Standard
27319 \begin_inset VSpace defskip
27322 The text can have footnotes
27326 \begin_layout Standard
27327 Another example footnote
27332 and can include tables and figures.
27335 \begin_layout Standard
27337 \begin_inset Tabular
27338 <lyxtabular version="3" rows="3" columns="3">
27340 <column alignment="center" valignment="top" leftline="true" width="0">
27341 <column alignment="center" valignment="top" leftline="true" width="0">
27342 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27343 <row topline="true">
27344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27347 \begin_layout Standard
27353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27356 \begin_layout Standard
27362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27365 \begin_layout Standard
27372 <row topline="true">
27373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27376 \begin_layout Standard
27382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27385 \begin_layout Standard
27387 \begin_inset Quotes erd
27395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27398 \begin_layout Standard
27405 <row topline="true" bottomline="true">
27406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27409 \begin_layout Standard
27415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27418 \begin_layout Standard
27424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27427 \begin_layout Standard
27447 \begin_layout Standard
27457 \begin_layout Section
27458 Rotated and Scaled Boxes
27461 \begin_layout Standard
27462 To use the the commands described in this section, the LaTeX-package
27467 \begin_inset LatexCommand index
27468 name "LaTeX-packages ! graphicx"
27472 needs to be loaded in the document preamble with the command
27475 \begin_layout Standard
27480 @ifundefined{rotatebox}
27486 \begin_layout Standard
27497 usepackage{graphicx}}{}
27500 \begin_layout Standard
27501 \begin_inset Note Greyedout
27504 \begin_layout Standard
27509 Some DVI-viewers can't display rotated or scaled material.
27517 \begin_layout Standard
27518 \begin_inset Note Greyedout
27521 \begin_layout Standard
27526 Floats mustn't be inside a rotated or scaled box.
27534 \begin_layout Subsection
27536 \begin_inset LatexCommand index
27537 name "Boxes ! rotated"
27542 \begin_inset LatexCommand index
27543 name "Rotated material"
27548 \begin_inset LatexCommand index
27549 name "Figures ! rotated"
27554 \begin_inset LatexCommand index
27555 name "Table Customization ! Rotating"
27562 \begin_layout Standard
27563 To rotate material, you can put it into a rotated box.
27564 Such a box is created using the command
27570 in TeX-Code with the following scheme:
27573 \begin_layout Standard
27578 rotatebox[rotation origin]{rotation angle}{box content}
27581 \begin_layout Standard
27582 The rotation origin is specified in the form
27587 The following positions are possible:
27607 (top), and also expedient combinations of the four base positions.
27612 means, that the rotation origin is at the top left corner of the box.
27613 When no rotation origin is specified, the position
27618 The rotation angle is a number that can be negative that specifies the
27620 The rotation direction is counterclockwise.
27623 \begin_layout Standard
27624 In the following example the command
27628 rotatebox[origin=c]{60}{
27630 was inserted as TeX-Code before the text
27631 \begin_inset Quotes eld
27635 \begin_inset Quotes erd
27638 ; after the text the box was closed by a closing brace
27645 \begin_layout Standard
27650 \begin_layout Standard
27654 rotatebox[origin=c]{60}{
27663 \begin_layout Standard
27673 \begin_layout Standard
27674 The box content can also be another box or an inline formula:
27677 \begin_layout Standard
27682 \begin_layout Standard
27686 rotatebox[origin=r]{-60}{
27692 \begin_inset Box Doublebox
27701 height_special "totalheight"
27704 \begin_layout Standard
27714 \begin_layout Standard
27725 \begin_layout Standard
27729 rotatebox[origin=lb]{60}{
27735 \begin_inset Formula $\int A\,\mathrm{d}x=B$
27742 \begin_layout Standard
27752 \begin_layout Standard
27753 or an image or table:
27756 \begin_layout Standard
27761 \begin_layout Standard
27765 rotatebox[origin=lb]{90}{
27771 \begin_inset Graphics
27772 filename clipart/platypus.eps
27782 \begin_layout Standard
27789 with a rotated image
27793 \begin_layout Standard
27797 rotatebox[origin=l]{-90}{
27803 \begin_inset Tabular
27804 <lyxtabular version="3" rows="2" columns="2">
27806 <column alignment="center" valignment="top" leftline="true" width="0">
27807 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27808 <row topline="true">
27809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27812 \begin_layout Standard
27818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27821 \begin_layout Standard
27828 <row topline="true" bottomline="true">
27829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27832 \begin_layout Standard
27838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27841 \begin_layout Standard
27856 \begin_layout Standard
27866 \begin_layout Subsection
27868 \begin_inset LatexCommand index
27869 name "Boxes ! scaled"
27874 \begin_inset LatexCommand index
27875 name "Scaled material"
27880 \begin_inset LatexCommand index
27881 name "Figures ! scaled"
27886 \begin_inset LatexCommand index
27887 name "Table Customization ! Scaling"
27894 \begin_layout Standard
27895 To scale material the commands
27907 can be used as TeX-Code.
27910 \begin_layout Standard
27917 is used with the following scheme:
27920 \begin_layout Standard
27925 scalebox{horizontal}[vertical]{box content}
27928 \begin_layout Standard
27929 Horizontal and vertical are the corresponding scaling factors.
27930 If no vertical scaling factor is given, the horizontal factor will also
27931 be used as vertical one.
27934 \begin_layout Standard
27941 creates for example a double size
27945 \begin_layout Standard
27958 \begin_layout Standard
27965 , compared to the document text size.
27968 \begin_layout Standard
27973 scalebox{2}[1]{Hello}
27975 in contrary distorts the
27979 \begin_layout Standard
27992 \begin_layout Standard
28002 \begin_layout Standard
28003 If a the scaling factor is negative, the box content will be mirrored.
28004 Therefore the command
28008 scalebox{-1}[1]{Hello}
28010 can be used to create mirror writing:
28014 \begin_layout Standard
28027 \begin_layout Standard
28037 \begin_layout Standard
28042 scalebox{1}[-1]{Hello}
28048 \begin_layout Standard
28061 \begin_layout Standard
28071 \begin_layout Standard
28076 scalebox{-1}[1]{box content}
28078 there exists the command
28084 reflectbox{box content}
28089 \begin_layout Standard
28090 \begin_inset VSpace bigskip
28099 is used to scale the box to a defined width and height.
28100 The command scheme is:
28103 \begin_layout Standard
28108 resizebox{width}{height}{box content}
28111 \begin_layout Standard
28112 Is one of the two command arguments given as exclamation mark
28116 , the size is set so that the aspect ratio of the box content is kept.
28119 \begin_layout Standard
28124 resizebox{2cm}{1cm}{Hello}
28130 \begin_layout Standard
28134 resizebox{2cm}{1cm}{
28143 \begin_layout Standard
28156 resizebox{2cm}{!}{Hello}
28162 \begin_layout Standard
28175 \begin_layout Standard
28185 \begin_layout Standard
28186 \begin_inset VSpace bigskip
28190 \begin_inset Note Greyedout
28193 \begin_layout Standard
28210 are set to zero, no LaTeX-errors occur when exporting the document but
28211 the exported files can not or only partly be displayed.
28219 \begin_layout Standard
28220 \begin_inset VSpace bigskip
28226 \begin_layout Standard
28227 The boxes can be combined in any order.
28228 E.\InsetSpace \thinspace{}
28236 rotatebox[origin=c]{-45}{
28240 reflectbox{Hello}}}
28247 \begin_layout Standard
28252 \begin_layout Standard
28256 rotatebox[origin=c]{-45}{
28269 \begin_layout Standard
28279 \begin_layout Standard
28281 Images, tables, and inline formulas are allowed as box content:
28284 \begin_layout Standard
28289 \begin_layout Standard
28293 rotatebox[origin=c]{-30}{
28303 \begin_inset Graphics
28304 filename clipart/platypus.eps
28314 \begin_layout Standard
28325 \begin_layout Standard
28329 rotatebox[origin=c]{-45}{
28339 \begin_inset Tabular
28340 <lyxtabular version="3" rows="2" columns="2">
28342 <column alignment="center" valignment="top" leftline="true" width="0">
28343 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28344 <row topline="true">
28345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28348 \begin_layout Standard
28354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28357 \begin_layout Standard
28364 <row topline="true" bottomline="true">
28365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28368 \begin_layout Standard
28374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28377 \begin_layout Standard
28392 \begin_layout Standard
28403 \begin_layout Standard
28407 rotatebox[origin=c]{-45}{
28417 \begin_inset Formula $\int A\,\mathrm{d}x=B$
28424 \begin_layout Standard
28434 \begin_layout Standard
28435 When the global formula style
28439 is used in the document
28443 \begin_layout Standard
28445 \begin_inset Quotes eld
28449 \begin_inset Quotes erd
28452 is added to the document class options.
28457 , also display formulas can be scaled.
28460 \begin_layout Section
28461 URLs (Uniform Resource Locators)
28462 \begin_inset LatexCommand index
28470 \begin_layout Standard
28471 Links to web pages or email addresses can be inserted via the menu
28473 Insert\SpecialChar \menuseparator
28477 The appearing URL dialog has two fields; the
28485 field for the URL description, which will be typeset as plain text immediately
28489 \begin_layout Standard
28490 Here is an example URL:
28491 \begin_inset LatexCommand url
28492 name "LyX's homepage"
28493 target "http://www.lyx.org"
28500 \begin_layout Standard
28503 Generate\InsetSpace ~
28506 in the URL dialog does nothing.
28507 This relict will be removed in the next LyX-version.
28510 \begin_layout Standard
28511 You cannot change the style of the link text.
28516 field will have the default text style of the document while the text of
28521 field will have the style
28522 \begin_inset Quotes eld
28530 \begin_inset Quotes erd
28536 \begin_layout Standard
28537 When you use the LaTeX-package
28542 \begin_inset LatexCommand index
28543 name "LaTeX-packages ! hyperref"
28547 to link cross-references in the output, URLs will automatically become
28548 clickable hyperlinks in DVI and PDF-output.
28551 \begin_layout Standard
28552 \begin_inset Note Greyedout
28555 \begin_layout Standard
28560 When you use the following characters: "%", "#", "^", you have to write
28561 them with a preceding backslash, e.\InsetSpace \thinspace{}
28564 \begin_inset Quotes eld
28570 \begin_inset Quotes erd
28574 URLs must not end with a backslash.
28582 \begin_layout Standard
28583 \begin_inset VSpace bigskip
28586 To create real hyperlinks without the force to write the link location to
28587 the text, you can use the command
28590 \begin_layout Standard
28595 href{link location}{link text}
28598 \begin_layout Standard
28600 To get for example a link to LyX's web page, write the command
28603 \begin_layout Standard
28608 href{http://www.lyx.org}{
28611 \begin_layout Standard
28613 Insert after the command the link text
28614 \begin_inset Quotes eld
28618 \begin_inset Quotes erd
28621 as normal text followed by a closing brace
28622 \begin_inset Quotes eld
28630 \begin_inset Quotes erd
28634 This is the result:
28638 \begin_layout Standard
28642 href{http://www.lyx.org}{
28651 \begin_layout Standard
28661 \begin_layout Standard
28662 To link to email addresses, add the prefix
28663 \begin_inset Quotes eld
28671 \begin_inset Quotes erd
28674 to the link location:
28680 \begin_layout Standard
28684 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
28689 lyx-docs mailing list
28693 \begin_layout Standard
28703 \begin_layout Standard
28710 instead of LyX's URL box has the advantage that you can specify the text
28711 style of the link text like for all other text parts.
28712 You can then set hyphenation points and forced linebreaks to have long
28713 link text broken at the page margin.
28714 You are furthermore able to change the text style for all URLs in your
28715 document with an option in
28719 's load command and the restrictions mentioned above doesn't apply for
28728 \begin_layout Chapter
28730 \begin_inset LatexCommand index
28731 name "External Stuff"
28738 \begin_layout Standard
28741 Insert\SpecialChar \menuseparator
28744 you can insert external material to your document.
28748 \begin_layout Description
28750 Document Another LyX document; its content is directly inserted to your
28754 \begin_layout Description
28756 Text A text document; every of its text lines is inserted to your document
28760 \begin_layout Description
28764 Lines A text document; its text lines are inserted as they
28766 Empty text lines creates a new paragraph in your document.
28769 \begin_layout Description
28770 External\InsetSpace ~
28771 Material Files in various formats.
28774 \begin_layout Description
28776 Document LyX or LaTeX-documents.
28779 \begin_layout Section
28781 \begin_inset LatexCommand index
28782 name "External Stuff ! External Material"
28789 \begin_layout Standard
28790 The external material feature allows you to insert files to your document
28791 without converting them previously to a format that can be read by the
28792 document output format because LyX takes care of needed conversions.
28793 This is similar to images that can be inserted in various image formats
28797 \begin_layout Standard
28798 External material can be inserted via the
28802 dialog that is accessible with the menu
28804 Insert\SpecialChar \menuseparator
28805 File\SpecialChar \menuseparator
28806 External\InsetSpace ~
28810 Currently the following file types (
28817 \begin_layout Description
28818 ChessDiagram This template supports chess position diagrams made with the
28823 \begin_layout Standard
28827 href{http://en.wikipedia.org/wiki/XBoard}{
28840 \begin_layout Standard
28850 \begin_layout Description
28851 Date This inserts the date in the form
28856 This is a date inserted as external material:
28857 \begin_inset External
28865 The date is not shown within LyX, only in the output.
28866 There are two other methods of inserting a date: Via menu
28868 Insert\SpecialChar \menuseparator
28871 and with the LaTeX command
28878 The different methods are compared in Table\InsetSpace ~
28880 \begin_inset LatexCommand ref
28881 reference "tab:Comparison-of-the"
28888 \begin_layout Description
28889 LilyPond This template is used for music notation typeset with the program
28893 \begin_layout Standard
28906 \begin_layout Standard
28910 href{http://en.wikipedia.org/wiki/LilyPond}{
28923 \begin_layout Standard
28931 \begin_inset Note Note
28934 \begin_layout Standard
28941 breaks the line while the remaining text in the line is stretched to the
28950 \begin_layout Description
28951 RasterImage This can be used for bitmap images.
28952 Nearly all popular image formats are supported.
28953 The image can be treated in the
28957 dialog like the images that are usually included via the
28961 dialog as described in section\InsetSpace ~
28963 \begin_inset LatexCommand ref
28964 reference "sec:Graphics-Dialog"
28969 The difference is that only raster images are allowed, that means that
28970 PDF and EPS-images are not supported.
28973 \begin_layout Description
28974 XFig This template supports images created with the program
28978 \begin_layout Standard
28982 href{http://en.wikipedia.org/wiki/Xfig}{
28995 \begin_layout Standard
29005 \begin_layout Standard
29006 \begin_inset Float table
29012 \begin_layout Standard
29013 \begin_inset Caption
29015 \begin_layout Standard
29016 \begin_inset LatexCommand label
29017 name "tab:Comparison-of-the"
29021 Comparison of the date input methods.
29029 \begin_layout Standard
29031 \begin_inset Tabular
29032 <lyxtabular version="3" rows="4" columns="4">
29034 <column alignment="center" valignment="top" leftline="true" width="0">
29035 <column alignment="center" valignment="top" leftline="true" width="0">
29036 <column alignment="center" valignment="top" leftline="true" width="0">
29037 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
29038 <row topline="true">
29039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29042 \begin_layout Standard
29048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29051 \begin_layout Standard
29054 External Material\SpecialChar \menuseparator
29060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29063 \begin_layout Standard
29066 Insert\SpecialChar \menuseparator
29072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29075 \begin_layout Standard
29086 <row topline="true">
29087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29090 \begin_layout Standard
29096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29099 \begin_layout Standard
29105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29108 \begin_layout Standard
29114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29117 \begin_layout Standard
29118 as TeX-Code inset box
29124 <row topline="true">
29125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29128 \begin_layout Standard
29134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29137 \begin_layout Standard
29143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29146 \begin_layout Standard
29152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29155 \begin_layout Standard
29162 <row topline="true" bottomline="true">
29163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29166 \begin_layout Standard
29172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29175 \begin_layout Standard
29181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29184 \begin_layout Standard
29190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29193 \begin_layout Standard
29212 \begin_layout Standard
29213 When you use the option
29225 dialog, only the path to the inserted file is shown in the output.
29228 material is displayed in LyX either as box like this:
29229 \begin_inset Graphics
29230 filename clipart/ExternalMaterialQt4.png
29232 scaleBeforeRotation
29236 or as image, depending on the setting in the
29248 \begin_layout Standard
29255 manual explains how you can define your own templates.
29258 \begin_layout Section
29260 \begin_inset LatexCommand label
29261 name "sec:Child-Documents"
29266 \begin_inset LatexCommand index
29267 name "External Stuff ! Child Documents"
29272 \begin_inset LatexCommand index
29273 name "Files ! Include"
29280 \begin_layout Standard
29281 Child documents are used when you have a long document consisting of several
29282 larger parts or sections.
29283 For maintenance it is often useful and sometimes even required to split
29284 the document in several files that can be revised separately.
29285 The different documents are then the so called child documents and a master
29286 document connects them to print the full document or parts of it.
29289 \begin_layout Standard
29290 Included documents are displayed in LyX as a box like this:
29291 \begin_inset Graphics
29292 filename clipart/ChildDocumentQt4.png
29294 scaleBeforeRotation
29298 To include child documents to a master document use the menu
29300 Insert\SpecialChar \menuseparator
29301 File\SpecialChar \menuseparator
29306 A dialog pops up where you can choose between four include methods:
29309 \begin_layout Description
29310 Include You can include LyX and LaTeX-documents.
29319 dialog, the included documents will be opened in LyX in a new file tab
29320 so that you can modify it.
29325 \begin_layout Standard
29326 Here is a child document inserted using
29331 \begin_inset Include \include{DummyDocument1.lyx}
29339 \begin_layout Standard
29340 The section numbering includes the sections of the included files in the
29341 order they are inserted in the master document.
29342 The included example document has for example a subsection that is numbered
29343 as subsection of this section.
29344 Labels of included documents can be referenced: Subsection\InsetSpace ~
29346 \begin_inset LatexCommand ref
29347 reference "sub:External-Subsection-1"
29354 \begin_layout Standard
29355 The preamble of the child document is ignored, only the preamble of the
29356 master document is used.
29357 Included documents are inserted starting on a new page and end with a pagebreak.
29360 \begin_layout Standard
29361 With the LaTeX-command
29367 you can specify which included child documents are processed when the output
29369 This is useful when you are perhaps only working on a certain chapter of
29370 your large document as this saves compiling time.
29377 is inserted to the master document preamble.
29378 It takes a comma-separated list of the filenames as argument, e.g.
29381 \begin_layout Standard
29386 includeonly{chapter1,chapter5}
29389 \begin_layout Standard
29390 will only process the included files named
29391 \begin_inset Quotes eld
29395 \begin_inset Quotes erd
29399 \begin_inset Quotes eld
29403 \begin_inset Quotes erd
29407 \begin_inset Quotes eld
29411 \begin_inset Quotes erd
29417 \begin_layout Standard
29418 \begin_inset Note Greyedout
29421 \begin_layout Standard
29426 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
29427 w the document in case that the child document uses another document class
29428 than the master document as this will lead to unexpected outputs.
29436 \begin_layout Description
29437 Input This method is very similar to the Include method.
29438 The differences are:
29442 \begin_layout Itemize
29443 Input files don't start with a new page and don't end with a pagebreak.
29446 \begin_layout Itemize
29447 Input files can be previewed in LyX when
29449 Instant\InsetSpace ~
29452 is enabled in LyX's preferences under
29456 feel\SpecialChar \menuseparator
29462 \begin_layout Itemize
29473 \begin_layout Standard
29474 Here is a child document inserted using
29479 \begin_inset Include \input{DummyDocument2.lyx}
29487 \begin_layout Description
29488 Verbatim With this method every text file can be included.
29489 The file is shown in the output with its source code, no command used in
29490 the text is invoked.
29491 You can use the option
29493 Mark spaces in output
29495 that displays the character
29496 \begin_inset Quotes eld
29503 \begin_layout Standard
29513 \begin_inset Quotes erd
29516 for every space character in the source code.
29517 The difference to the method via the menu
29519 Insert\SpecialChar \menuseparator
29520 File\SpecialChar \menuseparator
29524 is that the document content is not shown in LyX.
29527 \begin_layout Standard
29528 Here is a child document inserted as Verbatim:
29529 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
29535 \begin_inset VSpace bigskip
29538 Here is a child document inserted as Verbatim using the
29540 Mark spaces in output
29543 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
29551 \begin_layout Standard
29552 \begin_inset VSpace bigskip
29558 \begin_layout Standard
29559 \begin_inset Note Greyedout
29562 \begin_layout Standard
29567 As you can see in the examples above, the text of the documents included
29572 is not broken at the end of the document lines.
29580 \begin_layout Description
29581 Listings This type is described in chapter\InsetSpace ~
29583 \begin_inset LatexCommand ref
29584 reference "cha:Program-Code-Listings"
29591 \begin_layout Standard
29592 \begin_inset Note Greyedout
29595 \begin_layout Standard
29600 Including the same document twice in a document using different methods
29601 could cause LaTeX-problems.
29609 \begin_layout Chapter
29610 Program Code Listings
29611 \begin_inset LatexCommand label
29612 name "cha:Program-Code-Listings"
29617 \begin_inset LatexCommand index
29623 \begin_inset LatexCommand index
29624 name "Program Code"
29629 \begin_inset LatexCommand index
29630 name "Floats ! Listings"
29637 \begin_layout Standard
29638 To include and typeset program code you can use the
29642 inset that can be inserted via the menu
29644 Insert\SpecialChar \menuseparator
29653 \begin_inset LatexCommand index
29654 name "LaTeX-packages ! listings"
29658 provides a powerful and flexible way to insert program source code to your
29662 \begin_layout Standard
29663 When right-clicking on a listings inset a dialog pops up where you can set
29664 the listings format.
29667 \begin_layout Standard
29668 By default, a listing starts a new paragraph in the output.
29669 The placement option
29671 Inline\InsetSpace ~
29674 prints the listing inline like this:
29675 \begin_inset listings
29676 lstparams "language={C++}"
29680 \begin_layout Standard
29693 creates a listings float where you can specify the placement options
29694 \begin_inset Quotes eld
29702 \begin_inset Quotes erd
29706 \begin_inset Quotes eld
29714 \begin_inset Quotes erd
29718 \begin_inset Quotes eld
29726 \begin_inset Quotes erd
29730 \begin_inset Quotes eld
29738 \begin_inset Quotes erd
29741 corresponding to the float placement options described in section\InsetSpace ~
29743 \begin_inset LatexCommand ref
29744 reference "sec:Float-Placement"
29749 The placement options can be mixed and are inserted without any separation,
29750 e.\InsetSpace \thinspace{}
29753 \begin_inset Quotes eld
29761 \begin_inset Quotes erd
29766 \begin_inset Quotes eld
29770 \begin_inset Quotes erd
29773 has sometimes no effect, but you don't need to use the
29777 option in this case as also non-float listings can have captions and be
29781 \begin_layout Standard
29782 You can add captions to listings with the menu
29784 Insert\SpecialChar \menuseparator
29788 Listings can be referenced like floats: Listing\InsetSpace ~
29790 \begin_inset LatexCommand ref
29791 reference "lst:Example-Listing"
29798 \begin_layout Standard
29799 \begin_inset listings
29800 lstparams "language=Python"
29804 \begin_layout Standard
29806 \begin_inset Caption
29808 \begin_layout Standard
29809 \begin_inset LatexCommand label
29810 name "lst:Example-Listing"
29814 Example Listing float
29819 # Example listing float
29822 \begin_layout Standard
29827 \begin_layout Standard
29829 'this is a python function'
29832 \begin_layout Standard
29842 \begin_layout Standard
29843 When you have set a programming language in the listings dialog, the keywords
29844 of this language will be recognized and specially typeset in the output.
29845 In the example listings the Python keyword
29846 \begin_inset Quotes eld
29850 \begin_inset Quotes erd
29853 is recognized and printed bold in the output.
29856 \begin_layout Standard
29857 \begin_inset Note Greyedout
29860 \begin_layout Standard
29865 If you don't get bold keywords when using typewriter fonts, your typewriter
29866 font probably doesn't provide a bold shape.
29867 In this case select a different one in the menu
29869 Document\SpecialChar \menuseparator
29870 Settings\SpecialChar \menuseparator
29882 provide bold shapes.)
29890 \begin_layout Standard
29896 of the listings dialog you can specify the line numbering style.
29897 You can insert a number to specify which lines are numbered to the field
29903 When you insert e.g.
29905 \begin_inset Quotes eld
29909 \begin_inset Quotes erd
29912 , only every 3rd line will be numbered.
29915 \begin_layout Standard
29916 You can furthermore specify a range of lines, only these will then appear
29920 Extended\InsetSpace ~
29923 should be used when you use national characters like the German umlauts
29926 Here is an example listing with left line numbering, step
29928 \begin_inset Quotes eld
29932 \begin_inset Quotes erd
29936 \begin_inset Quotes eld
29940 \begin_inset Quotes erd
29944 \begin_inset Quotes eld
29947 Extended\InsetSpace ~
29949 \begin_inset Quotes erd
29953 \begin_inset Quotes eld
29959 \begin_inset Quotes erd
29962 , range lines 3\InsetSpace \thinspace{}
29963 -\InsetSpace \thinspace{}
29967 \begin_layout Standard
29968 \begin_inset listings
29969 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
29973 \begin_layout Standard
29978 \begin_layout Standard
29980 'this is a python function'
29983 \begin_layout Standard
29988 \begin_layout Standard
29993 \begin_layout Standard
29995 'This is a German word: Tschüß'
29998 \begin_layout Standard
30003 \begin_layout Standard
30008 \begin_layout Standard
30010 'this is a python function'
30013 \begin_layout Standard
30023 \begin_layout Standard
30024 \begin_inset Note Greyedout
30027 \begin_layout Standard
30032 Due to a bug in the
30036 package the line numbering is shifted by a line by every previous listing.
30037 That's the reason why the lines 2 and 5 are numbered in the above listing
30038 and not the lines 3 and 6.
30046 \begin_layout Standard
30047 \begin_inset VSpace bigskip
30053 \begin_layout Standard
30054 It is also possible to print lines from a file as listing.
30055 To do this, use the menu
30057 Insert\SpecialChar \menuseparator
30058 File\SpecialChar \menuseparator
30061 and choose the type
30069 \begin_layout Standard
30070 The other child document types are described in section\InsetSpace ~
30072 \begin_inset LatexCommand ref
30073 reference "sec:Child-Documents"
30082 In the child document dialog you can specify the listing parameters in
30084 To show a list of all available parameters, type in a question mark
30085 \begin_inset Quotes eld
30089 \begin_inset Quotes erd
30095 \begin_layout Standard
30096 To reference child document listings, write a label text into the corresponding
30097 field of the child document dialog.
30098 The label can then be referenced using the menu
30100 Insert\SpecialChar \menuseparator
30106 \begin_layout Standard
30107 Listing\InsetSpace ~
30109 \begin_inset LatexCommand ref
30110 reference "lst:file-listing"
30114 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
30115 -\InsetSpace \thinspace{}
30120 \begin_layout Standard
30121 \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]
30129 \begin_layout Standard
30130 \begin_inset VSpace bigskip
30136 \begin_layout Standard
30137 Global listings settings can be set in the
30139 Document\SpecialChar \menuseparator
30140 Settings\SpecialChar \menuseparator
30144 To get there a list of available options, type in a question mark
30145 \begin_inset Quotes eld
30149 \begin_inset Quotes erd
30154 Listings\InsetSpace ~
30160 \begin_layout Standard
30161 For more information about the
30165 package, we refer to its documentation
30166 \begin_inset LatexCommand cite
30174 \begin_layout Standard
30180 \begin_layout Chapter
30182 Units available in LyX
30183 \begin_inset LatexCommand index
30189 \begin_inset LatexCommand label
30190 name "cha:Units-available-in"
30197 \begin_layout Standard
30198 To understand the units described in this documentation, Table\InsetSpace ~
30200 \begin_inset LatexCommand ref
30201 reference "tab:Units"
30205 explains all units available in LyX.
30208 \begin_layout Standard
30209 \begin_inset Float table
30215 \begin_layout Standard
30216 \begin_inset Caption
30218 \begin_layout Standard
30219 \begin_inset LatexCommand label
30232 \begin_layout Standard
30233 \begin_inset VSpace medskip
30239 \begin_layout Standard
30241 \begin_inset Tabular
30242 <lyxtabular version="3" rows="20" columns="2">
30244 <column alignment="center" valignment="top" leftline="true" width="0">
30245 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
30246 <row topline="true" bottomline="true">
30247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30250 \begin_layout Standard
30256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30259 \begin_layout Standard
30266 <row topline="true">
30267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30270 \begin_layout Standard
30276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30279 \begin_layout Standard
30286 <row topline="true">
30287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30290 \begin_layout Standard
30296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30299 \begin_layout Standard
30306 <row topline="true">
30307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30310 \begin_layout Standard
30316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30319 \begin_layout Standard
30326 <row topline="true">
30327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30330 \begin_layout Standard
30336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30339 \begin_layout Standard
30340 point (72.27\InsetSpace \thinspace{}
30341 pt = 1\InsetSpace \thinspace{}
30348 <row topline="true">
30349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30352 \begin_layout Standard
30358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30361 \begin_layout Standard
30362 pica (1\InsetSpace \thinspace{}
30363 pc = 12\InsetSpace \thinspace{}
30370 <row topline="true">
30371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30374 \begin_layout Standard
30380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30383 \begin_layout Standard
30384 scaled point (65536\InsetSpace \thinspace{}
30385 sp = 1\InsetSpace \thinspace{}
30392 <row topline="true">
30393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30396 \begin_layout Standard
30402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30405 \begin_layout Standard
30406 big point (72\InsetSpace \thinspace{}
30407 bp = 1\InsetSpace \thinspace{}
30414 <row topline="true">
30415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30418 \begin_layout Standard
30424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30427 \begin_layout Standard
30428 didot (1\InsetSpace \thinspace{}
30430 \begin_inset Formula $\approx$
30433 0.376\InsetSpace \thinspace{}
30440 <row topline="true">
30441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30444 \begin_layout Standard
30450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30453 \begin_layout Standard
30454 cicero (1\InsetSpace \thinspace{}
30455 cc = 12\InsetSpace \thinspace{}
30462 <row topline="true">
30463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30466 \begin_layout Standard
30472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30475 \begin_layout Standard
30476 % of original image width
30482 <row topline="true">
30483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30486 \begin_layout Standard
30492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30495 \begin_layout Standard
30502 <row topline="true">
30503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30506 \begin_layout Standard
30512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30515 \begin_layout Standard
30522 <row topline="true">
30523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30526 \begin_layout Standard
30532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30535 \begin_layout Standard
30542 <row topline="true">
30543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30546 \begin_layout Standard
30552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30555 \begin_layout Standard
30562 <row topline="true">
30563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30566 \begin_layout Standard
30572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30575 \begin_layout Standard
30582 <row topline="true">
30583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30586 \begin_layout Standard
30592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30595 \begin_layout Standard
30602 <row topline="true">
30603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30606 \begin_layout Standard
30612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30615 \begin_layout Standard
30626 <row topline="true">
30627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30630 \begin_layout Standard
30636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30639 \begin_layout Standard
30650 <row topline="true" bottomline="true">
30651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30654 \begin_layout Standard
30660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30663 \begin_layout Standard
30664 math unit (1\InsetSpace \thinspace{}
30665 mu = 1/18\InsetSpace \thinspace{}
30684 \begin_layout Chapter
30685 Output File Formats with Graphics
30686 \begin_inset LatexCommand label
30687 name "cha:Output-File-Formats"
30694 \begin_layout Section
30696 \begin_inset LatexCommand index
30697 name "File Formats ! DVI"
30702 \begin_inset LatexCommand index
30703 name "DVI|see{File Formats}"
30710 \begin_layout Standard
30711 This file type has the extension
30712 \begin_inset Quotes eld
30720 \begin_inset Quotes erd
30725 \begin_inset Quotes eld
30729 \begin_inset Quotes erd
30732 (DVI), because it is completely portable; you can move them from one machine
30733 to another without needing to do any sort of conversion.
30734 At the time when this file-format was developed, this was no matter of
30736 DVIs are used for quick previews and as pre-stage for other output formats,
30740 \begin_layout Standard
30741 \begin_inset Note Greyedout
30744 \begin_layout Standard
30749 DVI-files doesn't contain images, they will only be a linked.
30754 So don't forget this, if you move your
30758 file to another computer.
30759 This property can also slow down your computer when you view the DVI.
30760 Because the DVI-viewer has to convert the image in the background to make
30761 it visible when you scroll in the DVI.
30762 So we recommend to use PDF for files with many images.
30765 \begin_layout Standard
30766 You can export your document to DVI by using the menu
30768 File\SpecialChar \menuseparator
30769 Export\SpecialChar \menuseparator
30773 You can view your document as DVI via the
30777 menu or by using the toolbar button
30778 \begin_inset Graphics
30779 filename ../images/buffer-view_dvi.png
30781 scaleBeforeRotation
30788 \begin_layout Section
30790 \begin_inset LatexCommand label
30791 name "sec:PostScript"
30796 \begin_inset LatexCommand index
30797 name "File Formats ! PostScript"
30802 \begin_inset LatexCommand index
30803 name "PostScript|see{File Formats}"
30810 \begin_layout Standard
30811 This file type has the extension
30812 \begin_inset Quotes eld
30820 \begin_inset Quotes erd
30824 PostScript was developed by the company
30828 as printer language.
30829 The file contains therefore commands that the printer uses to print the
30831 PostScript can be seen as
30832 \begin_inset Quotes eld
30835 programming language
30836 \begin_inset Quotes erd
30839 ; you can calculate with it and draw diagrams and images
30843 \begin_layout Standard
30844 If you are interested to learn more about this, have a look at the LaTeX-package
30850 \begin_inset LatexCommand cite
30861 Due to this ability, the files are often bigger than PDFs.
30864 \begin_layout Standard
30865 PostScript can only contain images in the format
30866 \begin_inset Quotes eld
30869 Encapsulated PostScript
30870 \begin_inset Quotes erd
30873 (EPS, file extension
30874 \begin_inset Quotes eld
30882 \begin_inset Quotes erd
30886 As LyX allows you to use any known image format in your document, it has
30887 to convert images in the background to EPS.
30888 If you have e.g 50 images in your document, LyX has to do 50 conversions
30889 whenever you view or export your document.
30890 This will slow down your work flow with LyX drastically.
30891 So if you plan to use PostScript, you can insert your images directly as
30892 EPS to avoid this problem.
30895 \begin_layout Standard
30896 You can export your document to PostScript using the menu
30898 File\SpecialChar \menuseparator
30899 Export\SpecialChar \menuseparator
30903 You can view your document as PostScript via the
30907 menu or by using the toolbar button
30908 \begin_inset Graphics
30909 filename ../images/buffer-view_ps.png
30911 scaleBeforeRotation
30918 \begin_layout Section
30920 \begin_inset LatexCommand label
30926 \begin_inset LatexCommand index
30927 name "File Formats ! PDF"
30932 \begin_inset LatexCommand index
30940 \begin_layout Standard
30941 This file type has the extension
30942 \begin_inset Quotes eld
30950 \begin_inset Quotes erd
30955 \begin_inset Quotes eld
30958 Portable Document Format
30959 \begin_inset Quotes erd
30962 (PDF) is developed by
30966 as derivative from PostScript.
30967 It is more compressed and it uses much less commands than PostScript.
30969 \begin_inset Quotes eld
30973 \begin_inset Quotes erd
30976 implies, it can be processed at any computer system and the printed output
30977 looks exactly the same.
30980 \begin_layout Standard
30981 PDF can contain images in its own PDF format, in the format
30982 \begin_inset Quotes eld
30985 Joint Photographic Experts Group
30986 \begin_inset Quotes erd
30989 (JPG, file extension
30990 \begin_inset Quotes eld
30998 \begin_inset Quotes erd
31002 \begin_inset Quotes eld
31010 \begin_inset Quotes erd
31013 ), and in the format
31014 \begin_inset Quotes eld
31017 Portable Network Graphics
31018 \begin_inset Quotes erd
31021 (PNG, file extension
31022 \begin_inset Quotes eld
31030 \begin_inset Quotes erd
31034 Nevertheless you can use any other image format, because LyX converts them
31035 in the background to one of these formats.
31036 But as described in the section about PostScript, the image conversion
31037 will slow down your work flow.
31038 So it is recommended to use images in one of the three mentioned formats.
31041 \begin_layout Standard
31042 You can export your document to PDF via the menu
31044 File\SpecialChar \menuseparator
31047 in three different ways:
31050 \begin_layout Description
31052 (ps2pdf) This uses the program
31056 that creates a PDF from a PostScript-version of your file.
31057 The PostScript-version is produced by the program
31061 which uses a DVI-version as intermediate step.
31062 So this export variant consist of three conversions.
31065 \begin_layout Description
31067 (dvipdfm) This uses the program
31071 that converts your file in the background to DVI and in a second step to
31075 \begin_layout Description
31077 (pdflatex) This uses the program
31081 that converts your file directly to PDF.
31084 \begin_layout Standard
31085 It is recommended to use
31094 supports all features of actual PDF-versions, is quick and works stable
31100 is not under development and therefore a bit outdated.
31103 \begin_layout Standard
31104 You can view your document as PDF via the
31108 menu or by using the toolbar button
31109 \begin_inset Graphics
31110 filename ../images/buffer-view_pdf2.png
31112 scaleBeforeRotation
31128 \begin_layout Chapter
31129 Explanation of Equation\InsetSpace ~
31131 \begin_inset LatexCommand eqref
31137 \begin_inset LatexCommand label
31138 name "cha:Explanation-of-Equation"
31145 \begin_layout Standard
31151 \begin_inset Formula $W_{\mathrm{tot\, n}}$
31154 can be calculated to
31157 \begin_layout Standard
31158 \begin_inset Formula \begin{equation}
31159 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}
31166 \begin_layout Standard
31168 \begin_inset Formula $W_{g\, n}$
31171 is the given width of all cells.
31178 is the LaTeX-length between the cell text and the cell border, its default
31179 value is 6\InsetSpace \thinspace{}
31187 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
31191 \begin_layout Standard
31192 Following equation\InsetSpace ~
31194 \begin_inset LatexCommand eqref
31195 reference "eq:Wtot_n"
31199 , the total width of a multicolumn
31200 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
31206 \begin_layout Standard
31207 \begin_inset Formula \begin{equation}
31208 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
31215 \begin_layout Standard
31216 By setting equation\InsetSpace ~
31218 \begin_inset LatexCommand eqref
31219 reference "eq:Wtot_n"
31224 \begin_inset LatexCommand eqref
31225 reference "eq:Wtot_mult"
31229 equal we can calculate the needed given width
31230 \begin_inset Formula $W_{g\, n}$
31237 columns are spanned, so that each column has a total width of
31238 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
31244 \begin_layout Standard
31245 \begin_inset Formula \begin{equation}
31246 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
31253 \begin_layout Bibliography
31254 \begin_inset LatexCommand bibitem
31255 key "latexcompanion"
31259 Frank Mittelbach and Michel Goossens:
31261 The LaTeX Companion Second Edition.
31264 Addison-Wesley, 2004
31267 \begin_layout Bibliography
31268 \begin_inset LatexCommand bibitem
31273 Helmut Kopka and Patrick W.
31276 A Guide to LaTeX Fourth Edition.
31279 Addison-Wesley, 2003
31282 \begin_layout Bibliography
31283 \begin_inset LatexCommand bibitem
31290 LaTeX: A Document Preparation System.
31293 Addison-Wesley, second edition, 1994
31296 \begin_layout Bibliography
31297 \begin_inset LatexCommand bibitem
31306 \begin_layout Standard
31310 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
31320 \begin_layout Standard
31327 of the LaTeX-package
31332 \begin_inset LatexCommand index
31333 name "LaTeX-packages ! booktabs"
31340 \begin_layout Bibliography
31341 \begin_inset LatexCommand bibitem
31350 \begin_layout Standard
31354 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
31363 \begin_layout Standard
31370 of the LaTeX-package
31375 \begin_inset LatexCommand index
31376 name "LaTeX-packages ! caption"
31383 \begin_layout Bibliography
31384 \begin_inset LatexCommand bibitem
31393 \begin_layout Standard
31397 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
31407 \begin_layout Standard
31414 of the LaTeX-package
31419 \begin_layout Bibliography
31420 \begin_inset LatexCommand bibitem
31429 \begin_layout Standard
31433 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
31443 \begin_layout Standard
31450 of the LaTeX-package
31455 \begin_inset LatexCommand index
31456 name "LaTeX-packages ! endfloat"
31463 \begin_layout Bibliography
31464 \begin_inset LatexCommand bibitem
31473 \begin_layout Standard
31477 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty}{
31486 \begin_layout Standard
31493 of the LaTeX-package
31498 \begin_inset LatexCommand index
31499 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
31506 \begin_layout Bibliography
31507 \begin_inset LatexCommand bibitem
31516 \begin_layout Standard
31520 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
31530 \begin_layout Standard
31537 of the LaTeX-package
31542 \begin_inset LatexCommand index
31543 name "LaTeX-packages ! footmisc"
31550 \begin_layout Bibliography
31551 \begin_inset LatexCommand bibitem
31560 \begin_layout Standard
31564 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
31573 \begin_layout Standard
31580 of the LaTeX-package
31585 \begin_inset LatexCommand index
31586 name "LaTeX-packages ! hyperref"
31593 \begin_layout Bibliography
31594 \begin_inset LatexCommand bibitem
31603 \begin_layout Standard
31607 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
31617 \begin_layout Standard
31624 of the LaTeX-package
31629 \begin_inset LatexCommand index
31630 name "LaTeX-packages ! hyperref"
31637 \begin_layout Bibliography
31638 \begin_inset LatexCommand bibitem
31647 \begin_layout Standard
31651 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
31661 \begin_layout Standard
31668 of the LaTeX-package
31673 \begin_inset LatexCommand index
31674 name "LaTeX-packages ! koma-script"
31681 \begin_layout Bibliography
31682 \begin_inset LatexCommand bibitem
31691 \begin_layout Standard
31695 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
31705 \begin_layout Standard
31712 of the LaTeX-package
31717 \begin_inset LatexCommand index
31718 name "LaTeX-packages ! listings"
31725 \begin_layout Bibliography
31726 \begin_inset LatexCommand bibitem
31735 \begin_layout Standard
31739 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
31749 \begin_layout Standard
31756 of the LaTeX-package
31761 \begin_inset LatexCommand index
31762 name "LaTeX-packages ! marginnote"
31769 \begin_layout Bibliography
31770 \begin_inset LatexCommand bibitem
31779 \begin_layout Standard
31783 href{http://tug.org/PSTricks/main.cgi/}{
31792 \begin_layout Standard
31799 of the LaTeX-package
31804 \begin_inset LatexCommand index
31805 name "LaTeX-packages ! PSTricks"
31812 \begin_layout Bibliography
31813 \begin_inset LatexCommand bibitem
31822 \begin_layout Standard
31826 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
31835 \begin_layout Standard
31842 of the LaTeX-package
31847 \begin_inset LatexCommand index
31848 name "LaTeX-packages ! sidecap"
31855 \begin_layout Bibliography
31856 \begin_inset LatexCommand bibitem
31865 \begin_layout Standard
31869 href{http://wiki.lyx.org/LyX/NewInLyX15}{
31878 \begin_layout Standard
31885 about new features in
31892 \begin_layout Standard
31893 \begin_inset LatexCommand printindex
31900 \begin_layout Standard
31901 \begin_inset FloatList figure
31908 \begin_layout Standard
31909 \begin_inset FloatList table
31916 \begin_layout Standard
31920 \begin_layout Standard
31924 listof{Xalgorithm}{List of Algorithms}
31930 \begin_inset Note Note
31933 \begin_layout Standard
31934 see section\InsetSpace ~
31936 \begin_inset LatexCommand ref
31937 reference "sub:Algorithm-Floats"