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
269 original author: Uwe Stöhr
283 \begin_layout Standard
284 \begin_inset LatexCommand tableofcontents
291 \begin_layout Standard
292 \begin_inset Note Note
295 \begin_layout Standard
296 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
310 If they are not installed you can export the document anyway but the sections
311 where the packages are required won't appear in the output.
314 \begin_layout Standard
315 The latest PDF-version of this document can be found here:
319 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
327 \begin_layout Chapter
329 \begin_inset LatexCommand label
335 \begin_inset LatexCommand index
341 \begin_inset LatexCommand index
342 name "Graphics|see{Figures}"
349 \begin_layout Section
351 \begin_inset LatexCommand index
352 name "Figures ! Graphics Dialog"
357 \begin_inset LatexCommand label
358 name "sec:Graphics-Dialog"
365 \begin_layout Standard
366 To insert an image into your document, place the cursor at the text position
367 you want and click on the toolbar icon
368 \begin_inset Graphics
369 filename ../images/dialog-show-new-inset_graphics.png
377 Insert\SpecialChar \menuseparator
381 Then a dialog will appear to choose the file to load.
382 The image will appear in the output exactly at the position where it is
386 \begin_layout Standard
387 The graphics dialog can be called at any time by right-clicking on an image.
388 This dialog has three tabs:
391 \begin_layout Description
396 Here you can choose an image file and adjust its appearance in the output.
397 The available units for the image size are explained in appendix\InsetSpace ~
399 \begin_inset LatexCommand ref
400 reference "cha:Units-available-in"
407 \begin_inset LatexCommand index
408 name "Figures ! rotated"
412 You can rotate images counter-clockwise by setting a rotation angle and
414 The image will also be rotated inside LyX.
417 \begin_inset LatexCommand index
418 name "Figures ! scaled"
422 Images can be scaled by using a percentage value or by setting the width
423 and height explicitly.
424 If you set only the width or only the height, the other size will be determined
426 If you set both, then the image will be transformed to the given size,
427 possibly distorting it.
428 To prevent the image from distortion, use the option
430 Maintain aspect ratio
433 The image will then be scaled so that its width and height don't exceed
434 the specified dimensions.
436 Images can be opened in a program of your choice
442 The program can be set for every image format in the file format settings
443 in LyX's preferences.
446 \begin_layout Description
451 Alternatively to the usage of scaling units it is possible to set image
452 coordinates to adjust the height and width of the image in the output.
453 The coordinates can also be calculated automatically by pressing the button
465 bounding\InsetSpace ~
468 will only print the image region within the given coordinates.
469 Normally you don't need to take care about image coordinates and can ignore
473 \begin_layout Description
479 In this tab you can modify the appearance of the image within LyX and set
480 the image to be a subfigure of a figure float with an own caption.
481 Subfigures are explained in section\InsetSpace ~
483 \begin_inset LatexCommand ref
484 reference "sec:Figure-Floats"
490 LaTeX experts can also specify on this tab additional LaTeX options.
498 makes the image appear in the output only as a frame with the size of the
508 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
515 When the option is used the images will not be unzipped on export, since
516 LaTeX can handle them as they are.
518 Zipped EPS-graphics are useful to save
519 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
521 \begin_inset LatexCommand ref
522 reference "sec:PostScript"
527 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
538 zgrep %%Bounding x.eps.gz > x.eps.bb
542 The second command creates the bounding box file
543 \begin_inset Quotes eld
547 \begin_inset Quotes erd
550 that is needed by LaTeX for zipped graphics.
553 \begin_layout Standard
554 \begin_inset VSpace bigskip
560 \begin_layout Standard
561 This is an example image in EPS format
565 \begin_layout Standard
566 Image formats are explained in section\InsetSpace ~
568 \begin_inset LatexCommand ref
569 reference "sec:Image-Formats"
578 within a separate, horizontally centered paragraph:
581 \begin_layout Standard
583 \begin_inset Graphics
584 filename clipart/mobius.eps
595 \begin_layout Standard
596 This is the same image like the one above but in draft mode:
599 \begin_layout Standard
601 \begin_inset Graphics
602 filename clipart/mobius.eps
614 \begin_layout Section
616 \begin_inset LatexCommand label
617 name "sec:Figure-Floats"
622 \begin_inset LatexCommand index
623 name "Floats ! Figures"
628 \begin_inset LatexCommand index
629 name "Figures ! Floats"
636 \begin_layout Standard
637 For general explanations about floats, have a look at section\InsetSpace ~
639 \begin_inset LatexCommand ref
640 reference "sec:FloatIntroduction"
647 \begin_layout Standard
649 \begin_inset Graphics
650 filename ../images/float-insert_figure.png
658 Insert\SpecialChar \menuseparator
659 Float\SpecialChar \menuseparator
662 inserts a float with a caption that has the label
663 \begin_inset Quotes eld
668 \begin_inset Quotes erd
671 (# is the actual number).
672 You can insert the image above the caption, like in Figure\InsetSpace ~
674 \begin_inset LatexCommand ref
675 reference "fig:kill-plat"
679 or below the caption, like in Figure\InsetSpace ~
681 \begin_inset LatexCommand ref
682 reference "fig:escher"
687 More about the caption placement is described in section\InsetSpace ~
689 \begin_inset LatexCommand ref
690 reference "sec:Caption-Placement"
697 \begin_layout Standard
698 \begin_inset Float figure
703 \begin_layout Standard
705 \begin_inset Graphics
706 filename clipart/platypus.eps
717 \begin_layout Standard
720 \begin_layout Standard
721 \begin_inset LatexCommand label
726 A severely distorted platypus in a float.
739 \begin_layout Standard
740 \begin_inset Float figure
745 \begin_layout Standard
748 \begin_layout Standard
749 \begin_inset LatexCommand label
763 \begin_layout Standard
765 \begin_inset Graphics
766 filename clipart/escher-lsd.eps
782 \begin_layout Standard
783 \begin_inset LatexCommand index
784 name "References ! to Figures"
790 \begin_inset LatexCommand ref
791 reference "fig:kill-plat"
796 \begin_inset LatexCommand ref
797 reference "fig:escher"
801 are examples of referenced figures.
802 Figures can be referenced in the text by referencing their label.
803 To do this insert a label in the caption using the menu
805 Insert\SpecialChar \menuseparator
808 or the toolbar button
809 \begin_inset Graphics
810 filename ../images/label-insert.png
817 You can now refer to the label using the menu
819 Insert\SpecialChar \menuseparator
823 or the toolbar button
824 \begin_inset Graphics
825 filename ../images/dialog-show-new-inset_ref.png
832 It is important to use references to floats, rather than using vague references
834 \begin_inset Quotes eld
838 \begin_inset Quotes erd
841 , because as LaTeX will reposition the floats in the final document, it
843 \begin_inset Quotes eld
847 \begin_inset Quotes erd
852 Referencing is explained in detail in section\InsetSpace ~
854 \begin_inset LatexCommand ref
855 reference "sec:Referencing-Floats"
862 \begin_layout Standard
863 Normally only one image is inserted to a figure float, but sometimes you
864 might want to use two images with separate subcaptions.
865 This can be set in the tab
870 of the graphics dialog.
871 Choose there the option
875 and enter the subcaption for the image in the caption field.
876 Note that only the main caption of the float is added to the List of Figures.
879 erencing subfigures is explained in section\InsetSpace ~
881 \begin_inset LatexCommand ref
882 reference "sub:Referencing-Subfigures"
889 \begin_layout Standard
892 \begin_inset LatexCommand ref
893 reference "fig:Two-distorted-images"
897 is an example of a figure float with two images set side by side.
898 You can also set the images one below the other.
901 \begin_layout Standard
902 \begin_inset Float figure
907 \begin_layout Standard
911 \begin_inset Graphics
912 filename clipart/escher-lsd.eps
916 subcaptionText "Undefinable structure"
923 \begin_inset Graphics
924 filename clipart/platypus.eps
929 subcaptionText "\label{fig:Platypus} Platypus"
938 \begin_layout Standard
941 \begin_layout Standard
942 \begin_inset LatexCommand label
943 name "fig:Two-distorted-images"
947 Two distorted images.
960 \begin_layout Section
962 \begin_inset LatexCommand label
963 name "sec:Image-Formats"
968 \begin_inset LatexCommand index
974 \begin_inset LatexCommand index
975 name "Figures ! Image Formats"
982 \begin_layout Standard
983 You can insert images in any known file format.
984 But as explained in appendix\InsetSpace ~
986 \begin_inset LatexCommand ref
987 reference "cha:Output-File-Formats"
991 , every output document format allows only a few image formats.
992 LyX uses therefore the program
996 in the background to convert the images to the right format.
997 To increase your work flow by avoiding these conversions in the background,
998 you can use only the image formats that can directly be embedded in the
1000 The output file formats are explained in appendix\InsetSpace ~
1002 \begin_inset LatexCommand ref
1003 reference "cha:Output-File-Formats"
1010 \begin_layout Standard
1011 Similar to fonts there are two types of image formats:
1014 \begin_layout Description
1016 images consist of pixel values, often in a compressed form.
1017 They are therefore not fully scalable and look pixeled in large zooms.
1018 Well-known bitmap image formats are
1019 \begin_inset Quotes eld
1022 Graphics Interchange Format
1023 \begin_inset Quotes erd
1026 (GIF, file extension
1027 \begin_inset Quotes eld
1035 \begin_inset Quotes erd
1039 \begin_inset LatexCommand index
1040 name "GIF|see{Image formats}"
1045 \begin_inset Quotes eld
1048 Portable Network Graphics
1049 \begin_inset Quotes erd
1052 (PNG, file extension
1053 \begin_inset Quotes eld
1061 \begin_inset Quotes erd
1065 \begin_inset LatexCommand index
1066 name "PNG|see{Image formats}"
1071 \begin_inset Quotes eld
1074 Joint Photographic Experts Group
1075 \begin_inset Quotes erd
1078 (JPG, file extension
1079 \begin_inset Quotes eld
1087 \begin_inset Quotes erd
1091 \begin_inset Quotes eld
1099 \begin_inset Quotes erd
1103 \begin_inset LatexCommand index
1104 name "JPG|see{Image formats}"
1111 \begin_layout Description
1113 images consist of vectors and can therefore be scaled to any size
1115 The scaling ability is necessary if you want to create presentations, because
1116 presentations are always scaled by the video projector.
1117 Scaling is also useful for online documents to let the user zoom into diagrams.
1120 ell-known scalable image formats are
1121 \begin_inset Quotes eld
1124 Scalable Vector Graphics
1125 \begin_inset Quotes erd
1128 (SVG, file extension
1129 \begin_inset Quotes eld
1137 \begin_inset Quotes erd
1141 \begin_inset LatexCommand index
1142 name "SVG|see{Image formats}"
1147 \begin_inset Quotes eld
1150 Encapsulated PostScript
1151 \begin_inset Quotes erd
1154 (EPS, file extension
1155 \begin_inset Quotes eld
1163 \begin_inset Quotes erd
1167 \begin_inset LatexCommand index
1168 name "EPS|see{Image formats}"
1173 \begin_inset Quotes eld
1176 Portable Document Format
1177 \begin_inset Quotes erd
1180 (PDF, file extension
1181 \begin_inset Quotes eld
1189 \begin_inset Quotes erd
1193 \begin_inset LatexCommand index
1199 \begin_inset Quotes eld
1203 \begin_inset Quotes erd
1206 (WMF, file extension
1207 \begin_inset Quotes eld
1215 \begin_inset Quotes erd
1219 \begin_inset LatexCommand index
1220 name "SVG|see{Image formats}"
1226 \begin_inset Quotes eld
1230 \begin_inset Quotes erd
1233 , because you can convert any bitmap image to a PDF or EPS-image and the
1234 result will still be a bitmap image.
1235 In this cases only a header with the image properties is added to the original
1240 \begin_layout Standard
1241 In the case of PDF, the original image is additionally compressed.
1247 The PDF-files generated by
1251 are for example bitmap images.
1254 \begin_layout Standard
1255 Normally it is not possible to convert a bitmap image into a scalable one,
1257 Only the image formats PDF and EPS can directly be embedded to PDF and
1258 PostScript output files, respectively.
1259 SVG and WMF-images are recalculated to bitmaps when the output file is
1260 generated because there is currently no adequate WMF/SVG
1261 \begin_inset Formula $\to$
1264 PDF/EPS converter available.
1267 \begin_layout Chapter
1269 \begin_inset LatexCommand label
1275 \begin_inset LatexCommand index
1283 \begin_layout Section
1285 \begin_inset LatexCommand index
1286 name "Table ! Introduction"
1293 \begin_layout Standard
1294 You can insert a table using either the toolbar button
1295 \begin_inset Graphics
1296 filename ../images/tabular-insert.png
1304 Insert\SpecialChar \menuseparator
1308 The toolbar button offers you a graphical selection: Move the mouse to
1309 set the column/row number of the table that should be created and then
1310 press a mouse button.
1311 When you use the menu to create a table, a dialog will appear, asking you
1312 for the number of rows and columns.
1314 The default table has lines around any
1315 cell and the first row appears separated from the rest of the table.
1316 This separation occurs due to a double line: The cells of the first row
1317 have a line below them and the cells of the second row have a line above
1319 Here is an example table:
1322 \begin_layout Standard
1324 \begin_inset Tabular
1325 <lyxtabular version="3" rows="4" columns="4">
1327 <column alignment="center" valignment="top" leftline="true" width="0">
1328 <column alignment="center" valignment="top" leftline="true" width="0">
1329 <column alignment="center" valignment="top" leftline="true" width="0">
1330 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1331 <row topline="true" bottomline="true">
1332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1335 \begin_layout Standard
1341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1344 \begin_layout Standard
1359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1362 \begin_layout Standard
1368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1371 \begin_layout Standard
1378 <row topline="true">
1379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1382 \begin_layout Standard
1397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1400 \begin_layout Standard
1406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1409 \begin_layout Standard
1415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1418 \begin_layout Standard
1425 <row topline="true">
1426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1429 \begin_layout Standard
1444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1447 \begin_layout Standard
1453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1456 \begin_layout Standard
1462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1465 \begin_layout Standard
1472 <row topline="true" bottomline="true">
1473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1476 \begin_layout Standard
1491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1494 \begin_layout Standard
1500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1503 \begin_layout Standard
1509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1512 \begin_layout Standard
1526 \begin_layout Section
1528 \begin_inset LatexCommand index
1529 name "Table ! Dialog"
1536 \begin_layout Standard
1537 You can alter a table by clicking on it with the right mouse button, which
1538 brings up the table dialog.
1539 Here you can adjust the settings of that cell and row/column respectively
1540 where the cursor is currently placed.
1541 Most of the dialog options also work on selections.
1542 This means if you select more cells, columns or rows, the action is done
1543 for the whole selection.
1544 Note that there is a difference between selecting the
1548 of the cell, and the cell itself.
1549 You can alter tables with the following tabs of the table dialog:
1552 \begin_layout Description
1558 Here you can set the horizontal alignment and the width of the current
1560 When you have set a width you can also adjust the vertical alignment of
1562 A given width will allow the cell to have line breaks and multiple paragraphs
1563 of text, see section\InsetSpace ~
1565 \begin_inset LatexCommand ref
1566 reference "sub:Multiple-Lines-in"
1571 If you set no width, the column is as wide as their widest cell content
1574 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1575 cell, see section\InsetSpace ~
1577 \begin_inset LatexCommand ref
1578 reference "sub:Multicolumns"
1584 The rotate check boxes rotates the current cell, a selection, or the whole
1585 table counter-clockwise by 90°.
1586 The rotation is not shown within LyX, only in the output.
1589 \begin_inset Note Greyedout
1592 \begin_layout Standard
1597 Not all DVI-viewers are able to display rotations.
1604 It is also possible to enter a LaTeX-argument which is needed for special
1605 table formattings, see section\InsetSpace ~
1607 \begin_inset LatexCommand ref
1608 reference "sub:Multicolumn-Calculations"
1613 \begin_inset LatexCommand ref
1614 reference "sec:Colored-Tables"
1621 \begin_layout Description
1626 In this tab you can add and delete border lines for the current row/column.
1633 will convert the table to a formal table as described in section\InsetSpace ~
1635 \begin_inset LatexCommand ref
1636 reference "sec:Formal-Tables"
1642 You can also add here space to table rows as decribed in section\InsetSpace ~
1644 \begin_inset LatexCommand ref
1645 reference "sub:Row-Spacing"
1652 \begin_layout Description
1657 This tab is to make a table a so called
1658 \begin_inset Quotes eld
1666 \begin_inset Quotes erd
1669 that can run over several pages.
1670 Section\InsetSpace ~
1672 \begin_inset LatexCommand ref
1673 reference "sec:Longtables"
1678 \begin_inset LatexCommand ref
1679 reference "sec:Special-Longtable-Issues"
1683 describe the longtable features in detail.
1686 \begin_layout Standard
1687 When the table toolbar is opened, you can move the cursor with the arrow
1688 keys from cell to cell and the property of the current cell will immediately
1689 be displayed in the dialog.
1692 \begin_layout Section
1694 \begin_inset LatexCommand index
1695 name "Table ! Toolbar"
1702 \begin_layout Standard
1703 The table toolbar is an alternative to the table dialog to be able to alter
1705 It should normally appear at the bottom of LyX's main window when the cursor
1707 You can alternatively switch it on to appear always, by right-clicking
1708 in LyX's main menu bar.
1711 \begin_layout Standard
1712 The toolbar has the following icons:
1715 \begin_layout Labeling
1716 \labelwidthstring 00.00.0000
1717 \begin_inset Graphics
1718 filename ../images/tabular-feature_append-row.png
1723 adds a row below the current cell or selection
1726 \begin_layout Labeling
1727 \labelwidthstring 00.00.0000
1728 \begin_inset Graphics
1729 filename ../images/tabular-feature_append-column.png
1734 adds a column right beside the current cell or selection
1737 \begin_layout Labeling
1738 \labelwidthstring 00.00.0000
1739 \begin_inset Graphics
1740 filename ../images/tabular-feature_delete-row.png
1745 deletes the current row or selection
1748 \begin_layout Labeling
1749 \labelwidthstring 00.00.0000
1750 \begin_inset Graphics
1751 filename ../images/tabular-feature_delete-column.png
1756 deletes the current column or selection
1759 \begin_layout Labeling
1760 \labelwidthstring 00.00.0000
1761 \begin_inset Graphics
1762 filename ../images/tabular-feature_toggle-line-top.png
1767 adds a line at the top of the current cell / row or of a selection
1770 \begin_layout Labeling
1771 \labelwidthstring 00.00.0000
1772 \begin_inset Graphics
1773 filename ../images/tabular-feature_toggle-line-bottom.png
1778 adds a line at the bottom of the current cell / row or of a selection
1781 \begin_layout Labeling
1782 \labelwidthstring 00.00.0000
1783 \begin_inset Graphics
1784 filename ../images/tabular-feature_toggle-line-left.png
1789 adds a line at the left side of the current cell / row or of a selection
1792 \begin_layout Labeling
1793 \labelwidthstring 00.00.0000
1794 \begin_inset Graphics
1795 filename ../images/tabular-feature_toggle-line-right.png
1800 adds a line at the right side of the current cell / row or of a selection
1803 \begin_layout Labeling
1804 \labelwidthstring 00.00.0000
1805 \begin_inset Graphics
1806 filename ../images/tabular-feature_set-all-lines.png
1811 adds lines around the current or selected cells - if the current cell no
1812 multicolumn this also affects the current row and column
1815 \begin_layout Labeling
1816 \labelwidthstring 00.00.0000
1817 \begin_inset Graphics
1818 filename ../images/tabular-feature_unset-all-lines.png
1823 deletes all lines of the current or selected cells - if the current cell
1824 no multicolumn this also affects the current row and column
1827 \begin_layout Labeling
1828 \labelwidthstring 00.00.0000
1829 \begin_inset Graphics
1830 filename ../images/tabular-feature_align-left.png
1835 left-aligns the content of the current cell / column
1838 \begin_layout Labeling
1839 \labelwidthstring 00.00.0000
1840 \begin_inset Graphics
1841 filename ../images/tabular-feature_align-center.png
1846 centers the content of the current cell / column horizontally
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Graphics
1852 filename ../images/tabular-feature_align-right.png
1857 right-aligns the content of the current cell / column
1860 \begin_layout Labeling
1861 \labelwidthstring 00.00.0000
1862 \begin_inset Graphics
1863 filename ../images/tabular-feature_valign-top.png
1868 aligns the content of the current cell vertically to the top
1871 \begin_layout Labeling
1872 \labelwidthstring 00.00.0000
1873 \begin_inset Graphics
1874 filename ../images/tabular-feature_valign-middle.png
1879 centers the content of the current cell vertically
1882 \begin_layout Labeling
1883 \labelwidthstring 00.00.0000
1884 \begin_inset Graphics
1885 filename ../images/tabular-feature_valign-bottom.png
1890 aligns the content of the current cell vertically to the bottom
1893 \begin_layout Labeling
1894 \labelwidthstring 00.00.0000
1895 \begin_inset Graphics
1896 filename ../images/tabular-feature_set-rotate-cell.png
1901 rotates the current cell or selection counter-clockwise by 90°
1904 \begin_layout Labeling
1905 \labelwidthstring 00.00.0000
1906 \begin_inset Graphics
1907 filename ../images/tabular-feature_set-rotate-tabular.png
1912 rotates the whole table counter-clockwise by 90°
1915 \begin_layout Labeling
1916 \labelwidthstring 00.00.0000
1917 \begin_inset Graphics
1918 filename ../images/tabular-feature_multicolumn.png
1923 sets the current cell or selection as a multicolumn
1926 \begin_layout Standard
1927 \begin_inset Note Greyedout
1930 \begin_layout Standard
1935 For the output the vertical alignment of the first cell in a row is used
1936 for all following cells in the row.
1944 \begin_layout Section
1946 \begin_inset LatexCommand index
1947 name "Table ! Edit Menu"
1954 \begin_layout Standard
1955 Additionally to the table dialog and toolbar, the menu
1957 Edit\SpecialChar \menuseparator
1960 allows you to add and delete border lines for the current row/column and
1961 to set the current selection as multicolumn.
1962 The menu is only available when the cursor is inside a table.
1965 \begin_layout Section
1967 \begin_inset LatexCommand label
1968 name "sec:Table-Floats"
1973 \begin_inset LatexCommand index
1974 name "Floats ! Tables"
1979 \begin_inset LatexCommand index
1980 name "Table ! Floats"
1987 \begin_layout Standard
1988 For general explanations about floats, have a look at section\InsetSpace ~
1990 \begin_inset LatexCommand ref
1991 reference "sec:FloatIntroduction"
1998 \begin_layout Standard
1999 \begin_inset Float table
2005 \begin_layout Standard
2006 \begin_inset Caption
2008 \begin_layout Standard
2009 \begin_inset LatexCommand label
2010 name "tab:a table float"
2022 \begin_layout Standard
2024 \begin_inset Tabular
2025 <lyxtabular version="3" rows="3" columns="3">
2027 <column alignment="center" valignment="top" leftline="true" width="0pt">
2028 <column alignment="center" valignment="top" leftline="true" width="0pt">
2029 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2030 <row topline="true" bottomline="true">
2031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2034 \begin_layout Standard
2049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2052 \begin_layout Standard
2067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2070 \begin_layout Standard
2086 <row topline="true">
2087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2090 \begin_layout Standard
2105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2108 \begin_layout Standard
2123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2126 \begin_layout Standard
2142 <row topline="true" bottomline="true">
2143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2146 \begin_layout Standard
2156 \begin_inset Formula $\int x^{2}dx$
2164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2167 \begin_layout Standard
2177 \begin_inset Formula $\left[\begin{array}{cc}
2179 c & d\end{array}\right]$
2187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2190 \begin_layout Standard
2200 \begin_inset Formula $1+1=2$
2221 \begin_layout Standard
2222 Table floats can be inserted using the menu
2224 Insert\SpecialChar \menuseparator
2225 Float\SpecialChar \menuseparator
2228 or the toolbar button
2229 \begin_inset Graphics
2230 filename ../images/float-insert_table.png
2239 \begin_layout Standard
2240 The float appears as a collapsible box with a caption that has the label
2242 \begin_inset Quotes eld
2247 \begin_inset Quotes erd
2250 (# is the actual table number).
2251 You can insert tables to the float above or below the caption.
2254 \begin_layout Standard
2257 \begin_inset LatexCommand ref
2258 reference "tab:a table float"
2262 is an example table within a table float.
2265 \begin_layout Standard
2266 Having the caption above the table is the common rule that is unfortunately
2267 not supported in LaTeX's standard classes.
2268 That means if you are using the document classes
2284 there will be no space between the caption and the table.
2285 To insert the needed space, add the following option to the load command
2286 of the LaTeX-package
2291 \begin_inset LatexCommand index
2292 name "LaTeX-packages ! caption"
2296 in your document preamble
2300 \begin_layout Standard
2301 For more information have a look at section\InsetSpace ~
2303 \begin_inset LatexCommand ref
2304 reference "sec:Caption-Placement"
2316 \begin_layout Standard
2322 \begin_layout Standard
2327 , which is described in section\InsetSpace ~
2329 \begin_inset LatexCommand ref
2330 reference "sec:Caption-Formatting"
2334 , is used to adjust the caption format.
2337 \begin_layout Standard
2338 \begin_inset LatexCommand index
2339 name "References ! to Tables"
2343 Tables can be cross-referenced in the text by referencing their label.
2344 To do this insert a label in the caption using the menu
2346 Insert\SpecialChar \menuseparator
2349 or the toolbar button
2350 \begin_inset Graphics
2351 filename ../images/label-insert.png
2358 You can now refer to the label using the menu
2360 Insert\SpecialChar \menuseparator
2364 or the toolbar button
2365 \begin_inset Graphics
2366 filename ../images/dialog-show-new-inset_ref.png
2374 Referencing is explained in detail in section\InsetSpace ~
2376 \begin_inset LatexCommand ref
2377 reference "sec:Referencing-Floats"
2384 \begin_layout Section
2386 \begin_inset LatexCommand label
2387 name "sec:Longtables"
2392 \begin_inset LatexCommand index
2398 \begin_inset LatexCommand index
2399 name "Table ! Longtables"
2406 \begin_layout Standard
2407 If the table is too long to fit on one page, you can use the option
2417 of the table dialog to split the table automatically over more pages.
2418 Doing this enables some check boxes and you can now define:
2421 \begin_layout Description
2426 : The current row and all rows above, that don't have any special options
2427 defined, are defined to be the header rows of all pages of the longtable;
2428 except for the first page, if
2434 This therefore called the main header.
2437 \begin_layout Description
2443 : The current row and all rows above, that don't have any special options
2444 defined, are defined to be the header rows of the first page of the longtable.
2447 \begin_layout Description
2452 : The current row and all rows below, that don't have any special options
2453 defined, are defined to be the footer rows of all pages of the longtable;
2454 except for the last page, if
2462 \begin_layout Description
2468 : The current row and all rows below, that don't have any special options
2469 defined, are defined to be the footer rows of the last page of the longtable.
2472 \begin_layout Standard
2473 You can also specify a row where the table is splitted.
2474 If you set more than one option in the same table row, you should be aware
2475 of the fact that only the first one is used in the given table row.
2476 The others will then be defined as
2481 In this context, first means first in this order:
2488 header, Footer, Last\InsetSpace ~
2492 See the following longtable to see how it works:
2495 \begin_layout Standard
2497 \begin_inset Tabular
2498 <lyxtabular version="3" rows="69" columns="3">
2499 <features islongtable="true">
2500 <column alignment="left" valignment="top" leftline="true" width="0cm">
2501 <column alignment="left" valignment="top" width="0pt">
2502 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2503 <row topline="true" bottomline="true" endfirsthead="true">
2504 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2507 \begin_layout Standard
2510 Example Phone List (ignore the names)
2515 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2518 \begin_layout Standard
2524 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2527 \begin_layout Standard
2534 <row topline="true" bottomline="true" endfirsthead="true">
2535 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2538 \begin_layout Standard
2546 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2549 \begin_layout Standard
2555 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2558 \begin_layout Standard
2567 <row topline="true" bottomline="true" endhead="true">
2568 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2571 \begin_layout Standard
2579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2582 \begin_layout Standard
2588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2591 \begin_layout Standard
2598 <row topline="true" bottomline="true" endhead="true">
2599 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2602 \begin_layout Standard
2610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2613 \begin_layout Standard
2619 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2622 \begin_layout Standard
2631 <row topline="true" bottomline="true" endfoot="true">
2632 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2635 \begin_layout Standard
2636 continued on next page
2641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2644 \begin_layout Standard
2650 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2653 \begin_layout Standard
2661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2664 \begin_layout Standard
2672 <cell alignment="center" valignment="top" topline="true" usebox="none">
2675 \begin_layout Standard
2681 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2684 \begin_layout Standard
2692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2695 \begin_layout Standard
2703 <cell alignment="center" valignment="top" topline="true" usebox="none">
2706 \begin_layout Standard
2712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2715 \begin_layout Standard
2723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2726 \begin_layout Standard
2734 <cell alignment="center" valignment="top" topline="true" usebox="none">
2737 \begin_layout Standard
2743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2746 \begin_layout Standard
2754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2757 \begin_layout Standard
2765 <cell alignment="center" valignment="top" topline="true" usebox="none">
2768 \begin_layout Standard
2774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2777 \begin_layout Standard
2785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2788 \begin_layout Standard
2796 <cell alignment="center" valignment="top" topline="true" usebox="none">
2799 \begin_layout Standard
2805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2808 \begin_layout Standard
2816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2819 \begin_layout Standard
2827 <cell alignment="center" valignment="top" topline="true" usebox="none">
2830 \begin_layout Standard
2836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2839 \begin_layout Standard
2847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2850 \begin_layout Standard
2858 <cell alignment="center" valignment="top" topline="true" usebox="none">
2861 \begin_layout Standard
2867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2870 \begin_layout Standard
2878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2881 \begin_layout Standard
2889 <cell alignment="center" valignment="top" topline="true" usebox="none">
2892 \begin_layout Standard
2898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2901 \begin_layout Standard
2909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2912 \begin_layout Standard
2920 <cell alignment="center" valignment="top" topline="true" usebox="none">
2923 \begin_layout Standard
2929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2932 \begin_layout Standard
2940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2943 \begin_layout Standard
2951 <cell alignment="center" valignment="top" topline="true" usebox="none">
2954 \begin_layout Standard
2960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2963 \begin_layout Standard
2971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2974 \begin_layout Standard
2982 <cell alignment="center" valignment="top" topline="true" usebox="none">
2985 \begin_layout Standard
2991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2994 \begin_layout Standard
3002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3005 \begin_layout Standard
3013 <cell alignment="center" valignment="top" topline="true" usebox="none">
3016 \begin_layout Standard
3022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3025 \begin_layout Standard
3033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3036 \begin_layout Standard
3044 <cell alignment="center" valignment="top" topline="true" usebox="none">
3047 \begin_layout Standard
3053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3056 \begin_layout Standard
3064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3067 \begin_layout Standard
3075 <cell alignment="center" valignment="top" topline="true" usebox="none">
3078 \begin_layout Standard
3084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3087 \begin_layout Standard
3095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3098 \begin_layout Standard
3106 <cell alignment="center" valignment="top" topline="true" usebox="none">
3109 \begin_layout Standard
3115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3118 \begin_layout Standard
3126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3129 \begin_layout Standard
3137 <cell alignment="center" valignment="top" topline="true" usebox="none">
3140 \begin_layout Standard
3146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3149 \begin_layout Standard
3157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3160 \begin_layout Standard
3168 <cell alignment="center" valignment="top" topline="true" usebox="none">
3171 \begin_layout Standard
3177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3180 \begin_layout Standard
3188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3191 \begin_layout Standard
3199 <cell alignment="center" valignment="top" topline="true" usebox="none">
3202 \begin_layout Standard
3208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3211 \begin_layout Standard
3219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3222 \begin_layout Standard
3230 <cell alignment="center" valignment="top" topline="true" usebox="none">
3233 \begin_layout Standard
3239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3242 \begin_layout Standard
3250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3253 \begin_layout Standard
3261 <cell alignment="center" valignment="top" topline="true" usebox="none">
3264 \begin_layout Standard
3270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3273 \begin_layout Standard
3281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3284 \begin_layout Standard
3292 <cell alignment="center" valignment="top" topline="true" usebox="none">
3295 \begin_layout Standard
3301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3304 \begin_layout Standard
3312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3315 \begin_layout Standard
3323 <cell alignment="center" valignment="top" topline="true" usebox="none">
3326 \begin_layout Standard
3332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3335 \begin_layout Standard
3343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3346 \begin_layout Standard
3354 <cell alignment="center" valignment="top" topline="true" usebox="none">
3357 \begin_layout Standard
3363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3366 \begin_layout Standard
3374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3377 \begin_layout Standard
3385 <cell alignment="center" valignment="top" topline="true" usebox="none">
3388 \begin_layout Standard
3394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3397 \begin_layout Standard
3405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3408 \begin_layout Standard
3416 <cell alignment="center" valignment="top" topline="true" usebox="none">
3419 \begin_layout Standard
3425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3428 \begin_layout Standard
3436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3439 \begin_layout Standard
3447 <cell alignment="center" valignment="top" topline="true" usebox="none">
3450 \begin_layout Standard
3456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3459 \begin_layout Standard
3467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3470 \begin_layout Standard
3478 <cell alignment="center" valignment="top" topline="true" usebox="none">
3481 \begin_layout Standard
3487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3490 \begin_layout Standard
3498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3501 \begin_layout Standard
3509 <cell alignment="center" valignment="top" topline="true" usebox="none">
3512 \begin_layout Standard
3518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3521 \begin_layout Standard
3529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3532 \begin_layout Standard
3540 <cell alignment="center" valignment="top" topline="true" usebox="none">
3543 \begin_layout Standard
3549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3552 \begin_layout Standard
3560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3563 \begin_layout Standard
3571 <cell alignment="center" valignment="top" topline="true" usebox="none">
3574 \begin_layout Standard
3580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3583 \begin_layout Standard
3590 <row bottomline="true">
3591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3594 \begin_layout Standard
3602 <cell alignment="center" valignment="top" topline="true" usebox="none">
3605 \begin_layout Standard
3611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3614 \begin_layout Standard
3621 <row bottomline="true">
3622 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3625 \begin_layout Standard
3631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3634 \begin_layout Standard
3640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3643 \begin_layout Standard
3651 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3654 \begin_layout Standard
3662 <cell alignment="center" valignment="top" topline="true" usebox="none">
3665 \begin_layout Standard
3671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3674 \begin_layout Standard
3682 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3685 \begin_layout Standard
3693 <cell alignment="center" valignment="top" topline="true" usebox="none">
3696 \begin_layout Standard
3702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3705 \begin_layout Standard
3713 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3716 \begin_layout Standard
3724 <cell alignment="center" valignment="top" topline="true" usebox="none">
3727 \begin_layout Standard
3733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3736 \begin_layout Standard
3744 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3747 \begin_layout Standard
3755 <cell alignment="center" valignment="top" topline="true" usebox="none">
3758 \begin_layout Standard
3764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3767 \begin_layout Standard
3775 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3778 \begin_layout Standard
3786 <cell alignment="center" valignment="top" topline="true" usebox="none">
3789 \begin_layout Standard
3795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3798 \begin_layout Standard
3806 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3809 \begin_layout Standard
3817 <cell alignment="center" valignment="top" topline="true" usebox="none">
3820 \begin_layout Standard
3826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3829 \begin_layout Standard
3837 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3840 \begin_layout Standard
3848 <cell alignment="center" valignment="top" topline="true" usebox="none">
3851 \begin_layout Standard
3857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3860 \begin_layout Standard
3868 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3871 \begin_layout Standard
3879 <cell alignment="center" valignment="top" topline="true" usebox="none">
3882 \begin_layout Standard
3888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3891 \begin_layout Standard
3899 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3902 \begin_layout Standard
3910 <cell alignment="center" valignment="top" topline="true" usebox="none">
3913 \begin_layout Standard
3919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3922 \begin_layout Standard
3930 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3933 \begin_layout Standard
3941 <cell alignment="center" valignment="top" topline="true" usebox="none">
3944 \begin_layout Standard
3950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3953 \begin_layout Standard
3961 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3964 \begin_layout Standard
3972 <cell alignment="center" valignment="top" topline="true" usebox="none">
3975 \begin_layout Standard
3981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3984 \begin_layout Standard
3992 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3995 \begin_layout Standard
4003 <cell alignment="center" valignment="top" topline="true" usebox="none">
4006 \begin_layout Standard
4012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4015 \begin_layout Standard
4023 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4026 \begin_layout Standard
4034 <cell alignment="center" valignment="top" topline="true" usebox="none">
4037 \begin_layout Standard
4043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4046 \begin_layout Standard
4054 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4057 \begin_layout Standard
4065 <cell alignment="center" valignment="top" topline="true" usebox="none">
4068 \begin_layout Standard
4074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4077 \begin_layout Standard
4085 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4088 \begin_layout Standard
4096 <cell alignment="center" valignment="top" topline="true" usebox="none">
4099 \begin_layout Standard
4105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4108 \begin_layout Standard
4116 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4119 \begin_layout Standard
4127 <cell alignment="center" valignment="top" topline="true" usebox="none">
4130 \begin_layout Standard
4136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4139 \begin_layout Standard
4147 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4150 \begin_layout Standard
4158 <cell alignment="center" valignment="top" topline="true" usebox="none">
4161 \begin_layout Standard
4167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4170 \begin_layout Standard
4178 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4181 \begin_layout Standard
4189 <cell alignment="center" valignment="top" topline="true" usebox="none">
4192 \begin_layout Standard
4198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4201 \begin_layout Standard
4209 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4212 \begin_layout Standard
4220 <cell alignment="center" valignment="top" topline="true" usebox="none">
4223 \begin_layout Standard
4229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4232 \begin_layout Standard
4240 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4243 \begin_layout Standard
4251 <cell alignment="center" valignment="top" topline="true" usebox="none">
4254 \begin_layout Standard
4260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4263 \begin_layout Standard
4271 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4274 \begin_layout Standard
4282 <cell alignment="center" valignment="top" topline="true" usebox="none">
4285 \begin_layout Standard
4291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4294 \begin_layout Standard
4302 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4305 \begin_layout Standard
4313 <cell alignment="center" valignment="top" topline="true" usebox="none">
4316 \begin_layout Standard
4322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4325 \begin_layout Standard
4333 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4336 \begin_layout Standard
4344 <cell alignment="center" valignment="top" topline="true" usebox="none">
4347 \begin_layout Standard
4353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4356 \begin_layout Standard
4364 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4367 \begin_layout Standard
4375 <cell alignment="center" valignment="top" topline="true" usebox="none">
4378 \begin_layout Standard
4384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4387 \begin_layout Standard
4395 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4398 \begin_layout Standard
4406 <cell alignment="center" valignment="top" topline="true" usebox="none">
4409 \begin_layout Standard
4415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4418 \begin_layout Standard
4426 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4429 \begin_layout Standard
4437 <cell alignment="center" valignment="top" topline="true" usebox="none">
4440 \begin_layout Standard
4446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4449 \begin_layout Standard
4457 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4460 \begin_layout Standard
4468 <cell alignment="center" valignment="top" topline="true" usebox="none">
4471 \begin_layout Standard
4477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4480 \begin_layout Standard
4488 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4491 \begin_layout Standard
4499 <cell alignment="center" valignment="top" topline="true" usebox="none">
4502 \begin_layout Standard
4508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4511 \begin_layout Standard
4519 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4522 \begin_layout Standard
4530 <cell alignment="center" valignment="top" topline="true" usebox="none">
4533 \begin_layout Standard
4539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4542 \begin_layout Standard
4550 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4553 \begin_layout Standard
4561 <cell alignment="center" valignment="top" topline="true" usebox="none">
4564 \begin_layout Standard
4570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4573 \begin_layout Standard
4580 <row bottomline="true">
4581 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4584 \begin_layout Standard
4592 <cell alignment="center" valignment="top" topline="true" usebox="none">
4595 \begin_layout Standard
4601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4604 \begin_layout Standard
4611 <row bottomline="true" endlastfoot="true">
4612 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4615 \begin_layout Standard
4621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4624 \begin_layout Standard
4630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4633 \begin_layout Standard
4648 \begin_layout Standard
4652 addtocounter{table}{-1}
4658 \begin_inset Note Note
4661 \begin_layout Standard
4662 See greyed-out note in section\InsetSpace ~
4664 \begin_inset LatexCommand ref
4665 reference "sub:Longtable-Captions"
4669 for an explanation of this command.
4677 \begin_layout Subsection
4678 Footnotes in Longtables
4679 \begin_inset LatexCommand label
4680 name "sub:Footnotes-in-Longtables"
4685 \begin_inset LatexCommand index
4686 name "Longtables ! Footnotes"
4693 \begin_layout Standard
4694 Footnotes can be inserted to every longtable cell.
4695 They appear at the bottom of the page where the table cell with the footnote
4699 \begin_inset LatexCommand ref
4700 reference "tab:DiffCaptions"
4704 has for example a footnote.
4707 \begin_layout Subsection
4709 \begin_inset LatexCommand index
4710 name "Longtables ! Alignment"
4717 \begin_layout Standard
4718 Longtables are by default centered.
4719 In contrary to the alignment of the table columns and row, the table alignment
4720 can currently not be changed in the table dialog.
4721 To change the alignment of longtables you have to change the value of the
4734 by inserting this line as TeX-Code before the corresponding longtable:
4737 \begin_layout Standard
4747 \begin_layout Standard
4748 Where the value can have any of the units listed in Table\InsetSpace ~
4750 \begin_inset LatexCommand ref
4751 reference "tab:Units"
4762 controls the horizontal distance from the left page border to the longtable,
4769 the distance from the right side.
4770 The default value for both lengths is
4776 , which is in this case the same as an horizontal fill in LyX.
4779 \begin_layout Standard
4780 The following longtable was left-aligned by setting
4786 to 0\InsetSpace \thinspace{}
4791 \begin_layout Standard
4805 \begin_layout Standard
4806 \begin_inset Tabular
4807 <lyxtabular version="3" rows="5" columns="5">
4808 <features islongtable="true">
4809 <column alignment="center" valignment="top" leftline="true" width="0">
4810 <column alignment="center" valignment="top" leftline="true" width="0">
4811 <column alignment="center" valignment="top" leftline="true" width="0">
4812 <column alignment="center" valignment="top" leftline="true" width="0">
4813 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4814 <row topline="true">
4815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4818 \begin_layout Standard
4824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4827 \begin_layout Standard
4833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4836 \begin_layout Standard
4842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4845 \begin_layout Standard
4851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4854 \begin_layout Standard
4861 <row topline="true">
4862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4865 \begin_layout Standard
4871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4874 \begin_layout Standard
4880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4883 \begin_layout Standard
4889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4892 \begin_layout Standard
4898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4901 \begin_layout Standard
4908 <row topline="true">
4909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4912 \begin_layout Standard
4918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4921 \begin_layout Standard
4927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4930 \begin_layout Standard
4936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4939 \begin_layout Standard
4945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4948 \begin_layout Standard
4955 <row topline="true">
4956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4959 \begin_layout Standard
4965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4968 \begin_layout Standard
4974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4977 \begin_layout Standard
4983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4986 \begin_layout Standard
4992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4995 \begin_layout Standard
5002 <row topline="true" bottomline="true">
5003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5006 \begin_layout Standard
5012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5015 \begin_layout Standard
5021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5024 \begin_layout Standard
5030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5033 \begin_layout Standard
5039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5042 \begin_layout Standard
5057 \begin_layout Standard
5073 \begin_layout Subsection
5075 \begin_inset LatexCommand index
5076 name "Longtables ! Captions"
5081 \begin_inset LatexCommand label
5082 name "sub:Longtable-Captions"
5089 \begin_layout Standard
5090 A longtable cannot be put into a table float because floats can only be
5091 on one page but the caption environment of floats can also be used for
5095 \begin_layout Standard
5096 As LyX does not yet fully support captions in longtables, a hack is needed
5100 \begin_layout Enumerate
5106 \begin_layout Enumerate
5107 Mark the first row and disable its upper line.
5110 \begin_layout Enumerate
5111 Insert a caption via the menu
5113 Insert\SpecialChar \menuseparator
5116 into the first table cell.
5118 You can also add a short title for the caption.
5121 \begin_layout Enumerate
5123 \begin_inset Quotes eld
5135 \begin_inset Quotes erd
5138 as TeX-Code behind the caption.
5141 \begin_layout Standard
5142 A short title that will appear in the LOT instead of the full title.
5151 behind the caption omits the vertical lines between the following cells
5153 The first table row is now only a dummy row for the caption, the actual
5154 table starts with the second row.
5157 \begin_layout Standard
5158 Here is a short longtable to see how it works:
5161 \begin_layout Standard
5162 \begin_inset Tabular
5163 <lyxtabular version="3" rows="6" columns="5">
5164 <features islongtable="true">
5165 <column alignment="center" valignment="top" leftline="true" width="0">
5166 <column alignment="center" valignment="top" leftline="true" width="0">
5167 <column alignment="center" valignment="top" leftline="true" width="0">
5168 <column alignment="center" valignment="top" leftline="true" width="0">
5169 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5174 \begin_layout Standard
5175 \begin_inset Caption
5177 \begin_layout Standard
5178 Longtable with caption
5182 \begin_layout Standard
5197 \begin_layout Standard
5213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5216 \begin_layout Standard
5222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5225 \begin_layout Standard
5231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5234 \begin_layout Standard
5240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5243 \begin_layout Standard
5250 <row topline="true">
5251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5254 \begin_layout Standard
5260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5263 \begin_layout Standard
5269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5272 \begin_layout Standard
5278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5281 \begin_layout Standard
5287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5290 \begin_layout Standard
5297 <row topline="true">
5298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5301 \begin_layout Standard
5307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5310 \begin_layout Standard
5316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5319 \begin_layout Standard
5325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5328 \begin_layout Standard
5334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5337 \begin_layout Standard
5344 <row topline="true">
5345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5348 \begin_layout Standard
5354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5357 \begin_layout Standard
5363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5366 \begin_layout Standard
5372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5375 \begin_layout Standard
5381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5384 \begin_layout Standard
5391 <row topline="true">
5392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5395 \begin_layout Standard
5401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5404 \begin_layout Standard
5410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5413 \begin_layout Standard
5419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5422 \begin_layout Standard
5428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5431 \begin_layout Standard
5438 <row topline="true" bottomline="true">
5439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5442 \begin_layout Standard
5448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5451 \begin_layout Standard
5457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5460 \begin_layout Standard
5466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5469 \begin_layout Standard
5475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5478 \begin_layout Standard
5492 \begin_layout Standard
5493 \begin_inset VSpace medskip
5497 \begin_inset Note Greyedout
5500 \begin_layout Standard
5505 The table number is increased for every longtable, also if you didn't set
5507 For this reason you could have the case that e.g.
5509 2.4 follows on Table\InsetSpace ~
5510 2.1 in the list of tables if there are two longtables
5512 To avoid this you can add the following command in TeX-Code behind every
5513 longtable without a caption:
5516 \begin_layout Standard
5521 addtocounter{table}{-1}
5529 \begin_layout Standard
5530 \begin_inset Note Greyedout
5533 \begin_layout Standard
5538 If you are using the LaTeX-package
5543 \begin_inset LatexCommand index
5544 name "LaTeX-packages ! hyperref"
5548 to link cross-references, the link to a longtable caption will always point
5549 to the beginning of the document.
5557 \begin_layout Standard
5563 \begin_layout Subsubsection
5564 References to Longtables
5565 \begin_inset LatexCommand index
5566 name "Longtables ! References"
5573 \begin_layout Standard
5574 \begin_inset Tabular
5575 <lyxtabular version="3" rows="6" columns="5">
5576 <features islongtable="true">
5577 <column alignment="center" valignment="top" leftline="true" width="0">
5578 <column alignment="center" valignment="top" leftline="true" width="0">
5579 <column alignment="center" valignment="top" leftline="true" width="0">
5580 <column alignment="center" valignment="top" leftline="true" width="0">
5581 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5586 \begin_layout Standard
5587 \begin_inset Caption
5589 \begin_layout Standard
5590 Referenced longtable
5591 \begin_inset LatexCommand label
5592 name "tab:RefExample"
5605 \begin_layout Standard
5621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5624 \begin_layout Standard
5630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5633 \begin_layout Standard
5639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5642 \begin_layout Standard
5648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5651 \begin_layout Standard
5658 <row topline="true">
5659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5662 \begin_layout Standard
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5671 \begin_layout Standard
5677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5680 \begin_layout Standard
5686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5689 \begin_layout Standard
5695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5698 \begin_layout Standard
5705 <row topline="true">
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5709 \begin_layout Standard
5715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5718 \begin_layout Standard
5724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5727 \begin_layout Standard
5733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5736 \begin_layout Standard
5742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5745 \begin_layout Standard
5752 <row topline="true">
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5756 \begin_layout Standard
5762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5765 \begin_layout Standard
5771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5774 \begin_layout Standard
5780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5783 \begin_layout Standard
5789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5792 \begin_layout Standard
5799 <row topline="true">
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5803 \begin_layout Standard
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5812 \begin_layout Standard
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5821 \begin_layout Standard
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5830 \begin_layout Standard
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5839 \begin_layout Standard
5846 <row topline="true" bottomline="true">
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Standard
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5859 \begin_layout Standard
5865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5868 \begin_layout Standard
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5877 \begin_layout Standard
5883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5886 \begin_layout Standard
5900 \begin_layout Standard
5901 To reference a longtable, insert a label into the caption.
5902 Note that you have to add the label prefix
5903 \begin_inset Quotes eld
5911 \begin_inset Quotes eld
5914 manually in the label field.
5917 \begin_layout Standard
5918 This is a reference to Table\InsetSpace ~
5920 \begin_inset LatexCommand ref
5921 reference "tab:RefExample"
5928 \begin_layout Standard
5929 The caption layout can be set together with all other caption of your document
5930 using the LaTeX-package
5935 \begin_inset LatexCommand index
5936 name "LaTeX-packages ! caption"
5940 , see section\InsetSpace ~
5942 \begin_inset LatexCommand ref
5943 reference "sec:Caption-Formatting"
5950 \begin_layout Subsubsection
5952 \begin_inset LatexCommand index
5953 name "Longtables ! Caption Width"
5960 \begin_layout Standard
5961 The maximal width of of caption lines is defined by the length
5968 Its default value is 4\InsetSpace \thinspace{}
5970 To change it add the following command to your document preamble or as
5971 TeX-Code into your document before the longtable that should be affected
5974 \begin_layout Standard
5984 \begin_layout Standard
5985 where the width could have one of the units listed in appendix\InsetSpace ~
5987 \begin_inset LatexCommand ref
5988 reference "cha:Units-available-in"
5995 \begin_layout Standard
5996 The following tables show the difference:
5999 \begin_layout Standard
6000 \begin_inset Tabular
6001 <lyxtabular version="3" rows="6" columns="5">
6002 <features islongtable="true">
6003 <column alignment="center" valignment="top" leftline="true" width="0">
6004 <column alignment="center" valignment="top" leftline="true" width="0">
6005 <column alignment="center" valignment="top" leftline="true" width="0">
6006 <column alignment="center" valignment="top" leftline="true" width="0">
6007 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6012 \begin_layout Standard
6013 \begin_inset Caption
6015 \begin_layout Standard
6016 long full title with default width long full title with default width long
6017 full title with default width
6021 \begin_layout Standard
6022 caption with default width
6036 \begin_layout Standard
6052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6055 \begin_layout Standard
6061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6064 \begin_layout Standard
6070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6073 \begin_layout Standard
6079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6082 \begin_layout Standard
6089 <row topline="true">
6090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6093 \begin_layout Standard
6099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6102 \begin_layout Standard
6108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6111 \begin_layout Standard
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Standard
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Standard
6136 <row topline="true">
6137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6140 \begin_layout Standard
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Standard
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6158 \begin_layout Standard
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Standard
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6176 \begin_layout Standard
6183 <row topline="true">
6184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6187 \begin_layout Standard
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Standard
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_layout Standard
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Standard
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6223 \begin_layout Standard
6230 <row topline="true">
6231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6234 \begin_layout Standard
6240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6243 \begin_layout Standard
6249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6252 \begin_layout Standard
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6261 \begin_layout Standard
6267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6270 \begin_layout Standard
6277 <row topline="true" bottomline="true">
6278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6281 \begin_layout Standard
6287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6290 \begin_layout Standard
6296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6299 \begin_layout Standard
6305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6308 \begin_layout Standard
6314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6317 \begin_layout Standard
6331 \begin_layout Standard
6335 \begin_layout Standard
6347 \begin_inset Tabular
6348 <lyxtabular version="3" rows="6" columns="5">
6349 <features islongtable="true">
6350 <column alignment="center" valignment="top" leftline="true" width="0">
6351 <column alignment="center" valignment="top" leftline="true" width="0">
6352 <column alignment="center" valignment="top" leftline="true" width="0">
6353 <column alignment="center" valignment="top" leftline="true" width="0">
6354 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6359 \begin_layout Standard
6360 \begin_inset Caption
6362 \begin_layout Standard
6363 long full title with width set to 5\InsetSpace \thinspace{}
6364 cm long full title with width set to
6365 5\InsetSpace \thinspace{}
6366 cm long full title with width set to 5\InsetSpace \thinspace{}
6371 \begin_layout Standard
6372 caption with width\InsetSpace \thinspace{}
6373 =\InsetSpace \thinspace{}
6374 5\InsetSpace \thinspace{}
6389 \begin_layout Standard
6405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6408 \begin_layout Standard
6414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6417 \begin_layout Standard
6423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6426 \begin_layout Standard
6432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6435 \begin_layout Standard
6442 <row topline="true">
6443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6446 \begin_layout Standard
6452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6455 \begin_layout Standard
6461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6464 \begin_layout Standard
6470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6473 \begin_layout Standard
6479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6482 \begin_layout Standard
6489 <row topline="true">
6490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6493 \begin_layout Standard
6499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6502 \begin_layout Standard
6508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6511 \begin_layout Standard
6517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6520 \begin_layout Standard
6526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6529 \begin_layout Standard
6536 <row topline="true">
6537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6540 \begin_layout Standard
6546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6549 \begin_layout Standard
6555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6558 \begin_layout Standard
6564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6567 \begin_layout Standard
6573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6576 \begin_layout Standard
6583 <row topline="true">
6584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6587 \begin_layout Standard
6593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6596 \begin_layout Standard
6602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6605 \begin_layout Standard
6611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6614 \begin_layout Standard
6620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6623 \begin_layout Standard
6630 <row topline="true" bottomline="true">
6631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6634 \begin_layout Standard
6640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6643 \begin_layout Standard
6649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6652 \begin_layout Standard
6658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6661 \begin_layout Standard
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6670 \begin_layout Standard
6684 \begin_layout Standard
6688 \begin_layout Standard
6702 \begin_layout Standard
6703 \begin_inset Note Greyedout
6706 \begin_layout Standard
6711 When the LaTeX-package
6716 \begin_inset LatexCommand index
6717 name "LaTeX-packages ! caption"
6721 is used, as in this document, the full page width is used for the caption
6722 when you use the default value of 4\InsetSpace \thinspace{}
6730 To get in this case exactly a 4\InsetSpace \thinspace{}
6731 in wide caption, you can either use a value
6732 slightly different from 4.0\InsetSpace \thinspace{}
6734 3.99\InsetSpace \thinspace{}
6735 in, or the LaTeX-command
6739 captionsetup{width=value}
6741 that is provided by the
6753 \begin_layout Subsubsection
6754 Different Captions for Table Pages
6755 \begin_inset LatexCommand index
6756 name "Longtables ! Different Captions for Pages"
6763 \begin_layout Standard
6764 When the other captions should differ from the one of the first table page,
6765 insert a caption with a non-empty short title in a dummy caption row marked
6767 The caption used for the other table pages is inserted as caption without
6768 a short title in a dummy caption row that is marked as main header.
6769 When this caption shouldn't include the table number, use the command
6772 \begin_layout Standard
6777 caption*{caption text}
6780 \begin_layout Standard
6781 instead of LyX's caption box.
6782 The label to reference the table is inserted into the caption of the first
6786 \begin_inset LatexCommand ref
6787 reference "tab:DiffCaptions"
6791 is an example for a longtable with different heading where the second caption
6792 doesn't include the table number.
6795 \begin_layout Standard
6797 \begin_inset Tabular
6798 <lyxtabular version="3" rows="60" columns="3">
6799 <features islongtable="true">
6800 <column alignment="left" valignment="top" leftline="true" width="0cm">
6801 <column alignment="left" valignment="top" rightline="true" width="0pt">
6802 <column alignment="right" valignment="top" rightline="true" width="0pt">
6803 <row endfirsthead="true">
6804 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6807 \begin_layout Standard
6808 \begin_inset Caption
6810 \begin_layout Standard
6812 \begin_inset LatexCommand label
6813 name "tab:DiffCaptions"
6821 \begin_layout Standard
6836 \begin_layout Standard
6852 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6855 \begin_layout Standard
6861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6864 \begin_layout Standard
6871 <row topline="true" bottomline="true" endfirsthead="true">
6872 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6875 \begin_layout Standard
6878 Example Phone List (ignore the names)
6883 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6886 \begin_layout Standard
6892 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6895 \begin_layout Standard
6902 <row topline="true" bottomline="true" endfirsthead="true">
6903 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6906 \begin_layout Standard
6914 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6917 \begin_layout Standard
6923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6926 \begin_layout Standard
6935 <row bottomline="true" endhead="true">
6936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6939 \begin_layout Standard
6943 \begin_layout Standard
6947 caption*{Continued Example Phone List}
6961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6964 \begin_layout Standard
6970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6973 \begin_layout Standard
6980 <row topline="true" bottomline="true" endhead="true">
6981 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6984 \begin_layout Standard
6992 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6995 \begin_layout Standard
7001 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7004 \begin_layout Standard
7011 <row topline="true" bottomline="true" endhead="true">
7012 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7015 \begin_layout Standard
7023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7026 \begin_layout Standard
7032 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7035 \begin_layout Standard
7044 <row topline="true" bottomline="true" endfoot="true">
7045 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
7048 \begin_layout Standard
7049 continued on next page
7054 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7057 \begin_layout Standard
7063 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7066 \begin_layout Standard
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Standard
7085 <cell alignment="center" valignment="top" topline="true" usebox="none">
7088 \begin_layout Standard
7094 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7097 \begin_layout Standard
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Standard
7116 <cell alignment="center" valignment="top" topline="true" usebox="none">
7119 \begin_layout Standard
7125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7128 \begin_layout Standard
7136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7139 \begin_layout Standard
7147 <cell alignment="center" valignment="top" topline="true" usebox="none">
7150 \begin_layout Standard
7156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7159 \begin_layout Standard
7167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7170 \begin_layout Standard
7178 <cell alignment="center" valignment="top" topline="true" usebox="none">
7181 \begin_layout Standard
7187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7190 \begin_layout Standard
7198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7201 \begin_layout Standard
7209 <cell alignment="center" valignment="top" topline="true" usebox="none">
7212 \begin_layout Standard
7218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7221 \begin_layout Standard
7229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7232 \begin_layout Standard
7240 <cell alignment="center" valignment="top" topline="true" usebox="none">
7243 \begin_layout Standard
7249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7252 \begin_layout Standard
7260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7263 \begin_layout Standard
7271 <cell alignment="center" valignment="top" topline="true" usebox="none">
7274 \begin_layout Standard
7280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7283 \begin_layout Standard
7291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7294 \begin_layout Standard
7302 <cell alignment="center" valignment="top" topline="true" usebox="none">
7305 \begin_layout Standard
7311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7314 \begin_layout Standard
7322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7325 \begin_layout Standard
7333 <cell alignment="center" valignment="top" topline="true" usebox="none">
7336 \begin_layout Standard
7342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7345 \begin_layout Standard
7353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7356 \begin_layout Standard
7364 <cell alignment="center" valignment="top" topline="true" usebox="none">
7367 \begin_layout Standard
7373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7376 \begin_layout Standard
7384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7387 \begin_layout Standard
7395 <cell alignment="center" valignment="top" topline="true" usebox="none">
7398 \begin_layout Standard
7404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7407 \begin_layout Standard
7415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7418 \begin_layout Standard
7426 <cell alignment="center" valignment="top" topline="true" usebox="none">
7429 \begin_layout Standard
7435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7438 \begin_layout Standard
7446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7449 \begin_layout Standard
7457 <cell alignment="center" valignment="top" topline="true" usebox="none">
7460 \begin_layout Standard
7466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7469 \begin_layout Standard
7477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7480 \begin_layout Standard
7488 <cell alignment="center" valignment="top" topline="true" usebox="none">
7491 \begin_layout Standard
7497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7500 \begin_layout Standard
7508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7511 \begin_layout Standard
7520 \begin_layout Standard
7531 <cell alignment="center" valignment="top" topline="true" usebox="none">
7534 \begin_layout Standard
7540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7543 \begin_layout Standard
7551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7554 \begin_layout Standard
7562 <cell alignment="center" valignment="top" topline="true" usebox="none">
7565 \begin_layout Standard
7571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7574 \begin_layout Standard
7582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7585 \begin_layout Standard
7593 <cell alignment="center" valignment="top" topline="true" usebox="none">
7596 \begin_layout Standard
7602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7605 \begin_layout Standard
7613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7616 \begin_layout Standard
7624 <cell alignment="center" valignment="top" topline="true" usebox="none">
7627 \begin_layout Standard
7633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7636 \begin_layout Standard
7644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7647 \begin_layout Standard
7655 <cell alignment="center" valignment="top" topline="true" usebox="none">
7658 \begin_layout Standard
7664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7667 \begin_layout Standard
7675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7678 \begin_layout Standard
7686 <cell alignment="center" valignment="top" topline="true" usebox="none">
7689 \begin_layout Standard
7695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7698 \begin_layout Standard
7706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7709 \begin_layout Standard
7717 <cell alignment="center" valignment="top" topline="true" usebox="none">
7720 \begin_layout Standard
7726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7729 \begin_layout Standard
7737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7740 \begin_layout Standard
7748 <cell alignment="center" valignment="top" topline="true" usebox="none">
7751 \begin_layout Standard
7757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7760 \begin_layout Standard
7768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7771 \begin_layout Standard
7779 <cell alignment="center" valignment="top" topline="true" usebox="none">
7782 \begin_layout Standard
7788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7791 \begin_layout Standard
7799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7802 \begin_layout Standard
7810 <cell alignment="center" valignment="top" topline="true" usebox="none">
7813 \begin_layout Standard
7819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7822 \begin_layout Standard
7830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7833 \begin_layout Standard
7841 <cell alignment="center" valignment="top" topline="true" usebox="none">
7844 \begin_layout Standard
7850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7853 \begin_layout Standard
7861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7864 \begin_layout Standard
7872 <cell alignment="center" valignment="top" topline="true" usebox="none">
7875 \begin_layout Standard
7881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7884 \begin_layout Standard
7892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7895 \begin_layout Standard
7903 <cell alignment="center" valignment="top" topline="true" usebox="none">
7906 \begin_layout Standard
7912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7915 \begin_layout Standard
7923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7926 \begin_layout Standard
7934 <cell alignment="center" valignment="top" topline="true" usebox="none">
7937 \begin_layout Standard
7943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7946 \begin_layout Standard
7954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7957 \begin_layout Standard
7965 <cell alignment="center" valignment="top" topline="true" usebox="none">
7968 \begin_layout Standard
7974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7977 \begin_layout Standard
7985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7988 \begin_layout Standard
7996 <cell alignment="center" valignment="top" topline="true" usebox="none">
7999 \begin_layout Standard
8005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8008 \begin_layout Standard
8015 <row bottomline="true">
8016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8019 \begin_layout Standard
8027 <cell alignment="center" valignment="top" topline="true" usebox="none">
8030 \begin_layout Standard
8036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8039 \begin_layout Standard
8046 <row bottomline="true">
8047 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8050 \begin_layout Standard
8056 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8059 \begin_layout Standard
8065 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8068 \begin_layout Standard
8076 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8079 \begin_layout Standard
8087 <cell alignment="center" valignment="top" topline="true" usebox="none">
8090 \begin_layout Standard
8096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8099 \begin_layout Standard
8107 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8110 \begin_layout Standard
8118 <cell alignment="center" valignment="top" topline="true" usebox="none">
8121 \begin_layout Standard
8127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8130 \begin_layout Standard
8138 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8141 \begin_layout Standard
8149 <cell alignment="center" valignment="top" topline="true" usebox="none">
8152 \begin_layout Standard
8158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8161 \begin_layout Standard
8169 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8172 \begin_layout Standard
8180 <cell alignment="center" valignment="top" topline="true" usebox="none">
8183 \begin_layout Standard
8189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8192 \begin_layout Standard
8200 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8203 \begin_layout Standard
8211 <cell alignment="center" valignment="top" topline="true" usebox="none">
8214 \begin_layout Standard
8220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8223 \begin_layout Standard
8231 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8234 \begin_layout Standard
8242 <cell alignment="center" valignment="top" topline="true" usebox="none">
8245 \begin_layout Standard
8251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8254 \begin_layout Standard
8262 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8265 \begin_layout Standard
8273 <cell alignment="center" valignment="top" topline="true" usebox="none">
8276 \begin_layout Standard
8282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8285 \begin_layout Standard
8293 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8296 \begin_layout Standard
8304 <cell alignment="center" valignment="top" topline="true" usebox="none">
8307 \begin_layout Standard
8313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8316 \begin_layout Standard
8324 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8327 \begin_layout Standard
8335 <cell alignment="center" valignment="top" topline="true" usebox="none">
8338 \begin_layout Standard
8344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8347 \begin_layout Standard
8355 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8358 \begin_layout Standard
8366 <cell alignment="center" valignment="top" topline="true" usebox="none">
8369 \begin_layout Standard
8375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8378 \begin_layout Standard
8386 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8389 \begin_layout Standard
8397 <cell alignment="center" valignment="top" topline="true" usebox="none">
8400 \begin_layout Standard
8406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8409 \begin_layout Standard
8417 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8420 \begin_layout Standard
8428 <cell alignment="center" valignment="top" topline="true" usebox="none">
8431 \begin_layout Standard
8437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8440 \begin_layout Standard
8448 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8451 \begin_layout Standard
8459 <cell alignment="center" valignment="top" topline="true" usebox="none">
8462 \begin_layout Standard
8468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8471 \begin_layout Standard
8479 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8482 \begin_layout Standard
8490 <cell alignment="center" valignment="top" topline="true" usebox="none">
8493 \begin_layout Standard
8499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8502 \begin_layout Standard
8510 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8513 \begin_layout Standard
8521 <cell alignment="center" valignment="top" topline="true" usebox="none">
8524 \begin_layout Standard
8530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8533 \begin_layout Standard
8541 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8544 \begin_layout Standard
8552 <cell alignment="center" valignment="top" topline="true" usebox="none">
8555 \begin_layout Standard
8561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8564 \begin_layout Standard
8572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8575 \begin_layout Standard
8583 <cell alignment="center" valignment="top" topline="true" usebox="none">
8586 \begin_layout Standard
8592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8595 \begin_layout Standard
8603 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8606 \begin_layout Standard
8614 <cell alignment="center" valignment="top" topline="true" usebox="none">
8617 \begin_layout Standard
8623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8626 \begin_layout Standard
8634 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8637 \begin_layout Standard
8645 <cell alignment="center" valignment="top" topline="true" usebox="none">
8648 \begin_layout Standard
8654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8657 \begin_layout Standard
8664 <row bottomline="true">
8665 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8668 \begin_layout Standard
8676 <cell alignment="center" valignment="top" topline="true" usebox="none">
8679 \begin_layout Standard
8685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8688 \begin_layout Standard
8695 <row bottomline="true" endlastfoot="true">
8696 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8699 \begin_layout Standard
8705 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8708 \begin_layout Standard
8714 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8717 \begin_layout Standard
8731 \begin_layout Section
8732 Special Longtable Issues
8733 \begin_inset LatexCommand label
8734 name "sec:Special-Longtable-Issues"
8741 \begin_layout Subsection
8742 Longtable Calculation
8743 \begin_inset LatexCommand index
8744 name "Longtables ! Calculation"
8751 \begin_layout Standard
8752 LaTeX calculates the height of table pages and their page breaks using so
8754 Chunks are pieces of the tables that are at once in LaTeX's memory.
8755 The default value is historically set to only 20 table rows.
8756 If you are using longtables with many pages this may slow down the creation
8758 You can safely increase the chunk size to values of 100-1000 by adding
8759 this command line to your document preamble:
8762 \begin_layout Standard
8767 setcounter{LTchunksize}{100}
8770 \begin_layout Subsection
8771 Floats and Longtables
8772 \begin_inset LatexCommand index
8773 name "Longtables ! Floats"
8780 \begin_layout Standard
8781 There might be problems when a float appears on the same page where a longtable
8783 To avoid such situation, add the command
8789 as TeX-Code before your longtable.
8792 \begin_layout Subsection
8794 \begin_inset LatexCommand index
8795 name "Longtables ! Forced Page Breaks"
8802 \begin_layout Standard
8803 By default tables are only broken between rows.
8804 If you have a cell with multiples lines and want to have a page break within
8805 the cell, insert the new line command
8806 \begin_inset Quotes eld
8818 \begin_inset Quotes erd
8821 as TeX-Code at this point of the cell where it should be broken.
8830 command you have to insert in TeX-Code so many
8831 \begin_inset Quotes eld
8839 \begin_inset Quotes erd
8842 characters like the number of the following table columns.
8847 is the character to separate table cells.
8848 Write in TeX-Code after each
8852 the content of the corresponding following cell and delete the content
8863 command, insert so many
8867 characters like the number of table columns before the current column.
8868 In Table\InsetSpace ~
8870 \begin_inset LatexCommand ref
8871 reference "tab:ForcedPagebreak"
8875 the cell that should be broken is in the second column followed by another
8877 Therefore the following command was inserted in the cell as TeX-Code behind
8879 \begin_inset Quotes eld
8887 \begin_inset Quotes erd
8893 \begin_layout Standard
8905 \begin_layout Standard
8907 \begin_inset Quotes eld
8911 \begin_inset Quotes erd
8914 in the third columns of the row was deleted.
8915 If your footer row of the longtable has for a certain reason no upper line
8916 but you would have a horizontal line where the cell is broken, use this
8920 \begin_layout Standard
8934 \begin_layout Standard
8935 When the cell to be broken is in the last column, the command
8938 \begin_layout Standard
8945 parf\SpecialChar \textcompwordmark{}
8949 \begin_layout Standard
8950 must be inserted as TeX-Code at the beginning of the cell.
8951 This assures that the part of the cell that will be displayed on the new
8952 page appears with the full width.
8955 \begin_layout Standard
8957 \begin_inset Tabular
8958 <lyxtabular version="3" rows="39" columns="3">
8959 <features islongtable="true">
8960 <column alignment="left" valignment="top" leftline="true" width="0cm">
8961 <column alignment="left" valignment="top" rightline="true" width="3cm">
8962 <column alignment="right" valignment="top" rightline="true" width="0pt">
8963 <row endfirsthead="true">
8964 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8967 \begin_layout Standard
8968 \begin_inset Caption
8970 \begin_layout Standard
8971 Table with forced page break in table cell
8972 \begin_inset LatexCommand label
8973 name "tab:ForcedPagebreak"
8981 \begin_layout Standard
8982 Table with forced page break in table cell
8996 \begin_layout Standard
9012 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9015 \begin_layout Standard
9021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9024 \begin_layout Standard
9031 <row topline="true" bottomline="true" endfirsthead="true">
9032 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9035 \begin_layout Standard
9038 Example Phone List (ignore the names)
9043 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9046 \begin_layout Standard
9052 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9055 \begin_layout Standard
9062 <row topline="true" bottomline="true" endfirsthead="true">
9063 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9066 \begin_layout Standard
9074 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9077 \begin_layout Standard
9083 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9086 \begin_layout Standard
9095 <row bottomline="true" endhead="true">
9096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9099 \begin_layout Standard
9103 \begin_layout Standard
9107 caption*{Continued table with forced page break in table cell}
9121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9124 \begin_layout Standard
9130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9133 \begin_layout Standard
9140 <row topline="true" bottomline="true" endhead="true">
9141 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Standard
9152 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9155 \begin_layout Standard
9161 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9164 \begin_layout Standard
9171 <row topline="true" bottomline="true" endhead="true">
9172 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9175 \begin_layout Standard
9183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9186 \begin_layout Standard
9192 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9195 \begin_layout Standard
9204 <row topline="true" bottomline="true" endfoot="true">
9205 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
9208 \begin_layout Standard
9209 continued on next page
9214 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9217 \begin_layout Standard
9223 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9226 \begin_layout Standard
9234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9237 \begin_layout Standard
9245 <cell alignment="center" valignment="top" topline="true" usebox="none">
9248 \begin_layout Standard
9254 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9257 \begin_layout Standard
9265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9268 \begin_layout Standard
9276 <cell alignment="center" valignment="top" topline="true" usebox="none">
9279 \begin_layout Standard
9285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9288 \begin_layout Standard
9296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9299 \begin_layout Standard
9307 <cell alignment="center" valignment="top" topline="true" usebox="none">
9310 \begin_layout Standard
9316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9319 \begin_layout Standard
9327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9330 \begin_layout Standard
9338 <cell alignment="center" valignment="top" topline="true" usebox="none">
9341 \begin_layout Standard
9347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9350 \begin_layout Standard
9358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9361 \begin_layout Standard
9369 <cell alignment="center" valignment="top" topline="true" usebox="none">
9372 \begin_layout Standard
9378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9381 \begin_layout Standard
9389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9392 \begin_layout Standard
9400 <cell alignment="center" valignment="top" topline="true" usebox="none">
9403 \begin_layout Standard
9409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9412 \begin_layout Standard
9420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9423 \begin_layout Standard
9431 <cell alignment="center" valignment="top" topline="true" usebox="none">
9434 \begin_layout Standard
9440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9443 \begin_layout Standard
9451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9454 \begin_layout Standard
9462 <cell alignment="center" valignment="top" topline="true" usebox="none">
9465 \begin_layout Standard
9471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9474 \begin_layout Standard
9482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9485 \begin_layout Standard
9493 <cell alignment="center" valignment="top" topline="true" usebox="none">
9496 \begin_layout Standard
9502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9505 \begin_layout Standard
9513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9516 \begin_layout Standard
9524 <cell alignment="center" valignment="top" topline="true" usebox="none">
9527 \begin_layout Standard
9533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9536 \begin_layout Standard
9544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9547 \begin_layout Standard
9555 <cell alignment="center" valignment="top" topline="true" usebox="none">
9558 \begin_layout Standard
9564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9567 \begin_layout Standard
9575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9578 \begin_layout Standard
9586 <cell alignment="center" valignment="top" topline="true" usebox="none">
9589 \begin_layout Standard
9595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9598 \begin_layout Standard
9606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9609 \begin_layout Standard
9617 <cell alignment="center" valignment="top" topline="true" usebox="none">
9620 \begin_layout Standard
9626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9629 \begin_layout Standard
9637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9640 \begin_layout Standard
9648 <cell alignment="center" valignment="top" topline="true" usebox="none">
9651 \begin_layout Standard
9657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9660 \begin_layout Standard
9668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9671 \begin_layout Standard
9679 <cell alignment="center" valignment="top" topline="true" usebox="none">
9682 \begin_layout Standard
9688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9691 \begin_layout Standard
9699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9702 \begin_layout Standard
9710 <cell alignment="center" valignment="top" topline="true" usebox="none">
9713 \begin_layout Standard
9719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9722 \begin_layout Standard
9730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9733 \begin_layout Standard
9741 <cell alignment="center" valignment="top" topline="true" usebox="none">
9744 \begin_layout Standard
9750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9753 \begin_layout Standard
9761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9764 \begin_layout Standard
9772 <cell alignment="center" valignment="top" topline="true" usebox="none">
9775 \begin_layout Standard
9781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9784 \begin_layout Standard
9792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9795 \begin_layout Standard
9803 <cell alignment="center" valignment="top" topline="true" usebox="none">
9806 \begin_layout Standard
9812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9815 \begin_layout Standard
9823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9826 \begin_layout Standard
9834 <cell alignment="center" valignment="top" topline="true" usebox="none">
9837 \begin_layout Standard
9843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9846 \begin_layout Standard
9854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9857 \begin_layout Standard
9865 <cell alignment="center" valignment="top" topline="true" usebox="none">
9868 \begin_layout Standard
9874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9877 \begin_layout Standard
9885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9888 \begin_layout Standard
9896 <cell alignment="center" valignment="top" topline="true" usebox="none">
9899 \begin_layout Standard
9905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9908 \begin_layout Standard
9916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9919 \begin_layout Standard
9927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9930 \begin_layout Standard
9932 Fürst von Montecompatri, 11.
9933 Fürst von Sulmona und Vivaro, 10.
9934 Fürst von Rossano, 5.
9935 Herzog von Canemorte, 11.
9936 Herzog von Palombara, 5.
9937 Herzog von Castelchiodato,
9941 \begin_layout Standard
9950 \begin_layout Standard
9958 Herzog von Poggionativo, 11.
9959 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9960 Graf von Valinfreda, 11.
9961 Baron von Cropalati, 11.
9962 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9970 \begin_layout Standard
9978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9981 \begin_layout Standard
9989 <cell alignment="center" valignment="top" topline="true" usebox="none">
9992 \begin_layout Standard
9998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10001 \begin_layout Standard
10009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10012 \begin_layout Standard
10020 <cell alignment="center" valignment="top" topline="true" usebox="none">
10023 \begin_layout Standard
10029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10032 \begin_layout Standard
10040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10043 \begin_layout Standard
10051 <cell alignment="center" valignment="top" topline="true" usebox="none">
10054 \begin_layout Standard
10060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10063 \begin_layout Standard
10071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10074 \begin_layout Standard
10082 <cell alignment="center" valignment="top" topline="true" usebox="none">
10085 \begin_layout Standard
10091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10094 \begin_layout Standard
10102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10105 \begin_layout Standard
10113 <cell alignment="center" valignment="top" topline="true" usebox="none">
10116 \begin_layout Standard
10122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10125 \begin_layout Standard
10133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10136 \begin_layout Standard
10144 <cell alignment="center" valignment="top" topline="true" usebox="none">
10147 \begin_layout Standard
10153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10156 \begin_layout Standard
10164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10167 \begin_layout Standard
10175 <cell alignment="center" valignment="top" topline="true" usebox="none">
10178 \begin_layout Standard
10184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10187 \begin_layout Standard
10194 <row bottomline="true">
10195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10198 \begin_layout Standard
10206 <cell alignment="center" valignment="top" topline="true" usebox="none">
10209 \begin_layout Standard
10215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10218 \begin_layout Standard
10225 <row endlastfoot="true">
10226 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10229 \begin_layout Standard
10235 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10238 \begin_layout Standard
10244 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10247 \begin_layout Standard
10261 \begin_layout Standard
10267 \begin_layout Section
10268 Multiple Lines Columns and Rows
10271 \begin_layout Subsection
10272 Multiple Lines in Table Cells
10273 \begin_inset LatexCommand label
10274 name "sub:Multiple-Lines-in"
10279 \begin_inset LatexCommand index
10280 name "Multiple Lines in Table Cells"
10285 \begin_inset LatexCommand index
10286 name "Table ! Linebreaks"
10293 \begin_layout Standard
10295 \begin_inset Float table
10301 \begin_layout Standard
10302 \begin_inset Caption
10304 \begin_layout Standard
10305 \begin_inset LatexCommand label
10306 name "tab:Table-with-multiple"
10310 Table with multiple lines in cells
10318 \begin_layout Standard
10320 \begin_inset Tabular
10321 <lyxtabular version="3" rows="3" columns="3">
10323 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10324 <column alignment="center" valignment="middle" leftline="true" width="0">
10325 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10326 <row topline="true">
10327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10330 \begin_layout Standard
10335 \begin_layout Standard
10349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10352 \begin_layout Standard
10358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10361 \begin_layout Standard
10368 <row topline="true">
10369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10372 \begin_layout Standard
10378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10381 \begin_layout Standard
10387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10390 \begin_layout Standard
10397 <row topline="true" bottomline="true">
10398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10401 \begin_layout Standard
10407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10410 \begin_layout Standard
10416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10419 \begin_layout Standard
10438 \begin_layout Standard
10439 Adjusting a fixed width for a column, enables to enter text as a paragraph
10440 with multiple lines and hyphenations.
10443 \begin_layout Standard
10444 To produce Table\InsetSpace ~
10446 \begin_inset LatexCommand ref
10447 reference "tab:Table-with-multiple"
10451 , create a 3×3 table, mark the first cell and right-click on it.
10452 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10453 cm and choose centered
10454 for the vertical and horizontal alignment.
10455 The vertical alignment is used for all cells of the row.
10456 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10457 cm, only one line will appear.
10458 To get two lines, we add a line break with the command
10461 \begin_layout Standard
10469 \begin_layout Standard
10471 If the text is wider than the set cell width it will automatically be broken
10475 \begin_layout Standard
10476 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10477 by LaTeX if it is the first entry.
10478 Therefore you need to insert something, to make the word not being the
10479 first entry: Add the command
10482 \begin_layout Standard
10490 \begin_layout Standard
10491 in TeX-Code before the word.
10492 As the space is zero, it doesn't change the output.
10495 \begin_inset LatexCommand ref
10496 reference "tab:Table-with-and"
10503 \begin_layout Standard
10504 \begin_inset Float table
10510 \begin_layout Standard
10511 \begin_inset Caption
10513 \begin_layout Standard
10514 \begin_inset LatexCommand label
10515 name "tab:Table-with-and"
10519 Table with and without hyphenation
10527 \begin_layout Standard
10531 \begin_inset Tabular
10532 <lyxtabular version="3" rows="3" columns="3">
10534 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10535 <column alignment="center" valignment="middle" leftline="true" width="0">
10536 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10537 <row topline="true">
10538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10541 \begin_layout Standard
10542 verylongtablecellword
10547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10550 \begin_layout Standard
10556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10559 \begin_layout Standard
10566 <row topline="true">
10567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10570 \begin_layout Standard
10576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10579 \begin_layout Standard
10585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10588 \begin_layout Standard
10595 <row topline="true" bottomline="true">
10596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10599 \begin_layout Standard
10605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10608 \begin_layout Standard
10614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10617 \begin_layout Standard
10631 \begin_inset Tabular
10632 <lyxtabular version="3" rows="3" columns="3">
10634 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10635 <column alignment="center" valignment="middle" leftline="true" width="0">
10636 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10637 <row topline="true">
10638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10641 \begin_layout Standard
10645 \begin_layout Standard
10654 verylongtablecellword
10659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10662 \begin_layout Standard
10668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10671 \begin_layout Standard
10678 <row topline="true">
10679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10682 \begin_layout Standard
10688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10691 \begin_layout Standard
10697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10700 \begin_layout Standard
10707 <row topline="true" bottomline="true">
10708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10711 \begin_layout Standard
10717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10720 \begin_layout Standard
10726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10729 \begin_layout Standard
10750 \begin_layout Standard
10756 \begin_layout Subsection
10758 \begin_inset LatexCommand label
10759 name "sub:Multicolumns"
10764 \begin_inset LatexCommand index
10765 name "Multicolumns"
10770 \begin_inset LatexCommand index
10771 name "Table ! Multicolumns"
10778 \begin_layout Subsubsection
10782 \begin_layout Standard
10783 To span a cell over multiple columns, mark as much cells within a line that
10784 should be one spanned cell and use either the table-toolbar button
10785 \begin_inset Graphics
10786 filename ../images/tabular-feature_multicolumn.png
10788 scaleBeforeRotation
10794 Edit\SpecialChar \menuseparator
10795 Table\SpecialChar \menuseparator
10798 , or right click on the marked cells and choose multicolumn in the appearing
10799 table dialog under the tab
10806 \begin_layout Standard
10807 Multicolumns have there own cell settings.
10808 That means changing cell borders, cell alignment, and the width only affects
10810 Here is an example table with a multicolumn cell in the first row and one
10811 in the last row without the upper border:
10814 \begin_layout Standard
10816 \begin_inset Tabular
10817 <lyxtabular version="3" rows="3" columns="4">
10818 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10819 <column alignment="center" valignment="top" leftline="true" width="0pt">
10820 <column alignment="center" valignment="middle" leftline="true" width="0">
10821 <column alignment="center" valignment="top" leftline="true" width="0in">
10822 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10823 <row topline="true" bottomline="true">
10824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10827 \begin_layout Standard
10833 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10836 \begin_layout Standard
10842 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10845 \begin_layout Standard
10851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10854 \begin_layout Standard
10861 <row topline="true">
10862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10865 \begin_layout Standard
10880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10883 \begin_layout Standard
10889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10892 \begin_layout Standard
10898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10901 \begin_layout Standard
10908 <row topline="true" bottomline="true">
10909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10912 \begin_layout Standard
10918 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10921 \begin_layout Standard
10927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10930 \begin_layout Standard
10936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10939 \begin_layout Standard
10953 \begin_layout Subsubsection
10954 Multicolumn Calculations
10955 \begin_inset LatexCommand label
10956 name "sub:Multicolumn-Calculations"
10961 \begin_inset LatexCommand index
10962 name "Multicolumns ! Calculations"
10969 \begin_layout Standard
10970 LyX supports multicolumns directly, but we have to take notice of the cell
10971 width of the columns spanned by the multicolumn cell.
10974 \begin_layout Standard
10975 \begin_inset Float table
10980 \begin_layout Standard
10981 \begin_inset Caption
10983 \begin_layout Standard
10984 \begin_inset LatexCommand label
10985 name "tab:Table-with-centered"
10989 Table with centered multicolumn text above two columns that have exactly
10990 half the width of the multicolumn cell
10991 \begin_inset OptArg
10994 \begin_layout Standard
10995 Perfect multicolumn table
11008 \begin_layout Standard
11010 \begin_inset Tabular
11011 <lyxtabular version="3" rows="3" columns="3">
11013 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11014 <column alignment="center" valignment="middle" leftline="true" width="0">
11015 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11016 <row topline="true">
11017 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11020 \begin_layout Standard
11021 multiple lines multicolumn
11026 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11029 \begin_layout Standard
11035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11038 \begin_layout Standard
11045 <row topline="true">
11046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11049 \begin_layout Standard
11055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11058 \begin_layout Standard
11064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11067 \begin_layout Standard
11074 <row topline="true" bottomline="true">
11075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11078 \begin_layout Standard
11084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11087 \begin_layout Standard
11093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11096 \begin_layout Standard
11115 \begin_layout Standard
11116 To create for example Table\InsetSpace ~
11118 \begin_inset LatexCommand ref
11119 reference "tab:Table-with-centered"
11123 , mark the first two cells in the first row of a 3×3 table and right-click
11125 Now choose for this cell
11133 and a width of 2.5\InsetSpace \thinspace{}
11134 cm in the table dialog.
11135 The spanned columns should have exactly half the width of the multicolumn
11136 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
11137 cm for the first column.
11138 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
11140 width - width of first column).
11141 This was done for Table\InsetSpace ~
11143 \begin_inset LatexCommand ref
11144 reference "tab:Table-without-half"
11151 \begin_layout Standard
11152 \begin_inset Float table
11157 \begin_layout Standard
11158 \begin_inset Caption
11160 \begin_layout Standard
11161 \begin_inset LatexCommand label
11162 name "tab:Table-without-half"
11166 Table where the spanned table columns have not exactly half the width of
11167 the multicolumn cell
11168 \begin_inset OptArg
11171 \begin_layout Standard
11172 Imperfect multicolumn table
11185 \begin_layout Standard
11187 \begin_inset Tabular
11188 <lyxtabular version="3" rows="3" columns="3">
11190 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
11191 <column alignment="center" valignment="top" leftline="true" width="0">
11192 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11193 <row topline="true" bottomline="true">
11194 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11197 \begin_layout Standard
11198 multiple lines multicolumn
11203 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11206 \begin_layout Standard
11212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11215 \begin_layout Standard
11222 <row topline="true">
11223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11226 \begin_layout Standard
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11235 \begin_layout Standard
11241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11244 \begin_layout Standard
11251 <row topline="true" bottomline="true">
11252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11255 \begin_layout Standard
11261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11264 \begin_layout Standard
11270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11273 \begin_layout Standard
11292 \begin_layout Standard
11293 You can see that the first column has not the half width of the multicolumn
11294 cell, it is a bit bigger.
11295 The reason is that the given width of a cell
11296 \begin_inset Formula $W_{g}$
11299 is not its total width
11300 \begin_inset Formula $W_{\mathrm{tot}}$
11303 because a cell is always a bit larger than its given width.
11304 Appendix\InsetSpace ~
11306 \begin_inset LatexCommand eqref
11307 reference "cha:Explanation-of-Equation"
11311 explains it in detail.
11314 \begin_layout Standard
11315 The needed given width
11316 \begin_inset Formula $W_{g\, n}$
11323 columns are spanned can be calculated, so that each column has a total
11325 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11329 \begin_inset Formula \begin{equation}
11330 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11337 \begin_layout Standard
11338 In our case we have
11339 \begin_inset Formula $n=2$
11343 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11346 cm and the default values for the lengths, so that equation
11347 \begin_inset LatexCommand ref
11353 \begin_inset Formula \begin{equation}
11354 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11361 \begin_layout Standard
11362 To enable calculations in LaTeX, the LaTeX-package
11366 must be loaded with the document preamble line
11367 \begin_inset LatexCommand index
11368 name "LaTeX-packages ! calc"
11375 \begin_layout Standard
11383 \begin_layout Standard
11384 LyX does not allow to calculate lengths in the width-field of the table
11386 Therefore you have to format the column by inserting a LaTeX-argument in
11388 Here is an overview about the arguments:
11391 \begin_layout Itemize
11396 creates cell with a fixed width, its text is vertically top-aligned
11399 \begin_layout Itemize
11404 creates cell with a fixed width, its text is vertically centered
11407 \begin_layout Itemize
11412 creates cell with a fixed width, its text is vertically bottom-aligned
11415 \begin_layout Standard
11416 By entering a LaTeX-argument, all cell settings set in the table dialog
11420 \begin_layout Standard
11421 \begin_inset Note Greyedout
11424 \begin_layout Standard
11429 Due to a bug, LyX shows the overwritten settings anyway.
11437 \begin_layout Standard
11438 As the text should be horizontally centered, the command
11445 You can now enter the following LaTeX-argument for the first spanned column:
11448 \begin_layout Standard
11453 centering}m{1.25cm-6.2pt}
11456 \begin_layout Standard
11461 means, that the commands inside the braces are applied before the cell
11465 \begin_layout Standard
11466 Although we have chosen centered alignment for the text of the multicolumn
11467 cell, it is still left aligned.
11468 This is because LyX only applies the alignment to single columns.
11469 So we have to use for the multicolumn the LaTeX-argument
11472 \begin_layout Standard
11480 \begin_layout Subsection
11482 \begin_inset LatexCommand index
11488 \begin_inset LatexCommand index
11489 name "Table ! Multirows"
11494 \begin_inset LatexCommand index
11495 name "LaTeX-packages ! multirow"
11502 \begin_layout Standard
11503 In contrary to multicolumns multirows are not yet supported by LyX so a
11504 bit of TeX-Code needs to be used.
11505 To use multirows load the LaTeX-package
11509 in your document preamble with the command
11512 \begin_layout Standard
11517 usepackage{multirow}
11520 \begin_layout Standard
11521 Multirows are created with the command
11524 \begin_layout Standard
11529 multirow{number of rows}{cell width}{cell entry}
11532 \begin_layout Standard
11533 To create the following table:
11536 \begin_layout Standard
11541 \begin_layout Standard
11555 \begin_inset Tabular
11556 <lyxtabular version="3" rows="3" columns="3">
11558 <column alignment="center" valignment="top" leftline="true" width="0">
11559 <column alignment="center" valignment="top" leftline="true" width="0">
11560 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11561 <row topline="true">
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11565 \begin_layout Standard
11571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11574 \begin_layout Standard
11580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11583 \begin_layout Standard
11590 <row topline="true">
11591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11594 \begin_layout Standard
11598 \begin_layout Standard
11602 multirow{2}{2.5cm}{
11611 \begin_layout Standard
11623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11626 \begin_layout Standard
11632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11635 \begin_layout Standard
11642 <row topline="true" bottomline="true">
11643 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11646 \begin_layout Standard
11652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11655 \begin_layout Standard
11661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11664 \begin_layout Standard
11679 \begin_layout Standard
11695 \begin_layout Standard
11696 create a 3×3 table.
11697 To get rid of the line above the last cell in the first column, the cell
11698 is marked as multicolumn and the upper border is unset.
11699 The multirow is now created in the second row of the first column by inserting
11703 \begin_layout Standard
11708 multirow{2}{2.5cm}{
11711 \begin_layout Standard
11713 According to the command parameters the multirow spans now two rows and
11714 has a width of 2.5\InsetSpace \thinspace{}
11716 The content of the multirow cell follows outside the TeX-Code box and the
11717 command is finished with a right brace
11721 in another TeX-Code-box behind the text.
11724 \begin_layout Standard
11731 left-aligns its content by default.
11732 To override the default, renew the command
11741 \begin_layout Standard
11753 \begin_layout Standard
11754 in TeX-Code in the document preamble.
11755 Then all entries of multirow cells in the document are centered.
11756 If centering is only needed for several tables, you can renew the command
11757 in an TeX-Code box just before the table instead of the preamble.
11758 If the text should be right-aligned, replace
11771 To return to left-alignment
11780 \begin_layout Section
11782 \begin_inset LatexCommand label
11783 name "sec:Formal-Tables"
11788 \begin_inset LatexCommand index
11789 name "Table ! Formal"
11796 \begin_layout Standard
11797 Tables are often typeset in books similar to Table\InsetSpace ~
11799 \begin_inset LatexCommand ref
11800 reference "tab:Example-booktabs-table"
11805 This kind of tables is called
11806 \begin_inset Quotes eld
11814 \begin_inset Quotes erd
11818 To make a table a formal table use the option
11826 tab of the table dialog.
11829 \begin_layout Standard
11830 \begin_inset Float table
11836 \begin_layout Standard
11837 \begin_inset Caption
11839 \begin_layout Standard
11840 \begin_inset LatexCommand label
11841 name "tab:Example-booktabs-table"
11845 Example booktabs-table
11853 \begin_layout Standard
11855 \begin_inset Tabular
11856 <lyxtabular version="3" rows="8" columns="4">
11857 <features booktabs="true">
11858 <column alignment="center" valignment="top" rightline="true" width="0">
11859 <column alignment="center" valignment="top" width="0">
11860 <column alignment="center" valignment="top" width="0">
11861 <column alignment="center" valignment="top" width="0">
11862 <row topline="true">
11863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11866 \begin_layout Standard
11872 <cell alignment="center" valignment="top" topline="true" usebox="none">
11875 \begin_layout Standard
11877 \begin_inset Formula $\,$
11885 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11888 \begin_layout Standard
11890 \begin_inset Formula $\,$
11898 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11901 \begin_layout Standard
11909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11912 \begin_layout Standard
11916 \begin_layout Standard
11929 \begin_layout Standard
11938 Detector thickness [µm]
11943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11946 \begin_layout Standard
11952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11955 \begin_layout Standard
11961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11964 \begin_layout Standard
11971 <row topline="true">
11972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11975 \begin_layout Standard
11981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11984 \begin_layout Standard
11990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11993 \begin_layout Standard
11999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12002 \begin_layout Standard
12009 <row topspace="default">
12010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12013 \begin_layout Standard
12014 Spatial resolution [µm]
12019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12022 \begin_layout Standard
12028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12031 \begin_layout Standard
12037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12040 \begin_layout Standard
12047 <row topspace="default">
12048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12051 \begin_layout Standard
12053 \begin_inset Formula $f_{\mathrm{max}}$
12061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12064 \begin_layout Standard
12070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12073 \begin_layout Standard
12079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12082 \begin_layout Standard
12089 <row topspace="default">
12090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12093 \begin_layout Standard
12097 \begin_layout Standard
12101 cmidrule(l{10pt}){1-1}
12106 LSF-spatial resolution
12111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12114 \begin_layout Standard
12120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12123 \begin_layout Standard
12129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12132 \begin_layout Standard
12140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12143 \begin_layout Standard
12149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12152 \begin_layout Standard
12158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12161 \begin_layout Standard
12167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12170 \begin_layout Standard
12177 <row bottomline="true">
12178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12181 \begin_layout Standard
12187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12190 \begin_layout Standard
12196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12199 \begin_layout Standard
12205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12208 \begin_layout Standard
12227 \begin_layout Standard
12228 Spaces to table rows can be added using the
12232 tab of the table dialog as described in section\InsetSpace ~
12234 \begin_inset LatexCommand ref
12235 reference "sub:Row-Spacing"
12242 \begin_layout Standard
12243 In contrary to normal tables, formal tables have no vertical table lines.
12244 The horizontal table lines can be set like for normal tables but they appear
12245 with different width in the output:
12247 The first and the last table line have
12248 a default width of 0.08\InsetSpace \thinspace{}
12249 em while the other lines have a default width of
12250 0.05\InsetSpace \thinspace{}
12254 \begin_layout Standard
12255 The default widths can be changed with the following preamble lines
12258 \begin_layout Standard
12278 \begin_layout Standard
12279 This example is for the first line, the so called
12284 If you want to change the width for the last line, replace
12293 To change the width for the other lines replace
12302 You can use all units listed in appendix\InsetSpace ~
12304 \begin_inset LatexCommand ref
12305 reference "cha:Units-available-in"
12312 \begin_layout Standard
12313 Lines that don't span over all table columns can be created by setting a
12314 table line for multicolumn cells.
12315 LyX will then internally use the command
12321 to create this line.
12325 \begin_layout Standard
12330 cmidrule[width](trim){startcol-endcol}
12333 \begin_layout Standard
12340 are are currently not supported by LyX so you have to use TeX-Code to be
12348 s can manually be created by inserting the command as TeX-Code as first
12349 cell entry of the first cell of a row.
12350 The line is then drawn in the output above the current row.
12353 \begin_layout Standard
12354 The default for the width is 0.03\InsetSpace \thinspace{}
12356 Startcol is the number of the column where the line starts and endcol the
12357 column number where the line ends.
12358 The endcol always needs to be specified, also when the line should span
12360 The optional parameter trim could be either
12368 where the trimwidth is also optional.
12369 Using for example the parameter
12373 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
12375 If you don't specify the trimwidth the lines are trimmed by the default
12376 of 0.5\InsetSpace \thinspace{}
12380 \begin_layout Standard
12381 \begin_inset VSpace bigskip
12386 \begin_inset LatexCommand ref
12387 reference "tab:Example-booktabs-table"
12391 was created using the commands
12394 \begin_layout Standard
12404 \begin_layout Standard
12405 at the beginning of the in the second row and
12408 \begin_layout Standard
12413 cmidrule(l{10pt}){1-1}
12416 \begin_layout Standard
12420 \begin_layout Standard
12421 \begin_inset VSpace bigskip
12427 \begin_layout Standard
12428 You might want to have overlapping
12434 s like in Table\InsetSpace ~
12436 \begin_inset LatexCommand ref
12437 reference "tab:Special-booktabs-table"
12442 This can be achieved with the TeX-Code command
12445 \begin_layout Standard
12453 \begin_layout Standard
12454 The command that was used for the second row of Table\InsetSpace ~
12456 \begin_inset LatexCommand ref
12457 reference "tab:Special-booktabs-table"
12464 \begin_layout Standard
12478 \begin_layout Standard
12479 The command for the sixth row is
12482 \begin_layout Standard
12494 \begin_layout Standard
12495 \begin_inset VSpace bigskip
12501 \begin_layout Standard
12502 If you are anyway not satisfied with the border line spacing, you can use
12503 the following command to produce lines that span over all table columns
12508 \begin_layout Standard
12513 specialrule{width}{space above}{space below}
12516 \begin_layout Standard
12517 For more informations about these specialties, we refer to the manual of
12523 \begin_inset LatexCommand cite
12529 \begin_inset LatexCommand index
12530 name "LaTeX-packages ! booktabs"
12537 \begin_layout Standard
12538 \begin_inset Float table
12544 \begin_layout Standard
12545 \begin_inset Caption
12547 \begin_layout Standard
12548 \begin_inset LatexCommand label
12549 name "tab:Special-booktabs-table"
12553 Special booktabs-table
12561 \begin_layout Standard
12563 \begin_inset Tabular
12564 <lyxtabular version="3" rows="8" columns="4">
12565 <features booktabs="true">
12566 <column alignment="center" valignment="top" width="0">
12567 <column alignment="center" valignment="top" width="0">
12568 <column alignment="center" valignment="top" width="0">
12569 <column alignment="center" valignment="top" width="0">
12570 <row topline="true">
12571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12574 \begin_layout Standard
12580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12583 \begin_layout Standard
12584 Medipix\InsetSpace \thinspace{}
12590 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12593 \begin_layout Standard
12594 Medipix\InsetSpace \thinspace{}
12600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12603 \begin_layout Standard
12611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12614 \begin_layout Standard
12618 \begin_layout Standard
12631 \begin_layout Standard
12644 \begin_layout Standard
12657 \begin_layout Standard
12666 Detector thickness [µm]
12671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12674 \begin_layout Standard
12680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12683 \begin_layout Standard
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12692 \begin_layout Standard
12699 <row topline="true">
12700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12703 \begin_layout Standard
12709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12712 \begin_layout Standard
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12721 \begin_layout Standard
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12730 \begin_layout Standard
12737 <row topspace="default">
12738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12741 \begin_layout Standard
12742 Spatial resolution [µm]
12747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12750 \begin_layout Standard
12756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12759 \begin_layout Standard
12765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12768 \begin_layout Standard
12775 <row topspace="default">
12776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12779 \begin_layout Standard
12781 \begin_inset Formula $f_{\mathrm{max}}$
12789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12792 \begin_layout Standard
12798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12801 \begin_layout Standard
12807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12810 \begin_layout Standard
12817 <row topline="true">
12818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12821 \begin_layout Standard
12825 \begin_layout Standard
12838 \begin_layout Standard
12847 LSF-spatial resolution
12852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12855 \begin_layout Standard
12861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12864 \begin_layout Standard
12870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12873 \begin_layout Standard
12881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12884 \begin_layout Standard
12890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12893 \begin_layout Standard
12899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12902 \begin_layout Standard
12908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12911 \begin_layout Standard
12918 <row bottomline="true">
12919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12922 \begin_layout Standard
12928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12931 \begin_layout Standard
12937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12940 \begin_layout Standard
12946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12949 \begin_layout Standard
12968 \begin_layout Section
12969 Vertical Table Alignment
12970 \begin_inset LatexCommand index
12971 name "Table ! Alignment"
12978 \begin_layout Standard
12979 To align tables vertically in a text line the table must be inside a box.
12980 The box can then be vertically aligned as described in section\InsetSpace ~
12982 \begin_inset LatexCommand ref
12983 reference "sec:Box-Dialog"
12990 \begin_layout Standard
12991 In the following example the tables are inside a minipage
12995 \begin_layout Standard
12996 Minipages are described in section\InsetSpace ~
12998 \begin_inset LatexCommand ref
12999 reference "sec:Minipages"
13008 box that has a width of 15\InsetSpace \thinspace{}
13012 \begin_layout Itemize
13014 \begin_inset Box Frameless
13023 height_special "totalheight"
13026 \begin_layout Standard
13027 \begin_inset Tabular
13028 <lyxtabular version="3" rows="3" columns="3">
13030 <column alignment="center" valignment="top" leftline="true" width="0">
13031 <column alignment="center" valignment="top" leftline="true" width="0">
13032 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13033 <row topline="true">
13034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13037 \begin_layout Standard
13043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13046 \begin_layout Standard
13052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13055 \begin_layout Standard
13062 <row topline="true">
13063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13066 \begin_layout Standard
13072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13075 \begin_layout Standard
13081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13084 \begin_layout Standard
13091 <row topline="true" bottomline="true">
13092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13095 \begin_layout Standard
13101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13104 \begin_layout Standard
13110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13113 \begin_layout Standard
13133 \begin_layout Standard
13145 \begin_inset Box Frameless
13154 height_special "totalheight"
13157 \begin_layout Standard
13158 \begin_inset Tabular
13159 <lyxtabular version="3" rows="3" columns="3">
13161 <column alignment="center" valignment="top" leftline="true" width="0">
13162 <column alignment="center" valignment="top" leftline="true" width="0">
13163 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13164 <row topline="true">
13165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13168 \begin_layout Standard
13174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13177 \begin_layout Standard
13183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13186 \begin_layout Standard
13193 <row topline="true">
13194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13197 \begin_layout Standard
13203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13206 \begin_layout Standard
13212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13215 \begin_layout Standard
13222 <row topline="true" bottomline="true">
13223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13226 \begin_layout Standard
13232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13235 \begin_layout Standard
13241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13244 \begin_layout Standard
13264 \begin_layout Standard
13274 \begin_layout Itemize
13276 \begin_inset Box Frameless
13285 height_special "totalheight"
13288 \begin_layout Standard
13289 \begin_inset Tabular
13290 <lyxtabular version="3" rows="3" columns="3">
13292 <column alignment="center" valignment="top" leftline="true" width="0">
13293 <column alignment="center" valignment="top" leftline="true" width="0">
13294 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13295 <row topline="true">
13296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13299 \begin_layout Standard
13305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13308 \begin_layout Standard
13314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13317 \begin_layout Standard
13324 <row topline="true">
13325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13328 \begin_layout Standard
13334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13337 \begin_layout Standard
13343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13346 \begin_layout Standard
13353 <row topline="true" bottomline="true">
13354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13357 \begin_layout Standard
13363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13366 \begin_layout Standard
13372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13375 \begin_layout Standard
13394 \begin_layout Itemize
13396 \begin_inset Box Frameless
13405 height_special "totalheight"
13408 \begin_layout Standard
13409 \begin_inset Tabular
13410 <lyxtabular version="3" rows="3" columns="3">
13412 <column alignment="center" valignment="top" leftline="true" width="0">
13413 <column alignment="center" valignment="top" leftline="true" width="0">
13414 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13415 <row topline="true">
13416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13419 \begin_layout Standard
13425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13428 \begin_layout Standard
13434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13437 \begin_layout Standard
13444 <row topline="true">
13445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13448 \begin_layout Standard
13454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13457 \begin_layout Standard
13463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13466 \begin_layout Standard
13473 <row topline="true" bottomline="true">
13474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13477 \begin_layout Standard
13483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13486 \begin_layout Standard
13492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13495 \begin_layout Standard
13515 \begin_layout Standard
13527 \begin_inset Box Frameless
13536 height_special "totalheight"
13539 \begin_layout Standard
13540 \begin_inset Tabular
13541 <lyxtabular version="3" rows="3" columns="3">
13543 <column alignment="center" valignment="top" leftline="true" width="0">
13544 <column alignment="center" valignment="top" leftline="true" width="0">
13545 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13546 <row topline="true">
13547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13550 \begin_layout Standard
13556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13559 \begin_layout Standard
13565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13568 \begin_layout Standard
13575 <row topline="true">
13576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13579 \begin_layout Standard
13585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13588 \begin_layout Standard
13594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13597 \begin_layout Standard
13604 <row topline="true" bottomline="true">
13605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13608 \begin_layout Standard
13614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13617 \begin_layout Standard
13623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13626 \begin_layout Standard
13646 \begin_layout Standard
13656 \begin_layout Standard
13657 As you can see, the content of the first and last table row is not correctly
13658 aligned with the text line where the table is in.
13659 To get this alignment, the minipage box must be set into a raisebox
13663 \begin_layout Standard
13664 Raiseboxes are described in section\InsetSpace ~
13666 \begin_inset LatexCommand ref
13667 reference "sub:Vertical-Alignment"
13677 In the example above the second table in the first item is aligned using
13678 the TeX-Code-command
13681 \begin_layout Standard
13691 \begin_layout Standard
13693 Behind the box the closing brace
13697 is inserted as TeX-Code.
13698 For the second table in the last item the command
13701 \begin_layout Standard
13711 \begin_layout Standard
13715 \begin_layout Standard
13716 \begin_inset Note Greyedout
13719 \begin_layout Standard
13724 The alignment of the table row content to the surrounding text line is
13726 The needed factor of the
13732 command for this alignment depends on the document font, the font size,
13733 and the table line thickness.
13741 \begin_layout Section
13743 \begin_inset LatexCommand label
13744 name "sec:Colored-Tables"
13749 \begin_inset LatexCommand index
13750 name "Table ! Color"
13757 \begin_layout Subsection
13759 \begin_inset LatexCommand index
13760 name "Table Color ! for Cells"
13765 \begin_inset LatexCommand index
13766 name "Color ! for Table Cells"
13773 \begin_layout Standard
13774 \begin_inset Float table
13780 \begin_layout Standard
13781 \begin_inset Caption
13783 \begin_layout Standard
13784 \begin_inset LatexCommand label
13785 name "tab:Table-colored-without"
13789 Table colored without using the package
13794 \begin_inset OptArg
13797 \begin_layout Standard
13798 Table without colortbl
13811 \begin_layout Standard
13813 \begin_inset Tabular
13814 <lyxtabular version="3" rows="3" columns="3">
13816 <column alignment="center" valignment="top" leftline="true" width="0">
13817 <column alignment="center" valignment="top" leftline="true" width="0">
13818 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13819 <row topline="true">
13820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13823 \begin_layout Standard
13831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13834 \begin_layout Standard
13842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13845 \begin_layout Standard
13854 <row topline="true">
13855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13858 \begin_layout Standard
13866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13869 \begin_layout Standard
13877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13880 \begin_layout Standard
13889 <row topline="true" bottomline="true">
13890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13893 \begin_layout Standard
13901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13904 \begin_layout Standard
13912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13915 \begin_layout Standard
13936 \begin_layout Standard
13937 If you only need colored text, mark the cells and choose a color in the
13940 Edit\SpecialChar \menuseparator
13945 This was used to create Table\InsetSpace ~
13947 \begin_inset LatexCommand ref
13948 reference "tab:Table-colored-without"
13953 In any other case you have to use the LaTeX-package
13958 \begin_inset LatexCommand index
13959 name "LaTeX-packages ! colortbl"
13966 \begin_layout Standard
13970 \begin_layout Standard
13980 \begin_inset Note Note
13983 \begin_layout Standard
13984 The following section part will only be displayed when the LaTeX-package
13997 \begin_layout Standard
13998 To create colored tables,
14002 must be loaded in the preamble with the line
14005 \begin_layout Standard
14010 usepackage{colortbl}
14013 \begin_layout Standard
14014 The color of a column is adjusted with the command
14017 \begin_layout Standard
14022 columncolor{name of color}
14025 \begin_layout Standard
14031 More about the command
14035 is described in section\InsetSpace ~
14037 \begin_inset LatexCommand ref
14038 reference "sub:Multicolumn-Calculations"
14045 \begin_layout Standard
14046 The following color names are predefined:
14049 \begin_layout Standard
14083 \begin_layout Standard
14084 \begin_inset VSpace medskip
14090 \begin_layout Standard
14091 You can also define your own color with the command
14094 \begin_layout Standard
14099 def\SpecialChar \textcompwordmark{}
14100 inecolor{color name}{color model}{color values}
14103 \begin_layout Standard
14104 The color model can be
14107 \begin_layout Labeling
14108 \labelwidthstring 00.00.0000
14109 cmyk: cyan, magenta, yellow, black
14112 \begin_layout Labeling
14113 \labelwidthstring 00.00.0000
14114 rgb: red, green blue
14117 \begin_layout Labeling
14118 \labelwidthstring 00.00.0000
14122 \begin_layout Standard
14123 and the color values are comma separated numbers between 0 and 1 describing
14124 the factor for the corresponding color of the color model.
14127 \begin_layout Standard
14128 You can e.\InsetSpace \thinspace{}
14134 " in the preamble with
14137 \begin_layout Standard
14142 def\SpecialChar \textcompwordmark{}
14143 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14146 \begin_layout Standard
14154 \begin_layout Standard
14159 def\SpecialChar \textcompwordmark{}
14160 inecolor{lightgray}{gray}{0.8}
14163 \begin_layout Standard
14164 \begin_inset VSpace medskip
14170 \begin_layout Standard
14171 Lines are colored with the command
14174 \begin_layout Standard
14179 rowcolor{name of color}
14182 \begin_layout Standard
14183 and cells are colored with the command
14186 \begin_layout Standard
14191 cellcolor{name of color}
14194 \begin_layout Standard
14195 Both commands are inserted at the beginning of a cell as TeX-Code.
14198 \begin_layout Standard
14199 To color characters in the table, mark the cells and use the LyX menu
14201 Edit\SpecialChar \menuseparator
14206 If a cell contains TeX-Code mark only the characters, otherwise the colored
14207 TeX-Code will cause LaTeX-errors.
14210 \begin_layout Standard
14211 \begin_inset Note Greyedout
14214 \begin_layout Standard
14219 Not all DVI-viewers are able to display self-defined colors.
14227 \begin_layout Standard
14228 \begin_inset VSpace bigskip
14234 \begin_layout Standard
14235 To create Table\InsetSpace ~
14237 \begin_inset LatexCommand ref
14238 reference "tab:Table-colored-using"
14242 do the following: The color of the first column should be
14250 \begin_layout Standard
14255 columncolor{darkgreen}
14260 \begin_layout Standard
14261 as LaTeX-argument for this column.
14262 The first row should be blue, therefore the TeX-Code command
14265 \begin_layout Standard
14273 \begin_layout Standard
14274 is inserted to the first cell of this row.
14275 Note that this overwrites the column color for the first cell.
14276 The last cell of the last row is colored magenta by inserting the TeX-Code
14280 \begin_layout Standard
14288 \begin_layout Standard
14289 The characters could now be colored using the menu
14291 Edit\SpecialChar \menuseparator
14298 \begin_layout Standard
14299 \begin_inset Float table
14305 \begin_layout Standard
14306 \begin_inset Caption
14308 \begin_layout Standard
14309 \begin_inset LatexCommand label
14310 name "tab:Table-colored-using"
14314 Table colored using the package
14319 \begin_inset OptArg
14322 \begin_layout Standard
14323 Table with colortbl
14336 \begin_layout Standard
14338 \begin_inset Tabular
14339 <lyxtabular version="3" rows="3" columns="3">
14341 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
14342 <column alignment="center" valignment="top" width="0">
14343 <column alignment="center" valignment="top" width="0">
14345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14348 \begin_layout Standard
14352 \begin_layout Standard
14368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14371 \begin_layout Standard
14379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14382 \begin_layout Standard
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14395 \begin_layout Standard
14403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14406 \begin_layout Standard
14414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14417 \begin_layout Standard
14427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14430 \begin_layout Standard
14438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14441 \begin_layout Standard
14449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14452 \begin_layout Standard
14456 \begin_layout Standard
14485 \begin_layout Standard
14489 \begin_layout Standard
14499 \begin_inset Note Note
14502 \begin_layout Standard
14503 The following will be displayed when the LaTeX-package
14515 \begin_layout Standard
14516 You need to install the package
14520 to see the content of this section in the output.
14523 \begin_layout Standard
14527 \begin_layout Standard
14539 \begin_layout Subsection
14541 \begin_inset LatexCommand index
14542 name "Table Color ! for Lines"
14547 \begin_inset LatexCommand index
14548 name "Color ! for Table Lines"
14555 \begin_layout Standard
14556 As described in section\InsetSpace ~
14558 \begin_inset LatexCommand ref
14559 reference "sub:Line-Thickness"
14563 , the line thickness for all lines in a table can be adjusted with the length
14571 It is set to 1.5\InsetSpace \thinspace{}
14572 pt for all tables of this section.
14576 \begin_layout Standard
14582 arrayrulewidth}{1.5pt}
14590 \begin_layout Standard
14591 To color vertical lines for example with green, create the following column
14592 format in the document preamble, according to the description in section\InsetSpace ~
14594 \begin_inset LatexCommand ref
14595 reference "sub:Customized-Format"
14602 \begin_layout Standard
14607 newcolumntype{W}{!{
14614 \begin_layout Standard
14615 For Table\InsetSpace ~
14617 \begin_inset LatexCommand ref
14618 reference "tab:Table-with-vertical-colored"
14626 was used for the last column and
14630 for the other columns.
14633 \begin_layout Standard
14634 If you want to have several colors, define more column formats.
14637 \begin_layout Standard
14638 \begin_inset Float table
14643 \begin_layout Standard
14644 \begin_inset Caption
14646 \begin_layout Standard
14647 \begin_inset LatexCommand label
14648 name "tab:Table-with-vertical-colored"
14652 Table with colored vertical lines
14660 \begin_layout Standard
14662 \begin_inset Tabular
14663 <lyxtabular version="3" rows="3" columns="3">
14665 <column alignment="center" valignment="top" width="0" special="Wc">
14666 <column alignment="center" valignment="top" width="0" special="Wc">
14667 <column alignment="center" valignment="top" width="0" special="WcW">
14668 <row topline="true">
14669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14672 \begin_layout Standard
14678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14681 \begin_layout Standard
14687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14690 \begin_layout Standard
14697 <row topline="true">
14698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14701 \begin_layout Standard
14707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14710 \begin_layout Standard
14716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14719 \begin_layout Standard
14726 <row topline="true" bottomline="true">
14727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14730 \begin_layout Standard
14736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14739 \begin_layout Standard
14745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14748 \begin_layout Standard
14767 \begin_layout Standard
14768 \begin_inset VSpace bigskip
14771 To color horizontal lines for example with red, like in Table\InsetSpace ~
14773 \begin_inset LatexCommand ref
14774 reference "tab:Table-with-horizontal-colored"
14778 , insert these commands in TeX-Code before the table or table float:
14781 \begin_layout Standard
14802 \begin_layout Standard
14813 arrayrulecolor{red}
14817 arrayrulecolor{black}}
14820 \begin_layout Standard
14824 \begin_layout Standard
14835 \begin_layout Standard
14844 \begin_layout Standard
14848 arrayrulecolor{red}
14852 arrayrulecolor{black}}
14858 \begin_inset Float table
14863 \begin_layout Standard
14864 \begin_inset Caption
14866 \begin_layout Standard
14867 \begin_inset LatexCommand label
14868 name "tab:Table-with-horizontal-colored"
14872 Table with colored horizontal lines
14880 \begin_layout Standard
14882 \begin_inset Tabular
14883 <lyxtabular version="3" rows="3" columns="3">
14885 <column alignment="center" valignment="top" leftline="true" width="0">
14886 <column alignment="center" valignment="top" leftline="true" width="0">
14887 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14888 <row topline="true">
14889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14892 \begin_layout Standard
14898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14901 \begin_layout Standard
14907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14910 \begin_layout Standard
14917 <row topline="true">
14918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14921 \begin_layout Standard
14927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14930 \begin_layout Standard
14936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14939 \begin_layout Standard
14946 <row topline="true" bottomline="true">
14947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14950 \begin_layout Standard
14956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14959 \begin_layout Standard
14965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14968 \begin_layout Standard
14987 \begin_layout Standard
14991 \begin_layout Standard
15003 \begin_layout Standard
15004 To return to the default line color black, insert this command in TeX-Code
15005 behind the table or table float:
15008 \begin_layout Standard
15020 \begin_layout Standard
15023 \begin_inset LatexCommand ref
15024 reference "tab:Table-with-colored"
15028 is an example with colored vertical and horizontal lines.
15031 \begin_layout Standard
15032 \begin_inset Float table
15038 \begin_layout Standard
15039 \begin_inset Caption
15041 \begin_layout Standard
15042 \begin_inset LatexCommand label
15043 name "tab:Table-with-colored"
15047 Table with colored lines
15055 \begin_layout Standard
15057 \begin_inset Tabular
15058 <lyxtabular version="3" rows="3" columns="3">
15060 <column alignment="center" valignment="top" width="0" special="Wc">
15061 <column alignment="center" valignment="top" width="0" special="Wc">
15062 <column alignment="center" valignment="top" width="0" special="WcW">
15063 <row topline="true">
15064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15067 \begin_layout Standard
15073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15076 \begin_layout Standard
15082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15085 \begin_layout Standard
15092 <row topline="true">
15093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15096 \begin_layout Standard
15102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15105 \begin_layout Standard
15111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15114 \begin_layout Standard
15121 <row topline="true" bottomline="true" topspace="default">
15122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15125 \begin_layout Standard
15131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15134 \begin_layout Standard
15140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15143 \begin_layout Standard
15162 \begin_layout Standard
15166 \begin_layout Standard
15182 \begin_layout Standard
15186 \begin_layout Standard
15192 arrayrulewidth}{0.4pt}
15200 \begin_layout Section
15201 Table Customization
15202 \begin_inset LatexCommand index
15203 name "Table Customization"
15208 \begin_inset LatexCommand index
15209 name "Table ! Customization"
15216 \begin_layout Subsection
15218 \begin_inset LatexCommand label
15219 name "sub:Row-Spacing"
15224 \begin_inset LatexCommand index
15225 name "Table Customization ! Row Spacing"
15232 \begin_layout Standard
15233 You can add vertical space to table rows in the
15237 tab of the table dialog.
15238 You find there three possibilities:
15241 \begin_layout Description
15244 row will add space above the characters of the table row.
15245 If the table is a formal table
15249 \begin_layout Standard
15250 Formal tables are explained in section\InsetSpace ~
15252 \begin_inset LatexCommand ref
15253 reference "sec:Formal-Tables"
15262 LyX will insert as default 0.5\InsetSpace \thinspace{}
15264 For normal tables the inserted space will unfortunately destroy the vertical
15265 table lines as in the following table:
15266 \begin_inset VSpace medskip
15275 \begin_layout Standard
15287 \begin_inset Tabular
15288 <lyxtabular version="3" rows="3" columns="1">
15290 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15291 <row topline="true">
15292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15295 \begin_layout Standard
15302 <row topline="true" topspace="3mm">
15303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15306 \begin_layout Standard
15307 3\InsetSpace \thinspace{}
15308 mm space top of row
15314 <row topline="true" bottomline="true">
15315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15318 \begin_layout Standard
15335 \begin_layout Standard
15345 \begin_inset VSpace medskip
15350 So inserting space to the top of row for normal tables is only useful when
15351 you don't have vertical lines.
15354 \begin_layout Description
15355 Bottom\InsetSpace ~
15357 row will add space below the characters of the table row.
15358 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15360 normal tables the default size is 2\InsetSpace \thinspace{}
15364 \begin_layout Description
15365 Between\InsetSpace ~
15366 rows adds space between the current and the following row.
15367 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15369 For normal tables the inserted space will unfortunately destroy the vertical
15370 table lines as in the following table:
15371 \begin_inset VSpace medskip
15380 \begin_layout Standard
15392 \begin_inset Tabular
15393 <lyxtabular version="3" rows="3" columns="1">
15395 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15396 <row topline="true">
15397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15400 \begin_layout Standard
15407 <row topline="true" interlinespace="3mm">
15408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15411 \begin_layout Standard
15412 \begin_inset Formula $\downarrow$
15415 3\InsetSpace \thinspace{}
15416 mm space between row
15417 \begin_inset Formula $\downarrow$
15426 <row topline="true" bottomline="true">
15427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15430 \begin_layout Standard
15431 \begin_inset Formula $\uparrow$
15434 3\InsetSpace \thinspace{}
15435 mm space between row
15436 \begin_inset Formula $\uparrow$
15455 \begin_layout Standard
15465 \begin_inset VSpace medskip
15470 So inserting space between rows for normal tables is only useful when you
15471 don't have vertical lines.
15474 \begin_layout Standard
15475 \begin_inset VSpace bigskip
15478 When you want to add extra height to all cells of all tables, you can do
15479 this with the following preamble lines:
15482 \begin_layout Standard
15487 @ifundef\SpecialChar \textcompwordmark{}
15488 ined{extrarowheight}
15494 \begin_layout Standard
15505 usepackage{array}}{}
15511 extrarowheight}{height}
15514 \begin_layout Standard
15515 But this has the disadvantage that the cell texts are no longer exactly
15516 vertically centered.
15521 will be loaded automatically by LyX when you use self defined table formats.
15522 To avoid that it is loaded twice the command
15526 @ifundef\SpecialChar \textcompwordmark{}
15529 is used in the above command.)
15532 \begin_layout Subsection
15533 Special Cell Alignment
15534 \begin_inset LatexCommand index
15535 name "Table Customization ! Special Cell Alignment"
15542 \begin_layout Standard
15543 Sometimes it looks better when the cell entries of a column are aligned
15544 with a special character, e.\InsetSpace \thinspace{}
15546 with the decimal separator as in Table\InsetSpace ~
15548 \begin_inset LatexCommand ref
15549 reference "tab:Table-cells-of"
15556 \begin_layout Standard
15557 \begin_inset Float table
15563 \begin_layout Standard
15564 \begin_inset Caption
15566 \begin_layout Standard
15567 \begin_inset LatexCommand label
15568 name "tab:Table-cells-of"
15572 Table cells of a column aligned with the decimal separator.
15580 \begin_layout Standard
15582 \begin_inset Tabular
15583 <lyxtabular version="3" rows="4" columns="2">
15585 <column alignment="right" valignment="top" width="0">
15586 <column alignment="left" valignment="top" width="0" special="@{}l">
15587 <row bottomline="true">
15588 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15591 \begin_layout Standard
15597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15600 \begin_layout Standard
15608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15611 \begin_layout Standard
15617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15620 \begin_layout Standard
15628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15631 \begin_layout Standard
15637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15640 \begin_layout Standard
15648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15651 \begin_layout Standard
15657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15660 \begin_layout Standard
15679 \begin_layout Standard
15680 This table was created with a 4×2 table.
15681 The heading is a centered multicolumn.
15682 The first column is right-aligned and contains the digits before the decimal
15683 point and the decimal point.
15684 The second column is left aligned and contains the digits after the decimal
15686 To omit the space that is normally between two table columns, use the following
15687 LaTeX-argument for the second column:
15690 \begin_layout Standard
15696 \begin_layout Standard
15699 \begin_inset LatexCommand ref
15700 reference "tab:Several-table-cell"
15704 shows some example alignments.
15705 For the alignment with the relation sign, you must add the second smallest
15706 math-space at the beginning of the last column to get the correct space
15707 surrounding the relation sign.
15710 \begin_layout Standard
15711 \begin_inset Float table
15716 \begin_layout Standard
15717 \begin_inset Caption
15719 \begin_layout Standard
15720 \begin_inset LatexCommand label
15721 name "tab:Several-table-cell"
15725 Several table cell alignments.
15733 \begin_layout Standard
15735 \begin_inset Tabular
15736 <lyxtabular version="3" rows="4" columns="6">
15738 <column alignment="right" valignment="top" width="0">
15739 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15740 <column alignment="right" valignment="top" width="0">
15741 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15742 <column alignment="right" valignment="top" width="0">
15743 <column alignment="left" valignment="top" width="0" special="@{}l">
15744 <row bottomline="true">
15745 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15748 \begin_layout Standard
15754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15757 \begin_layout Standard
15763 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15766 \begin_layout Standard
15772 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15775 \begin_layout Standard
15781 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15784 \begin_layout Standard
15790 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15793 \begin_layout Standard
15801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15804 \begin_layout Standard
15810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15813 \begin_layout Standard
15814 24\InsetSpace \thinspace{}
15820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15823 \begin_layout Standard
15824 \begin_inset Formula $10\cdot$
15832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15835 \begin_layout Standard
15836 \begin_inset Formula $10^{\mbox{-}17}$
15844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15847 \begin_layout Standard
15848 \begin_inset Formula $\Gamma(t)\propto$
15856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15859 \begin_layout Standard
15860 \begin_inset Formula $\:\Upsilon(t)$
15870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15873 \begin_layout Standard
15879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15882 \begin_layout Standard
15883 768\InsetSpace \thinspace{}
15889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15892 \begin_layout Standard
15893 \begin_inset Formula $5.78\cdot$
15901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15904 \begin_layout Standard
15905 \begin_inset Formula $10^{7}$
15913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15916 \begin_layout Standard
15917 \begin_inset Formula $A\ne$
15925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15928 \begin_layout Standard
15929 \begin_inset Formula $\: B_{\mathrm{red}}$
15939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15942 \begin_layout Standard
15948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15951 \begin_layout Standard
15952 6\InsetSpace \thinspace{}
15958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15961 \begin_layout Standard
15963 \begin_inset Formula $33.5\cdot$
15971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15974 \begin_layout Standard
15975 \begin_inset Formula $10^{4}$
15983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15986 \begin_layout Standard
15987 \begin_inset Formula $\sin(\alpha)\ge$
15995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15998 \begin_layout Standard
15999 \begin_inset Formula $\:\sin(\beta)$
16020 \begin_layout Standard
16021 \begin_inset VSpace bigskip
16024 There is also the LaTeX-package
16029 \begin_inset LatexCommand index
16030 name "LaTeX-packages ! dcolumn"
16034 that provides table cell alignments.
16035 But this unfortunately treats the cell entries as math and doesn't allow
16036 formulas in table cells: The first column of Table\InsetSpace ~
16038 \begin_inset LatexCommand ref
16039 reference "tab:Several-table-cell"
16047 like the first column in Table\InsetSpace ~
16049 \begin_inset LatexCommand ref
16050 reference "tab:Alignments-when"
16054 and only with some tricks like the expected.
16055 The alignment of the second and third column of Table\InsetSpace ~
16057 \begin_inset LatexCommand ref
16058 reference "tab:Several-table-cell"
16062 is not possible with
16069 \begin_layout Standard
16070 \begin_inset Float table
16076 \begin_layout Standard
16077 \begin_inset Caption
16079 \begin_layout Standard
16080 \begin_inset LatexCommand label
16081 name "tab:Alignments-when"
16085 Alignments when LaTeX-package dcolumn is used.
16086 For all column alignments tricks have to be used to get the output.
16094 \begin_layout Standard
16096 \begin_inset Tabular
16097 <lyxtabular version="3" rows="4" columns="3">
16099 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
16100 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
16101 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16102 <row bottomline="true">
16103 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16106 \begin_layout Standard
16112 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16115 \begin_layout Standard
16121 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16124 \begin_layout Standard
16132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16135 \begin_layout Standard
16136 12x24\InsetSpace \thinspace{}
16142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16145 \begin_layout Standard
16146 12x24\InsetSpace \thinspace{}
16148 \begin_inset Formula $\mbox{bottles}$
16156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16159 \begin_layout Standard
16164 \begin_layout Standard
16174 \begin_inset Formula $\mbox{bottles}$
16184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16187 \begin_layout Standard
16188 1024x768\InsetSpace \thinspace{}
16194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16197 \begin_layout Standard
16198 1024x768\InsetSpace \thinspace{}
16200 \begin_inset Formula $\mbox{Pixels}$
16208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16211 \begin_layout Standard
16216 \begin_layout Standard
16226 \begin_inset Formula $\mbox{Pixels}$
16236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16239 \begin_layout Standard
16240 32x6\InsetSpace \thinspace{}
16246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16249 \begin_layout Standard
16250 32x6\InsetSpace \thinspace{}
16252 \begin_inset Formula $\mbox{cm}$
16260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16263 \begin_layout Standard
16268 \begin_layout Standard
16278 \begin_inset Formula $\mbox{cm}$
16299 \begin_layout Subsection
16300 Customized Cell/Column Format
16301 \begin_inset LatexCommand label
16302 name "sub:Customized-Format"
16307 \begin_inset LatexCommand index
16308 name "Table Customization ! Cell/Column Format"
16315 \begin_layout Standard
16316 Calculating the needed width for spanned columns like in section\InsetSpace ~
16318 \begin_inset LatexCommand ref
16319 reference "sub:Multicolumn-Calculations"
16323 is very annoying if you have several tables with multicolumn cells.
16324 To make life easier, you can define a cell/column format in the preamble,
16325 so that it can be used in all tables of the document.
16326 The format is defined with the command
16329 \begin_layout Standard
16334 newcolumntype{name of format}[number of arguments]{commands}
16337 \begin_layout Standard
16338 The format name may only consist of one letter.
16363 are predefined and cannot be used.
16364 But all letters are allowed as capitals.
16367 \begin_layout Standard
16368 \begin_inset VSpace medskip
16374 \begin_layout Standard
16375 For vertically and horizontally centered multicolumn cells with a fixed
16376 width you can define the cell format
16379 \begin_layout Standard
16384 newcolumntype{M}[1]{>{
16391 \begin_layout Standard
16398 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
16400 \begin_inset LatexCommand ref
16401 reference "sub:Multiple-Lines-in"
16406 Now you can simply enter
16409 \begin_layout Standard
16415 \begin_layout Standard
16416 as LaTeX-argument in the table dialog to create a multicolumn.
16419 \begin_layout Standard
16420 \begin_inset VSpace bigskip
16426 \begin_layout Standard
16427 For cells spanned by a multicolumn cell, you can define the format
16430 \begin_layout Standard
16435 newcolumntype{S}[2]{>{
16445 \begin_layout Standard
16460 \begin_layout Standard
16471 arrayrulewidth)*(1-#2))/#2}}
16474 \begin_layout Standard
16475 This format uses equation
16476 \begin_inset LatexCommand eqref
16481 to calculate the needed width so that each spanned cell has the same width.
16484 \begin_layout Standard
16488 \begin_layout Standard
16491 S{width of multicolumn cell}{number of spanned columns}
16494 \begin_layout Standard
16495 as LaTeX-argument of the column.
16498 \begin_layout Standard
16499 \begin_inset VSpace bigskip
16505 \begin_layout Standard
16506 For colored columns, you can define
16509 \begin_layout Standard
16514 newcolumntype{K}[1]{>{
16521 \begin_layout Standard
16523 \begin_inset Quotes eld
16527 \begin_inset Quotes erd
16530 at the end creates a column with a flexible width whose text is horizontally
16535 \begin_layout Standard
16541 \begin_layout Standard
16545 \begin_layout Standard
16546 \begin_inset VSpace bigskip
16552 \begin_layout Standard
16553 To create Table\InsetSpace ~
16555 \begin_inset LatexCommand ref
16556 reference "tab:Table-using-user-defined"
16560 use the LaTeX-arguments
16563 \begin_layout Standard
16569 \begin_layout Standard
16570 for the first column and the multicolumn,
16573 \begin_layout Standard
16579 \begin_layout Standard
16580 for the the last column, and
16583 \begin_layout Standard
16589 \begin_layout Standard
16590 for the cells in the second column.
16593 \begin_layout Standard
16594 \begin_inset Float table
16600 \begin_layout Standard
16601 \begin_inset Caption
16603 \begin_layout Standard
16604 \begin_inset LatexCommand label
16605 name "tab:Table-using-user-defined"
16609 Table using user-defined table formats
16617 \begin_layout Standard
16619 \begin_inset Tabular
16620 <lyxtabular version="3" rows="3" columns="4">
16622 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16623 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16624 <column alignment="center" valignment="middle" leftline="true" width="0">
16625 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16626 <row topline="true">
16627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16630 \begin_layout Standard
16631 verylongtablecellword
16636 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16639 \begin_layout Standard
16640 multiple lines multicolumn
16645 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16648 \begin_layout Standard
16654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16657 \begin_layout Standard
16664 <row topline="true">
16665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16668 \begin_layout Standard
16674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16677 \begin_layout Standard
16683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16686 \begin_layout Standard
16692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16695 \begin_layout Standard
16702 <row topline="true" bottomline="true">
16703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16706 \begin_layout Standard
16712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16715 \begin_layout Standard
16721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16724 \begin_layout Standard
16730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16733 \begin_layout Standard
16752 \begin_layout Subsection
16754 \begin_inset LatexCommand label
16755 name "sub:Line-Thickness"
16760 \begin_inset LatexCommand index
16761 name "Table Customization ! Line Thickness"
16768 \begin_layout Standard
16769 The line thickness for all lines in a table can be adjusted with the length
16777 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16778 pt, like in Table\InsetSpace ~
16780 \begin_inset LatexCommand ref
16781 reference "tab:Table-with-1.5"
16785 , insert the command
16788 \begin_layout Standard
16795 arrayrulewidth}{1.5pt}
16798 \begin_layout Standard
16799 in TeX-Code before the table or table float.
16800 The changed thickness is valid for all following tables.
16801 To use the default value again, set
16807 to 0.4\InsetSpace \thinspace{}
16808 pt in TeX-Code behind the table or table float.
16811 \begin_layout Standard
16815 \begin_layout Standard
16821 arrayrulewidth}{1.5pt}
16827 \begin_inset Float table
16832 \begin_layout Standard
16833 \begin_inset Caption
16835 \begin_layout Standard
16836 \begin_inset LatexCommand label
16837 name "tab:Table-with-1.5"
16841 Table with 1.5\InsetSpace \thinspace{}
16850 \begin_layout Standard
16852 \begin_inset Tabular
16853 <lyxtabular version="3" rows="3" columns="3">
16855 <column alignment="center" valignment="top" leftline="true" width="0">
16856 <column alignment="center" valignment="top" leftline="true" width="0">
16857 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16858 <row topline="true">
16859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16862 \begin_layout Standard
16868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16871 \begin_layout Standard
16877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16880 \begin_layout Standard
16887 <row topline="true">
16888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16891 \begin_layout Standard
16897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16900 \begin_layout Standard
16906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16909 \begin_layout Standard
16916 <row topline="true" bottomline="true">
16917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16920 \begin_layout Standard
16926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16929 \begin_layout Standard
16935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16938 \begin_layout Standard
16958 \begin_layout Standard
16964 arrayrulewidth}{0.4pt}
16972 \begin_layout Standard
16973 \begin_inset VSpace bigskip
16976 To set the line thickness to 1.5\InsetSpace \thinspace{}
16977 pt only for horizontal lines, like in Table\InsetSpace ~
16979 \begin_inset LatexCommand ref
16980 reference "tab:Table-with-horizontal"
16984 , insert these commands in TeX-Code before the table or table float:
16987 \begin_layout Standard
17010 arrayrulewidth 1.5pt}
17020 arrayrulewidth 0.4pt}}
17023 \begin_layout Standard
17024 To return to the default line thickness, insert this command in TeX-Code
17025 behind the table or table float:
17028 \begin_layout Standard
17040 \begin_layout Standard
17044 \begin_layout Standard
17055 \begin_layout Standard
17064 \begin_layout Standard
17072 arrayrulewidth 1.5pt}
17075 \begin_layout Standard
17085 arrayrulewidth 0.4pt}}
17091 \begin_inset Float table
17096 \begin_layout Standard
17097 \begin_inset Caption
17099 \begin_layout Standard
17100 \begin_inset LatexCommand label
17101 name "tab:Table-with-horizontal"
17105 Table with 1.5\InsetSpace \thinspace{}
17106 pt thick horizontal lines
17114 \begin_layout Standard
17116 \begin_inset Tabular
17117 <lyxtabular version="3" rows="3" columns="3">
17119 <column alignment="center" valignment="top" leftline="true" width="0">
17120 <column alignment="center" valignment="top" leftline="true" width="0">
17121 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17122 <row topline="true">
17123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17126 \begin_layout Standard
17132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17135 \begin_layout Standard
17141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17144 \begin_layout Standard
17151 <row topline="true">
17152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17155 \begin_layout Standard
17161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17164 \begin_layout Standard
17170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17173 \begin_layout Standard
17180 <row topline="true" bottomline="true">
17181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17184 \begin_layout Standard
17190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17193 \begin_layout Standard
17199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17202 \begin_layout Standard
17222 \begin_layout Standard
17238 \begin_layout Standard
17239 \begin_inset VSpace bigskip
17242 To set the line thickness to 1.5\InsetSpace \thinspace{}
17243 pt only for vertical lines, create the following
17244 column format in the document preamble, according to the description in
17245 section\InsetSpace ~
17247 \begin_inset LatexCommand ref
17248 reference "sub:Customized-Format"
17255 \begin_layout Standard
17260 newcolumntype{V}{!{
17262 vrule width 1.5pt}}
17265 \begin_layout Standard
17266 For Table\InsetSpace ~
17268 \begin_inset LatexCommand ref
17269 reference "tab:Table-with-vertical"
17276 \begin_layout Standard
17282 \begin_layout Standard
17283 was used for the last column and
17286 \begin_layout Standard
17292 \begin_layout Standard
17293 for the other columns.
17296 \begin_layout Standard
17297 \begin_inset Float table
17302 \begin_layout Standard
17303 \begin_inset Caption
17305 \begin_layout Standard
17306 \begin_inset LatexCommand label
17307 name "tab:Table-with-vertical"
17311 Table with 1.5\InsetSpace \thinspace{}
17312 pt thick vertical lines
17320 \begin_layout Standard
17322 \begin_inset Tabular
17323 <lyxtabular version="3" rows="3" columns="3">
17325 <column alignment="center" valignment="top" width="0" special="Vc">
17326 <column alignment="center" valignment="top" width="0" special="Vc">
17327 <column alignment="center" valignment="top" width="0" special="VcV">
17328 <row topline="true">
17329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17332 \begin_layout Standard
17338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17341 \begin_layout Standard
17347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17350 \begin_layout Standard
17357 <row topline="true">
17358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17361 \begin_layout Standard
17367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17370 \begin_layout Standard
17376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17379 \begin_layout Standard
17386 <row topline="true" bottomline="true">
17387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17390 \begin_layout Standard
17396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17399 \begin_layout Standard
17405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17408 \begin_layout Standard
17427 \begin_layout Subsection
17429 \begin_inset LatexCommand index
17430 name "Table Customization ! Dashed Lines"
17437 \begin_layout Standard
17441 \begin_layout Standard
17451 \begin_inset Note Note
17454 \begin_layout Standard
17455 The following section will only be displayed when the LaTeX-package
17467 \begin_layout Standard
17468 \begin_inset Float table
17474 \begin_layout Standard
17475 \begin_inset Caption
17477 \begin_layout Standard
17478 \begin_inset LatexCommand label
17479 name "tab:Table-with-dashed"
17483 Table with dashed lines
17491 \begin_layout Standard
17493 \begin_inset Tabular
17494 <lyxtabular version="3" rows="5" columns="5">
17496 <column alignment="center" valignment="top" leftline="true" width="0">
17497 <column alignment="center" valignment="top" leftline="true" width="0">
17498 <column alignment="center" valignment="top" width="0" special=":c">
17499 <column alignment="center" valignment="top" leftline="true" width="0">
17500 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17501 <row topline="true" bottomline="true">
17502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17505 \begin_layout Standard
17511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17514 \begin_layout Standard
17520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17523 \begin_layout Standard
17529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17532 \begin_layout Standard
17538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17541 \begin_layout Standard
17548 <row topline="true">
17549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17552 \begin_layout Standard
17558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17561 \begin_layout Standard
17567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17570 \begin_layout Standard
17576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17579 \begin_layout Standard
17585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17588 \begin_layout Standard
17596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17599 \begin_layout Standard
17603 \begin_layout Standard
17617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17620 \begin_layout Standard
17626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17629 \begin_layout Standard
17635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17638 \begin_layout Standard
17644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17647 \begin_layout Standard
17654 <row topline="true">
17655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17658 \begin_layout Standard
17662 \begin_layout Standard
17676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17679 \begin_layout Standard
17685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17688 \begin_layout Standard
17694 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17697 \begin_layout Standard
17703 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17706 \begin_layout Standard
17713 <row topline="true" bottomline="true">
17714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17717 \begin_layout Standard
17723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17726 \begin_layout Standard
17732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17735 \begin_layout Standard
17741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17744 \begin_layout Standard
17750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17753 \begin_layout Standard
17772 \begin_layout Standard
17773 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
17774 As prerequisite the LaTeX-package
17779 \begin_inset LatexCommand index
17780 name "LaTeX-packages ! arydshln"
17784 must be loaded in the document preamble with the command
17787 \begin_layout Standard
17792 usepackage{arydshln}
17795 \begin_layout Standard
17796 To make a vertical line dashed, enter the colon
17797 \begin_inset Quotes eld
17801 \begin_inset Quotes erd
17804 together with the character for the horizontal alignment as LaTeX-argument
17805 in the table cell dialog.
17808 \begin_layout Standard
17809 For a horizontal dashed line add the command
17812 \begin_layout Standard
17820 \begin_layout Standard
17821 in TeX-Code as first element of the first cell in the table row.
17824 \begin_layout Standard
17825 For dashed multicolumn lines use the command
17828 \begin_layout Standard
17833 cdashline{line number
17838 \begin_layout Standard
17839 in TeX-Code as first element of the first cell in the table row.
17840 If you have for example a multicolumn spanning over columns 2 to 4 and
17841 you want to have a dashed line above, add the command
17844 \begin_layout Standard
17852 \begin_layout Standard
17853 as first element of the first cell in the row of the multicolumn.
17856 \begin_layout Standard
17857 \begin_inset VSpace bigskip
17863 \begin_layout Standard
17866 \begin_inset LatexCommand ref
17867 reference "tab:Table-with-dashed"
17872 \begin_inset Quotes eld
17880 \begin_inset Quotes erd
17883 as LaTeX-argument of the third column.
17884 The TeX-Code command
17890 was inserted to the first cell of the third row and the the TeX-Code command
17899 was inserted to the first cell of the fourth row.
17902 \begin_layout Standard
17903 \begin_inset Note Greyedout
17906 \begin_layout Standard
17911 The used LaTeX-package
17915 is apparently not compatible with the LaTeX-package
17920 \begin_inset LatexCommand index
17921 name "LaTeX-packages ! colortbl"
17925 that is used for colored tables in section\InsetSpace ~
17927 \begin_inset LatexCommand ref
17928 reference "sec:Colored-Tables"
17933 That means colored tables cannot have dashed lines.
17941 \begin_layout Standard
17945 \begin_layout Standard
17955 \begin_inset Note Note
17958 \begin_layout Standard
17959 The following will be displayed when the LaTeX-package
17971 \begin_layout Standard
17972 You need to install the package
17976 to see the content of this section in the output.
17979 \begin_layout Standard
17983 \begin_layout Standard
17995 \begin_layout Chapter
17997 \begin_inset LatexCommand index
18003 \begin_inset LatexCommand label
18011 \begin_layout Section
18013 \begin_inset LatexCommand label
18014 name "sec:FloatIntroduction"
18019 \begin_inset LatexCommand index
18020 name "Floats ! Introduction"
18027 \begin_layout Standard
18028 A float is a block of text associated with some sort of label, which doesn't
18029 have a fixed location.
18031 \begin_inset Quotes eld
18035 \begin_inset Quotes erd
18038 forward or backward a page or two, to wherever it fits best.
18045 Margin\InsetSpace ~
18048 are also floats, because they can float to the next page when there are
18049 too many notes at the page.
18052 \begin_layout Standard
18053 Floats allow a high quality layout.
18054 Images and tables can evenly be spread to the pages to avoid white space
18055 and pages without text.
18056 As the floating often destroys the context between the text and the image/table
18057 , every float can be referenced in the text.
18058 Floats are therefore numbered.
18059 Referencing is described in section\InsetSpace ~
18061 \begin_inset LatexCommand ref
18062 reference "sec:Referencing-Floats"
18069 \begin_layout Standard
18070 To insert a float, use the menu
18072 Insert\SpecialChar \menuseparator
18080 inset, a box with a label.
18081 The label will automatically be translated to the document language in
18083 Behind the label you can insert the caption text.
18084 The image or table is inserted above or below the caption in a separate
18085 paragraph within the float.
18086 More about the caption placement is described in section\InsetSpace ~
18088 \begin_inset LatexCommand ref
18089 reference "sec:Caption-Placement"
18094 To keep your LyX-document readable, you can open and close the float box
18095 by left-clicking on the box label.
18096 A closed float box looks like this:
18097 \begin_inset Graphics
18098 filename clipart/floatQt4.png
18100 scaleBeforeRotation
18104 -- a gray button with a red label.
18107 \begin_layout Standard
18108 It is recommended to insert floats as a separate paragraph to avoid possible
18109 LaTeX-errors that can occur when the surrounding text is specially formatted.
18112 \begin_layout Standard
18113 Existing figures or tables can be put into a float by marking them and then
18114 pressing the corresponding toolbar button for a new float.
18117 \begin_layout Section
18121 \begin_layout Standard
18122 Besides figure and table floats that are described in section\InsetSpace ~
18124 \begin_inset LatexCommand ref
18125 reference "sec:Figure-Floats"
18130 \begin_inset LatexCommand ref
18131 reference "sec:Table-Floats"
18135 , respectively, LyX offers the float types
18148 \begin_layout Subsection
18150 \begin_inset LatexCommand index
18151 name "Floats ! Algorithms"
18156 \begin_inset LatexCommand label
18157 name "sub:Algorithm-Floats"
18164 \begin_layout Standard
18165 \begin_inset Float algorithm
18171 \begin_layout Standard
18172 \begin_inset Caption
18174 \begin_layout Standard
18175 \begin_inset LatexCommand label
18176 name "alg:Example-Algorithm-float"
18180 Example Algorithm float
18188 \begin_layout LyX-Code
18191 Sum:= Sum + A(I); /*comment*/
18194 \begin_inset VSpace -4mm
18205 \begin_layout Standard
18206 This float type is inserted with the menu
18208 Insert\SpecialChar \menuseparator
18209 Floats\SpecialChar \menuseparator
18213 It is used for program codes and descriptions of algorithms.
18214 A possible environment for algorithms is the
18218 , described in LyX's
18223 Algorithm\InsetSpace ~
18225 \begin_inset LatexCommand ref
18226 reference "alg:Example-Algorithm-float"
18230 is an example of an algorithm float where -4\InsetSpace \thinspace{}
18231 mm vertical space was added
18232 at the end of the float to have the bottom rule exactly below the last
18236 \begin_layout Standard
18237 The float label is not automatically translated into the document language.
18238 If your document is not in English, you have to do this manually by adding
18239 the following line to the document preamble
18244 \begin_layout Standard
18249 floatname{algorithm}{your\InsetSpace ~
18253 \begin_layout Standard
18260 \begin_inset Quotes eld
18268 \begin_inset Quotes erd
18274 \begin_layout Description
18279 When the LaTeX-package
18284 \begin_inset LatexCommand index
18285 name "LaTeX-packages ! hyperref"
18289 is used to link cross-references to floats in the PDF-output, it must be
18290 loaded in the document preamble before the definition of floats to be able
18291 to reference floats.
18292 As LyX sets the float definition for algorithm floats automatically before
18293 the user editable part of the document preamble, you need to insert the
18294 following preamble lines
18298 the loading command of
18303 \begin_inset VSpace defskip
18312 newfloat{Xalgorithm}{tbp}{loa}
18316 floatname{Xalgorithm}{your\InsetSpace ~
18329 renewenvironment{algorithm}[1][tbp]
18335 \begin_layout Standard
18346 begin{Xalgorithm}[#1]}{
18351 \begin_inset VSpace defskip
18356 To insert the list of algorithms you can in this case not use the menu
18358 Insert\SpecialChar \menuseparator
18359 List\InsetSpace \thinspace{}
18360 /\InsetSpace \thinspace{}
18361 TOC\SpecialChar \menuseparator
18364 but have to use this command in TeX-Code instead:
18370 listof{Xalgorithm}{List of Algorithms}
18373 \begin_inset Note Note
18376 \begin_layout Standard
18379 is used at the end of this document
18387 \begin_layout Standard
18388 Algorithm floats are not by default numbered in the scheme
18389 \begin_inset Quotes eld
18393 \begin_inset Quotes erd
18396 like it is the case for table and figure floats in many document-classes.
18397 To number algorithm floats in the same scheme, add this command to your
18401 \begin_layout Standard
18406 numberwithin{algorithm}{chapter}
18409 \begin_layout Standard
18410 If you use the LaTeX-package
18414 , add this line instead
18422 (the commands from above) to the preamble:
18425 \begin_layout Standard
18430 numberwithin{Xalgorithm}{chapter}
18433 \begin_layout Standard
18434 To be able to use the command
18445 in the document settings the option
18455 \begin_layout Subsection
18457 \begin_inset LatexCommand index
18458 name "Floats ! Text Wrap Floats"
18463 \begin_inset LatexCommand label
18464 name "sub:floatflt-wrap-float"
18471 \begin_layout Standard
18472 This float type is used if you want to
18473 \begin_inset Quotes eld
18477 \begin_inset Quotes erd
18480 text around a figure so that it only occupies some fraction of the column
18482 It can be inserted using the menu
18483 \begin_inset Wrap figure
18488 \begin_layout Standard
18489 \begin_inset Graphics
18490 filename clipart/mobius.eps
18493 scaleBeforeRotation
18494 rotateOrigin center
18501 \begin_layout Standard
18502 \begin_inset Caption
18504 \begin_layout Standard
18505 \begin_inset LatexCommand label
18506 name "fig:This-is-a"
18510 This is a wrapped figure, and this is the brilliant caption that describes
18512 \begin_inset VSpace medskip
18527 Insert\SpecialChar \menuseparator
18528 Floats\SpecialChar \menuseparator
18533 if the LaTeX-package
18535 f\SpecialChar \textcompwordmark{}
18536 loatf\SpecialChar \textcompwordmark{}
18540 \begin_inset LatexCommand index
18541 name "LaTeX-packages ! floatflt"
18549 \begin_layout Standard
18550 Installing a LaTeX-package is explained it in the
18560 The width and placement of the float is adjusted by right-clicking on the
18562 Figure\InsetSpace ~
18564 \begin_inset LatexCommand ref
18565 reference "fig:This-is-a"
18569 is an example text wrap float with a width of 40
18570 \begin_inset Formula $\,$
18577 \begin_layout Standard
18578 Available units are explained in
18579 \begin_inset LatexCommand ref
18580 reference "cha:Units-available-in"
18589 Some space was added under the caption to separate it better from the surroundi
18593 \begin_layout Standard
18596 f\SpecialChar \textcompwordmark{}
18597 loatf\SpecialChar \textcompwordmark{}
18600 also supports table wrap floats, but they are not yet supported by LyX.
18601 If you need this, read the documentation of
18603 f\SpecialChar \textcompwordmark{}
18604 loatf\SpecialChar \textcompwordmark{}
18608 \begin_inset LatexCommand cite
18616 \begin_layout Standard
18617 \begin_inset Note Greyedout
18620 \begin_layout Standard
18626 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18628 having a figure too close to the bottom
18629 of the page can mess things up in the way that the float doesn't appear
18630 in the output or that it is placed over some other text.
18634 \begin_layout Standard
18635 The better solution is to use the LaTeX-package
18637 wrapf\SpecialChar \textcompwordmark{}
18641 \begin_inset LatexCommand index
18642 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18648 f\SpecialChar \textcompwordmark{}
18649 loatf\SpecialChar \textcompwordmark{}
18652 , but it is currently not supported by LyX.
18665 \begin_layout Standard
18669 \begin_layout Itemize
18670 Wrap floats should not be placed in paragraphs that run over a page break.
18671 That means that wrap floats should better be inserted to the exact place
18672 when the document is nearly finished and you are able to estimate where
18673 page breaks will appear.
18676 \begin_layout Itemize
18677 Wrap floats should either be placed in an own paragraph before the paragraph
18678 where they should wrap into or within a paragraph.
18681 \begin_layout Itemize
18682 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18683 there is a text paragraph between them as separator.
18686 \begin_layout Itemize
18687 Wrap floats are not allowed in section headings or tables.
18690 \begin_layout Section
18692 \begin_inset LatexCommand label
18693 name "sec:Float-Numbering"
18698 \begin_inset LatexCommand index
18699 name "Floats ! Numbering"
18706 \begin_layout Standard
18707 Floats are usually numbered either independent from the sections the floats
18708 are in, or in the scheme
18709 \begin_inset Quotes eld
18713 \begin_inset Quotes erd
18717 \begin_inset Quotes eld
18721 \begin_inset Quotes erd
18725 This depends on the used document class.
18728 \begin_layout Standard
18729 To change the section independent numbering, you can use this command in
18730 the document preamble:
18733 \begin_layout Standard
18745 \begin_layout Standard
18752 is the command that prints the table number, for figure floats, the command
18766 prints in the command above the table number as small roman number.
18769 \begin_layout Standard
18770 To change the numbering scheme for example to
18771 \begin_inset Quotes eld
18775 \begin_inset Quotes erd
18778 , use this command in the preamble:
18781 \begin_layout Standard
18786 numberwithin{table}{subsection}
18789 \begin_layout Standard
18790 To be able to use the command
18801 in the document settings the option
18811 \begin_layout Standard
18812 Please also have a look at section\InsetSpace ~
18814 \begin_inset LatexCommand ref
18815 reference "sub:Footnote-Numbering"
18819 for the details and important notes about the numbering commands.
18822 \begin_layout Section
18824 \begin_inset LatexCommand label
18825 name "sec:Referencing-Floats"
18830 \begin_inset LatexCommand index
18831 name "Floats ! References"
18836 \begin_inset LatexCommand index
18844 \begin_layout Standard
18845 To reference a float, insert a label into its caption using the menu
18847 Insert\SpecialChar \menuseparator
18850 or the toolbar button
18851 \begin_inset Graphics
18852 filename ../images/label-insert.png
18854 scaleBeforeRotation
18859 A grey label box like this one:
18860 \begin_inset Graphics
18861 filename clipart/labelQt4.png
18863 scaleBeforeRotation
18867 will be inserted and the label window pops up asking for the label text.
18868 LyX offers as text the first words of the caption with a prefix.
18869 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18871 for figure floats the prefix will
18879 \begin_layout Standard
18880 The label is used as anchor and name for the reference.
18881 You can refer to the label using the menu
18883 Insert\SpecialChar \menuseparator
18886 or the toolbar button
18887 \begin_inset Graphics
18888 filename ../images/dialog-show-new-inset_ref.png
18890 scaleBeforeRotation
18895 A grey cross-reference box like this one:
18896 \begin_inset Graphics
18897 filename clipart/referenceQt4.png
18899 scaleBeforeRotation
18903 will be inserted and the cross-reference window appear showing all labels
18905 If you have multiple LyX-documents opened, choose the one you are working
18906 on from the drop-list at the top of the dialog.
18907 You can now sort the labels alphabetically and then choose one.
18908 At the position of the cross-reference box the float number will appear
18912 \begin_layout Standard
18913 It is recommended to use a protected space between the cross-reference name
18914 and its number to avoid line breaks between them.
18915 If a cross-reference refers to a non-existing label, you will see two question
18916 marks in the output instead of the reference.
18919 \begin_layout Standard
18920 You can change labels at any time by clicking on the label box.
18921 References to the changed label will automatically change its link to the
18922 new label text, so that you don't need to take care about this.
18925 \begin_layout Standard
18932 in the cross-reference window sets the cursor before the referred label.
18933 The button text changes then to Go\InsetSpace ~
18934 Back and you can use it to set the cursor
18935 back to the cross-reference.
18936 Right-clicking on a cross-reference box also sets the cursor before the
18937 referenced label but without a possibility to go back.
18940 \begin_layout Subsection
18941 Cross-Reference Formats
18942 \begin_inset LatexCommand label
18943 name "sub:Cross-Reference-Formats"
18948 \begin_inset LatexCommand index
18949 name "References ! Formats"
18956 \begin_layout Standard
18957 There are six varieties of cross-references:
18960 \begin_layout Description
18961 <reference>: prints the float number, this is the default:
18962 \begin_inset LatexCommand ref
18963 reference "fig:Two-distorted-images"
18970 \begin_layout Description
18971 (<reference>): prints the float number within two parentheses, this is the
18972 style normally used to reference formulas, especially when the reference
18974 \begin_inset Quotes eld
18978 \begin_inset Quotes erd
18982 \begin_inset LatexCommand eqref
18990 \begin_layout Description
18991 <page>: prints the page number: Page\InsetSpace ~
18993 \begin_inset LatexCommand pageref
18994 reference "fig:Two-distorted-images"
19001 \begin_layout Description
19004 <page>: prints the text "on page" and the page number:
19005 \begin_inset LatexCommand vpageref
19006 reference "fig:Two-distorted-images"
19013 \begin_layout Description
19014 <reference>\InsetSpace ~
19017 <page>: prints the float number, the text "on page", and
19019 \begin_inset LatexCommand vref
19020 reference "fig:Two-distorted-images"
19027 \begin_layout Description
19028 Formatted\InsetSpace ~
19029 reference: prints a self defined cross-reference format.
19031 \begin_inset Note Greyedout
19034 \begin_layout Standard
19039 This feature is only available when you have the LaTeX-package
19051 \begin_layout Standard
19052 Note that the style <page> won't print the page number if the label is on
19053 the previous, the same, or the next page.
19054 You will e.\InsetSpace \thinspace{}
19057 \begin_inset Quotes eld
19065 \begin_inset Quotes erd
19071 \begin_layout Standard
19072 The number and current page of the referred document part in the output,
19073 is automatically calculated by LaTeX.
19074 The varieties are adjusted in the field
19078 of the cross-reference window, that appear when you click on the cross-referenc
19082 \begin_layout Subsection
19083 Referencing Subfigures
19084 \begin_inset LatexCommand label
19085 name "sub:Referencing-Subfigures"
19090 \begin_inset LatexCommand index
19091 name "References ! to Subfigures"
19098 \begin_layout Standard
19099 Currently referencing subfigures is not supported by LyX, so you have to
19100 use LaTeX-commands.
19101 The label is the created with the command
19104 \begin_layout Standard
19109 label{fig:YourLabelName}
19112 \begin_layout Standard
19113 that is directly inserted into the subfigure caption field.
19114 To reference the label add this command in TeX-Code
19117 \begin_layout Standard
19122 ref{fig:YourLabelName}
19125 \begin_layout Standard
19126 to the position in your document where the reference should be placed.
19127 Here is a reference to a subfigure: Subfigure\InsetSpace ~
19132 \begin_layout Standard
19144 \begin_layout Subsection
19145 Automatic Reference Naming
19146 \begin_inset LatexCommand index
19147 name "References ! Automatic Reference Naming"
19154 \begin_layout Standard
19159 provides a very useful feature that cross-references automatically include
19160 the name of the referenced floats (or text parts like sections).
19161 You save to write e.\InsetSpace \thinspace{}
19164 \begin_inset Quotes eld
19168 \begin_inset Quotes erd
19171 before every reference box.
19172 To get this automatic reference naming, you have to load the LaTeX-package
19178 \begin_inset LatexCommand index
19179 name "LaTeX-packages ! hyperref"
19183 in the document preamble with
19186 \begin_layout Standard
19191 usepackage[pdfborder={0 0 0}]{hyperref}
19206 \begin_layout Standard
19211 is used to link cross-references in the DVI- and PDF-output, this means
19212 that the reader of your document will be able to click on a table of content
19213 (TOC) entry or on a reference and he will be shown the referenced document
19219 also creates PDF-bookmarks for every section of your document to make it
19220 easier for readers to navigate through the document.
19221 This is also used in this document but when you have a look in the document
19222 preamble you will find various options in the load command of
19227 To learn more about the
19231 package, we refer to its documentation
19232 \begin_inset LatexCommand cite
19240 \begin_layout Standard
19241 \begin_inset Note Greyedout
19244 \begin_layout Standard
19249 Automatic reference naming cannot be used when you use cross-references
19252 Formatted\InsetSpace ~
19255 style, described in section\InsetSpace ~
19257 \begin_inset LatexCommand ref
19258 reference "sub:Cross-Reference-Formats"
19270 \begin_layout Subsection
19272 \begin_inset LatexCommand label
19273 name "sub:Reference-Position"
19278 \begin_inset LatexCommand index
19279 name "References ! Reference Position"
19286 \begin_layout Standard
19292 \begin_inset LatexCommand index
19293 name "LaTeX-packages ! hyperref"
19297 to link cross-references in the output, you will see that clicking on an
19298 image float reference jumps to the image label.
19299 The caption will be the first text part on the screen, so that you cannot
19300 see the image without scrolling.
19301 This is because the reference link anchor is placed at the position of
19303 With the use of the package
19308 \begin_inset LatexCommand index
19309 name "LaTeX-packages ! hypcap"
19313 , which is part of the LaTeX-package
19318 \begin_inset LatexCommand index
19319 name "LaTeX-packages ! oberdiek"
19323 , the link anchor is placed at the beginning of a float.
19324 To use this feature for figure floats, load
19328 in the document preamble with the line
19331 \begin_layout Standard
19336 usepackage[f\SpecialChar \textcompwordmark{}
19340 \begin_layout Standard
19345 for all floats but this isn't recommended for stability reasons.
19346 For more informations, have a look at
19351 \begin_inset LatexCommand cite
19359 \begin_layout Standard
19360 \begin_inset Note Greyedout
19363 \begin_layout Standard
19372 must be loaded after
19376 in the document preamble.
19384 \begin_layout Standard
19385 \begin_inset Note Greyedout
19388 \begin_layout Standard
19397 has no effect for references to subfigures.
19405 \begin_layout Section
19407 \begin_inset LatexCommand label
19408 name "sec:Float-Placement"
19413 \begin_inset LatexCommand index
19414 name "Floats ! Placement"
19421 \begin_layout Standard
19422 Right-clicking on a float-box opens a dialog where you can alter the placement
19423 options that LaTeX uses for positioning the float.
19430 is only useful for two-column documents: If you select it, the float will
19431 span across both columns on the page instead of being confined to just
19436 Rotate\InsetSpace ~
19439 is used to rotate floats, see section
19440 \begin_inset LatexCommand ref
19441 reference "sec:Rotated-Floats"
19448 \begin_layout Standard
19449 You can use one ore more of the following options in the float dialog to
19450 set the placement for a particular float when you uncheck the option
19453 default\InsetSpace ~
19459 \begin_layout Description
19462 possible try to place the float on the position where it is inserted
19465 \begin_layout Description
19468 page try to place the float on the top of the current page
19471 \begin_layout Description
19472 Bottom\InsetSpace ~
19474 page try to place the float on the bottom of the current page
19477 \begin_layout Description
19480 floats try to place the float on an own page
19483 \begin_layout Standard
19484 The order of the above option is
19489 That means, if you use the default placement, LaTeX will first try out
19502 , and then the others.
19503 If you don't use the default, LaTeX will try only the checked options but
19505 If none of the 4 placements are possible the procedure is internally repeated
19506 but it is tried to put the float on the following page.
19509 \begin_layout Standard
19510 By default, each option has its own rules:
19513 \begin_layout Labeling
19514 \labelwidthstring 00.00.0000
19521 only floats occupying less than 70\InsetSpace \thinspace{}
19522 % of the page can be placed at the top
19532 \begin_layout Labeling
19533 \labelwidthstring 00.00.0000
19536 Bottom\InsetSpace ~
19540 : only floats occupying less than 30\InsetSpace \thinspace{}
19541 % of the page can be placed at the bottom
19552 \begin_layout Labeling
19553 \labelwidthstring 00.00.0000
19560 : only if more than 50\InsetSpace \thinspace{}
19561 % of the page are occupied by floats, several floats
19562 can be set together on a page.
19572 \begin_layout Standard
19573 If you don't like these rules, you can ignore them by using the additional
19576 Ignore\InsetSpace ~
19582 You can also redefine the rules with LaTeX-commands that are given in parenthese
19583 s behind the rules description above.
19584 To increase for example the often too small default of the bottom-rule
19585 to 50\InsetSpace \thinspace{}
19586 % of the page, add this line to your document preamble:
19589 \begin_layout Standard
19596 bottomfraction}{0.5}
19599 \begin_layout Standard
19600 Sometimes you might need, under all circumstances, a float to be placed
19601 exactly at the position where it is inserted.
19602 For this case you can use the option
19608 Use this option very rarely and only if the document is nearly ready to
19610 Because the float is then no longer able to
19611 \begin_inset Quotes eld
19615 \begin_inset Quotes erd
19618 when you change your document and this will often destroy the page layout.
19621 \begin_layout Standard
19622 There are no placement options for text wrap floats, because they are always
19623 surrounded by the text of a certain paragraph.
19624 \begin_inset VSpace bigskip
19630 \begin_layout Standard
19631 Sometimes you have the problem that a float is placed at the top of a page
19632 while its corresponding section starts at the middle of the page, so that
19633 the reader could think the float is part of the previous section.
19634 To avoid this the LaTeX-command
19641 It suppresses a given float placement for the page where it is inserted
19642 and can therefore be used to avoid that floats could be set before a section
19644 To get this, add these commands to your document preamble:
19647 \begin_layout Standard
19669 \begin_layout Standard
19670 You can define the same for all section headings, like chapters and subsections.
19671 This definition is not recommended to be used for small text parts like
19672 subsubsections because LaTeX may then have problems to find a suitable
19676 \begin_layout Standard
19677 \begin_inset VSpace bigskip
19680 In some cases it is required to have all figures/tables at the end of the
19682 For this purpose the LaTeX-package
19687 \begin_inset LatexCommand index
19688 name "LaTeX-packages ! endfloat"
19693 It puts all figure and table floats at the end of the document into own
19695 At the original float position a text hint like
19696 \begin_inset Quotes eld
19701 [Figure\InsetSpace ~
19705 \begin_inset Quotes erd
19709 The endfloat-package is loaded in the preamble with the line
19712 \begin_layout Standard
19717 usepackage[options]{endfloat}
19720 \begin_layout Standard
19721 There are various package options to format the created figure/table sections.
19722 For more information we refer to the
19727 \begin_inset LatexCommand cite
19735 \begin_inset Note Greyedout
19738 \begin_layout Standard
19743 doesn't provide an automatic translation for the text hint, you have to
19744 do this manually, see section\InsetSpace ~
19746 \begin_inset LatexCommand cite
19759 \begin_inset Note Greyedout
19762 \begin_layout Standard
19767 There is currently a bug in
19771 when the caption contains a German
19772 \begin_inset Quotes eld
19776 \begin_inset Quotes erd
19780 Use in this case the command
19781 \begin_inset Quotes eld
19791 \begin_inset Quotes erd
19794 in TeX-Code instead of
19795 \begin_inset Quotes eld
19799 \begin_inset Quotes erd
19810 \begin_layout Standard
19811 \begin_inset VSpace bigskip
19814 For more details about float placements, have a look at LaTeX books,
19815 \begin_inset LatexCommand cite
19816 key "latexcompanion,latexguide,latexbook"
19823 \begin_layout Section
19825 \begin_inset LatexCommand label
19826 name "sec:Rotated-Floats"
19831 \begin_inset LatexCommand index
19832 name "Floats ! Rotating"
19839 \begin_layout Standard
19840 Especially for wide tables you might have floats rotated.
19841 To rotate a whole float including the caption, right-click on the float-box
19844 Rotate\InsetSpace ~
19850 \begin_layout Standard
19851 Rotated floats are always placed on its own page (or column, when you have
19852 a two-column document).
19853 They are rotated so that you can read them from the outside margin.
19854 To force a certain rotation direction for all pages, you can add either
19863 to the document class options.
19866 \begin_layout Standard
19867 Referencing rotated floats is the same like for normal floats, the caption
19868 format is also the same: Table\InsetSpace ~
19870 \begin_inset LatexCommand ref
19871 reference "tab:Rotated-table"
19875 is an example of a rotated table float.
19878 \begin_layout Standard
19879 \begin_inset Note Greyedout
19882 \begin_layout Standard
19887 Not all DVI-viewers are able to display rotated floats.
19895 \begin_layout Standard
19896 \begin_inset Float table
19901 \begin_layout Standard
19902 \begin_inset Caption
19904 \begin_layout Standard
19905 \begin_inset LatexCommand label
19906 name "tab:Rotated-table"
19918 \begin_layout Standard
19920 \begin_inset Tabular
19921 <lyxtabular version="3" rows="1" columns="5">
19923 <column alignment="center" valignment="top" leftline="true" width="0">
19924 <column alignment="center" valignment="top" leftline="true" width="0">
19925 <column alignment="center" valignment="top" leftline="true" width="0">
19926 <column alignment="center" valignment="top" leftline="true" width="0">
19927 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19928 <row topline="true" bottomline="true">
19929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19932 \begin_layout Standard
19938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19941 \begin_layout Standard
19947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19950 \begin_layout Standard
19956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19959 \begin_layout Standard
19965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19968 \begin_layout Standard
19987 \begin_layout Section
19989 \begin_inset LatexCommand index
19990 name "Caption ! Formatting"
19995 \begin_inset LatexCommand index
19996 name "Floats ! Caption Formatting"
20001 \begin_inset LatexCommand index
20002 name "LaTeX-packages ! caption"
20007 \begin_inset LatexCommand label
20008 name "sec:Caption-Formatting"
20015 \begin_layout Standard
20020 environment is the default paragraph environment for
20025 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
20028 \begin_inset Quotes eld
20036 \begin_inset Quotes erd
20039 followed by the caption text.
20041 \begin_inset Quotes eld
20045 \begin_inset Quotes erd
20048 is the actual reference number.
20049 By default the label and the number are in the same font as the caption
20050 text and a colon follows the number to divide the label from the text.
20051 This caption format is not suitable for all document formats.
20055 \begin_layout Standard
20056 To change the default caption format, load the LaTeX-package
20061 \begin_inset LatexCommand index
20062 name "LaTeX-packages ! caption"
20066 in the document preamble with this line:
20069 \begin_layout Standard
20074 usepackage[format definition]{caption}
20077 \begin_layout Standard
20078 To have for example the label and the number in sans-serif bold font and
20079 the table captions always above the table like in this document, use the
20083 \begin_layout Standard
20088 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
20091 \begin_layout Standard
20092 You can also define different caption formats for the different float types.
20093 In this case load the
20097 package without format specific options and define the different formats
20098 with the help of the command
20101 \begin_layout Standard
20106 captionsetup[float type]{format definition}
20109 \begin_layout Standard
20110 in the document preamble.
20111 For example the caption formats of Figure\InsetSpace ~
20113 \begin_inset LatexCommand ref
20114 reference "fig:This-is-an-fig"
20118 and Table\InsetSpace ~
20120 \begin_inset LatexCommand ref
20121 reference "tab:This-is-an-tab"
20125 can be created using these commands in the document preamble:
20128 \begin_layout Standard
20133 usepackage[tableposition=top]{caption}
20141 captionsetup[f\SpecialChar \textcompwordmark{}
20142 igure]{labelfont={tt}, textfont=it, indention=1cm,%
20148 \begin_layout Standard
20156 captionsetup[figure]
20167 captionsetup[table]{labelfont={bf,sf}}
20170 \begin_layout Standard
20171 \begin_inset Note Greyedout
20174 \begin_layout Standard
20183 has no effect when a
20188 \begin_inset LatexCommand index
20189 name "LaTeX-packages ! koma-script"
20193 document class is used.
20194 In this case the document class option
20206 \begin_layout Standard
20207 For more information about the package
20211 we refer to its documentation
20212 \begin_inset LatexCommand cite
20213 key "caption,caption-de"
20220 \begin_layout Standard
20221 To change the label name from e.g.
20223 \begin_inset Quotes eld
20227 \begin_inset Quotes erd
20231 \begin_inset Quotes eld
20235 \begin_inset Quotes erd
20238 use this preamble command:
20241 \begin_layout Standard
20248 fnum@figure}{Image~
20253 \begin_layout Standard
20260 inserts the figure number and
20263 \begin_inset Quotes eld
20269 \begin_inset Quotes erd
20272 creates a protected space.
20275 \begin_layout Standard
20276 \begin_inset VSpace bigskip
20284 \begin_inset LatexCommand index
20285 name "LaTeX-packages ! koma-script"
20291 article (koma-script)
20299 letter (koma-script)
20303 report (koma-script)
20305 \InsetSpace \thinspace{}
20306 ), you can alternatively to the
20314 's built-in command
20321 For example, to have the caption label in bold, add this command to your
20325 \begin_layout Standard
20330 setkomafont{captionlabel}{
20335 \begin_layout Standard
20336 For more information about
20347 \begin_inset LatexCommand cite
20348 key "koma-script,koma-script-de"
20355 \begin_layout Standard
20359 \begin_layout Standard
20363 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
20370 \begin_inset Note Note
20373 \begin_layout Standard
20374 The caption format is changed only for this example.
20382 \begin_layout Standard
20383 \begin_inset Float figure
20389 \begin_layout Standard
20391 \begin_inset Graphics
20392 filename clipart/mobius.eps
20395 scaleBeforeRotation
20402 \begin_layout Standard
20403 \begin_inset Caption
20405 \begin_layout Standard
20406 \begin_inset LatexCommand label
20407 name "fig:This-is-an-fig"
20411 This is an example figure caption that is longer than one line to show the
20412 different caption format.
20413 Here a self-defined caption format is used.
20426 \begin_layout Standard
20430 \begin_layout Standard
20434 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
20443 \begin_layout Standard
20444 \begin_inset Float table
20450 \begin_layout Standard
20451 \begin_inset Caption
20453 \begin_layout Standard
20454 \begin_inset LatexCommand label
20455 name "tab:This-is-an-tab"
20459 This is an example table caption that is longer than one line to show the
20460 different caption format.
20461 Here the standard caption format for tables in this document is used.
20469 \begin_layout Standard
20471 \begin_inset Tabular
20472 <lyxtabular version="3" rows="1" columns="5">
20474 <column alignment="center" valignment="top" leftline="true" width="0">
20475 <column alignment="center" valignment="top" leftline="true" width="0">
20476 <column alignment="center" valignment="top" leftline="true" width="0">
20477 <column alignment="center" valignment="top" leftline="true" width="0">
20478 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20479 <row topline="true" bottomline="true">
20480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20483 \begin_layout Standard
20489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20492 \begin_layout Standard
20498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20501 \begin_layout Standard
20507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20510 \begin_layout Standard
20516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20519 \begin_layout Standard
20538 \begin_layout Section
20540 \begin_inset LatexCommand index
20541 name "Caption ! Placement"
20546 \begin_inset LatexCommand index
20547 name "Floats ! Caption Placement"
20552 \begin_inset LatexCommand label
20553 name "sec:Caption-Placement"
20560 \begin_layout Standard
20561 The common caption placement rule is:
20564 \begin_layout Description
20565 Figure: Caption is set below the figure
20568 \begin_layout Description
20569 Table: Caption is set above the table
20572 \begin_layout Standard
20573 Having the caption above the table is unfortunately not supported in LaTeX's
20575 That means if you are using the document classes
20591 there will be no space between the caption and the table.
20592 To insert the needed space, add the following option to the load command
20593 of the LaTeX-package
20597 in your document preamble
20601 \begin_layout Standard
20602 See section\InsetSpace ~
20604 \begin_inset LatexCommand ref
20605 reference "sec:Caption-Formatting"
20609 for more information of the package
20621 \begin_layout Standard
20627 \begin_layout Standard
20633 \begin_inset LatexCommand index
20634 name "LaTeX-packages ! koma-script"
20640 article (koma-script)
20648 letter (koma-script)
20652 report (koma-script)
20654 \InsetSpace \thinspace{}
20655 ), you can alternatively to the
20659 package set the document class option
20666 \begin_layout Standard
20667 \begin_inset VSpace bigskip
20670 It is also possible to set the caption beside a figure or table.
20671 To get this the LaTeX-package
20676 \begin_inset LatexCommand index
20677 name "LaTeX-packages ! sidecap"
20681 has to be loaded in the document preamble with the line
20684 \begin_layout Standard
20689 usepackage[option]{sidecap}
20692 \begin_layout Standard
20693 If you set no option, the caption is placed on the side of the outer page
20694 margin -- to the right on odd pages, to the left on even pages.
20695 You can change the placement to inner margin with the option
20700 To force the placement always to the right or left, use the option
20711 \begin_layout Standard
20712 To place in LyX the caption of a float on the side, it is necessary to add
20713 these commands to the document preamble:
20716 \begin_layout Standard
20722 \begin_layout Standard
20735 \begin_layout Standard
20756 \begin_layout Standard
20777 \begin_layout Standard
20788 renewenvironment{table}{
20795 \begin_layout Standard
20808 \begin_layout Standard
20829 \begin_layout Standard
20847 \begin_layout Standard
20860 \begin_layout Standard
20875 f\SpecialChar \textcompwordmark{}
20882 \begin_layout Standard
20895 MyEndf\SpecialChar \textcompwordmark{}
20898 endf\SpecialChar \textcompwordmark{}
20905 \begin_layout Standard
20916 renewenvironment{f\SpecialChar \textcompwordmark{}
20919 begin{SCf\SpecialChar \textcompwordmark{}
20922 end{SCf\SpecialChar \textcompwordmark{}
20926 \begin_layout Standard
20939 \begin_layout Standard
20952 f\SpecialChar \textcompwordmark{}
20961 \begin_layout Standard
20974 endf\SpecialChar \textcompwordmark{}
20977 MyEndf\SpecialChar \textcompwordmark{}
20981 \begin_layout Standard
20987 \begin_layout Standard
20988 The commands allow you to redefine the floats so that the caption is set
20990 For figure floats use the command
20993 \begin_layout Standard
21001 \begin_layout Standard
21002 in TeX-Code before the float.
21003 Behind the float insert the command
21006 \begin_layout Standard
21014 \begin_layout Standard
21015 in TeX-Code to get back to the original float definition.
21018 \begin_layout Standard
21019 For table floats use the corresponding commands
21022 \begin_layout Standard
21036 \begin_layout Standard
21037 Figure\InsetSpace ~
21039 \begin_inset LatexCommand ref
21040 reference "fig:cap-beside-fig"
21044 and Table\InsetSpace ~
21046 \begin_inset LatexCommand ref
21047 reference "tab:cap-beside-tab"
21051 are examples where the caption is set beside.
21054 \begin_layout Standard
21055 You can see in the examples that the caption text appears at the top of
21056 the floats for table floats and at the bottom for figure floats.
21057 To change this, you can use the command
21060 \begin_layout Standard
21065 sidecaptionvpos{float type}{placement}
21068 \begin_layout Standard
21069 in the document preamble or in TeX-Code before the float.
21070 The float type is either
21078 , the placement can be
21079 \begin_inset Quotes eld
21087 \begin_inset Quotes erd
21091 \begin_inset Quotes eld
21099 \begin_inset Quotes erd
21103 \begin_inset Quotes eld
21111 \begin_inset Quotes erd
21115 To have for example the caption of figure floats vertically centered, use
21119 \begin_layout Standard
21124 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
21128 \begin_layout Standard
21129 This was used for Figure\InsetSpace ~
21131 \begin_inset LatexCommand ref
21132 reference "fig:cap-beside-fig-2"
21139 \begin_layout Standard
21140 \begin_inset VSpace medskip
21143 For more information about the package
21147 we refer to its documentation
21148 \begin_inset LatexCommand cite
21156 \begin_layout Standard
21157 \begin_inset Note Greyedout
21160 \begin_layout Standard
21170 \begin_inset LatexCommand index
21171 name "LaTeX-packages ! hypcap"
21175 , described in section\InsetSpace ~
21177 \begin_inset LatexCommand ref
21178 reference "sub:Reference-Position"
21182 , has no effect on floats with the caption set beside.
21190 \begin_layout Standard
21194 \begin_layout Standard
21206 \begin_layout Standard
21207 \begin_inset Float figure
21212 \begin_layout Standard
21213 \begin_inset Graphics
21214 filename clipart/escher-lsd.eps
21216 scaleBeforeRotation
21223 \begin_layout Standard
21224 \begin_inset Caption
21226 \begin_layout Standard
21227 \begin_inset LatexCommand label
21228 name "fig:cap-beside-fig"
21232 This is a caption beside a figure.
21245 \begin_layout Standard
21249 \begin_layout Standard
21261 \begin_layout Standard
21262 \begin_inset Float table
21267 \begin_layout Standard
21268 \begin_inset Caption
21270 \begin_layout Standard
21271 \begin_inset LatexCommand label
21272 name "tab:cap-beside-tab"
21276 This is a caption beside a table.
21284 \begin_layout Standard
21285 \begin_inset Tabular
21286 <lyxtabular version="3" rows="4" columns="5">
21288 <column alignment="center" valignment="top" leftline="true" width="0">
21289 <column alignment="center" valignment="top" leftline="true" width="0">
21290 <column alignment="center" valignment="top" leftline="true" width="0">
21291 <column alignment="center" valignment="top" leftline="true" width="0">
21292 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
21293 <row topline="true">
21294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21297 \begin_layout Standard
21303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21306 \begin_layout Standard
21312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21315 \begin_layout Standard
21321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21324 \begin_layout Standard
21330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21333 \begin_layout Standard
21340 <row topline="true">
21341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21344 \begin_layout Standard
21350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21353 \begin_layout Standard
21359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21362 \begin_layout Standard
21368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21371 \begin_layout Standard
21377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21380 \begin_layout Standard
21387 <row topline="true">
21388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21391 \begin_layout Standard
21397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21400 \begin_layout Standard
21406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21409 \begin_layout Standard
21415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21418 \begin_layout Standard
21424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21427 \begin_layout Standard
21434 <row topline="true" bottomline="true">
21435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21438 \begin_layout Standard
21444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21447 \begin_layout Standard
21453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21456 \begin_layout Standard
21462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21465 \begin_layout Standard
21471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21474 \begin_layout Standard
21493 \begin_layout Standard
21497 \begin_layout Standard
21509 \begin_layout Standard
21513 \begin_layout Standard
21517 sidecaptionvpos{figure}{c}
21523 \begin_inset Float figure
21528 \begin_layout Standard
21529 \begin_inset Graphics
21530 filename clipart/escher-lsd.eps
21532 scaleBeforeRotation
21539 \begin_layout Standard
21540 \begin_inset Caption
21542 \begin_layout Standard
21543 \begin_inset LatexCommand label
21544 name "fig:cap-beside-fig-2"
21548 This is a vertically centered caption beside a figure.
21561 \begin_layout Standard
21565 \begin_layout Standard
21577 \begin_layout Section
21579 \begin_inset LatexCommand label
21580 name "sec:Listings-of-Floats"
21585 \begin_inset LatexCommand index
21586 name "Floats ! Float Lists"
21593 \begin_layout Standard
21594 Similar to the the table of contents where the sections of the document
21595 are listed, there are listings for all float types, like the figures of
21597 You can insert them via the
21599 Insert\SpecialChar \menuseparator
21607 \begin_layout Standard
21608 The list entries are the float captions or its short title, the float number,
21609 and the page number where they appear in the document.
21612 \begin_layout Standard
21613 You can find the list of figures and tables at the end of this document.
21616 \begin_layout Chapter
21620 \begin_layout Section
21622 \begin_inset LatexCommand label
21623 name "sec:LyX-Notes"
21628 \begin_inset LatexCommand index
21629 name "Notes ! LyX Notes"
21636 \begin_layout Standard
21637 Notes are inserted with the toolbar button
21638 \begin_inset Graphics
21639 filename ../images/note-insert.png
21641 scaleBeforeRotation
21647 Insert\SpecialChar \menuseparator
21651 There are five types of notes:
21654 \begin_layout Description
21656 Note This note type is for internal notes that won't appear in the output.
21657 Its note-box looks like this:
21662 \begin_inset Graphics
21663 filename clipart/LyXNoteImageQt4.png
21666 scaleBeforeRotation
21671 \begin_inset Note Note
21674 \begin_layout Standard
21675 This is text in a note box that doesn't appear in the output.
21683 \begin_layout Description
21684 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21685 ent, when you export the document to LaTeX via the menu
21687 File\SpecialChar \menuseparator
21688 Export\SpecialChar \menuseparator
21689 LaTeX (pdflatex) / (plain)
21692 Its note-box looks like this:
21697 \begin_inset Graphics
21698 filename clipart/CommentNoteImageQt4.png
21701 scaleBeforeRotation
21706 \begin_inset Note Comment
21709 \begin_layout Standard
21710 This is text in a note box that only appears as comment in LaTeX-files.
21718 \begin_layout Description
21719 Greyed\InsetSpace ~
21720 Out This note will appear in the output as grey text.
21721 Its note-box looks like this:
21726 \begin_inset Graphics
21727 filename clipart/GreyedOutNoteImageQt4.png
21730 scaleBeforeRotation
21740 \begin_layout Standard
21744 renewenvironment{lyxgreyedout}
21747 \begin_layout Standard
21751 textcolor[gray]{0.8}
21761 \begin_inset Note Greyedout
21764 \begin_layout Standard
21769 \begin_layout Standard
21770 This is an example footnote within a greyed out note.
21775 of a comment that appears in the output as grey text.
21784 \begin_layout Standard
21788 renewenvironment{lyxgreyedout}
21791 \begin_layout Standard
21805 \begin_inset Note Note
21808 \begin_layout Standard
21809 The greyed out note is here redefined to show it with the original LyX definitio
21810 n because greyed out notes are redefined in the preamble of this document,
21811 as described below, to have blue text.
21820 As you can see in the example, the first line of greyed out notes is a bit
21821 indented and greyed out notes can have footnotes.
21824 \begin_layout Description
21825 Framed This note will appear in the output as framed text.
21826 Its note-box looks like this:
21831 \begin_inset Graphics
21832 filename clipart/FramedNoteImageQt4.png
21835 scaleBeforeRotation
21840 \begin_inset Note Framed
21843 \begin_layout Standard
21844 This is text in a note box that appears framed in the output.
21849 In contrary to framed boxes
21853 \begin_layout Standard
21854 Framed boxes are described in section\InsetSpace ~
21856 \begin_inset LatexCommand ref
21857 reference "sec:Framed-Boxes"
21866 the frame uses always the whole text width and the note is set into its
21870 \begin_layout Description
21871 Shaded This note will appear in the output with red background color.
21872 Its note box looks like this:
21877 \begin_inset Graphics
21878 filename clipart/ShadedNoteImageQt4.png
21881 scaleBeforeRotation
21886 \begin_inset Note Shaded
21889 \begin_layout Standard
21890 This text in a note box appears in the output with red background.
21895 In contrary to colored boxes
21899 \begin_layout Standard
21900 Colored boxes are described in section\InsetSpace ~
21902 \begin_inset LatexCommand ref
21903 reference "sec:Colored-Boxes"
21912 the note uses always the whole text width and the note is set into its
21916 \begin_layout Standard
21917 \begin_inset VSpace bigskip
21920 When you use the toolbar button
21921 \begin_inset Graphics
21922 filename ../images/note-insert.png
21924 scaleBeforeRotation
21934 You can switch between the five note types by right-clicking on the note-box.
21939 If you want to turn existing text into a note, mark it and click on the
21953 To change a note to text, press the backspace key when the cursor is in
21954 the first position of a note, or press the deletey key when the cursor
21955 is in the very last position of the note, respectively.
21958 \begin_layout Standard
21959 \begin_inset VSpace bigskip
21962 You can change the text color of the greyed out notes in the preamble with
21963 the following command:
21966 \begin_layout Standard
21971 renewenvironment{lyxgreyedout}
21977 \begin_layout Standard
21995 \begin_layout Standard
21996 The available colors and the method to define own colors is explained in
21997 section\InsetSpace ~
21999 \begin_inset LatexCommand ref
22000 reference "sec:Colored-Tables"
22007 \begin_layout Standard
22008 Notes that appear in blue in this document are set using greyed out notes
22012 \begin_layout Standard
22013 \begin_inset VSpace bigskip
22019 \begin_layout Standard
22028 notes can be set in the
22035 \begin_layout Standard
22036 The default frame width for
22040 notes is 0.4\InsetSpace \thinspace{}
22041 pt; it can be changed by changing the size
22048 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
22050 be changed by changing the size
22057 For example the frame appearance of the following
22061 note is set with the TeX-Code commands
22064 \begin_layout Standard
22074 \begin_layout Standard
22078 \begin_layout Standard
22090 \begin_inset Note Framed
22093 \begin_layout Standard
22107 \begin_layout Standard
22121 \begin_layout Standard
22122 \begin_inset VSpace bigskip
22128 \begin_layout Standard
22133 notes the default space between the note content and the note border is
22134 3\InsetSpace \thinspace{}
22135 pt; it can be changed by changing the size
22143 The default background color red can be changed with the command
22147 def\SpecialChar \textcompwordmark{}
22155 def\SpecialChar \textcompwordmark{}
22158 command is explained in section\InsetSpace ~
22160 \begin_inset LatexCommand ref
22161 reference "sec:Colored-Tables"
22169 \begin_layout Standard
22176 \SpecialChar \textcompwordmark{}
22181 requires the LaTeX-package
22185 in the preamble, see section\InsetSpace ~
22187 \begin_inset LatexCommand ref
22188 reference "sec:Colored-Boxes"
22200 \begin_layout Standard
22201 For example the appearance of the following
22205 note is set with the TeX-Code commands
22208 \begin_layout Standard
22221 def\SpecialChar \textcompwordmark{}
22222 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22225 \begin_layout Standard
22229 \begin_layout Standard
22242 \begin_layout Standard
22246 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22252 \begin_inset Note Shaded
22255 \begin_layout Standard
22258 This is yellow text in a
22268 note with darkgreen background.
22277 \begin_layout Standard
22290 \begin_layout Standard
22294 definecolor{shadecolor}{rgb}{1,0,0}
22302 \begin_layout Section
22304 \begin_inset LatexCommand label
22305 name "sec:Footnotes"
22310 \begin_inset LatexCommand index
22311 name "Notes ! Footnotes"
22316 \begin_inset LatexCommand index
22324 \begin_layout Standard
22325 Footnotes can be inserted using the toolbar button
22326 \begin_inset Graphics
22327 filename ../images/footnote-insert.png
22329 scaleBeforeRotation
22335 Insert\SpecialChar \menuseparator
22347 then the following footnote-box:
22348 \begin_inset Graphics
22349 filename clipart/footnoteQt4.png
22351 scaleBeforeRotation
22359 where you can enter the footnote text.
22360 If you want to turn existing text into a footnote, mark it and click on
22382 to text, press the Backspace key when the cursor is in the first position
22391 , or press the Delete key when the cursor is in the very last position of
22403 \begin_layout Standard
22404 Here is an example footnote:
22412 \begin_layout Standard
22413 \begin_inset LatexCommand label
22414 name "foot:This-is-an"
22418 This is an example footnote.
22431 \begin_layout Standard
22435 newcounter{MyRepeatFoot}
22438 \begin_layout Standard
22442 setcounter{MyRepeatFoot}{
22452 \begin_layout Standard
22453 The footnote will appear in the output as a superscript number at the text
22454 position where the footnote box is placed.
22455 The footnote text is placed at the bottom of the current page.
22456 The footnote number is calculated by LaTeX, the numbers are consecutive.
22457 It depends on your document-class, if the footnote number is reset for
22461 \begin_layout Standard
22462 Footnotes can be referenced like floats: Insert a label into the footnote
22463 and cross-reference this label in the text as described in section\InsetSpace ~
22465 \begin_inset LatexCommand ref
22466 reference "sec:Referencing-Floats"
22472 This is a cross-reference of Footnote\InsetSpace ~
22474 \begin_inset LatexCommand ref
22475 reference "foot:This-is-an"
22482 \begin_layout Standard
22483 \begin_inset VSpace defskip
22486 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
22488 \begin_inset LatexCommand ref
22489 reference "sec:Minipages"
22494 Footnotes within longtables are described in section\InsetSpace ~
22496 \begin_inset LatexCommand ref
22497 reference "sub:Footnotes-in-Longtables"
22504 \begin_layout Standard
22505 \begin_inset VSpace defskip
22508 To create only a mark for a footnote, use the command
22512 footnotemark[number]
22515 This is used when you have the same annotation several times in a text
22516 but doesn't want to print the footnote text every time.
22519 the number of the repeating footnote while you are writing the text, you
22520 have to store its number.
22521 For the following footnote mark example, these commands were inserted in
22522 TeX-Code behind Footnote\InsetSpace ~
22524 \begin_inset LatexCommand ref
22525 reference "foot:This-is-an"
22529 to store the footnote number:
22532 \begin_layout Standard
22537 newcounter{MyRepeatFoot}
22541 setcounter{MyRepeatFoot}{
22546 \begin_layout Standard
22547 The footnote mark was then created with this command:
22550 \begin_layout Standard
22560 \begin_layout Standard
22561 Here is an example footnote mark:
22569 \begin_layout Standard
22583 \begin_layout Subsection
22585 \begin_inset LatexCommand label
22586 name "sub:Footnote-Numbering"
22591 \begin_inset LatexCommand index
22592 name "Footnotes ! Numbering"
22599 \begin_layout Standard
22600 To reset the footnote number back to 1 after each section
22602 , add this command to your document preamble:
22605 \begin_layout Standard
22610 @addtoreset{footnote}{section}
22613 \begin_layout Standard
22614 \begin_inset VSpace bigskip
22617 The following preamble command changes the footnote numbering style to small
22621 \begin_layout Standard
22633 \begin_layout Standard
22637 \begin_layout Standard
22650 This is a footnote with roman numbering:
22654 \begin_layout Standard
22655 This is an example footnote with roman numbering.
22663 \begin_layout Standard
22664 To change the numbering style to capital roman numerals replace in the command
22679 \begin_inset Quotes eld
22683 \begin_inset Quotes erd
22686 footnotes with capital or small Latin letters use
22700 \begin_inset Quotes eld
22704 \begin_inset Quotes erd
22707 footnotes with symbols use
22716 \begin_layout Standard
22717 \begin_inset Note Greyedout
22720 \begin_layout Standard
22725 You can only number 26 footnotes with Latin letters, because this numbering
22726 is limited to single letters.
22734 \begin_inset Note Greyedout
22737 \begin_layout Standard
22742 You can only number 9 footnotes with symbols.
22750 \begin_layout Standard
22751 To return to the default numbering style when you changed to another one,
22764 in the command above.
22768 \begin_layout Standard
22784 \begin_layout Standard
22785 \begin_inset VSpace bigskip
22791 \begin_layout Standard
22792 If you want to have footnotes numbered in the scheme
22793 \begin_inset Quotes eld
22797 \begin_inset Quotes erd
22800 , add the following command to your document preamble:
22803 \begin_layout Standard
22808 numberwithin{footnote}{chapter}
22811 \begin_layout Standard
22812 To be able to use the command
22823 in the document settings the option
22833 \begin_layout Standard
22837 \begin_layout Standard
22841 numberwithin{footnote}{chapter}
22846 This is another example footnote:
22852 \begin_layout Standard
22853 This is a footnote numbered in the scheme
22854 \begin_inset Quotes eld
22858 \begin_inset Quotes erd
22872 \begin_layout Standard
22888 \begin_layout Standard
22889 \begin_inset Note Greyedout
22892 \begin_layout Standard
22903 always prints out the footnote number as arabic number; previous redefinitions
22904 to get non-arabic numbers are overwritten.
22912 \begin_layout Standard
22913 So to get for example the scheme
22914 \begin_inset Quotes eld
22920 \begin_inset Quotes erd
22923 , use this command instead of
22932 \begin_layout Standard
22946 \begin_layout Subsection
22948 \begin_inset LatexCommand index
22949 name "Footnotes ! Placement"
22956 \begin_layout Standard
22957 If you have several footnotes in one page, they appear without vertical
22958 space between them at the bottom of the page.
22959 To make them better readable you can e.\InsetSpace \thinspace{}
22961 add 1.5\InsetSpace \thinspace{}
22962 mm space with the following
22966 \begin_layout Standard
22988 \begin_layout Standard
22989 \begin_inset VSpace bigskip
22992 In a two-column document the footnotes appear at the bottom of every column,
22993 see Figure\InsetSpace ~
22995 \begin_inset LatexCommand ref
22996 reference "fig:Standard-footnote-placement"
23001 If the footnotes should only appear at the bottom of the right column,
23002 as in Figure\InsetSpace ~
23004 \begin_inset LatexCommand ref
23005 reference "fig:Footnote-placement-in"
23009 , use the LaTeX-package
23014 \begin_inset LatexCommand index
23015 name "LaTeX-packages ! ftnright"
23019 with this command in the document preamble:
23022 \begin_layout Standard
23027 usepackage{ftnright}
23030 \begin_layout Standard
23031 \begin_inset Float figure
23037 \begin_layout Standard
23041 \begin_layout Standard
23051 \begin_inset Graphics
23052 filename clipart/without_fntright.pdf
23054 scaleBeforeRotation
23062 \begin_layout Standard
23072 \begin_layout Standard
23073 \begin_inset Caption
23075 \begin_layout Standard
23076 \begin_inset LatexCommand label
23077 name "fig:Standard-footnote-placement"
23081 Standard footnote placement in two-column documents.
23094 \begin_layout Standard
23095 \begin_inset Float figure
23101 \begin_layout Standard
23105 \begin_layout Standard
23115 \begin_inset Graphics
23116 filename clipart/with_fntright.pdf
23118 scaleBeforeRotation
23126 \begin_layout Standard
23136 \begin_layout Standard
23137 \begin_inset Caption
23139 \begin_layout Standard
23140 \begin_inset LatexCommand label
23141 name "fig:Footnote-placement-in"
23145 Footnote placement in two-column documents when the LaTeX-package
23162 \begin_layout Standard
23163 \begin_inset VSpace bigskip
23166 In some scientific literature it is usual to collect the footnotes and print
23167 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
23169 \begin_inset LatexCommand ref
23170 reference "fig:Endnotes----footnotes"
23175 They are then so called
23176 \begin_inset Quotes eld
23180 \begin_inset Quotes erd
23184 To use endnotes instead of footnotes in your document, load the LaTeX-package
23190 \begin_inset LatexCommand index
23191 name "LaTeX-packages ! endnotes"
23195 with the document preamble lines
23198 \begin_layout Standard
23203 usepackage{endnotes}
23214 \begin_layout Standard
23215 To insert the collected footnotes, insert the command
23218 \begin_layout Standard
23226 \begin_layout Standard
23227 in TeX-Code at the the end of a section or chapter.
23230 \begin_layout Standard
23231 \begin_inset Float figure
23236 \begin_layout Standard
23241 \begin_layout Standard
23251 \begin_inset Graphics
23252 filename clipart/endnotes.pdf
23253 scaleBeforeRotation
23261 \begin_layout Standard
23271 \begin_layout Standard
23272 \begin_inset Caption
23274 \begin_layout Standard
23275 \begin_inset LatexCommand label
23276 name "fig:Endnotes----footnotes"
23280 Endnotes -- footnotes are printed in a separate paragraph at the end of
23281 sections or chapters.
23294 \begin_layout Standard
23295 \begin_inset VSpace medskip
23298 The paragraph heading for the endnotes isn't automatically translated into
23299 the document language, this must be done manually.
23300 The following preamble command translate the default English name
23301 \begin_inset Quotes eld
23305 \begin_inset Quotes erd
23308 to the German translation
23309 \begin_inset Quotes eld
23313 \begin_inset Quotes erd
23319 \begin_layout Standard
23326 notesname}{Anmerkungen}
23329 \begin_layout Standard
23330 \begin_inset VSpace medskip
23333 The numbering of endnotes can be changed like the footnote numbering as
23334 described in section\InsetSpace ~
23336 \begin_inset LatexCommand ref
23337 reference "sub:Footnote-Numbering"
23341 ; just replace the command
23354 To reset the endnote number use the command
23360 as described in section\InsetSpace ~
23362 \begin_inset LatexCommand ref
23363 reference "sub:Footnote-Numbering"
23367 and replace the command parameter
23378 \begin_layout Standard
23379 To create only a mark for an endnote, use the command
23383 endnotemark[number]
23385 similar to the command
23391 , described in section\InsetSpace ~
23393 \begin_inset LatexCommand ref
23394 reference "sec:Footnotes"
23401 \begin_layout Standard
23402 \begin_inset VSpace bigskip
23405 Footnotes can also be placed in the page margin and the footnote text alignment
23406 can be changed, see the LaTeX-package
23411 \begin_inset LatexCommand index
23412 name "LaTeX-packages ! footmisc"
23417 \begin_inset LatexCommand cite
23422 for more information about this.
23425 \begin_layout Standard
23426 For various further footnote formatting issues have a look at LaTeX-books,
23428 \begin_inset LatexCommand cite
23429 key "latexcompanion,latexguide,latexbook"
23436 \begin_layout Section
23438 \begin_inset LatexCommand index
23439 name "Notes ! Margin Notes"
23446 \begin_layout Standard
23447 Margin notes look and behave in LyX like footnotes.
23448 They are inserted via the menu
23450 Insert\SpecialChar \menuseparator
23451 Marginal\InsetSpace ~
23454 or the toolbar button
23455 \begin_inset Graphics
23456 filename ../images/marginalnote-insert.png
23458 scaleBeforeRotation
23473 \begin_inset Quotes eld
23477 \begin_inset Quotes erd
23480 appears where you can enter the text of the margin note.
23483 \begin_layout Standard
23484 At the side is an example margin note.
23488 \begin_inset Marginal
23491 \begin_layout Standard
23492 This is a margin note.
23500 \begin_layout Standard
23501 Margin notes appear at the right side in single-sided documents.
23502 In double-sided documents they appear in the outer margin -- left on even
23503 pages, right on odd pages.
23504 The text of margin notes is aligned opposite to the outer margin -- right-align
23505 ed when the note appears in the left margin.
23506 The first line of the margin note is placed at the position of the text
23507 line where it is inserted in the document.
23510 \begin_layout Standard
23511 \begin_inset VSpace bigskip
23514 To place the margin note in the inner margin, add the command
23517 \begin_layout Standard
23525 \begin_layout Standard
23526 in TeX-Code before a margin note.
23527 The new placement is valid for all following margin notes.
23531 \begin_layout Standard
23541 \begin_inset Marginal
23544 \begin_layout Standard
23545 This is a margin note in the inner margin.
23557 \begin_inset Note Greyedout
23560 \begin_layout Standard
23565 There is often not enough space in the inner margin so that the notes are
23566 not correctly displayed in the output.
23574 \begin_layout Standard
23575 To return to the default placement insert the command
23578 \begin_layout Standard
23586 \begin_layout Standard
23591 \begin_layout Standard
23601 \begin_inset Note Greyedout
23604 \begin_layout Standard
23609 The command is ignored when it is within a paragraph where also the command
23624 \begin_layout Standard
23625 \begin_inset VSpace bigskip
23632 \begin_inset Marginal
23635 \begin_layout Standard
23636 AVeryLongMarginParWord that isn't hyphenated.
23644 Similar to the case described in section\InsetSpace ~
23646 \begin_inset LatexCommand ref
23647 reference "sub:Multiple-Lines-in"
23651 , long words cannot be hyphenated when they are the first word in a margin
23653 To avoid this, insert the command
23656 \begin_layout Standard
23664 \begin_layout Standard
23665 in TeX-Code before the word
23669 \begin_inset Marginal
23672 \begin_layout Standard
23676 \begin_layout Standard
23685 AVeryLongMarginParWord that is hyphenated.
23693 \begin_layout Standard
23694 \begin_inset VSpace bigskip
23700 \begin_layout Standard
23701 \begin_inset Note Greyedout
23704 \begin_layout Standard
23709 Margin notes can normally not be used inside tables, floats, and footnotes.
23717 \begin_layout Standard
23718 \begin_inset VSpace bigskip
23724 \begin_layout Standard
23728 \begin_layout Standard
23738 \begin_inset Note Note
23741 \begin_layout Standard
23742 The following section will only be displayed when the LaTeX-package
23754 \begin_layout Standard
23755 This restriction can be evaded by using the LaTeX-package
23760 \begin_inset LatexCommand index
23761 name "LaTeX-packages ! marginnote"
23766 By adding these two lines to your document preamble, the command used by
23767 LyX for margin notes is redefined to use the command provided by the
23774 \begin_layout Standard
23779 usepackage{marginnote}
23790 \begin_layout Standard
23791 This is also used in this document because
23795 has another useful feature: You can set a vertical offset for the note.
23796 This is often needed when too many margin notes are too close together
23797 or for a better page layout.
23798 The offset is set in LyX as TeX-Code directly behind the margin note in
23802 \begin_layout Standard
23808 \begin_layout Standard
23809 where the offset is a length with one of the units listed in Table\InsetSpace ~
23811 \begin_inset LatexCommand ref
23812 reference "tab:Units"
23817 A negative value shifts the note up, a positive value shifts it down.
23821 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23823 the TeX-Code-command
23824 \begin_inset Quotes eld
23834 \begin_inset Quotes erd
23838 \begin_inset Marginal
23841 \begin_layout Standard
23842 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23843 cm from its original position.
23855 \begin_layout Standard
23865 \begin_layout Standard
23866 \begin_inset VSpace medskip
23873 you can also change the alignment of the text in the margin note.
23874 For example the commands
23877 \begin_layout Standard
23884 raggedleftmarginnote}{
23892 raggedrightmarginnote}{
23897 \begin_layout Standard
23898 set the alignment to centered.
23903 raggedleftmarginnote
23905 denotes margin notes that appear at the left side.
23912 \begin_layout Standard
23918 raggedleftmarginnote}{
23923 \begin_layout Standard
23929 raggedrightmarginnote}{
23937 \begin_inset Marginal
23940 \begin_layout Standard
23941 The text of this margin note is centered.
23952 \begin_layout Standard
23959 raggedleftmarginnote}{
23967 raggedrightmarginnote}{
23976 \begin_layout Standard
23982 raggedleftmarginnote}{
23987 \begin_layout Standard
23993 raggedrightmarginnote}{
24003 \begin_layout Standard
24004 \begin_inset VSpace medskip
24007 For the other features of
24011 we refer to its documentation
24012 \begin_inset LatexCommand cite
24020 \begin_layout Standard
24021 \begin_inset VSpace bigskip
24024 You can adjust the layout of margin notes by changing its definition.
24025 To create for example a header for all margin notes with the underlined,
24026 sans-serif, and bold header text
24027 \begin_inset Quotes eld
24039 \begin_inset Quotes erd
24042 , add this to your document preamble:
24045 \begin_layout Standard
24068 \begin_layout Standard
24085 underbar{Attention!}}}%
24091 \begin_layout Standard
24109 \begin_layout Standard
24116 \begin_layout Standard
24127 \begin_layout Standard
24138 \begin_layout Standard
24146 underbar{Attention!}}}%
24149 \begin_layout Standard
24163 \begin_inset Marginal
24166 \begin_layout Standard
24167 This is a margin note with a defined heading.
24179 \begin_layout Standard
24193 \begin_layout Standard
24210 \begin_inset Note Note
24213 \begin_layout Standard
24214 The margin note format is changed only for this example.
24222 \begin_layout Standard
24226 \begin_layout Standard
24236 \begin_inset Note Note
24239 \begin_layout Standard
24240 The following will be displayed when the LaTeX-package
24252 \begin_layout Standard
24253 You need to install the LaTeX-package
24257 to see the following part of this section in the output.
24260 \begin_layout Standard
24264 \begin_layout Standard
24276 \begin_layout Chapter
24280 \begin_layout Section
24282 \begin_inset LatexCommand index
24283 name "Boxes ! Introduction"
24290 \begin_layout Standard
24291 Boxes are used to format a block of text.
24292 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24294 \begin_inset LatexCommand ref
24295 reference "sec:Minipages"
24299 , to frame texts, see section\InsetSpace ~
24301 \begin_inset LatexCommand ref
24302 reference "sec:Framed-Boxes"
24306 , to prevent words to be hyphenated, see section\InsetSpace ~
24308 \begin_inset LatexCommand ref
24309 reference "sec:Prevent-Hyphenation"
24313 , to align text, see section\InsetSpace ~
24315 \begin_inset LatexCommand ref
24316 reference "sub:Vertical-Alignment"
24320 , or to set the background color of texts, see section\InsetSpace ~
24322 \begin_inset LatexCommand ref
24323 reference "sec:Colored-Boxes"
24330 \begin_layout Standard
24331 Boxes can be inserted with the menu
24333 Insert\SpecialChar \menuseparator
24336 or the toolbar button
24337 \begin_inset Graphics
24338 filename ../images/box-insert.png
24340 scaleBeforeRotation
24345 A grey box with the label
24350 \begin_inset Graphics
24351 filename clipart/BoxInsetDefaultQt4.png
24353 scaleBeforeRotation
24357 , will be inserted.
24358 The box type can be specified by right-clicking on the box.
24359 The appearing box dialog offers the
24377 is the default for new boxes and is explained in section\InsetSpace ~
24379 \begin_inset LatexCommand ref
24380 reference "sec:Minipages"
24388 is described in section\InsetSpace ~
24390 \begin_inset LatexCommand ref
24391 reference "sec:Parboxes"
24398 \begin_layout Standard
24399 Boxes aren't numbered and can therefore not be referenced like floats or
24403 \begin_layout Standard
24404 \begin_inset Note Greyedout
24407 \begin_layout Standard
24412 Boxes must not be the item in an
24428 \begin_layout Standard
24429 \begin_inset Note Greyedout
24432 \begin_layout Standard
24437 For an unknown reason you can only set the
24446 when you use a framed box.
24452 type and without frames are explained in section\InsetSpace ~
24454 \begin_inset LatexCommand ref
24455 reference "sec:Prevent-Hyphenation"
24467 \begin_layout Section
24469 \begin_inset LatexCommand label
24470 name "sec:Box-Dialog"
24475 \begin_inset LatexCommand index
24476 name "Boxes ! Box Dialog"
24481 \begin_inset LatexCommand index
24482 name "Boxes ! Alignment"
24489 \begin_layout Standard
24490 In the box dialog you can adjust the box geometry in the fields
24499 The available units for the geometry are explained in Table\InsetSpace ~
24501 \begin_inset LatexCommand ref
24502 reference "tab:Units"
24511 offers the following additional sizes:
24514 \begin_layout Description
24515 Depth This is the plain text
24516 \begin_inset Quotes eld
24520 \begin_inset Quotes erd
24524 It ignores the total depth when there are multiple text lines in the box:
24531 \begin_inset Box Boxed
24540 height_special "depth"
24543 \begin_layout Standard
24545 Box height set to 1\InsetSpace \thinspace{}
24558 \begin_layout Description
24559 Height This is the heigth of the text that is inside the box.
24560 A value of e.\InsetSpace \thinspace{}
24562 2 for this size will set the box heigth to 2 times the text
24564 \begin_inset Box Boxed
24573 height_special "height"
24576 \begin_layout Standard
24578 Box height set to 2\InsetSpace \thinspace{}
24587 \begin_layout Description
24589 Height This is the Height\InsetSpace \thinspace{}
24590 +\InsetSpace \thinspace{}
24592 \begin_inset Box Boxed
24601 height_special "totalheight"
24604 \begin_layout Standard
24606 Box height set to 1\InsetSpace \thinspace{}
24616 \begin_layout Description
24617 Width This sets the width of the box as heigth:
24618 \begin_inset Box Boxed
24627 height_special "width"
24630 \begin_layout Standard
24632 Box height set to 1\InsetSpace \thinspace{}
24641 \begin_layout Standard
24642 \begin_inset VSpace bigskip
24645 When you have chosen an
24650 , the vertical box alignment can be:
24653 \begin_layout Description
24654 Top This is an example text line.
24656 \begin_inset Box Boxed
24665 height_special "totalheight"
24668 \begin_layout Standard
24670 This box is top-aligned.
24675 This is an example text line.
24678 \begin_layout Description
24679 Middle This is an example text line.
24681 \begin_inset Box Boxed
24690 height_special "totalheight"
24693 \begin_layout Standard
24695 This box is middle-aligned.
24700 This is an example text line.
24703 \begin_layout Description
24704 Bottom This is an example text line.
24706 \begin_inset Box Boxed
24715 height_special "totalheight"
24718 \begin_layout Standard
24720 This box is bottom-aligned.
24725 This is an example text line.
24728 \begin_layout Standard
24729 The horizontal box alignment can be set via LyX's paragraph dialog when
24730 you set the box into its own paragraph.
24733 \begin_layout Standard
24734 \begin_inset VSpace bigskip
24737 When you have chosen an
24742 , the box content can be vertical aligned to:
24745 \begin_layout Description
24746 top This is an example text line.
24748 \begin_inset Box Boxed
24757 height_special "totalheight"
24760 \begin_layout Standard
24762 This box text is top-aligned.
24767 This is an example text line.
24770 \begin_layout Description
24771 middle This is an example text line.
24773 \begin_inset Box Boxed
24782 height_special "totalheight"
24785 \begin_layout Standard
24787 This box text is middle-aligned.
24792 This is an example text line.
24795 \begin_layout Description
24796 bottom This is an example text line.
24798 \begin_inset Box Boxed
24807 height_special "totalheight"
24810 \begin_layout Standard
24812 This box text is bottom-aligned.
24817 This is an example text line.
24820 \begin_layout Description
24821 stretch This is an example text line.
24823 \begin_inset Box Boxed
24832 height_special "totalheight"
24835 \begin_layout Standard
24840 \begin_layout Standard
24845 \begin_layout Standard
24852 This is an example text line.
24855 \begin_layout Standard
24856 To stretch the box content, it must consist of more than one paragraph.
24857 In the example above every text line is in an own paragraph.
24860 \begin_layout Standard
24861 \begin_inset VSpace bigskip
24864 To align the box content horizontally you can use LyX's paragraph dialog
24865 when you have chosen an
24873 \begin_layout Standard
24875 \begin_inset Box Boxed
24884 height_special "totalheight"
24887 \begin_layout Standard
24892 \begin_layout Standard
24897 \begin_layout Standard
24907 \begin_layout Standard
24908 If you haven't set an
24913 , you can align the box content horizontally in the box dialog.
24916 \begin_layout Standard
24918 \begin_inset Box Boxed
24927 height_special "totalheight"
24930 \begin_layout Standard
24932 This box text is horizontally stretched.
24940 \begin_layout Section
24942 \begin_inset LatexCommand label
24943 name "sec:Framed-Boxes"
24948 \begin_inset LatexCommand index
24949 name "Boxes ! Frames"
24956 \begin_layout Standard
24957 The frame style of the box can be specified in the box-dialog in the drop-down
24963 The following frame types are possible:
24966 \begin_layout Description
24967 Rectangular\InsetSpace ~
24968 box This draws a rectangle frame around the box.
24969 The frame line thickness has the size of
24977 \begin_inset Box Boxed
24986 height_special "totalheight"
24989 \begin_layout Standard
24999 \begin_layout Description
25002 thin This draws an oval frame around the box.
25003 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
25006 \begin_inset Box ovalbox
25015 height_special "totalheight"
25018 \begin_layout Standard
25028 \begin_layout Description
25031 thick This draws an oval frame around the box.
25032 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
25035 \begin_inset Box Ovalbox
25044 height_special "totalheight"
25047 \begin_layout Standard
25057 \begin_layout Description
25058 Shadow\InsetSpace ~
25059 box This draws a rectangle frame with a shadow around the box.
25060 The frame line thickness has the size of
25066 , the shadow has a width of 4\InsetSpace \thinspace{}
25069 \begin_inset Box Shadowbox
25078 height_special "totalheight"
25081 \begin_layout Standard
25091 \begin_layout Description
25092 Double\InsetSpace ~
25093 box This draws a double-line rectangle frame around the box.
25094 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
25101 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
25109 The distance between the lines is 1.5\InsetSpace \thinspace{}
25116 \InsetSpace \thinspace{}
25117 +\InsetSpace \thinspace{}
25118 0.5\InsetSpace \thinspace{}
25121 \begin_inset Box Doublebox
25130 height_special "totalheight"
25133 \begin_layout Standard
25143 \begin_layout Standard
25144 \begin_inset VSpace bigskip
25147 LyX's box label will change to the used frame style when you set a frame.
25148 To be able to use the different frame styles, the LaTeX-package
25153 \begin_inset LatexCommand index
25154 name "LaTeX-packages ! fancybox"
25161 \begin_layout Standard
25162 \begin_inset VSpace bigskip
25165 The default value for the size
25171 is 0.4\InsetSpace \thinspace{}
25173 It can be changed with the following command in TeX-Code to e.\InsetSpace \thinspace{}
25175 2\InsetSpace \thinspace{}
25179 \begin_layout Standard
25189 \begin_layout Standard
25193 \begin_layout Standard
25205 \begin_inset Box Boxed
25214 height_special "totalheight"
25217 \begin_layout Standard
25219 Rectangular box with
25225 \InsetSpace \thinspace{}
25226 =\InsetSpace \thinspace{}
25227 2\InsetSpace \thinspace{}
25237 \begin_layout Standard
25251 \begin_layout Standard
25252 \begin_inset VSpace bigskip
25255 The space between the frame and the box content is for all frame styles
25256 by default 3\InsetSpace \thinspace{}
25258 You can change it by setting the length
25265 For example the command
25268 \begin_layout Standard
25278 \begin_layout Standard
25279 sets the value to 10\InsetSpace \thinspace{}
25280 pt, like for the following box:
25283 \begin_layout Standard
25287 \begin_layout Standard
25299 \begin_inset Box Boxed
25308 height_special "totalheight"
25311 \begin_layout Standard
25313 Rectangular box with
25319 \InsetSpace \thinspace{}
25320 =\InsetSpace \thinspace{}
25321 10\InsetSpace \thinspace{}
25331 \begin_layout Standard
25345 \begin_layout Standard
25346 \begin_inset VSpace bigskip
25349 The diameter of the round corners of the oval boxes can be set with the
25360 \begin_layout Standard
25368 \begin_layout Standard
25369 sets the diameter to 1\InsetSpace \thinspace{}
25374 \begin_layout Standard
25382 \begin_layout Standard
25383 sets the diameter to
25385 num\InsetSpace \thinspace{}
25386 ×\InsetSpace \thinspace{}
25387 minimum(width and heigth of box)
25399 \begin_layout Standard
25403 \begin_layout Standard
25413 \begin_inset Box Ovalbox
25422 height_special "totalheight"
25425 \begin_layout Standard
25433 \InsetSpace \thinspace{}
25434 =\InsetSpace \thinspace{}
25435 1.5\InsetSpace \thinspace{}
25445 \begin_layout Standard
25457 \begin_layout Standard
25458 \begin_inset VSpace bigskip
25461 The size of the shadow can be adjusted by changing the length
25468 It it set to 2\InsetSpace \thinspace{}
25469 pt for the following box by this command:
25472 \begin_layout Standard
25482 \begin_layout Standard
25486 \begin_layout Standard
25498 \begin_inset Box Shadowbox
25507 height_special "totalheight"
25510 \begin_layout Standard
25518 \InsetSpace \thinspace{}
25519 =\InsetSpace \thinspace{}
25520 2\InsetSpace \thinspace{}
25530 \begin_layout Standard
25544 \begin_layout Standard
25545 \begin_inset VSpace bigskip
25548 Changed lengths and widths are valid for all boxes following the commands
25552 \begin_layout Section
25554 \begin_inset LatexCommand label
25555 name "sec:Minipages"
25560 \begin_inset LatexCommand index
25561 name "Boxes ! Minipages"
25568 \begin_layout Standard
25569 Minipages are treated by LaTeX as pages within pages and can therefore for
25570 example have their own footnotes.
25573 \begin_layout Standard
25574 Minipages are useful when you write documents with different languages.
25577 \begin_layout Standard
25578 Below are two example minipages side by side.
25579 Their width is set to 45\InsetSpace \thinspace{}
25580 col% and they are separated by a horizontal fill,
25581 that was inserted via the menu
25583 Insert\SpecialChar \menuseparator
25584 Special\InsetSpace ~
25585 Formatting\SpecialChar \menuseparator
25586 Horizontal\InsetSpace ~
25592 \begin_layout Standard
25593 \begin_inset Box Frameless
25602 height_special "totalheight"
25605 \begin_layout Standard
25608 Dies ist ein deutscher Text.
25609 Dies ist ein deutscher Text.
25610 Dies ist ein deutscher Text.
25611 Dies ist ein deutscher Text.
25612 Dies ist ein deutscher Text.
25613 Dies ist ein deutscher Text.
25614 Dies ist ein deutscher Text.
25615 Dies ist ein deutscher Text.
25616 Dies ist ein deutscher Text.
25617 Dies ist ein deutscher Text.
25618 Dies ist ein deutscher Text.
25619 Dies ist ein deutscher Text.
25620 Dies ist ein deutscher Text
25624 \begin_layout Standard
25627 Dies ist eine deutsche Fußnote.
25633 Dies ist ein deutscher Text.
25634 Dies ist ein deutscher Text.
25642 \begin_inset Box Frameless
25651 height_special "totalheight"
25654 \begin_layout Standard
25655 This is an English Text.
25656 This is an English Text.
25657 This is an English Text.
25658 This is an English Text.
25659 This is an English Text.
25660 This is an English Text.
25661 This is an English Text.
25662 This is an English Text.
25663 This is an English Text.
25664 This is an English Text.
25665 This is an English Text.
25666 This is an English Text.
25667 This is an English Text.
25668 This is an English Text.
25669 This is an English Text.
25670 This is an English Text.
25674 \begin_layout Standard
25675 This is an English footnote.
25680 This is an English Text.
25689 \begin_layout Standard
25690 \begin_inset VSpace bigskip
25693 Another application for minipages are footnotes within tables.
25694 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25695 bottom of the current page.
25696 But when you put the table with the footnote to a minipage, the footnote
25697 will appear at its bottom, numbered with Latin letters.
25698 The footnote number is reset to 1 in every minipage but not outside the
25702 \begin_layout Standard
25703 The footnote of this table doesn't appear:
25704 \begin_inset Tabular
25705 <lyxtabular version="3" rows="3" columns="4">
25707 <column alignment="center" valignment="top" leftline="true" width="0pt">
25708 <column alignment="center" valignment="top" leftline="true" width="0pt">
25709 <column alignment="center" valignment="top" leftline="true" width="0pt">
25710 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25711 <row topline="true">
25712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25715 \begin_layout Standard
25721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25724 \begin_layout Standard
25730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25733 \begin_layout Standard
25738 \begin_layout Standard
25739 This is a footnote within a table.
25749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25752 \begin_layout Standard
25759 <row topline="true">
25760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25763 \begin_layout Standard
25769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25772 \begin_layout Standard
25778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25781 \begin_layout Standard
25787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25790 \begin_layout Standard
25797 <row topline="true" bottomline="true">
25798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25801 \begin_layout Standard
25807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25810 \begin_layout Standard
25816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25819 \begin_layout Standard
25825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25828 \begin_layout Standard
25842 \begin_layout Standard
25844 \begin_inset Box Frameless
25853 height_special "totalheight"
25856 \begin_layout Standard
25858 \begin_inset Tabular
25859 <lyxtabular version="3" rows="3" columns="4">
25861 <column alignment="center" valignment="top" leftline="true" width="0pt">
25862 <column alignment="center" valignment="top" leftline="true" width="0pt">
25863 <column alignment="center" valignment="top" leftline="true" width="0pt">
25864 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25865 <row topline="true">
25866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25869 \begin_layout Standard
25875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25878 \begin_layout Standard
25884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25887 \begin_layout Standard
25892 \begin_layout Standard
25893 This is a footnote within a table.
25903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25906 \begin_layout Standard
25913 <row topline="true">
25914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25917 \begin_layout Standard
25923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25926 \begin_layout Standard
25932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25935 \begin_layout Standard
25941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25944 \begin_layout Standard
25951 <row topline="true" bottomline="true">
25952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25955 \begin_layout Standard
25961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25964 \begin_layout Standard
25970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25973 \begin_layout Standard
25979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25982 \begin_layout Standard
26001 \begin_layout Standard
26002 \begin_inset VSpace bigskip
26005 The document-wide paragraph settings are ignored within minipages.
26006 That means that there will be no space between paragraphs in minipages
26007 although you set it to e.\InsetSpace \thinspace{}
26013 in the document settings.
26016 \begin_layout Standard
26017 Minipages can also be used to set a background color for text parts, see
26018 section\InsetSpace ~
26020 \begin_inset LatexCommand ref
26021 reference "sub:Color-for-Paragraphs"
26028 \begin_layout Standard
26029 \begin_inset Note Greyedout
26032 \begin_layout Standard
26037 You cannot have floats or margin notes inside minipages but minipages can
26038 be used inside tables, floats, and other boxes.
26046 \begin_layout Section
26048 \begin_inset LatexCommand label
26049 name "sec:Parboxes"
26054 \begin_inset LatexCommand index
26055 name "Boxes ! Parboxes"
26062 \begin_layout Standard
26063 Parboxes are very similar to minipages with the difference that they cannot
26065 The main difference to minipages is that minipages are in contrary to parboxes
26066 no real boxes but LaTeX-environments.
26069 \begin_layout Standard
26071 \begin_inset Box Frameless
26080 height_special "totalheight"
26083 \begin_layout Standard
26084 This a text within a parbox.
26085 This a text within a parbox.
26088 \begin_layout Standard
26089 This footnote won't appear:
26093 \begin_layout Standard
26094 This footnote is inside a parbox and will therefore not appear.
26107 \begin_layout Section
26108 Boxes for Words and Characters
26109 \begin_inset LatexCommand index
26110 name "Boxes ! for Characters"
26117 \begin_layout Subsection
26118 Prevent Hyphenation
26119 \begin_inset LatexCommand label
26120 name "sec:Prevent-Hyphenation"
26125 \begin_inset LatexCommand index
26126 name "Boxes ! to Prevent Hyphenation"
26133 \begin_layout Standard
26134 You can use a special kind of boxes to prevent words or text to be hyphenated.
26137 e is an example text:
26140 \begin_layout Standard
26141 This line is an example to show how you can prevent the hyphenation of
26142 \begin_inset Quotes eld
26146 \begin_inset Quotes erd
26152 \begin_layout Standard
26153 To prevent the hyphenation of the word
26154 \begin_inset Quotes eld
26158 \begin_inset Quotes erd
26164 \begin_layout Standard
26172 \begin_layout Standard
26173 in TeX-Code before the word.
26174 Behind the word insert a closing brace
26175 \begin_inset Quotes eld
26183 \begin_inset Quotes erd
26190 \begin_layout Standard
26202 \begin_layout Standard
26203 This is the result:
26206 \begin_layout Standard
26207 This line is an example to show how you can prevent the hyphenation of
26211 \begin_layout Standard
26221 \begin_inset Quotes eld
26225 \begin_inset Quotes erd
26232 \begin_layout Standard
26242 \begin_layout Standard
26243 You can alternatively set the command
26244 \begin_inset Quotes eld
26254 \begin_inset Quotes grd
26257 as TeX-Code directly before the word:
26260 \begin_layout Standard
26261 This line is an example to show how you can prevent the hyphenation of
26262 \begin_inset Quotes eld
26269 \begin_layout Standard
26279 \begin_inset Quotes erd
26285 \begin_layout Standard
26286 Of course the word now protrudes over the side margin.
26287 To avoid this, add via the menu
26289 Insert\SpecialChar \menuseparator
26290 Special\InsetSpace ~
26291 Formatting\SpecialChar \menuseparator
26299 ) a line break before the word:
26302 \begin_layout Standard
26303 This line is an example to show how you can prevent the hyphenation of
26309 \begin_layout Standard
26319 \begin_inset Quotes eld
26323 \begin_inset Quotes erd
26330 \begin_layout Standard
26340 \begin_layout Subsection
26342 \begin_inset LatexCommand label
26343 name "sub:Vertical-Alignment"
26348 \begin_inset LatexCommand index
26349 name "Boxes ! for Vertical Alignment"
26354 \begin_inset LatexCommand index
26355 name "Boxes ! Raiseboxes"
26362 \begin_layout Standard
26363 With the help of the command
26369 you can align words, characters or other boxes vertically to the surrounding
26377 is used with the following scheme:
26380 \begin_layout Standard
26385 raisebox{lift}[height][depth]{box content}
26388 \begin_layout Standard
26389 The lift can be a positive value to raise the box or a negative value to
26393 \begin_layout Standard
26394 To align for example the word
26395 \begin_inset Quotes eld
26399 \begin_inset Quotes erd
26402 so that the bottom of the
26403 \begin_inset Quotes eld
26407 \begin_inset Quotes erd
26411 \begin_inset Quotes eld
26415 \begin_inset Quotes erd
26418 is at the baseline, insert the command
26421 \begin_layout Standard
26431 \begin_layout Standard
26432 in TeX-Code before the word.
26433 Behind the word insert a closing brace
26434 \begin_inset Quotes eld
26442 \begin_inset Quotes erd
26447 This is the result:
26450 \begin_layout Standard
26451 This is a text line with the word
26455 \begin_layout Standard
26467 \begin_inset Quotes eld
26471 \begin_inset Quotes erd
26478 \begin_layout Standard
26488 \begin_layout Standard
26489 \begin_inset VSpace bigskip
26492 When you raise or lower characters in a line, the line distance will be
26496 \begin_layout Standard
26497 This is a text line with the word
26501 \begin_layout Standard
26513 \begin_inset Quotes eld
26517 \begin_inset Quotes erd
26524 \begin_layout Standard
26533 This is a text line with the word
26537 \begin_layout Standard
26547 \begin_inset Quotes eld
26551 \begin_inset Quotes erd
26558 \begin_layout Standard
26568 \begin_layout Standard
26569 If you want to prevent this for a certain reason, set the box height to
26574 \begin_layout Standard
26584 \begin_layout Standard
26585 This is a text line with the word
26589 \begin_layout Standard
26601 \begin_inset Quotes eld
26605 \begin_inset Quotes erd
26612 \begin_layout Standard
26621 This is a text line with the word
26625 \begin_layout Standard
26629 raisebox{0.5cm}[0pt]{
26635 \begin_inset Quotes eld
26639 \begin_inset Quotes erd
26646 \begin_layout Standard
26656 \begin_layout Section
26658 \begin_inset LatexCommand label
26659 name "sec:Colored-Boxes"
26664 \begin_inset LatexCommand index
26665 name "Boxes ! Color"
26672 \begin_layout Subsection
26674 \begin_inset LatexCommand index
26675 name "Color ! for Text"
26682 \begin_layout Standard
26683 To color the background of text the text must be put into a so called
26684 \begin_inset Quotes eld
26688 \begin_inset Quotes erd
26692 This requires that the LaTeX-package
26697 \begin_inset LatexCommand index
26698 name "LaTeX-packages ! color"
26702 is loaded in the document preamble with the command
26705 \begin_layout Standard
26710 @ifundefined{textcolor}
26716 \begin_layout Standard
26727 usepackage{color}}{}
26730 \begin_layout Standard
26735 will be loaded automatically by LyX when you color text
26739 \begin_layout Standard
26740 To avoid that it is loaded twice the command
26744 @ifundef\SpecialChar \textcompwordmark{}
26755 \begin_layout Standard
26756 \begin_inset VSpace medskip
26759 Colorboxes are created with the command
26766 This will be used with the following scheme:
26769 \begin_layout Standard
26774 colorbox{color}{box content}
26777 \begin_layout Standard
26778 The box content can also be a box and colorboxes can also be within other
26782 \begin_layout Standard
26783 The following colors are predefined:
26822 You can also define your own color as described in section\InsetSpace ~
26824 \begin_inset LatexCommand ref
26825 reference "sec:Colored-Tables"
26832 \begin_layout Standard
26833 To have e.\InsetSpace \thinspace{}
26835 a red background for a word, insert the command
26838 \begin_layout Standard
26846 \begin_layout Standard
26847 before the word in TeX-Code.
26848 Behind the word insert a closing brace
26849 \begin_inset Quotes eld
26857 \begin_inset Quotes erd
26862 This is the result:
26865 \begin_layout Standard
26866 This is a line where the word
26870 \begin_layout Standard
26880 \begin_inset Quotes eld
26884 \begin_inset Quotes erd
26891 \begin_layout Standard
26898 has a red background.
26901 \begin_layout Standard
26902 \begin_inset VSpace bigskip
26905 If you would have the box frame in a different color, you can use the command
26912 with the following scheme:
26915 \begin_layout Standard
26920 fcolorbox{frame color}{box color}{box content}
26923 \begin_layout Standard
26937 The frame thickness and the space between the frame and the box content
26938 can be adjusted with the lengths
26950 , respectively, as described in section\InsetSpace ~
26952 \begin_inset LatexCommand ref
26953 reference "sec:Framed-Boxes"
26960 \begin_layout Standard
26961 For the following example the command
26964 \begin_layout Standard
26969 fcolorbox{cyan}{magenta}{
26972 \begin_layout Standard
26976 \begin_layout Standard
26977 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26984 \begin_layout Standard
26999 \begin_layout Standard
27003 fcolorbox{cyan}{magenta}{
27008 This is text within a colored, framed box.
27012 \begin_layout Standard
27022 \begin_layout Standard
27023 \begin_inset VSpace bigskip
27026 Of course you can also have colored text inside a colorbox:
27032 \begin_layout Standard
27036 fcolorbox{cyan}{magenta}{
27043 This is colored text within a colored, framed box.
27049 \begin_layout Standard
27060 \begin_layout Standard
27074 \begin_layout Standard
27077 \begin_inset VSpace medskip
27083 \begin_layout Standard
27084 \begin_inset Note Greyedout
27087 \begin_layout Standard
27092 Text in colorboxes cannot have line breaks.
27093 To color multiple text lines or paragraphs, use a box inside a colorbox
27094 as described in the following.
27102 \begin_layout Subsection
27103 Color for Paragraphs
27104 \begin_inset LatexCommand label
27105 name "sub:Color-for-Paragraphs"
27110 \begin_inset LatexCommand index
27111 name "Color ! for Paragraphs"
27118 \begin_layout Standard
27119 To set the background color for more than one text line, put the text into
27121 Before the minipage insert the
27130 \begin_layout Standard
27138 \begin_layout Standard
27140 Behind the minipage insert a closing brace
27141 \begin_inset Quotes eld
27149 \begin_inset Quotes erd
27155 \begin_layout Standard
27159 \begin_layout Standard
27163 colorbox{lightgrey}{
27169 \begin_inset Box Frameless
27178 height_special "totalheight"
27181 \begin_layout Standard
27182 This is text with background color.
27183 This is text with background color.
27186 \begin_layout Standard
27187 \begin_inset VSpace defskip
27190 The text can have footnotes
27194 \begin_layout Standard
27195 Another example footnote
27200 and can include tables and figures.
27203 \begin_layout Standard
27205 \begin_inset Tabular
27206 <lyxtabular version="3" rows="3" columns="3">
27208 <column alignment="center" valignment="top" leftline="true" width="0">
27209 <column alignment="center" valignment="top" leftline="true" width="0">
27210 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27211 <row topline="true">
27212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27215 \begin_layout Standard
27221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27224 \begin_layout Standard
27230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27233 \begin_layout Standard
27240 <row topline="true">
27241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27244 \begin_layout Standard
27250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27253 \begin_layout Standard
27255 \begin_inset Quotes erd
27263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27266 \begin_layout Standard
27273 <row topline="true" bottomline="true">
27274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27277 \begin_layout Standard
27283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27286 \begin_layout Standard
27292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27295 \begin_layout Standard
27315 \begin_layout Standard
27325 \begin_layout Section
27326 Rotated and Scaled Boxes
27329 \begin_layout Standard
27330 To use the the commands described in this section, the LaTeX-package
27335 \begin_inset LatexCommand index
27336 name "LaTeX-packages ! graphicx"
27340 needs to be loaded in the document preamble with the command
27343 \begin_layout Standard
27348 @ifundefined{rotatebox}
27354 \begin_layout Standard
27365 usepackage{graphicx}}{}
27368 \begin_layout Standard
27369 \begin_inset Note Greyedout
27372 \begin_layout Standard
27377 Some DVI-viewers can't display rotated or scaled material.
27385 \begin_layout Standard
27386 \begin_inset Note Greyedout
27389 \begin_layout Standard
27394 Floats mustn't be inside a rotated or scaled box.
27402 \begin_layout Subsection
27404 \begin_inset LatexCommand index
27405 name "Boxes ! rotated"
27410 \begin_inset LatexCommand index
27411 name "Rotated material"
27416 \begin_inset LatexCommand index
27417 name "Figures ! rotated"
27422 \begin_inset LatexCommand index
27423 name "Table Customization ! Rotating"
27430 \begin_layout Standard
27431 To rotate material, you can put it into a rotated box.
27432 Such a box is created using the command
27438 in TeX-Code with the following scheme:
27441 \begin_layout Standard
27446 rotatebox[rotation origin]{rotation angle}{box content}
27449 \begin_layout Standard
27450 The rotation origin is specified in the form
27455 The following positions are possible:
27475 (top), and also expedient combinations of the four base positions.
27480 means, that the rotation origin is at the top left corner of the box.
27481 When no rotation origin is specified, the position
27486 The rotation angle is a number that can be negative that specifies the
27488 The rotation direction is counterclockwise.
27491 \begin_layout Standard
27492 In the following example the command
27496 rotatebox[origin=c]{60}{
27498 was inserted as TeX-Code before the text
27499 \begin_inset Quotes eld
27503 \begin_inset Quotes erd
27506 ; after the text the box was closed by a closing brace
27513 \begin_layout Standard
27518 \begin_layout Standard
27522 rotatebox[origin=c]{60}{
27531 \begin_layout Standard
27541 \begin_layout Standard
27542 The box content can also be another box or an inline formula:
27545 \begin_layout Standard
27550 \begin_layout Standard
27554 rotatebox[origin=r]{-60}{
27560 \begin_inset Box Doublebox
27569 height_special "totalheight"
27572 \begin_layout Standard
27582 \begin_layout Standard
27593 \begin_layout Standard
27597 rotatebox[origin=lb]{60}{
27603 \begin_inset Formula $\int A\,\mathrm{d}x=B$
27610 \begin_layout Standard
27620 \begin_layout Standard
27621 or an image or table:
27624 \begin_layout Standard
27629 \begin_layout Standard
27633 rotatebox[origin=lb]{90}{
27639 \begin_inset Graphics
27640 filename clipart/platypus.eps
27650 \begin_layout Standard
27657 with a rotated image
27661 \begin_layout Standard
27665 rotatebox[origin=l]{-90}{
27671 \begin_inset Tabular
27672 <lyxtabular version="3" rows="2" columns="2">
27674 <column alignment="center" valignment="top" leftline="true" width="0">
27675 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27676 <row topline="true">
27677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27680 \begin_layout Standard
27686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27689 \begin_layout Standard
27696 <row topline="true" bottomline="true">
27697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27700 \begin_layout Standard
27706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27709 \begin_layout Standard
27724 \begin_layout Standard
27734 \begin_layout Subsection
27736 \begin_inset LatexCommand index
27737 name "Boxes ! scaled"
27742 \begin_inset LatexCommand index
27743 name "Scaled material"
27748 \begin_inset LatexCommand index
27749 name "Figures ! scaled"
27754 \begin_inset LatexCommand index
27755 name "Table Customization ! Scaling"
27762 \begin_layout Standard
27763 To scale material the commands
27775 can be used as TeX-Code.
27778 \begin_layout Standard
27785 is used with the following scheme:
27788 \begin_layout Standard
27793 scalebox{horizontal}[vertical]{box content}
27796 \begin_layout Standard
27797 Horizontal and vertical are the corresponding scaling factors.
27798 If no vertical scaling factor is given, the horizontal factor will also
27799 be used as vertical one.
27802 \begin_layout Standard
27809 creates for example a double size
27813 \begin_layout Standard
27826 \begin_layout Standard
27833 , compared to the document text size.
27836 \begin_layout Standard
27841 scalebox{2}[1]{Hello}
27843 in contrary distorts the
27847 \begin_layout Standard
27860 \begin_layout Standard
27870 \begin_layout Standard
27871 If a the scaling factor is negative, the box content will be mirrored.
27872 Therefore the command
27876 scalebox{-1}[1]{Hello}
27878 can be used to create mirror writing:
27882 \begin_layout Standard
27895 \begin_layout Standard
27905 \begin_layout Standard
27910 scalebox{1}[-1]{Hello}
27916 \begin_layout Standard
27929 \begin_layout Standard
27939 \begin_layout Standard
27944 scalebox{-1}[1]{box content}
27946 there exists the command
27952 reflectbox{box content}
27957 \begin_layout Standard
27958 \begin_inset VSpace bigskip
27967 is used to scale the box to a defined width and height.
27968 The command scheme is:
27971 \begin_layout Standard
27976 resizebox{width}{height}{box content}
27979 \begin_layout Standard
27980 Is one of the two command arguments given as exclamation mark
27984 , the size is set so that the aspect ratio of the box content is kept.
27987 \begin_layout Standard
27992 resizebox{2cm}{1cm}{Hello}
27998 \begin_layout Standard
28002 resizebox{2cm}{1cm}{
28011 \begin_layout Standard
28024 resizebox{2cm}{!}{Hello}
28030 \begin_layout Standard
28043 \begin_layout Standard
28053 \begin_layout Standard
28054 \begin_inset VSpace bigskip
28058 \begin_inset Note Greyedout
28061 \begin_layout Standard
28078 are set to zero, no LaTeX-errors occur when exporting the document but
28079 the exported files can not or only partly be displayed.
28087 \begin_layout Standard
28088 \begin_inset VSpace bigskip
28094 \begin_layout Standard
28095 The boxes can be combined in any order.
28096 E.\InsetSpace \thinspace{}
28104 rotatebox[origin=c]{-45}{
28108 reflectbox{Hello}}}
28115 \begin_layout Standard
28120 \begin_layout Standard
28124 rotatebox[origin=c]{-45}{
28137 \begin_layout Standard
28147 \begin_layout Standard
28149 Images, tables, and inline formulas are allowed as box content:
28152 \begin_layout Standard
28157 \begin_layout Standard
28161 rotatebox[origin=c]{-30}{
28171 \begin_inset Graphics
28172 filename clipart/platypus.eps
28182 \begin_layout Standard
28193 \begin_layout Standard
28197 rotatebox[origin=c]{-45}{
28207 \begin_inset Tabular
28208 <lyxtabular version="3" rows="2" columns="2">
28210 <column alignment="center" valignment="top" leftline="true" width="0">
28211 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28212 <row topline="true">
28213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28216 \begin_layout Standard
28222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28225 \begin_layout Standard
28232 <row topline="true" bottomline="true">
28233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28236 \begin_layout Standard
28242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28245 \begin_layout Standard
28260 \begin_layout Standard
28271 \begin_layout Standard
28275 rotatebox[origin=c]{-45}{
28285 \begin_inset Formula $\int A\,\mathrm{d}x=B$
28292 \begin_layout Standard
28302 \begin_layout Standard
28303 When the global formula style
28307 is used in the document
28311 \begin_layout Standard
28313 \begin_inset Quotes eld
28317 \begin_inset Quotes erd
28320 is added to the document class options.
28325 , also display formulas can be scaled.
28328 \begin_layout Section
28329 URLs (Uniform Resource Locators)
28330 \begin_inset LatexCommand index
28338 \begin_layout Standard
28339 Links to web pages or email addresses can be inserted via the menu
28341 Insert\SpecialChar \menuseparator
28345 The appearing URL dialog has two fields; the
28353 field for the URL description, which will be typeset as plain text immediately
28357 \begin_layout Standard
28358 Here is an example URL:
28359 \begin_inset LatexCommand url
28360 name "LyX's homepage"
28361 target "http://www.lyx.org"
28368 \begin_layout Standard
28371 Generate\InsetSpace ~
28374 in the URL dialog does nothing.
28375 This relict will be removed in the next LyX-version.
28378 \begin_layout Standard
28379 You cannot change the style of the link text.
28384 field will have the default text style of the document while the text of
28389 field will have the style
28390 \begin_inset Quotes eld
28398 \begin_inset Quotes erd
28404 \begin_layout Standard
28405 When you use the LaTeX-package
28410 \begin_inset LatexCommand index
28411 name "LaTeX-packages ! hyperref"
28415 to link cross-references in the output, URLs will automatically become
28416 clickable hyperlinks in DVI and PDF-output.
28419 \begin_layout Standard
28420 \begin_inset Note Greyedout
28423 \begin_layout Standard
28428 When you use the following characters: "%", "#", "^", you have to write
28429 them with a preceding backslash, e.\InsetSpace \thinspace{}
28432 \begin_inset Quotes eld
28438 \begin_inset Quotes erd
28442 URLs must not end with a backslash.
28450 \begin_layout Standard
28451 \begin_inset VSpace bigskip
28454 To create real hyperlinks without the force to write the link location to
28455 the text, you can use the command
28458 \begin_layout Standard
28463 href{link location}{link text}
28466 \begin_layout Standard
28468 To get for example a link to LyX's web page, write the command
28471 \begin_layout Standard
28476 href{http://www.lyx.org}{
28479 \begin_layout Standard
28481 Insert after the command the link text
28482 \begin_inset Quotes eld
28486 \begin_inset Quotes erd
28489 as normal text followed by a closing brace
28490 \begin_inset Quotes eld
28498 \begin_inset Quotes erd
28502 This is the result:
28506 \begin_layout Standard
28510 href{http://www.lyx.org}{
28519 \begin_layout Standard
28529 \begin_layout Standard
28530 To link to email addresses, add the prefix
28531 \begin_inset Quotes eld
28539 \begin_inset Quotes erd
28542 to the link location:
28548 \begin_layout Standard
28552 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
28557 lyx-docs mailing list
28561 \begin_layout Standard
28571 \begin_layout Standard
28578 instead of LyX's URL box has the advantage that you can specify the text
28579 style of the link text like for all other text parts.
28580 You can then set hyphenation points and forced linebreaks to have long
28581 link text broken at the page margin.
28582 You are furthermore able to change the text style for all URLs in your
28583 document with an option in
28587 's load command and the restrictions mentioned above doesn't apply for
28596 \begin_layout Chapter
28598 \begin_inset LatexCommand index
28599 name "External Stuff"
28606 \begin_layout Standard
28609 Insert\SpecialChar \menuseparator
28612 you can insert external material to your document.
28616 \begin_layout Description
28618 Document Another LyX document; its content is directly inserted to your
28622 \begin_layout Description
28624 Text A text document; every of its text lines is inserted to your document
28628 \begin_layout Description
28632 Lines A text document; its text lines are inserted as they
28634 Empty text lines creates a new paragraph in your document.
28637 \begin_layout Description
28638 External\InsetSpace ~
28639 Material Files in various formats.
28642 \begin_layout Description
28644 Document LyX or LaTeX-documents.
28647 \begin_layout Section
28649 \begin_inset LatexCommand index
28650 name "External Stuff ! External Material"
28657 \begin_layout Standard
28658 The external material feature allows you to insert files to your document
28659 without converting them previously to a format that can be read by the
28660 document output format because LyX takes care of needed conversions.
28661 This is similar to images that can be inserted in various image formats
28665 \begin_layout Standard
28666 External material can be inserted via the
28670 dialog that is accessible with the menu
28672 Insert\SpecialChar \menuseparator
28673 File\SpecialChar \menuseparator
28674 External\InsetSpace ~
28678 Currently the following file types (
28685 \begin_layout Description
28686 ChessDiagram This template supports chess position diagrams made with the
28691 \begin_layout Standard
28695 href{http://en.wikipedia.org/wiki/XBoard}{
28708 \begin_layout Standard
28718 \begin_layout Description
28719 Date This inserts the date in the form
28724 This is a date inserted as external material:
28725 \begin_inset External
28733 The date is not shown within LyX, only in the output.
28734 There are two other methods of inserting a date: Via menu
28736 Insert\SpecialChar \menuseparator
28739 and with the LaTeX command
28746 The different methods are compared in Table\InsetSpace ~
28748 \begin_inset LatexCommand ref
28749 reference "tab:Comparison-of-the"
28756 \begin_layout Description
28757 LilyPond This template is used for music notation typeset with the program
28761 \begin_layout Standard
28774 \begin_layout Standard
28778 href{http://en.wikipedia.org/wiki/LilyPond}{
28791 \begin_layout Standard
28799 \begin_inset Note Note
28802 \begin_layout Standard
28809 breaks the line while the remaining text in the line is stretched to the
28818 \begin_layout Description
28819 RasterImage This can be used for bitmap images.
28820 Nearly all popular image formats are supported.
28821 The image can be treated in the
28825 dialog like the images that are usually included via the
28829 dialog as described in section\InsetSpace ~
28831 \begin_inset LatexCommand ref
28832 reference "sec:Graphics-Dialog"
28837 The difference is that only raster images are allowed, that means that
28838 PDF and EPS-images are not supported.
28841 \begin_layout Description
28842 XFig This template supports images created with the program
28846 \begin_layout Standard
28850 href{http://en.wikipedia.org/wiki/Xfig}{
28863 \begin_layout Standard
28873 \begin_layout Standard
28874 \begin_inset Float table
28880 \begin_layout Standard
28881 \begin_inset Caption
28883 \begin_layout Standard
28884 \begin_inset LatexCommand label
28885 name "tab:Comparison-of-the"
28889 Comparison of the date input methods.
28897 \begin_layout Standard
28899 \begin_inset Tabular
28900 <lyxtabular version="3" rows="4" columns="4">
28902 <column alignment="center" valignment="top" leftline="true" width="0">
28903 <column alignment="center" valignment="top" leftline="true" width="0">
28904 <column alignment="center" valignment="top" leftline="true" width="0">
28905 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28906 <row topline="true">
28907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28910 \begin_layout Standard
28916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28919 \begin_layout Standard
28922 External Material\SpecialChar \menuseparator
28928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28931 \begin_layout Standard
28934 Insert\SpecialChar \menuseparator
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28943 \begin_layout Standard
28954 <row topline="true">
28955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28958 \begin_layout Standard
28964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28967 \begin_layout Standard
28973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28976 \begin_layout Standard
28982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28985 \begin_layout Standard
28986 as TeX-Code inset box
28992 <row topline="true">
28993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28996 \begin_layout Standard
29002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29005 \begin_layout Standard
29011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29014 \begin_layout Standard
29020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29023 \begin_layout Standard
29030 <row topline="true" bottomline="true">
29031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29034 \begin_layout Standard
29040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29043 \begin_layout Standard
29049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29052 \begin_layout Standard
29058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29061 \begin_layout Standard
29080 \begin_layout Standard
29081 When you use the option
29093 dialog, only the path to the inserted file is shown in the output.
29096 material is displayed in LyX either as box like this:
29097 \begin_inset Graphics
29098 filename clipart/ExternalMaterialQt4.png
29100 scaleBeforeRotation
29104 or as image, depending on the setting in the
29116 \begin_layout Standard
29123 manual explains how you can define your own templates.
29126 \begin_layout Section
29128 \begin_inset LatexCommand label
29129 name "sec:Child-Documents"
29134 \begin_inset LatexCommand index
29135 name "External Stuff ! Child Documents"
29140 \begin_inset LatexCommand index
29141 name "Files ! Include"
29148 \begin_layout Standard
29149 Child documents are used when you have a long document consisting of several
29150 larger parts or sections.
29151 For maintenance it is often useful and sometimes even required to split
29152 the document in several files that can be revised separately.
29153 The different documents are then the so called child documents and a master
29154 document connects them to print the full document or parts of it.
29157 \begin_layout Standard
29158 Included documents are displayed in LyX as a box like this:
29159 \begin_inset Graphics
29160 filename clipart/ChildDocumentQt4.png
29162 scaleBeforeRotation
29166 To include child documents to a master document use the menu
29168 Insert\SpecialChar \menuseparator
29169 File\SpecialChar \menuseparator
29174 A dialog pops up where you can choose between four include methods:
29177 \begin_layout Description
29178 Include You can include LyX and LaTeX-documents.
29187 dialog, the included documents will be opened in LyX in a new file tab
29188 so that you can modify it.
29193 \begin_layout Standard
29194 Here is a child document inserted using
29199 \begin_inset Include \include{DummyDocument1.lyx}
29207 \begin_layout Standard
29208 The section numbering includes the sections of the included files in the
29209 order they are inserted in the master document.
29210 The included example document has for example a subsection that is numbered
29211 as subsection of this section.
29212 Labels of included documents can be referenced: Subsection\InsetSpace ~
29214 \begin_inset LatexCommand ref
29215 reference "sub:External-Subsection-1"
29222 \begin_layout Standard
29223 The preamble of the child document is ignored, only the preamble of the
29224 master document is used.
29225 Included documents are inserted starting on a new page and end with a pagebreak.
29228 \begin_layout Standard
29229 With the LaTeX-command
29235 you can specify which included child documents are processed when the output
29237 This is useful when you are perhaps only working on a certain chapter of
29238 your large document as this saves compiling time.
29245 is inserted to the master document preamble.
29246 It takes a comma-separated list of the filenames as argument, e.g.
29249 \begin_layout Standard
29254 includeonly{chapter1,chapter5}
29257 \begin_layout Standard
29258 will only process the included files named
29259 \begin_inset Quotes eld
29263 \begin_inset Quotes erd
29267 \begin_inset Quotes eld
29271 \begin_inset Quotes erd
29275 \begin_inset Quotes eld
29279 \begin_inset Quotes erd
29285 \begin_layout Standard
29286 \begin_inset Note Greyedout
29289 \begin_layout Standard
29294 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
29295 w the document in case that the child document uses another document class
29296 than the master document as this will lead to unexpected outputs.
29304 \begin_layout Description
29305 Input This method is very similar to the Include method.
29306 The differences are:
29310 \begin_layout Itemize
29311 Input files don't start with a new page and don't end with a pagebreak.
29314 \begin_layout Itemize
29315 Input files can be previewed in LyX when
29317 Instant\InsetSpace ~
29320 is enabled in LyX's preferences under
29324 feel\SpecialChar \menuseparator
29330 \begin_layout Itemize
29341 \begin_layout Standard
29342 Here is a child document inserted using
29347 \begin_inset Include \input{DummyDocument2.lyx}
29355 \begin_layout Description
29356 Verbatim With this method every text file can be included.
29357 The file is shown in the output with its source code, no command used in
29358 the text is invoked.
29359 You can use the option
29361 Mark spaces in output
29363 that displays the character
29364 \begin_inset Quotes eld
29371 \begin_layout Standard
29381 \begin_inset Quotes erd
29384 for every space character in the source code.
29385 The difference to the method via the menu
29387 Insert\SpecialChar \menuseparator
29388 File\SpecialChar \menuseparator
29392 is that the document content is not shown in LyX.
29395 \begin_layout Standard
29396 Here is a child document inserted as Verbatim:
29397 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
29403 \begin_inset VSpace bigskip
29406 Here is a child document inserted as Verbatim using the
29408 Mark spaces in output
29411 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
29419 \begin_layout Standard
29420 \begin_inset VSpace bigskip
29426 \begin_layout Standard
29427 \begin_inset Note Greyedout
29430 \begin_layout Standard
29435 As you can see in the examples above, the text of the documents included
29440 is not broken at the end of the document lines.
29448 \begin_layout Description
29449 Listings This type is described in chapter\InsetSpace ~
29451 \begin_inset LatexCommand ref
29452 reference "cha:Program-Code-Listings"
29459 \begin_layout Standard
29460 \begin_inset Note Greyedout
29463 \begin_layout Standard
29468 Including the same document twice in a document using different methods
29469 could cause LaTeX-problems.
29477 \begin_layout Chapter
29478 Program Code Listings
29479 \begin_inset LatexCommand label
29480 name "cha:Program-Code-Listings"
29485 \begin_inset LatexCommand index
29491 \begin_inset LatexCommand index
29492 name "Program Code"
29497 \begin_inset LatexCommand index
29498 name "Floats ! Listings"
29505 \begin_layout Standard
29506 To include and typeset program code you can use the
29510 inset that can be inserted via the menu
29512 Insert\SpecialChar \menuseparator
29521 \begin_inset LatexCommand index
29522 name "LaTeX-packages ! listings"
29526 provides a powerful and flexible way to insert program source code to your
29530 \begin_layout Standard
29531 When right-clicking on a listings inset a dialog pops up where you can set
29532 the listings format.
29535 \begin_layout Standard
29536 By default, a listing starts a new paragraph in the output.
29537 The placement option
29539 Inline\InsetSpace ~
29542 prints the listing inline like this:
29543 \begin_inset listings
29544 lstparams "language={C++}"
29548 \begin_layout Standard
29561 creates a listings float where you can specify the placement options
29562 \begin_inset Quotes eld
29570 \begin_inset Quotes erd
29574 \begin_inset Quotes eld
29582 \begin_inset Quotes erd
29586 \begin_inset Quotes eld
29594 \begin_inset Quotes erd
29598 \begin_inset Quotes eld
29606 \begin_inset Quotes erd
29609 corresponding to the float placement options described in section\InsetSpace ~
29611 \begin_inset LatexCommand ref
29612 reference "sec:Float-Placement"
29617 The placement options can be mixed and are inserted without any separation,
29618 e.\InsetSpace \thinspace{}
29621 \begin_inset Quotes eld
29629 \begin_inset Quotes erd
29634 \begin_inset Quotes eld
29638 \begin_inset Quotes erd
29641 has sometimes no effect, but you don't need to use the
29645 option in this case as also non-float listings can have captions and be
29649 \begin_layout Standard
29650 You can add captions to listings with the menu
29652 Insert\SpecialChar \menuseparator
29656 Listings can be referenced like floats: Listing\InsetSpace ~
29658 \begin_inset LatexCommand ref
29659 reference "lst:Example-Listing"
29666 \begin_layout Standard
29667 \begin_inset listings
29668 lstparams "language=Python"
29672 \begin_layout Standard
29674 \begin_inset Caption
29676 \begin_layout Standard
29677 \begin_inset LatexCommand label
29678 name "lst:Example-Listing"
29682 Example Listing float
29687 # Example listing float
29690 \begin_layout Standard
29695 \begin_layout Standard
29697 'this is a python function'
29700 \begin_layout Standard
29710 \begin_layout Standard
29711 When you have set a programming language in the listings dialog, the keywords
29712 of this language will be recognized and specially typeset in the output.
29713 In the example listings the Python keyword
29714 \begin_inset Quotes eld
29718 \begin_inset Quotes erd
29721 is recognized and printed bold in the output.
29724 \begin_layout Standard
29725 \begin_inset Note Greyedout
29728 \begin_layout Standard
29733 If you don't get bold keywords when using typewriter fonts, your typewriter
29734 font probably doesn't provide a bold shape.
29735 In this case select a different one in the menu
29737 Document\SpecialChar \menuseparator
29738 Settings\SpecialChar \menuseparator
29750 provide bold shapes.)
29758 \begin_layout Standard
29764 of the listings dialog you can specify the line numbering style.
29765 You can insert a number to specify which lines are numbered to the field
29771 When you insert e.g.
29773 \begin_inset Quotes eld
29777 \begin_inset Quotes erd
29780 , only every 3rd line will be numbered.
29783 \begin_layout Standard
29784 You can furthermore specify a range of lines, only these will then appear
29788 Extended\InsetSpace ~
29791 should be used when you use national characters like the German umlauts
29794 Here is an example listing with left line numbering, step
29796 \begin_inset Quotes eld
29800 \begin_inset Quotes erd
29804 \begin_inset Quotes eld
29808 \begin_inset Quotes erd
29812 \begin_inset Quotes eld
29815 Extended\InsetSpace ~
29817 \begin_inset Quotes erd
29821 \begin_inset Quotes eld
29827 \begin_inset Quotes erd
29830 , range lines 3\InsetSpace \thinspace{}
29831 -\InsetSpace \thinspace{}
29835 \begin_layout Standard
29836 \begin_inset listings
29837 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
29841 \begin_layout Standard
29846 \begin_layout Standard
29848 'this is a python function'
29851 \begin_layout Standard
29856 \begin_layout Standard
29861 \begin_layout Standard
29863 'This is a German word: Tschüß'
29866 \begin_layout Standard
29871 \begin_layout Standard
29876 \begin_layout Standard
29878 'this is a python function'
29881 \begin_layout Standard
29891 \begin_layout Standard
29892 \begin_inset Note Greyedout
29895 \begin_layout Standard
29900 Due to a bug in the
29904 package the line numbering is shifted by a line by every previous listing.
29905 That's the reason why the lines 2 and 5 are numbered in the above listing
29906 and not the lines 3 and 6.
29914 \begin_layout Standard
29915 \begin_inset VSpace bigskip
29921 \begin_layout Standard
29922 It is also possible to print lines from a file as listing.
29923 To do this, use the menu
29925 Insert\SpecialChar \menuseparator
29926 File\SpecialChar \menuseparator
29929 and choose the type
29937 \begin_layout Standard
29938 The other child document types are described in section\InsetSpace ~
29940 \begin_inset LatexCommand ref
29941 reference "sec:Child-Documents"
29950 In the child document dialog you can specify the listing parameters in
29952 To show a list of all available parameters, type in a question mark
29953 \begin_inset Quotes eld
29957 \begin_inset Quotes erd
29963 \begin_layout Standard
29964 To reference child document listings, write a label text into the corresponding
29965 field of the child document dialog.
29966 The label can then be referenced using the menu
29968 Insert\SpecialChar \menuseparator
29974 \begin_layout Standard
29975 Listing\InsetSpace ~
29977 \begin_inset LatexCommand ref
29978 reference "lst:file-listing"
29982 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
29983 -\InsetSpace \thinspace{}
29988 \begin_layout Standard
29989 \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]
29997 \begin_layout Standard
29998 \begin_inset VSpace bigskip
30004 \begin_layout Standard
30005 Global listings settings can be set in the
30007 Document\SpecialChar \menuseparator
30008 Settings\SpecialChar \menuseparator
30012 To get there a list of available options, type in a question mark
30013 \begin_inset Quotes eld
30017 \begin_inset Quotes erd
30022 Listings\InsetSpace ~
30028 \begin_layout Standard
30029 For more information about the
30033 package, we refer to its documentation
30034 \begin_inset LatexCommand cite
30042 \begin_layout Standard
30048 \begin_layout Chapter
30050 Units available in LyX
30051 \begin_inset LatexCommand index
30057 \begin_inset LatexCommand label
30058 name "cha:Units-available-in"
30065 \begin_layout Standard
30066 To understand the units described in this documentation, Table\InsetSpace ~
30068 \begin_inset LatexCommand ref
30069 reference "tab:Units"
30073 explains all units available in LyX.
30076 \begin_layout Standard
30077 \begin_inset Float table
30083 \begin_layout Standard
30084 \begin_inset Caption
30086 \begin_layout Standard
30087 \begin_inset LatexCommand label
30100 \begin_layout Standard
30101 \begin_inset VSpace medskip
30107 \begin_layout Standard
30109 \begin_inset Tabular
30110 <lyxtabular version="3" rows="20" columns="2">
30112 <column alignment="center" valignment="top" leftline="true" width="0">
30113 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
30114 <row topline="true" bottomline="true">
30115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30118 \begin_layout Standard
30124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30127 \begin_layout Standard
30134 <row topline="true">
30135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30138 \begin_layout Standard
30144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30147 \begin_layout Standard
30154 <row topline="true">
30155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30158 \begin_layout Standard
30164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30167 \begin_layout Standard
30174 <row topline="true">
30175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30178 \begin_layout Standard
30184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30187 \begin_layout Standard
30194 <row topline="true">
30195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30198 \begin_layout Standard
30204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30207 \begin_layout Standard
30208 point (72.27\InsetSpace \thinspace{}
30209 pt = 1\InsetSpace \thinspace{}
30216 <row topline="true">
30217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30220 \begin_layout Standard
30226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30229 \begin_layout Standard
30230 pica (1\InsetSpace \thinspace{}
30231 pc = 12\InsetSpace \thinspace{}
30238 <row topline="true">
30239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30242 \begin_layout Standard
30248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30251 \begin_layout Standard
30252 scaled point (65536\InsetSpace \thinspace{}
30253 sp = 1\InsetSpace \thinspace{}
30260 <row topline="true">
30261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30264 \begin_layout Standard
30270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30273 \begin_layout Standard
30274 big point (72\InsetSpace \thinspace{}
30275 bp = 1\InsetSpace \thinspace{}
30282 <row topline="true">
30283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30286 \begin_layout Standard
30292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30295 \begin_layout Standard
30296 didot (1\InsetSpace \thinspace{}
30298 \begin_inset Formula $\approx$
30301 0.376\InsetSpace \thinspace{}
30308 <row topline="true">
30309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30312 \begin_layout Standard
30318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30321 \begin_layout Standard
30322 cicero (1\InsetSpace \thinspace{}
30323 cc = 12\InsetSpace \thinspace{}
30330 <row topline="true">
30331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30334 \begin_layout Standard
30340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30343 \begin_layout Standard
30344 % of original image width
30350 <row topline="true">
30351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30354 \begin_layout Standard
30360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30363 \begin_layout Standard
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
30390 <row topline="true">
30391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30394 \begin_layout Standard
30400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30403 \begin_layout Standard
30410 <row topline="true">
30411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30414 \begin_layout Standard
30420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30423 \begin_layout Standard
30430 <row topline="true">
30431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30434 \begin_layout Standard
30440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30443 \begin_layout Standard
30450 <row topline="true">
30451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30454 \begin_layout Standard
30460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30463 \begin_layout Standard
30470 <row topline="true">
30471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30474 \begin_layout Standard
30480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30483 \begin_layout Standard
30494 <row topline="true">
30495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30498 \begin_layout Standard
30504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30507 \begin_layout Standard
30518 <row topline="true" bottomline="true">
30519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30522 \begin_layout Standard
30528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30531 \begin_layout Standard
30532 math unit (1\InsetSpace \thinspace{}
30533 mu = 1/18\InsetSpace \thinspace{}
30552 \begin_layout Chapter
30553 Output File Formats with Graphics
30554 \begin_inset LatexCommand label
30555 name "cha:Output-File-Formats"
30562 \begin_layout Section
30564 \begin_inset LatexCommand index
30565 name "File Formats ! DVI"
30570 \begin_inset LatexCommand index
30571 name "DVI|see{File Formats}"
30578 \begin_layout Standard
30579 This file type has the extension
30580 \begin_inset Quotes eld
30588 \begin_inset Quotes erd
30593 \begin_inset Quotes eld
30597 \begin_inset Quotes erd
30600 (DVI), because it is completely portable; you can move them from one machine
30601 to another without needing to do any sort of conversion.
30602 At the time when this file-format was developed, this was no matter of
30604 DVIs are used for quick previews and as pre-stage for other output formats,
30608 \begin_layout Standard
30609 \begin_inset Note Greyedout
30612 \begin_layout Standard
30617 DVI-files doesn't contain images, they will only be a linked.
30622 So don't forget this, if you move your
30626 file to another computer.
30627 This property can also slow down your computer when you view the DVI.
30628 Because the DVI-viewer has to convert the image in the background to make
30629 it visible when you scroll in the DVI.
30630 So we recommend to use PDF for files with many images.
30633 \begin_layout Standard
30634 You can export your document to DVI by using the menu
30636 File\SpecialChar \menuseparator
30637 Export\SpecialChar \menuseparator
30641 You can view your document as DVI via the
30645 menu or by using the toolbar button
30646 \begin_inset Graphics
30647 filename ../images/buffer-view_dvi.png
30649 scaleBeforeRotation
30656 \begin_layout Section
30658 \begin_inset LatexCommand label
30659 name "sec:PostScript"
30664 \begin_inset LatexCommand index
30665 name "File Formats ! PostScript"
30670 \begin_inset LatexCommand index
30671 name "PostScript|see{File Formats}"
30678 \begin_layout Standard
30679 This file type has the extension
30680 \begin_inset Quotes eld
30688 \begin_inset Quotes erd
30692 PostScript was developed by the company
30696 as printer language.
30697 The file contains therefore commands that the printer uses to print the
30699 PostScript can be seen as
30700 \begin_inset Quotes eld
30703 programming language
30704 \begin_inset Quotes erd
30707 ; you can calculate with it and draw diagrams and images
30711 \begin_layout Standard
30712 If you are interested to learn more about this, have a look at the LaTeX-package
30718 \begin_inset LatexCommand cite
30729 Due to this ability, the files are often bigger than PDFs.
30732 \begin_layout Standard
30733 PostScript can only contain images in the format
30734 \begin_inset Quotes eld
30737 Encapsulated PostScript
30738 \begin_inset Quotes erd
30741 (EPS, file extension
30742 \begin_inset Quotes eld
30750 \begin_inset Quotes erd
30754 As LyX allows you to use any known image format in your document, it has
30755 to convert images in the background to EPS.
30756 If you have e.g 50 images in your document, LyX has to do 50 conversions
30757 whenever you view or export your document.
30758 This will slow down your work flow with LyX drastically.
30759 So if you plan to use PostScript, you can insert your images directly as
30760 EPS to avoid this problem.
30763 \begin_layout Standard
30764 You can export your document to PostScript using the menu
30766 File\SpecialChar \menuseparator
30767 Export\SpecialChar \menuseparator
30771 You can view your document as PostScript via the
30775 menu or by using the toolbar button
30776 \begin_inset Graphics
30777 filename ../images/buffer-view_ps.png
30779 scaleBeforeRotation
30786 \begin_layout Section
30788 \begin_inset LatexCommand label
30794 \begin_inset LatexCommand index
30795 name "File Formats ! PDF"
30800 \begin_inset LatexCommand index
30808 \begin_layout Standard
30809 This file type has the extension
30810 \begin_inset Quotes eld
30818 \begin_inset Quotes erd
30823 \begin_inset Quotes eld
30826 Portable Document Format
30827 \begin_inset Quotes erd
30830 (PDF) is developed by
30834 as derivative from PostScript.
30835 It is more compressed and it uses much less commands than PostScript.
30837 \begin_inset Quotes eld
30841 \begin_inset Quotes erd
30844 implies, it can be processed at any computer system and the printed output
30845 looks exactly the same.
30848 \begin_layout Standard
30849 PDF can contain images in its own PDF format, in the format
30850 \begin_inset Quotes eld
30853 Joint Photographic Experts Group
30854 \begin_inset Quotes erd
30857 (JPG, file extension
30858 \begin_inset Quotes eld
30866 \begin_inset Quotes erd
30870 \begin_inset Quotes eld
30878 \begin_inset Quotes erd
30881 ), and in the format
30882 \begin_inset Quotes eld
30885 Portable Network Graphics
30886 \begin_inset Quotes erd
30889 (PNG, file extension
30890 \begin_inset Quotes eld
30898 \begin_inset Quotes erd
30902 Nevertheless you can use any other image format, because LyX converts them
30903 in the background to one of these formats.
30904 But as described in the section about PostScript, the image conversion
30905 will slow down your work flow.
30906 So it is recommended to use images in one of the three mentioned formats.
30909 \begin_layout Standard
30910 You can export your document to PDF via the menu
30912 File\SpecialChar \menuseparator
30915 in three different ways:
30918 \begin_layout Description
30920 (ps2pdf) This uses the program
30924 that creates a PDF from a PostScript-version of your file.
30925 The PostScript-version is produced by the program
30929 which uses a DVI-version as intermediate step.
30930 So this export variant consist of three conversions.
30933 \begin_layout Description
30935 (dvipdfm) This uses the program
30939 that converts your file in the background to DVI and in a second step to
30943 \begin_layout Description
30945 (pdflatex) This uses the program
30949 that converts your file directly to PDF.
30952 \begin_layout Standard
30953 It is recommended to use
30962 supports all features of actual PDF-versions, is quick and works stable
30968 is not under development and therefore a bit outdated.
30971 \begin_layout Standard
30972 You can view your document as PDF via the
30976 menu or by using the toolbar button
30977 \begin_inset Graphics
30978 filename ../images/buffer-view_pdf2.png
30980 scaleBeforeRotation
30996 \begin_layout Chapter
30997 Explanation of Equation\InsetSpace ~
30999 \begin_inset LatexCommand eqref
31005 \begin_inset LatexCommand label
31006 name "cha:Explanation-of-Equation"
31013 \begin_layout Standard
31019 \begin_inset Formula $W_{\mathrm{tot\, n}}$
31022 can be calculated to
31025 \begin_layout Standard
31026 \begin_inset Formula \begin{equation}
31027 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}
31034 \begin_layout Standard
31036 \begin_inset Formula $W_{g\, n}$
31039 is the given width of all cells.
31046 is the LaTeX-length between the cell text and the cell border, its default
31047 value is 6\InsetSpace \thinspace{}
31055 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
31059 \begin_layout Standard
31060 Following equation\InsetSpace ~
31062 \begin_inset LatexCommand eqref
31063 reference "eq:Wtot_n"
31067 , the total width of a multicolumn
31068 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
31074 \begin_layout Standard
31075 \begin_inset Formula \begin{equation}
31076 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
31083 \begin_layout Standard
31084 By setting equation\InsetSpace ~
31086 \begin_inset LatexCommand eqref
31087 reference "eq:Wtot_n"
31092 \begin_inset LatexCommand eqref
31093 reference "eq:Wtot_mult"
31097 equal we can calculate the needed given width
31098 \begin_inset Formula $W_{g\, n}$
31105 columns are spanned, so that each column has a total width of
31106 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
31112 \begin_layout Standard
31113 \begin_inset Formula \begin{equation}
31114 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
31121 \begin_layout Bibliography
31122 \begin_inset LatexCommand bibitem
31123 key "latexcompanion"
31127 Frank Mittelbach and Michel Goossens:
31129 The LaTeX Companion Second Edition.
31132 Addison-Wesley, 2004
31135 \begin_layout Bibliography
31136 \begin_inset LatexCommand bibitem
31141 Helmut Kopka and Patrick W.
31144 A Guide to LaTeX Fourth Edition.
31147 Addison-Wesley, 2003
31150 \begin_layout Bibliography
31151 \begin_inset LatexCommand bibitem
31158 LaTeX: A Document Preparation System.
31161 Addison-Wesley, second edition, 1994
31164 \begin_layout Bibliography
31165 \begin_inset LatexCommand bibitem
31174 \begin_layout Standard
31178 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
31188 \begin_layout Standard
31195 of the LaTeX-package
31200 \begin_inset LatexCommand index
31201 name "LaTeX-packages ! booktabs"
31208 \begin_layout Bibliography
31209 \begin_inset LatexCommand bibitem
31218 \begin_layout Standard
31222 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
31231 \begin_layout Standard
31238 of the LaTeX-package
31243 \begin_inset LatexCommand index
31244 name "LaTeX-packages ! caption"
31251 \begin_layout Bibliography
31252 \begin_inset LatexCommand bibitem
31261 \begin_layout Standard
31265 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
31275 \begin_layout Standard
31282 of the LaTeX-package
31287 \begin_layout Bibliography
31288 \begin_inset LatexCommand bibitem
31297 \begin_layout Standard
31301 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
31311 \begin_layout Standard
31318 of the LaTeX-package
31320 endf\SpecialChar \textcompwordmark{}
31324 \begin_inset LatexCommand index
31325 name "LaTeX-packages ! endfloat"
31332 \begin_layout Bibliography
31333 \begin_inset LatexCommand bibitem
31342 \begin_layout Standard
31346 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
31356 \begin_layout Standard
31363 of the LaTeX-package
31365 f\SpecialChar \textcompwordmark{}
31366 loatf\SpecialChar \textcompwordmark{}
31370 \begin_inset LatexCommand index
31371 name "LaTeX-packages ! floatflt"
31378 \begin_layout Bibliography
31379 \begin_inset LatexCommand bibitem
31388 \begin_layout Standard
31392 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
31402 \begin_layout Standard
31409 of the LaTeX-package
31414 \begin_inset LatexCommand index
31415 name "LaTeX-packages ! footmisc"
31422 \begin_layout Bibliography
31423 \begin_inset LatexCommand bibitem
31432 \begin_layout Standard
31436 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
31445 \begin_layout Standard
31452 of the LaTeX-package
31457 \begin_inset LatexCommand index
31458 name "LaTeX-packages ! hyperref"
31465 \begin_layout Bibliography
31466 \begin_inset LatexCommand bibitem
31475 \begin_layout Standard
31479 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
31489 \begin_layout Standard
31496 of the LaTeX-package
31501 \begin_inset LatexCommand index
31502 name "LaTeX-packages ! hyperref"
31509 \begin_layout Bibliography
31510 \begin_inset LatexCommand bibitem
31519 \begin_layout Standard
31523 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
31533 \begin_layout Standard
31540 of the LaTeX-package
31545 \begin_inset LatexCommand index
31546 name "LaTeX-packages ! koma-script"
31553 \begin_layout Bibliography
31554 \begin_inset LatexCommand bibitem
31555 key "koma-script-de"
31563 \begin_layout Standard
31567 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
31577 \begin_layout Standard
31584 of the LaTeX-package
31589 \begin_inset LatexCommand index
31590 name "LaTeX-packages ! koma-script"
31597 \begin_layout Bibliography
31598 \begin_inset LatexCommand bibitem
31607 \begin_layout Standard
31611 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
31621 \begin_layout Standard
31628 of the LaTeX-package
31633 \begin_inset LatexCommand index
31634 name "LaTeX-packages ! listings"
31641 \begin_layout Bibliography
31642 \begin_inset LatexCommand bibitem
31651 \begin_layout Standard
31655 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
31665 \begin_layout Standard
31672 of the LaTeX-package
31677 \begin_inset LatexCommand index
31678 name "LaTeX-packages ! marginnote"
31685 \begin_layout Bibliography
31686 \begin_inset LatexCommand bibitem
31695 \begin_layout Standard
31699 href{http://tug.org/PSTricks/main.cgi/}{
31708 \begin_layout Standard
31715 of the LaTeX-package
31720 \begin_inset LatexCommand index
31721 name "LaTeX-packages ! PSTricks"
31728 \begin_layout Bibliography
31729 \begin_inset LatexCommand bibitem
31738 \begin_layout Standard
31742 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
31751 \begin_layout Standard
31758 of the LaTeX-package
31763 \begin_inset LatexCommand index
31764 name "LaTeX-packages ! sidecap"
31771 \begin_layout Bibliography
31772 \begin_inset LatexCommand bibitem
31781 \begin_layout Standard
31785 href{http://wiki.lyx.org/LyX/NewInLyX15}{
31794 \begin_layout Standard
31801 about new features in
31808 \begin_layout Standard
31809 \begin_inset LatexCommand printindex
31816 \begin_layout Standard
31817 \begin_inset FloatList figure
31824 \begin_layout Standard
31825 \begin_inset FloatList table
31832 \begin_layout Standard
31836 \begin_layout Standard
31840 listof{Xalgorithm}{List of Algorithms}
31846 \begin_inset Note Note
31849 \begin_layout Standard
31850 see section\InsetSpace ~
31852 \begin_inset LatexCommand ref
31853 reference "sub:Algorithm-Floats"