1 #LyX 1.5.1 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}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
98 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
99 \definecolor{lightgrey}{gray}{0.8}
101 % check for package colortbl
102 % used for colored table cells
103 \newboolean{colortbl}
104 \IfFileExists{colortbl.sty}
105 {\usepackage{colortbl}
106 \setboolean{colortbl}{true}}
107 {\setboolean{colortbl}{false}}
110 \usepackage{multirow}
111 %\renewcommand{\multirowsetup}{\centering}
113 % used for book-style tables
114 \usepackage{booktabs}
116 % used to have extra space in table cells
117 \@ifundefined{extrarowheight}
118 {\usepackage{array}}{}
119 \setlength{\extrarowheight}{2pt}
121 % used for customized tables
124 {>{\centering\hspace{0pt}}m{#1}}
127 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
130 {>{\columncolor{#1}\hspace{0pt}}c}
132 \newcolumntype{V}{!{\vrule width 1.5pt}}
134 \newcolumntype{W}{!{\color{green}\vline}}
137 % insert additional vertical space of
138 % 1.5 mm between footnotes
140 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
142 % enable algorithm floats to be referenced
143 \newfloat{Xalgorithm}{tbp}{loa}
144 \floatname{Xalgorithm}{Algorithm}
145 \newcommand{\theHalgorithm}{\theHXalgorithm}
146 \renewenvironment{algorithm}[1][tbp]
147 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
149 % number algorithm floats within chapters
150 \numberwithin{Xalgorithm}{chapter}
152 % redefine the greyed out note
153 \renewenvironment{lyxgreyedout}
154 {\textcolor{blue}\bgroup}{\egroup}
156 % ------------------------------------
157 % used to check for needed LaTeX packages
160 % check for package arydshln
161 % used for tables with dashed lines
162 \newboolean{arydshln}
163 \IfFileExists{arydshln.sty}
164 {\usepackage{arydshln}
165 \setboolean{arydshln}{true}}
166 {\setboolean{arydshln}{false}}
168 % check for package marginnote
169 % used for margin notes
170 \newboolean{marginnote}
171 \IfFileExists{marginnote.sty}
172 {\usepackage{marginnote}
173 \let\marginpar\marginnote
174 \setboolean{marginnote}{true}}
175 {\setboolean{marginnote}{false}}
177 % redefine the \LyX macro for PDF bookmarks
178 \def\LyX{\texorpdfstring{%
179 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
182 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
187 \font_typewriter default
188 \font_default_family default
202 \paperorientation portrait
205 \paragraph_separation skip
207 \quotes_language english
210 \paperpagestyle default
214 \tracking_changes false
215 \output_changes false
223 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
232 \begin_layout Standard
234 If you have comments or error corrections, please send them to the LyX Documenta
241 \begin_layout Standard
245 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
250 lyx-docs@lists.lyx.org
254 \begin_layout Standard
267 \begin_inset Note Note
270 \begin_layout Standard
271 original author: Uwe Stöhr
285 \begin_layout Standard
286 \begin_inset LatexCommand tableofcontents
293 \begin_layout Standard
294 \begin_inset Note Note
297 \begin_layout Standard
298 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
312 If they are not installed you can export the document anyway but the sections
313 where the packages are required won't appear in the output.
316 \begin_layout Standard
317 The latest PDF-version of this document can be found here:
321 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
329 \begin_layout Chapter
331 \begin_inset LatexCommand label
337 \begin_inset LatexCommand index
343 \begin_inset LatexCommand index
344 name "Graphics|see{Figures}"
351 \begin_layout Section
353 \begin_inset LatexCommand index
354 name "Figures ! Graphics Dialog"
359 \begin_inset LatexCommand label
360 name "sec:Graphics-Dialog"
367 \begin_layout Standard
368 To insert an image into your document, place the cursor at the text position
369 you want and click on the toolbar icon
370 \begin_inset Graphics
371 filename ../images/dialog-show-new-inset_graphics.png
379 Insert\SpecialChar \menuseparator
383 Then a dialog will appear to choose the file to load.
384 The image will appear in the output exactly at the position where it is
388 \begin_layout Standard
389 The graphics dialog can be called at any time by right-clicking on an image.
390 This dialog has three tabs:
393 \begin_layout Description
398 Here you can choose an image file and adjust its appearance in the output.
399 The available units for the image size are explained in appendix\InsetSpace ~
401 \begin_inset LatexCommand ref
402 reference "cha:Units-available-in"
408 You can rotate images counter-clockwise by setting a rotation angle and
410 The image will also be rotated inside LyX.
412 Images can be scaled by using
413 a percentage value or by setting the width and height explicitly.
414 If you set only the width or only the height, the other size will be determined
416 If you set both, then the image will be transformed to the given size,
417 possibly distorting it.
418 To prevent the image from distortion, use the option
420 Maintain aspect ratio
423 The image will then be scaled so that its width and height don't exceed
424 the specified dimensions.
426 Images can be opened in a program of your choice
432 The program can be set for every image format in the file format settings
433 in LyX's preferences.
436 \begin_layout Description
441 Alternatively to the usage of scaling units it is possible to set image
442 coordinates to adjust the height and width of the image in the output.
443 The coordinates can also be calculated automatically by pressing the button
455 bounding\InsetSpace ~
458 will only print the image region within the given coordinates.
459 Normally you don't need to take care about image coordinates and can ignore
463 \begin_layout Description
469 In this tab you can modify the appearance of the image within LyX and set
470 the image to be a subfigure of a figure float with an own caption.
471 Subfigures are explained in section\InsetSpace ~
473 \begin_inset LatexCommand ref
474 reference "sec:Figure-Floats"
480 LaTeX experts can also specify on this tab additional LaTeX options.
488 makes the image appear in the output only as a frame with the size of the
498 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
505 When the option is used the images will not be unzipped on export, since
506 LaTeX can handle them as they are.
508 Zipped EPS-graphics are useful to save
509 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
511 \begin_inset LatexCommand ref
512 reference "sec:PostScript"
517 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
528 zgrep %%Bounding x.eps.gz > x.eps.bb
532 The second command creates the bounding box file
533 \begin_inset Quotes eld
537 \begin_inset Quotes erd
540 that is needed by LaTeX for zipped graphics.
543 \begin_layout Standard
544 \begin_inset VSpace bigskip
550 \begin_layout Standard
551 This is an example image in EPS format
555 \begin_layout Standard
556 Image formats are explained in section\InsetSpace ~
558 \begin_inset LatexCommand ref
559 reference "sec:Image-Formats"
568 within a separate, horizontally centered paragraph:
571 \begin_layout Standard
573 \begin_inset Graphics
574 filename clipart/mobius.eps
585 \begin_layout Standard
586 This is the same image like the one above but in draft mode:
589 \begin_layout Standard
591 \begin_inset Graphics
592 filename clipart/mobius.eps
604 \begin_layout Section
606 \begin_inset LatexCommand label
607 name "sec:Figure-Floats"
612 \begin_inset LatexCommand index
613 name "Floats ! Figures"
618 \begin_inset LatexCommand index
619 name "Figures ! Floats"
626 \begin_layout Standard
627 For general explanations about floats, have a look at section\InsetSpace ~
629 \begin_inset LatexCommand ref
630 reference "sec:FloatIntroduction"
637 \begin_layout Standard
639 \begin_inset Graphics
640 filename ../images/float-insert_figure.png
648 Insert\SpecialChar \menuseparator
649 Float\SpecialChar \menuseparator
652 inserts a float with a caption that has the label
653 \begin_inset Quotes eld
658 \begin_inset Quotes erd
661 (# is the actual number).
662 You can insert the image above the caption, like in Figure\InsetSpace ~
664 \begin_inset LatexCommand ref
665 reference "fig:kill-plat"
669 or below the caption, like in Figure\InsetSpace ~
671 \begin_inset LatexCommand ref
672 reference "fig:escher"
677 More about the caption placement is described in section\InsetSpace ~
679 \begin_inset LatexCommand ref
680 reference "sec:Caption-Placement"
687 \begin_layout Standard
688 \begin_inset Float figure
693 \begin_layout Standard
695 \begin_inset Graphics
696 filename clipart/platypus.eps
707 \begin_layout Standard
710 \begin_layout Standard
711 \begin_inset LatexCommand label
716 A severely distorted platypus in a float.
729 \begin_layout Standard
730 \begin_inset Float figure
735 \begin_layout Standard
738 \begin_layout Standard
739 \begin_inset LatexCommand label
753 \begin_layout Standard
755 \begin_inset Graphics
756 filename clipart/escher-lsd.eps
772 \begin_layout Standard
773 \begin_inset LatexCommand index
774 name "References ! to Figures"
780 \begin_inset LatexCommand ref
781 reference "fig:kill-plat"
786 \begin_inset LatexCommand ref
787 reference "fig:escher"
791 are examples of referenced figures.
792 Figures can be referenced in the text by referencing their label.
793 To do this insert a label in the caption using the menu
795 Insert\SpecialChar \menuseparator
798 or the toolbar button
799 \begin_inset Graphics
800 filename ../images/label-insert.png
807 You can now refer to the label using the menu
809 Insert\SpecialChar \menuseparator
813 or the toolbar button
814 \begin_inset Graphics
815 filename ../images/dialog-show-new-inset_ref.png
822 It is important to use references to floats, rather than using vague references
824 \begin_inset Quotes eld
828 \begin_inset Quotes erd
831 , because as LaTeX will reposition the floats in the final document, it
833 \begin_inset Quotes eld
837 \begin_inset Quotes erd
842 Referencing is explained in detail in section\InsetSpace ~
844 \begin_inset LatexCommand ref
845 reference "sec:Referencing-Floats"
852 \begin_layout Standard
853 Normally only one image is inserted to a figure float, but sometimes you
854 might want to use two images with separate subcaptions.
855 This can be set in the tab
860 of the graphics dialog.
861 Choose there the option
865 and enter the subcaption for the image in the caption field.
866 Note that only the main caption of the float is added to the List of Figures.
869 erencing subfigures is explained in section\InsetSpace ~
871 \begin_inset LatexCommand ref
872 reference "sub:Referencing-Subfigures"
879 \begin_layout Standard
882 \begin_inset LatexCommand ref
883 reference "fig:Two-distorted-images"
887 is an example of a figure float with two images set side by side.
888 You can also set the images one below the other.
891 \begin_layout Standard
892 \begin_inset Float figure
897 \begin_layout Standard
901 \begin_inset Graphics
902 filename clipart/escher-lsd.eps
906 subcaptionText "Undefinable structure"
913 \begin_inset Graphics
914 filename clipart/platypus.eps
919 subcaptionText "\label{fig:Platypus} Platypus"
928 \begin_layout Standard
931 \begin_layout Standard
932 \begin_inset LatexCommand label
933 name "fig:Two-distorted-images"
937 Two distorted images.
950 \begin_layout Section
952 \begin_inset LatexCommand label
953 name "sec:Image-Formats"
958 \begin_inset LatexCommand index
964 \begin_inset LatexCommand index
965 name "Figures ! Image Formats"
972 \begin_layout Standard
973 You can insert images in any known file format.
974 But as explained in appendix\InsetSpace ~
976 \begin_inset LatexCommand ref
977 reference "cha:Output-File-Formats"
981 , every output document format allows only a few image formats.
982 LyX uses therefore the program
986 in the background to convert the images to the right format.
987 To increase your work flow by avoiding these conversions in the background,
988 you can use only the image formats that can directly be embedded in the
990 The output file formats are explained in appendix\InsetSpace ~
992 \begin_inset LatexCommand ref
993 reference "cha:Output-File-Formats"
1000 \begin_layout Standard
1001 Similar to fonts there are two types of image formats:
1004 \begin_layout Description
1006 images consist of pixel values, often in a compressed form.
1007 They are therefore not fully scalable and look pixeled in large zooms.
1008 Well-known bitmap image formats are
1009 \begin_inset Quotes eld
1012 Graphics Interchange Format
1013 \begin_inset Quotes erd
1016 (GIF, file extension
1017 \begin_inset Quotes eld
1025 \begin_inset Quotes erd
1029 \begin_inset LatexCommand index
1030 name "GIF|see{Image formats}"
1035 \begin_inset Quotes eld
1038 Portable Network Graphics
1039 \begin_inset Quotes erd
1042 (PNG, file extension
1043 \begin_inset Quotes eld
1051 \begin_inset Quotes erd
1055 \begin_inset LatexCommand index
1056 name "PNG|see{Image formats}"
1061 \begin_inset Quotes eld
1064 Joint Photographic Experts Group
1065 \begin_inset Quotes erd
1068 (JPG, file extension
1069 \begin_inset Quotes eld
1077 \begin_inset Quotes erd
1081 \begin_inset Quotes eld
1089 \begin_inset Quotes erd
1093 \begin_inset LatexCommand index
1094 name "JPG|see{Image formats}"
1101 \begin_layout Description
1103 images consist of vectors and can therefore be scaled to any size
1105 The scaling ability is necessary if you want to create presentations, because
1106 presentations are always scaled by the video projector.
1107 Scaling is also useful for online documents to let the user zoom into diagrams.
1110 ell-known scalable image formats are
1111 \begin_inset Quotes eld
1114 Scalable Vector Graphics
1115 \begin_inset Quotes erd
1118 (SVG, file extension
1119 \begin_inset Quotes eld
1127 \begin_inset Quotes erd
1131 \begin_inset LatexCommand index
1132 name "SVG|see{Image formats}"
1137 \begin_inset Quotes eld
1140 Encapsulated PostScript
1141 \begin_inset Quotes erd
1144 (EPS, file extension
1145 \begin_inset Quotes eld
1153 \begin_inset Quotes erd
1157 \begin_inset LatexCommand index
1158 name "EPS|see{Image formats}"
1163 \begin_inset Quotes eld
1166 Portable Document Format
1167 \begin_inset Quotes erd
1170 (PDF, file extension
1171 \begin_inset Quotes eld
1179 \begin_inset Quotes erd
1183 \begin_inset LatexCommand index
1189 \begin_inset Quotes eld
1193 \begin_inset Quotes erd
1196 (WMF, file extension
1197 \begin_inset Quotes eld
1205 \begin_inset Quotes erd
1209 \begin_inset LatexCommand index
1210 name "SVG|see{Image formats}"
1216 \begin_inset Quotes eld
1220 \begin_inset Quotes erd
1223 , because you can convert any bitmap image to a PDF or EPS-image and the
1224 result will still be a bitmap image.
1225 In this cases only a header with the image properties is added to the original
1230 \begin_layout Standard
1231 In the case of PDF, the original image is additionally compressed.
1237 The PDF-files generated by
1241 are for example bitmap images.
1244 \begin_layout Standard
1245 Normally it is not possible to convert a bitmap image into a scalable one,
1247 Only the image formats PDF and EPS can directly be embedded to PDF and
1248 PostScript output files, respectively.
1249 SVG and WMF-images are recalculated to bitmaps when the output file is
1250 generated because there is currently no adequate WMF/SVG
1251 \begin_inset Formula $\to$
1254 PDF/EPS converter available.
1257 \begin_layout Chapter
1259 \begin_inset LatexCommand label
1265 \begin_inset LatexCommand index
1273 \begin_layout Section
1275 \begin_inset LatexCommand index
1276 name "Table ! Introduction"
1283 \begin_layout Standard
1284 You can insert a table using either the toolbar button
1285 \begin_inset Graphics
1286 filename ../images/tabular-insert.png
1294 Insert\SpecialChar \menuseparator
1298 The toolbar button offers you a graphical selection: Move the mouse to
1299 set the column/row number of the table that should be created and then
1300 press a mouse button.
1301 When you use the menu to create a table, a dialog will appear, asking you
1302 for the number of rows and columns.
1304 The default table has lines around any
1305 cell and the first row appears separated from the rest of the table.
1306 This separation occurs due to a double line: The cells of the first row
1307 have a line below them and the cells of the second row have a line above
1309 Here is an example table:
1312 \begin_layout Standard
1314 \begin_inset Tabular
1315 <lyxtabular version="3" rows="4" columns="4">
1317 <column alignment="center" valignment="top" leftline="true" width="0">
1318 <column alignment="center" valignment="top" leftline="true" width="0">
1319 <column alignment="center" valignment="top" leftline="true" width="0">
1320 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1321 <row topline="true" bottomline="true">
1322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1325 \begin_layout Standard
1331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1334 \begin_layout Standard
1349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1352 \begin_layout Standard
1358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1361 \begin_layout Standard
1368 <row topline="true">
1369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1372 \begin_layout Standard
1387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1390 \begin_layout Standard
1396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1399 \begin_layout Standard
1405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1408 \begin_layout Standard
1415 <row topline="true">
1416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1419 \begin_layout Standard
1434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1437 \begin_layout Standard
1443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1446 \begin_layout Standard
1452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1455 \begin_layout Standard
1462 <row topline="true" bottomline="true">
1463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1466 \begin_layout Standard
1481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1484 \begin_layout Standard
1490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1493 \begin_layout Standard
1499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1502 \begin_layout Standard
1516 \begin_layout Section
1518 \begin_inset LatexCommand index
1519 name "Table ! Dialog"
1526 \begin_layout Standard
1527 You can alter a table by clicking on it with the right mouse button, which
1528 brings up the table dialog.
1529 Here you can adjust the settings of that cell and row/column respectively
1530 where the cursor is currently placed.
1531 Most of the dialog options also work on selections.
1532 This means if you select more cells, columns or rows, the action is done
1533 for the whole selection.
1534 Note that there is a difference between selecting the
1538 of the cell, and the cell itself.
1539 You can alter tables with the following tabs of the table dialog:
1542 \begin_layout Description
1548 Here you can set the horizontal alignment and the width of the current
1550 When you have set a width you can also adjust the vertical alignment of
1552 A given width will allow the cell to have line breaks and multiple paragraphs
1553 of text, see section\InsetSpace ~
1555 \begin_inset LatexCommand ref
1556 reference "sub:Multiple-Lines-in"
1561 If you set no width, the column is as wide as their widest cell content
1564 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1565 cell, see section\InsetSpace ~
1567 \begin_inset LatexCommand ref
1568 reference "sub:Multicolumns"
1574 The rotate check boxes rotates the current cell, a selection, or the whole
1575 table counter-clockwise by 90°.
1576 The rotation is not shown within LyX, only in the output.
1579 \begin_inset Note Greyedout
1582 \begin_layout Standard
1587 Not all DVI-viewers are able to display rotations.
1594 It is also possible to enter a LaTeX-argument which is needed for special
1595 table formattings, see section\InsetSpace ~
1597 \begin_inset LatexCommand ref
1598 reference "sub:Multicolumn-Calculations"
1603 \begin_inset LatexCommand ref
1604 reference "sec:Colored-Tables"
1611 \begin_layout Description
1616 In this tab you can add and delete border lines for the current row/column.
1623 will convert the table to a formal table as described in section\InsetSpace ~
1625 \begin_inset LatexCommand ref
1626 reference "sec:Formal-Tables"
1632 You can also add here space to table rows as decribed in section\InsetSpace ~
1634 \begin_inset LatexCommand ref
1635 reference "sub:Row-Spacing"
1642 \begin_layout Description
1647 This tab is to make a table a so called
1648 \begin_inset Quotes eld
1656 \begin_inset Quotes erd
1659 that can run over several pages.
1660 Section\InsetSpace ~
1662 \begin_inset LatexCommand ref
1663 reference "sec:Longtables"
1668 \begin_inset LatexCommand ref
1669 reference "sec:Special-Longtable-Issues"
1673 describe the longtable features in detail.
1676 \begin_layout Standard
1677 When the table toolbar is opened, you can move the cursor with the arrow
1678 keys from cell to cell and the property of the current cell will immediately
1679 be displayed in the dialog.
1682 \begin_layout Section
1684 \begin_inset LatexCommand index
1685 name "Table ! Toolbar"
1692 \begin_layout Standard
1693 The table toolbar is an alternative to the table dialog to be able to alter
1695 It should normally appear at the bottom of LyX's main window when the cursor
1697 You can alternatively switch it on to appear always, by right-clicking
1698 in LyX's main menu bar.
1701 \begin_layout Standard
1702 The toolbar has the following icons:
1705 \begin_layout Labeling
1706 \labelwidthstring 00.00.0000
1707 \begin_inset Graphics
1708 filename ../images/tabular-feature_append-row.png
1713 adds a row below the current cell or selection
1716 \begin_layout Labeling
1717 \labelwidthstring 00.00.0000
1718 \begin_inset Graphics
1719 filename ../images/tabular-feature_append-column.png
1724 adds a column right beside the current cell or selection
1727 \begin_layout Labeling
1728 \labelwidthstring 00.00.0000
1729 \begin_inset Graphics
1730 filename ../images/tabular-feature_delete-row.png
1735 deletes the current row or selection
1738 \begin_layout Labeling
1739 \labelwidthstring 00.00.0000
1740 \begin_inset Graphics
1741 filename ../images/tabular-feature_delete-column.png
1746 deletes the current column or selection
1749 \begin_layout Labeling
1750 \labelwidthstring 00.00.0000
1751 \begin_inset Graphics
1752 filename ../images/tabular-feature_toggle-line-top.png
1757 adds a line at the top of the current cell / row or of a selection
1760 \begin_layout Labeling
1761 \labelwidthstring 00.00.0000
1762 \begin_inset Graphics
1763 filename ../images/tabular-feature_toggle-line-bottom.png
1768 adds a line at the bottom of the current cell / row or of a selection
1771 \begin_layout Labeling
1772 \labelwidthstring 00.00.0000
1773 \begin_inset Graphics
1774 filename ../images/tabular-feature_toggle-line-left.png
1779 adds a line at the left side of the current cell / row or of a selection
1782 \begin_layout Labeling
1783 \labelwidthstring 00.00.0000
1784 \begin_inset Graphics
1785 filename ../images/tabular-feature_toggle-line-right.png
1790 adds a line at the right side of the current cell / row or of a selection
1793 \begin_layout Labeling
1794 \labelwidthstring 00.00.0000
1795 \begin_inset Graphics
1796 filename ../images/tabular-feature_set-all-lines.png
1801 adds lines around the current or selected cells - if the current cell no
1802 multicolumn this also affects the current row and column
1805 \begin_layout Labeling
1806 \labelwidthstring 00.00.0000
1807 \begin_inset Graphics
1808 filename ../images/tabular-feature_unset-all-lines.png
1813 deletes all lines of the current or selected cells - if the current cell
1814 no multicolumn this also affects the current row and column
1817 \begin_layout Labeling
1818 \labelwidthstring 00.00.0000
1819 \begin_inset Graphics
1820 filename ../images/tabular-feature_align-left.png
1825 left-aligns the content of the current cell / column
1828 \begin_layout Labeling
1829 \labelwidthstring 00.00.0000
1830 \begin_inset Graphics
1831 filename ../images/tabular-feature_align-center.png
1836 centers the content of the current cell / column horizontally
1839 \begin_layout Labeling
1840 \labelwidthstring 00.00.0000
1841 \begin_inset Graphics
1842 filename ../images/tabular-feature_align-right.png
1847 right-aligns the content of the current cell / column
1850 \begin_layout Labeling
1851 \labelwidthstring 00.00.0000
1852 \begin_inset Graphics
1853 filename ../images/tabular-feature_valign-top.png
1858 aligns the content of the current cell vertically to the top
1861 \begin_layout Labeling
1862 \labelwidthstring 00.00.0000
1863 \begin_inset Graphics
1864 filename ../images/tabular-feature_valign-middle.png
1869 centers the content of the current cell vertically
1872 \begin_layout Labeling
1873 \labelwidthstring 00.00.0000
1874 \begin_inset Graphics
1875 filename ../images/tabular-feature_valign-bottom.png
1880 aligns the content of the current cell vertically to the bottom
1883 \begin_layout Labeling
1884 \labelwidthstring 00.00.0000
1885 \begin_inset Graphics
1886 filename ../images/tabular-feature_set-rotate-cell.png
1891 rotates the current cell or selection counter-clockwise by 90°
1894 \begin_layout Labeling
1895 \labelwidthstring 00.00.0000
1896 \begin_inset Graphics
1897 filename ../images/tabular-feature_set-rotate-tabular.png
1902 rotates the whole table counter-clockwise by 90°
1905 \begin_layout Labeling
1906 \labelwidthstring 00.00.0000
1907 \begin_inset Graphics
1908 filename ../images/tabular-feature_multicolumn.png
1913 sets the current cell or selection as a multicolumn
1916 \begin_layout Standard
1917 \begin_inset Note Greyedout
1920 \begin_layout Standard
1925 For the output the vertical alignment of the first cell in a row is used
1926 for all following cells in the row.
1934 \begin_layout Section
1936 \begin_inset LatexCommand index
1937 name "Table ! Edit Menu"
1944 \begin_layout Standard
1945 Additionally to the table dialog and toolbar, the menu
1947 Edit\SpecialChar \menuseparator
1950 allows you to add and delete border lines for the current row/column and
1951 to set the current selection as multicolumn.
1952 The menu is only available when the cursor is inside a table.
1955 \begin_layout Section
1957 \begin_inset LatexCommand label
1958 name "sec:Table-Floats"
1963 \begin_inset LatexCommand index
1964 name "Floats ! Tables"
1969 \begin_inset LatexCommand index
1970 name "Table ! Floats"
1977 \begin_layout Standard
1978 For general explanations about floats, have a look at section\InsetSpace ~
1980 \begin_inset LatexCommand ref
1981 reference "sec:FloatIntroduction"
1988 \begin_layout Standard
1989 \begin_inset Float table
1995 \begin_layout Standard
1996 \begin_inset Caption
1998 \begin_layout Standard
1999 \begin_inset LatexCommand label
2000 name "tab:a table float"
2012 \begin_layout Standard
2014 \begin_inset Tabular
2015 <lyxtabular version="3" rows="3" columns="3">
2017 <column alignment="center" valignment="top" leftline="true" width="0pt">
2018 <column alignment="center" valignment="top" leftline="true" width="0pt">
2019 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2020 <row topline="true" bottomline="true">
2021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2024 \begin_layout Standard
2039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2042 \begin_layout Standard
2057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2060 \begin_layout Standard
2076 <row topline="true">
2077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2080 \begin_layout Standard
2095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2098 \begin_layout Standard
2113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2116 \begin_layout Standard
2132 <row topline="true" bottomline="true">
2133 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2136 \begin_layout Standard
2146 \begin_inset Formula $\int x^{2}dx$
2154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2157 \begin_layout Standard
2167 \begin_inset Formula $\left[\begin{array}{cc}
2169 c & d\end{array}\right]$
2177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2180 \begin_layout Standard
2190 \begin_inset Formula $1+1=2$
2211 \begin_layout Standard
2212 Table floats can be inserted using the menu
2214 Insert\SpecialChar \menuseparator
2215 Float\SpecialChar \menuseparator
2218 or the toolbar button
2219 \begin_inset Graphics
2220 filename ../images/float-insert_table.png
2229 \begin_layout Standard
2230 The float appears as a collapsible box with a caption that has the label
2232 \begin_inset Quotes eld
2237 \begin_inset Quotes erd
2240 (# is the actual table number).
2241 You can insert tables to the float above or below the caption.
2244 \begin_layout Standard
2247 \begin_inset LatexCommand ref
2248 reference "tab:a table float"
2252 is an example table within a table float.
2255 \begin_layout Standard
2256 Having the caption above the table is the common rule that is unfortunately
2257 not supported in LaTeX's standard classes.
2258 That means if you are using the document classes
2274 there will be no space between the caption and the table.
2275 To insert the needed space, add the following option to the load command
2276 of the LaTeX-package
2281 \begin_inset LatexCommand index
2282 name "LaTeX-packages ! caption"
2286 in your document preamble
2290 \begin_layout Standard
2291 For more information have a look at section\InsetSpace ~
2293 \begin_inset LatexCommand ref
2294 reference "sec:Caption-Placement"
2306 \begin_layout Standard
2312 \begin_layout Standard
2317 , which is described in section\InsetSpace ~
2319 \begin_inset LatexCommand ref
2320 reference "sec:Caption-Formatting"
2324 , is used to adjust the caption format.
2327 \begin_layout Standard
2328 \begin_inset LatexCommand index
2329 name "References ! to Tables"
2333 Tables can be cross-referenced in the text by referencing their label.
2334 To do this insert a label in the caption using the menu
2336 Insert\SpecialChar \menuseparator
2339 or the toolbar button
2340 \begin_inset Graphics
2341 filename ../images/label-insert.png
2348 You can now refer to the label using the menu
2350 Insert\SpecialChar \menuseparator
2354 or the toolbar button
2355 \begin_inset Graphics
2356 filename ../images/dialog-show-new-inset_ref.png
2364 Referencing is explained in detail in section\InsetSpace ~
2366 \begin_inset LatexCommand ref
2367 reference "sec:Referencing-Floats"
2374 \begin_layout Section
2376 \begin_inset LatexCommand label
2377 name "sec:Longtables"
2382 \begin_inset LatexCommand index
2388 \begin_inset LatexCommand index
2389 name "Table ! Longtables"
2396 \begin_layout Standard
2397 If the table is too long to fit on one page, you can use the option
2407 of the table dialog to split the table automatically over more pages.
2408 Doing this enables some check boxes and you can now define:
2411 \begin_layout Description
2416 : The current row and all rows above, that don't have any special options
2417 defined, are defined to be the header rows of all pages of the longtable;
2418 except for the first page, if
2424 This therefore called the main header.
2427 \begin_layout Description
2433 : The current row and all rows above, that don't have any special options
2434 defined, are defined to be the header rows of the first page of the longtable.
2437 \begin_layout Description
2442 : The current row and all rows below, that don't have any special options
2443 defined, are defined to be the footer rows of all pages of the longtable;
2444 except for the last page, if
2452 \begin_layout Description
2458 : The current row and all rows below, that don't have any special options
2459 defined, are defined to be the footer rows of the last page of the longtable.
2462 \begin_layout Standard
2463 You can also specify a row where the table is splitted.
2464 If you set more than one option in the same table row, you should be aware
2465 of the fact that only the first one is used in the given table row.
2466 The others will then be defined as
2471 In this context, first means first in this order:
2478 header, Footer, Last\InsetSpace ~
2482 See the following longtable to see how it works:
2485 \begin_layout Standard
2487 \begin_inset Tabular
2488 <lyxtabular version="3" rows="69" columns="3">
2489 <features islongtable="true">
2490 <column alignment="left" valignment="top" leftline="true" width="0cm">
2491 <column alignment="left" valignment="top" width="0pt">
2492 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2493 <row topline="true" bottomline="true" endfirsthead="true">
2494 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2497 \begin_layout Standard
2500 Example Phone List (ignore the names)
2505 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2508 \begin_layout Standard
2514 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2517 \begin_layout Standard
2524 <row topline="true" bottomline="true" endfirsthead="true">
2525 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2528 \begin_layout Standard
2536 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2539 \begin_layout Standard
2545 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2548 \begin_layout Standard
2557 <row topline="true" bottomline="true" endhead="true">
2558 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2561 \begin_layout Standard
2569 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2572 \begin_layout Standard
2578 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2581 \begin_layout Standard
2588 <row topline="true" bottomline="true" endhead="true">
2589 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2592 \begin_layout Standard
2600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2603 \begin_layout Standard
2609 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2612 \begin_layout Standard
2621 <row topline="true" bottomline="true" endfoot="true">
2622 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2625 \begin_layout Standard
2626 continued on next page
2631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2634 \begin_layout Standard
2640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2643 \begin_layout Standard
2651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2654 \begin_layout Standard
2662 <cell alignment="center" valignment="top" topline="true" usebox="none">
2665 \begin_layout Standard
2671 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2674 \begin_layout Standard
2682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2685 \begin_layout Standard
2693 <cell alignment="center" valignment="top" topline="true" usebox="none">
2696 \begin_layout Standard
2702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2705 \begin_layout Standard
2713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2716 \begin_layout Standard
2724 <cell alignment="center" valignment="top" topline="true" usebox="none">
2727 \begin_layout Standard
2733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2736 \begin_layout Standard
2744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2747 \begin_layout Standard
2755 <cell alignment="center" valignment="top" topline="true" usebox="none">
2758 \begin_layout Standard
2764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2767 \begin_layout Standard
2775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2778 \begin_layout Standard
2786 <cell alignment="center" valignment="top" topline="true" usebox="none">
2789 \begin_layout Standard
2795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2798 \begin_layout Standard
2806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2809 \begin_layout Standard
2817 <cell alignment="center" valignment="top" topline="true" usebox="none">
2820 \begin_layout Standard
2826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2829 \begin_layout Standard
2837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2840 \begin_layout Standard
2848 <cell alignment="center" valignment="top" topline="true" usebox="none">
2851 \begin_layout Standard
2857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2860 \begin_layout Standard
2868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2871 \begin_layout Standard
2879 <cell alignment="center" valignment="top" topline="true" usebox="none">
2882 \begin_layout Standard
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2891 \begin_layout Standard
2899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2902 \begin_layout Standard
2910 <cell alignment="center" valignment="top" topline="true" usebox="none">
2913 \begin_layout Standard
2919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2922 \begin_layout Standard
2930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2933 \begin_layout Standard
2941 <cell alignment="center" valignment="top" topline="true" usebox="none">
2944 \begin_layout Standard
2950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2953 \begin_layout Standard
2961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2964 \begin_layout Standard
2972 <cell alignment="center" valignment="top" topline="true" usebox="none">
2975 \begin_layout Standard
2981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2984 \begin_layout Standard
2992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2995 \begin_layout Standard
3003 <cell alignment="center" valignment="top" topline="true" usebox="none">
3006 \begin_layout Standard
3012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3015 \begin_layout Standard
3023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3026 \begin_layout Standard
3034 <cell alignment="center" valignment="top" topline="true" usebox="none">
3037 \begin_layout Standard
3043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3046 \begin_layout Standard
3054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3057 \begin_layout Standard
3065 <cell alignment="center" valignment="top" topline="true" usebox="none">
3068 \begin_layout Standard
3074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3077 \begin_layout Standard
3085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3088 \begin_layout Standard
3096 <cell alignment="center" valignment="top" topline="true" usebox="none">
3099 \begin_layout Standard
3105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3108 \begin_layout Standard
3116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3119 \begin_layout Standard
3127 <cell alignment="center" valignment="top" topline="true" usebox="none">
3130 \begin_layout Standard
3136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3139 \begin_layout Standard
3147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3150 \begin_layout Standard
3158 <cell alignment="center" valignment="top" topline="true" usebox="none">
3161 \begin_layout Standard
3167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3170 \begin_layout Standard
3178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3181 \begin_layout Standard
3189 <cell alignment="center" valignment="top" topline="true" usebox="none">
3192 \begin_layout Standard
3198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3201 \begin_layout Standard
3209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3212 \begin_layout Standard
3220 <cell alignment="center" valignment="top" topline="true" usebox="none">
3223 \begin_layout Standard
3229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3232 \begin_layout Standard
3240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3243 \begin_layout Standard
3251 <cell alignment="center" valignment="top" topline="true" usebox="none">
3254 \begin_layout Standard
3260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3263 \begin_layout Standard
3271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3274 \begin_layout Standard
3282 <cell alignment="center" valignment="top" topline="true" usebox="none">
3285 \begin_layout Standard
3291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3294 \begin_layout Standard
3302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3305 \begin_layout Standard
3313 <cell alignment="center" valignment="top" topline="true" usebox="none">
3316 \begin_layout Standard
3322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3325 \begin_layout Standard
3333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3336 \begin_layout Standard
3344 <cell alignment="center" valignment="top" topline="true" usebox="none">
3347 \begin_layout Standard
3353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3356 \begin_layout Standard
3364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3367 \begin_layout Standard
3375 <cell alignment="center" valignment="top" topline="true" usebox="none">
3378 \begin_layout Standard
3384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3387 \begin_layout Standard
3395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3398 \begin_layout Standard
3406 <cell alignment="center" valignment="top" topline="true" usebox="none">
3409 \begin_layout Standard
3415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3418 \begin_layout Standard
3426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3429 \begin_layout Standard
3437 <cell alignment="center" valignment="top" topline="true" usebox="none">
3440 \begin_layout Standard
3446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3449 \begin_layout Standard
3457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3460 \begin_layout Standard
3468 <cell alignment="center" valignment="top" topline="true" usebox="none">
3471 \begin_layout Standard
3477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3480 \begin_layout Standard
3488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3491 \begin_layout Standard
3499 <cell alignment="center" valignment="top" topline="true" usebox="none">
3502 \begin_layout Standard
3508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3511 \begin_layout Standard
3519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3522 \begin_layout Standard
3530 <cell alignment="center" valignment="top" topline="true" usebox="none">
3533 \begin_layout Standard
3539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3542 \begin_layout Standard
3550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3553 \begin_layout Standard
3561 <cell alignment="center" valignment="top" topline="true" usebox="none">
3564 \begin_layout Standard
3570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3573 \begin_layout Standard
3580 <row bottomline="true">
3581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3584 \begin_layout Standard
3592 <cell alignment="center" valignment="top" topline="true" usebox="none">
3595 \begin_layout Standard
3601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Standard
3611 <row bottomline="true">
3612 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3615 \begin_layout Standard
3621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3624 \begin_layout Standard
3630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3633 \begin_layout Standard
3641 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3644 \begin_layout Standard
3652 <cell alignment="center" valignment="top" topline="true" usebox="none">
3655 \begin_layout Standard
3661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3664 \begin_layout Standard
3672 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3675 \begin_layout Standard
3683 <cell alignment="center" valignment="top" topline="true" usebox="none">
3686 \begin_layout Standard
3692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3695 \begin_layout Standard
3703 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3706 \begin_layout Standard
3714 <cell alignment="center" valignment="top" topline="true" usebox="none">
3717 \begin_layout Standard
3723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3726 \begin_layout Standard
3734 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3737 \begin_layout Standard
3745 <cell alignment="center" valignment="top" topline="true" usebox="none">
3748 \begin_layout Standard
3754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3757 \begin_layout Standard
3765 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3768 \begin_layout Standard
3776 <cell alignment="center" valignment="top" topline="true" usebox="none">
3779 \begin_layout Standard
3785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3788 \begin_layout Standard
3796 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3799 \begin_layout Standard
3807 <cell alignment="center" valignment="top" topline="true" usebox="none">
3810 \begin_layout Standard
3816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3819 \begin_layout Standard
3827 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3830 \begin_layout Standard
3838 <cell alignment="center" valignment="top" topline="true" usebox="none">
3841 \begin_layout Standard
3847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3850 \begin_layout Standard
3858 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3861 \begin_layout Standard
3869 <cell alignment="center" valignment="top" topline="true" usebox="none">
3872 \begin_layout Standard
3878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3881 \begin_layout Standard
3889 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3892 \begin_layout Standard
3900 <cell alignment="center" valignment="top" topline="true" usebox="none">
3903 \begin_layout Standard
3909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3912 \begin_layout Standard
3920 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3923 \begin_layout Standard
3931 <cell alignment="center" valignment="top" topline="true" usebox="none">
3934 \begin_layout Standard
3940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3943 \begin_layout Standard
3951 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3954 \begin_layout Standard
3962 <cell alignment="center" valignment="top" topline="true" usebox="none">
3965 \begin_layout Standard
3971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3974 \begin_layout Standard
3982 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3985 \begin_layout Standard
3993 <cell alignment="center" valignment="top" topline="true" usebox="none">
3996 \begin_layout Standard
4002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4005 \begin_layout Standard
4013 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4016 \begin_layout Standard
4024 <cell alignment="center" valignment="top" topline="true" usebox="none">
4027 \begin_layout Standard
4033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4036 \begin_layout Standard
4044 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4047 \begin_layout Standard
4055 <cell alignment="center" valignment="top" topline="true" usebox="none">
4058 \begin_layout Standard
4064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4067 \begin_layout Standard
4075 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4078 \begin_layout Standard
4086 <cell alignment="center" valignment="top" topline="true" usebox="none">
4089 \begin_layout Standard
4095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4098 \begin_layout Standard
4106 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4109 \begin_layout Standard
4117 <cell alignment="center" valignment="top" topline="true" usebox="none">
4120 \begin_layout Standard
4126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4129 \begin_layout Standard
4137 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4140 \begin_layout Standard
4148 <cell alignment="center" valignment="top" topline="true" usebox="none">
4151 \begin_layout Standard
4157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4160 \begin_layout Standard
4168 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4171 \begin_layout Standard
4179 <cell alignment="center" valignment="top" topline="true" usebox="none">
4182 \begin_layout Standard
4188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4191 \begin_layout Standard
4199 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4202 \begin_layout Standard
4210 <cell alignment="center" valignment="top" topline="true" usebox="none">
4213 \begin_layout Standard
4219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4222 \begin_layout Standard
4230 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4233 \begin_layout Standard
4241 <cell alignment="center" valignment="top" topline="true" usebox="none">
4244 \begin_layout Standard
4250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4253 \begin_layout Standard
4261 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4264 \begin_layout Standard
4272 <cell alignment="center" valignment="top" topline="true" usebox="none">
4275 \begin_layout Standard
4281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4284 \begin_layout Standard
4292 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4295 \begin_layout Standard
4303 <cell alignment="center" valignment="top" topline="true" usebox="none">
4306 \begin_layout Standard
4312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4315 \begin_layout Standard
4323 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4326 \begin_layout Standard
4334 <cell alignment="center" valignment="top" topline="true" usebox="none">
4337 \begin_layout Standard
4343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4346 \begin_layout Standard
4354 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4357 \begin_layout Standard
4365 <cell alignment="center" valignment="top" topline="true" usebox="none">
4368 \begin_layout Standard
4374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4377 \begin_layout Standard
4385 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4388 \begin_layout Standard
4396 <cell alignment="center" valignment="top" topline="true" usebox="none">
4399 \begin_layout Standard
4405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4408 \begin_layout Standard
4416 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4419 \begin_layout Standard
4427 <cell alignment="center" valignment="top" topline="true" usebox="none">
4430 \begin_layout Standard
4436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4439 \begin_layout Standard
4447 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4450 \begin_layout Standard
4458 <cell alignment="center" valignment="top" topline="true" usebox="none">
4461 \begin_layout Standard
4467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4470 \begin_layout Standard
4478 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4481 \begin_layout Standard
4489 <cell alignment="center" valignment="top" topline="true" usebox="none">
4492 \begin_layout Standard
4498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4501 \begin_layout Standard
4509 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4512 \begin_layout Standard
4520 <cell alignment="center" valignment="top" topline="true" usebox="none">
4523 \begin_layout Standard
4529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4532 \begin_layout Standard
4540 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4543 \begin_layout Standard
4551 <cell alignment="center" valignment="top" topline="true" usebox="none">
4554 \begin_layout Standard
4560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Standard
4570 <row bottomline="true">
4571 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4574 \begin_layout Standard
4582 <cell alignment="center" valignment="top" topline="true" usebox="none">
4585 \begin_layout Standard
4591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4594 \begin_layout Standard
4601 <row bottomline="true" endlastfoot="true">
4602 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4605 \begin_layout Standard
4611 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4614 \begin_layout Standard
4620 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4623 \begin_layout Standard
4638 \begin_layout Standard
4642 addtocounter{table}{-1}
4648 \begin_inset Note Note
4651 \begin_layout Standard
4652 See greyed-out note in section\InsetSpace ~
4654 \begin_inset LatexCommand ref
4655 reference "sub:Longtable-Captions"
4659 for an explanation of this command.
4667 \begin_layout Subsection
4668 Footnotes in Longtables
4669 \begin_inset LatexCommand label
4670 name "sub:Footnotes-in-Longtables"
4675 \begin_inset LatexCommand index
4676 name "Longtables ! Footnotes"
4683 \begin_layout Standard
4684 Footnotes can be inserted to every longtable cell.
4685 They appear at the bottom of the page where the table cell with the footnote
4689 \begin_inset LatexCommand ref
4690 reference "tab:DiffCaptions"
4694 has for example a footnote.
4697 \begin_layout Subsection
4699 \begin_inset LatexCommand index
4700 name "Longtables ! Alignment"
4707 \begin_layout Standard
4708 Longtables are by default centered.
4709 In contrary to the alignment of the table columns and row, the table alignment
4710 can currently not be changed in the table dialog.
4711 To change the alignment of longtables you have to change the value of the
4724 by inserting this line as ERT before the corresponding longtable:
4727 \begin_layout Standard
4737 \begin_layout Standard
4738 Where the value can have any of the units listed in Table\InsetSpace ~
4740 \begin_inset LatexCommand ref
4741 reference "tab:Units"
4752 controls the horizontal distance from the left page border to the longtable,
4759 the distance from the right side.
4760 The default value for both lengths is
4766 , which is in this case the same as an horizontal fill in LyX.
4769 \begin_layout Standard
4770 The following longtable was left-aligned by setting
4776 to 0\InsetSpace \thinspace{}
4781 \begin_layout Standard
4795 \begin_layout Standard
4796 \begin_inset Tabular
4797 <lyxtabular version="3" rows="5" columns="5">
4798 <features islongtable="true">
4799 <column alignment="center" valignment="top" leftline="true" width="0">
4800 <column alignment="center" valignment="top" leftline="true" width="0">
4801 <column alignment="center" valignment="top" leftline="true" width="0">
4802 <column alignment="center" valignment="top" leftline="true" width="0">
4803 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4804 <row topline="true">
4805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4808 \begin_layout Standard
4814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4817 \begin_layout Standard
4823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4826 \begin_layout Standard
4832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4835 \begin_layout Standard
4841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4844 \begin_layout Standard
4851 <row topline="true">
4852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4855 \begin_layout Standard
4861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4864 \begin_layout Standard
4870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4873 \begin_layout Standard
4879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4882 \begin_layout Standard
4888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4891 \begin_layout Standard
4898 <row topline="true">
4899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4902 \begin_layout Standard
4908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4911 \begin_layout Standard
4917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4920 \begin_layout Standard
4926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4929 \begin_layout Standard
4935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4938 \begin_layout Standard
4945 <row topline="true">
4946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4949 \begin_layout Standard
4955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4958 \begin_layout Standard
4964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4967 \begin_layout Standard
4973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4976 \begin_layout Standard
4982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4985 \begin_layout Standard
4992 <row topline="true" bottomline="true">
4993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4996 \begin_layout Standard
5002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5005 \begin_layout Standard
5011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5014 \begin_layout Standard
5020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5023 \begin_layout Standard
5029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Standard
5047 \begin_layout Standard
5063 \begin_layout Subsection
5065 \begin_inset LatexCommand index
5066 name "Longtables ! Captions"
5071 \begin_inset LatexCommand label
5072 name "sub:Longtable-Captions"
5079 \begin_layout Standard
5080 A longtable cannot be put into a table float because floats can only be
5081 on one page but the caption environment of floats can also be used for
5085 \begin_layout Standard
5086 As LyX does not yet fully support captions in longtables, a hack is needed
5090 \begin_layout Enumerate
5096 \begin_layout Enumerate
5097 Mark the first row and disable its upper line.
5100 \begin_layout Enumerate
5101 Insert a caption via the menu
5103 Insert\SpecialChar \menuseparator
5106 into the first table cell.
5108 You can also add a short title for the caption.
5111 \begin_layout Enumerate
5113 \begin_inset Quotes eld
5125 \begin_inset Quotes erd
5128 as ERT behind the caption.
5131 \begin_layout Standard
5132 A short title that will appear in the LOT instead of the full title.
5141 behind the caption omits the vertical lines between the following cells
5143 The first table row is now only a dummy row for the caption, the actual
5144 table starts with the second row.
5147 \begin_layout Standard
5148 Here is a short longtable to see how it works:
5151 \begin_layout Standard
5152 \begin_inset Tabular
5153 <lyxtabular version="3" rows="6" columns="5">
5154 <features islongtable="true">
5155 <column alignment="center" valignment="top" leftline="true" width="0">
5156 <column alignment="center" valignment="top" leftline="true" width="0">
5157 <column alignment="center" valignment="top" leftline="true" width="0">
5158 <column alignment="center" valignment="top" leftline="true" width="0">
5159 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5164 \begin_layout Standard
5165 \begin_inset Caption
5167 \begin_layout Standard
5168 Longtable with caption
5172 \begin_layout Standard
5187 \begin_layout Standard
5203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5206 \begin_layout Standard
5212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5215 \begin_layout Standard
5221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5224 \begin_layout Standard
5230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5233 \begin_layout Standard
5240 <row topline="true">
5241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5244 \begin_layout Standard
5250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5253 \begin_layout Standard
5259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5262 \begin_layout Standard
5268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5271 \begin_layout Standard
5277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5280 \begin_layout Standard
5287 <row topline="true">
5288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5291 \begin_layout Standard
5297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5300 \begin_layout Standard
5306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5309 \begin_layout Standard
5315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5318 \begin_layout Standard
5324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5327 \begin_layout Standard
5334 <row topline="true">
5335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5338 \begin_layout Standard
5344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5347 \begin_layout Standard
5353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5356 \begin_layout Standard
5362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5365 \begin_layout Standard
5371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5374 \begin_layout Standard
5381 <row topline="true">
5382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5385 \begin_layout Standard
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Standard
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Standard
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Standard
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5421 \begin_layout Standard
5428 <row topline="true" bottomline="true">
5429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5432 \begin_layout Standard
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Standard
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Standard
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Standard
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5468 \begin_layout Standard
5482 \begin_layout Standard
5483 \begin_inset VSpace medskip
5487 \begin_inset Note Greyedout
5490 \begin_layout Standard
5495 The table number is increased for every longtable, also if you didn't set
5497 For this reason you could have the case that e.g.
5499 2.4 follows on Table\InsetSpace ~
5500 2.1 in the list of tables if there are two longtables
5502 To avoid this you can add the following command in ERT behind every longtable
5506 \begin_layout Standard
5511 addtocounter{table}{-1}
5519 \begin_layout Standard
5520 \begin_inset Note Greyedout
5523 \begin_layout Standard
5528 If you are using the LaTeX-package
5533 \begin_inset LatexCommand index
5534 name "LaTeX-packages ! hyperref"
5538 to link cross-references, the link to a longtable caption will always point
5539 to the beginning of the document.
5547 \begin_layout Standard
5553 \begin_layout Subsubsection
5554 References to Longtables
5555 \begin_inset LatexCommand index
5556 name "Longtables ! References"
5563 \begin_layout Standard
5564 \begin_inset Tabular
5565 <lyxtabular version="3" rows="6" columns="5">
5566 <features islongtable="true">
5567 <column alignment="center" valignment="top" leftline="true" width="0">
5568 <column alignment="center" valignment="top" leftline="true" width="0">
5569 <column alignment="center" valignment="top" leftline="true" width="0">
5570 <column alignment="center" valignment="top" leftline="true" width="0">
5571 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5576 \begin_layout Standard
5577 \begin_inset Caption
5579 \begin_layout Standard
5580 Referenced longtable
5581 \begin_inset LatexCommand label
5582 name "tab:RefExample"
5595 \begin_layout Standard
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5614 \begin_layout Standard
5620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5623 \begin_layout Standard
5629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5632 \begin_layout Standard
5638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5641 \begin_layout Standard
5648 <row topline="true">
5649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5652 \begin_layout Standard
5658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5661 \begin_layout Standard
5667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5670 \begin_layout Standard
5676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5679 \begin_layout Standard
5685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5688 \begin_layout Standard
5695 <row topline="true">
5696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5699 \begin_layout Standard
5705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5708 \begin_layout Standard
5714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5717 \begin_layout Standard
5723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5726 \begin_layout Standard
5732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5735 \begin_layout Standard
5742 <row topline="true">
5743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5746 \begin_layout Standard
5752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5755 \begin_layout Standard
5761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5764 \begin_layout Standard
5770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5773 \begin_layout Standard
5779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5782 \begin_layout Standard
5789 <row topline="true">
5790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5793 \begin_layout Standard
5799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5802 \begin_layout Standard
5808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5811 \begin_layout Standard
5817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5820 \begin_layout Standard
5826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5829 \begin_layout Standard
5836 <row topline="true" bottomline="true">
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5840 \begin_layout Standard
5846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5849 \begin_layout Standard
5855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5858 \begin_layout Standard
5864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5867 \begin_layout Standard
5873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5876 \begin_layout Standard
5890 \begin_layout Standard
5891 To reference a longtable, insert a label into the caption.
5892 Note that you have to add the label prefix
5893 \begin_inset Quotes eld
5901 \begin_inset Quotes eld
5904 manually in the label field.
5907 \begin_layout Standard
5908 This is a reference to Table\InsetSpace ~
5910 \begin_inset LatexCommand ref
5911 reference "tab:RefExample"
5918 \begin_layout Standard
5919 The caption layout can be set together with all other caption of your document
5920 using the LaTeX-package
5925 \begin_inset LatexCommand index
5926 name "LaTeX-packages ! caption"
5930 , see section\InsetSpace ~
5932 \begin_inset LatexCommand ref
5933 reference "sec:Caption-Formatting"
5940 \begin_layout Subsubsection
5942 \begin_inset LatexCommand index
5943 name "Longtables ! Caption Width"
5950 \begin_layout Standard
5951 The maximal width of of caption lines is defined by the length
5958 Its default value is 4\InsetSpace \thinspace{}
5960 To change it add the following command to your document preamble or as
5961 ERT into your document before the longtable that should be affected
5964 \begin_layout Standard
5974 \begin_layout Standard
5975 where the width could have one of the units listed in appendix\InsetSpace ~
5977 \begin_inset LatexCommand ref
5978 reference "cha:Units-available-in"
5985 \begin_layout Standard
5986 The following tables show the difference:
5989 \begin_layout Standard
5990 \begin_inset Tabular
5991 <lyxtabular version="3" rows="6" columns="5">
5992 <features islongtable="true">
5993 <column alignment="center" valignment="top" leftline="true" width="0">
5994 <column alignment="center" valignment="top" leftline="true" width="0">
5995 <column alignment="center" valignment="top" leftline="true" width="0">
5996 <column alignment="center" valignment="top" leftline="true" width="0">
5997 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6002 \begin_layout Standard
6003 \begin_inset Caption
6005 \begin_layout Standard
6006 long full title with default width long full title with default width long
6007 full title with default width
6011 \begin_layout Standard
6012 caption with default width
6026 \begin_layout Standard
6042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6045 \begin_layout Standard
6051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6054 \begin_layout Standard
6060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6063 \begin_layout Standard
6069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6072 \begin_layout Standard
6079 <row topline="true">
6080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6083 \begin_layout Standard
6089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6092 \begin_layout Standard
6098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6101 \begin_layout Standard
6107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6110 \begin_layout Standard
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6119 \begin_layout Standard
6126 <row topline="true">
6127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6130 \begin_layout Standard
6136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6139 \begin_layout Standard
6145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6148 \begin_layout Standard
6154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6157 \begin_layout Standard
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6166 \begin_layout Standard
6173 <row topline="true">
6174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6177 \begin_layout Standard
6183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6186 \begin_layout Standard
6192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6195 \begin_layout Standard
6201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6204 \begin_layout Standard
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6213 \begin_layout Standard
6220 <row topline="true">
6221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6224 \begin_layout Standard
6230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6233 \begin_layout Standard
6239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6242 \begin_layout Standard
6248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6251 \begin_layout Standard
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6260 \begin_layout Standard
6267 <row topline="true" bottomline="true">
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Standard
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Standard
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Standard
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6298 \begin_layout Standard
6304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6307 \begin_layout Standard
6321 \begin_layout Standard
6325 \begin_layout Standard
6337 \begin_inset Tabular
6338 <lyxtabular version="3" rows="6" columns="5">
6339 <features islongtable="true">
6340 <column alignment="center" valignment="top" leftline="true" width="0">
6341 <column alignment="center" valignment="top" leftline="true" width="0">
6342 <column alignment="center" valignment="top" leftline="true" width="0">
6343 <column alignment="center" valignment="top" leftline="true" width="0">
6344 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6349 \begin_layout Standard
6350 \begin_inset Caption
6352 \begin_layout Standard
6353 long full title with width set to 5\InsetSpace \thinspace{}
6354 cm long full title with width set to
6355 5\InsetSpace \thinspace{}
6356 cm long full title with width set to 5\InsetSpace \thinspace{}
6361 \begin_layout Standard
6362 caption with width\InsetSpace \thinspace{}
6363 =\InsetSpace \thinspace{}
6364 5\InsetSpace \thinspace{}
6379 \begin_layout Standard
6395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6398 \begin_layout Standard
6404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6407 \begin_layout Standard
6413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6416 \begin_layout Standard
6422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6425 \begin_layout Standard
6432 <row topline="true">
6433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6436 \begin_layout Standard
6442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6445 \begin_layout Standard
6451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6454 \begin_layout Standard
6460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6463 \begin_layout Standard
6469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6472 \begin_layout Standard
6479 <row topline="true">
6480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6483 \begin_layout Standard
6489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6492 \begin_layout Standard
6498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6501 \begin_layout Standard
6507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6510 \begin_layout Standard
6516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6519 \begin_layout Standard
6526 <row topline="true">
6527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6530 \begin_layout Standard
6536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6539 \begin_layout Standard
6545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6548 \begin_layout Standard
6554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6557 \begin_layout Standard
6563 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6566 \begin_layout Standard
6573 <row topline="true">
6574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6577 \begin_layout Standard
6583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6586 \begin_layout Standard
6592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6595 \begin_layout Standard
6601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6604 \begin_layout Standard
6610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6613 \begin_layout Standard
6620 <row topline="true" bottomline="true">
6621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6624 \begin_layout Standard
6630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6633 \begin_layout Standard
6639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6642 \begin_layout Standard
6648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6651 \begin_layout Standard
6657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6660 \begin_layout Standard
6674 \begin_layout Standard
6678 \begin_layout Standard
6692 \begin_layout Standard
6693 \begin_inset Note Greyedout
6696 \begin_layout Standard
6701 When the LaTeX-package
6706 \begin_inset LatexCommand index
6707 name "LaTeX-packages ! caption"
6711 is used, as in this document, the full page width is used for the caption
6712 when you use the default value of 4\InsetSpace \thinspace{}
6720 To get in this case exactly a 4\InsetSpace \thinspace{}
6721 in wide caption, you can either use a value
6722 slightly different from 4.0\InsetSpace \thinspace{}
6724 3.99\InsetSpace \thinspace{}
6725 in, or the LaTeX-command
6729 captionsetup{width=value}
6731 that is provided by the
6743 \begin_layout Subsubsection
6744 Different Captions for Table Pages
6745 \begin_inset LatexCommand index
6746 name "Longtables ! Different Captions for Pages"
6753 \begin_layout Standard
6754 When the other captions should differ from the one of the first table page,
6755 insert a caption with a non-empty short title in a dummy caption row marked
6757 The caption used for the other table pages is inserted as caption without
6758 a short title in a dummy caption row that is marked as main header.
6759 When this caption shouldn't include the table number, use the command
6762 \begin_layout Standard
6767 caption*{caption text}
6770 \begin_layout Standard
6771 instead of LyX's caption box.
6772 The label to reference the table is inserted into the caption of the first
6776 \begin_inset LatexCommand ref
6777 reference "tab:DiffCaptions"
6781 is an example for a longtable with different heading where the second caption
6782 doesn't include the table number.
6785 \begin_layout Standard
6787 \begin_inset Tabular
6788 <lyxtabular version="3" rows="60" columns="3">
6789 <features islongtable="true">
6790 <column alignment="left" valignment="top" leftline="true" width="0cm">
6791 <column alignment="left" valignment="top" rightline="true" width="0pt">
6792 <column alignment="right" valignment="top" rightline="true" width="0pt">
6793 <row endfirsthead="true">
6794 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6797 \begin_layout Standard
6798 \begin_inset Caption
6800 \begin_layout Standard
6802 \begin_inset LatexCommand label
6803 name "tab:DiffCaptions"
6811 \begin_layout Standard
6826 \begin_layout Standard
6842 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6845 \begin_layout Standard
6851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6854 \begin_layout Standard
6861 <row topline="true" bottomline="true" endfirsthead="true">
6862 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6865 \begin_layout Standard
6868 Example Phone List (ignore the names)
6873 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6876 \begin_layout Standard
6882 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6885 \begin_layout Standard
6892 <row topline="true" bottomline="true" endfirsthead="true">
6893 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6896 \begin_layout Standard
6904 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6907 \begin_layout Standard
6913 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6916 \begin_layout Standard
6925 <row bottomline="true" endhead="true">
6926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6929 \begin_layout Standard
6933 \begin_layout Standard
6937 caption*{Continued Example Phone List}
6951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6954 \begin_layout Standard
6960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6963 \begin_layout Standard
6970 <row topline="true" bottomline="true" endhead="true">
6971 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6974 \begin_layout Standard
6982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6985 \begin_layout Standard
6991 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6994 \begin_layout Standard
7001 <row topline="true" bottomline="true" endhead="true">
7002 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7005 \begin_layout Standard
7013 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7016 \begin_layout Standard
7022 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7025 \begin_layout Standard
7034 <row topline="true" bottomline="true" endfoot="true">
7035 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
7038 \begin_layout Standard
7039 continued on next page
7044 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7047 \begin_layout Standard
7053 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7056 \begin_layout Standard
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7067 \begin_layout Standard
7075 <cell alignment="center" valignment="top" topline="true" usebox="none">
7078 \begin_layout Standard
7084 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7087 \begin_layout Standard
7095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7098 \begin_layout Standard
7106 <cell alignment="center" valignment="top" topline="true" usebox="none">
7109 \begin_layout Standard
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7118 \begin_layout Standard
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7129 \begin_layout Standard
7137 <cell alignment="center" valignment="top" topline="true" usebox="none">
7140 \begin_layout Standard
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7149 \begin_layout Standard
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Standard
7168 <cell alignment="center" valignment="top" topline="true" usebox="none">
7171 \begin_layout Standard
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7180 \begin_layout Standard
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7191 \begin_layout Standard
7199 <cell alignment="center" valignment="top" topline="true" usebox="none">
7202 \begin_layout Standard
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7211 \begin_layout Standard
7219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7222 \begin_layout Standard
7230 <cell alignment="center" valignment="top" topline="true" usebox="none">
7233 \begin_layout Standard
7239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7242 \begin_layout Standard
7250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7253 \begin_layout Standard
7261 <cell alignment="center" valignment="top" topline="true" usebox="none">
7264 \begin_layout Standard
7270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7273 \begin_layout Standard
7281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7284 \begin_layout Standard
7292 <cell alignment="center" valignment="top" topline="true" usebox="none">
7295 \begin_layout Standard
7301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7304 \begin_layout Standard
7312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7315 \begin_layout Standard
7323 <cell alignment="center" valignment="top" topline="true" usebox="none">
7326 \begin_layout Standard
7332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7335 \begin_layout Standard
7343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7346 \begin_layout Standard
7354 <cell alignment="center" valignment="top" topline="true" usebox="none">
7357 \begin_layout Standard
7363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7366 \begin_layout Standard
7374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7377 \begin_layout Standard
7385 <cell alignment="center" valignment="top" topline="true" usebox="none">
7388 \begin_layout Standard
7394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7397 \begin_layout Standard
7405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7408 \begin_layout Standard
7416 <cell alignment="center" valignment="top" topline="true" usebox="none">
7419 \begin_layout Standard
7425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7428 \begin_layout Standard
7436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7439 \begin_layout Standard
7447 <cell alignment="center" valignment="top" topline="true" usebox="none">
7450 \begin_layout Standard
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7459 \begin_layout Standard
7467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7470 \begin_layout Standard
7478 <cell alignment="center" valignment="top" topline="true" usebox="none">
7481 \begin_layout Standard
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7490 \begin_layout Standard
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7501 \begin_layout Standard
7510 \begin_layout Standard
7521 <cell alignment="center" valignment="top" topline="true" usebox="none">
7524 \begin_layout Standard
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7533 \begin_layout Standard
7541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7544 \begin_layout Standard
7552 <cell alignment="center" valignment="top" topline="true" usebox="none">
7555 \begin_layout Standard
7561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7564 \begin_layout Standard
7572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7575 \begin_layout Standard
7583 <cell alignment="center" valignment="top" topline="true" usebox="none">
7586 \begin_layout Standard
7592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Standard
7603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7606 \begin_layout Standard
7614 <cell alignment="center" valignment="top" topline="true" usebox="none">
7617 \begin_layout Standard
7623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7626 \begin_layout Standard
7634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7637 \begin_layout Standard
7645 <cell alignment="center" valignment="top" topline="true" usebox="none">
7648 \begin_layout Standard
7654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7657 \begin_layout Standard
7665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7668 \begin_layout Standard
7676 <cell alignment="center" valignment="top" topline="true" usebox="none">
7679 \begin_layout Standard
7685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7688 \begin_layout Standard
7696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7699 \begin_layout Standard
7707 <cell alignment="center" valignment="top" topline="true" usebox="none">
7710 \begin_layout Standard
7716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7719 \begin_layout Standard
7727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7730 \begin_layout Standard
7738 <cell alignment="center" valignment="top" topline="true" usebox="none">
7741 \begin_layout Standard
7747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7750 \begin_layout Standard
7758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7761 \begin_layout Standard
7769 <cell alignment="center" valignment="top" topline="true" usebox="none">
7772 \begin_layout Standard
7778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7781 \begin_layout Standard
7789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7792 \begin_layout Standard
7800 <cell alignment="center" valignment="top" topline="true" usebox="none">
7803 \begin_layout Standard
7809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7812 \begin_layout Standard
7820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7823 \begin_layout Standard
7831 <cell alignment="center" valignment="top" topline="true" usebox="none">
7834 \begin_layout Standard
7840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7843 \begin_layout Standard
7851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7854 \begin_layout Standard
7862 <cell alignment="center" valignment="top" topline="true" usebox="none">
7865 \begin_layout Standard
7871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7874 \begin_layout Standard
7882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7885 \begin_layout Standard
7893 <cell alignment="center" valignment="top" topline="true" usebox="none">
7896 \begin_layout Standard
7902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7905 \begin_layout Standard
7913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7916 \begin_layout Standard
7924 <cell alignment="center" valignment="top" topline="true" usebox="none">
7927 \begin_layout Standard
7933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7936 \begin_layout Standard
7944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7947 \begin_layout Standard
7955 <cell alignment="center" valignment="top" topline="true" usebox="none">
7958 \begin_layout Standard
7964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7967 \begin_layout Standard
7975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7978 \begin_layout Standard
7986 <cell alignment="center" valignment="top" topline="true" usebox="none">
7989 \begin_layout Standard
7995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7998 \begin_layout Standard
8005 <row bottomline="true">
8006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8009 \begin_layout Standard
8017 <cell alignment="center" valignment="top" topline="true" usebox="none">
8020 \begin_layout Standard
8026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8029 \begin_layout Standard
8036 <row bottomline="true">
8037 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8040 \begin_layout Standard
8046 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8049 \begin_layout Standard
8055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8058 \begin_layout Standard
8066 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8069 \begin_layout Standard
8077 <cell alignment="center" valignment="top" topline="true" usebox="none">
8080 \begin_layout Standard
8086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8089 \begin_layout Standard
8097 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8100 \begin_layout Standard
8108 <cell alignment="center" valignment="top" topline="true" usebox="none">
8111 \begin_layout Standard
8117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8120 \begin_layout Standard
8128 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8131 \begin_layout Standard
8139 <cell alignment="center" valignment="top" topline="true" usebox="none">
8142 \begin_layout Standard
8148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8151 \begin_layout Standard
8159 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8162 \begin_layout Standard
8170 <cell alignment="center" valignment="top" topline="true" usebox="none">
8173 \begin_layout Standard
8179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8182 \begin_layout Standard
8190 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8193 \begin_layout Standard
8201 <cell alignment="center" valignment="top" topline="true" usebox="none">
8204 \begin_layout Standard
8210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8213 \begin_layout Standard
8221 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8224 \begin_layout Standard
8232 <cell alignment="center" valignment="top" topline="true" usebox="none">
8235 \begin_layout Standard
8241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8244 \begin_layout Standard
8252 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8255 \begin_layout Standard
8263 <cell alignment="center" valignment="top" topline="true" usebox="none">
8266 \begin_layout Standard
8272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8275 \begin_layout Standard
8283 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8286 \begin_layout Standard
8294 <cell alignment="center" valignment="top" topline="true" usebox="none">
8297 \begin_layout Standard
8303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8306 \begin_layout Standard
8314 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8317 \begin_layout Standard
8325 <cell alignment="center" valignment="top" topline="true" usebox="none">
8328 \begin_layout Standard
8334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8337 \begin_layout Standard
8345 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8348 \begin_layout Standard
8356 <cell alignment="center" valignment="top" topline="true" usebox="none">
8359 \begin_layout Standard
8365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8368 \begin_layout Standard
8376 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8379 \begin_layout Standard
8387 <cell alignment="center" valignment="top" topline="true" usebox="none">
8390 \begin_layout Standard
8396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8399 \begin_layout Standard
8407 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8410 \begin_layout Standard
8418 <cell alignment="center" valignment="top" topline="true" usebox="none">
8421 \begin_layout Standard
8427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8430 \begin_layout Standard
8438 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8441 \begin_layout Standard
8449 <cell alignment="center" valignment="top" topline="true" usebox="none">
8452 \begin_layout Standard
8458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8461 \begin_layout Standard
8469 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8472 \begin_layout Standard
8480 <cell alignment="center" valignment="top" topline="true" usebox="none">
8483 \begin_layout Standard
8489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8492 \begin_layout Standard
8500 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8503 \begin_layout Standard
8511 <cell alignment="center" valignment="top" topline="true" usebox="none">
8514 \begin_layout Standard
8520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8523 \begin_layout Standard
8531 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8534 \begin_layout Standard
8542 <cell alignment="center" valignment="top" topline="true" usebox="none">
8545 \begin_layout Standard
8551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8554 \begin_layout Standard
8562 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8565 \begin_layout Standard
8573 <cell alignment="center" valignment="top" topline="true" usebox="none">
8576 \begin_layout Standard
8582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8585 \begin_layout Standard
8593 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8596 \begin_layout Standard
8604 <cell alignment="center" valignment="top" topline="true" usebox="none">
8607 \begin_layout Standard
8613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8616 \begin_layout Standard
8624 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8627 \begin_layout Standard
8635 <cell alignment="center" valignment="top" topline="true" usebox="none">
8638 \begin_layout Standard
8644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8647 \begin_layout Standard
8654 <row bottomline="true">
8655 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8658 \begin_layout Standard
8666 <cell alignment="center" valignment="top" topline="true" usebox="none">
8669 \begin_layout Standard
8675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8678 \begin_layout Standard
8685 <row bottomline="true" endlastfoot="true">
8686 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8689 \begin_layout Standard
8695 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8698 \begin_layout Standard
8704 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8707 \begin_layout Standard
8721 \begin_layout Section
8722 Special Longtable Issues
8723 \begin_inset LatexCommand label
8724 name "sec:Special-Longtable-Issues"
8731 \begin_layout Subsection
8732 Longtable Calculation
8733 \begin_inset LatexCommand index
8734 name "Longtables ! Calculation"
8741 \begin_layout Standard
8742 LaTeX calculates the height of table pages and their page breaks using so
8744 Chunks are pieces of the tables that are at once in LaTeX's memory.
8745 The default value is historically set to only 20 table rows.
8746 If you are using longtables with many pages this may slow down the creation
8748 You can safely increase the chunk size to values of 100-1000 by adding
8749 this command line to your document preamble:
8752 \begin_layout Standard
8757 setcounter{LTchunksize}{100}
8760 \begin_layout Subsection
8761 Floats and Longtables
8762 \begin_inset LatexCommand index
8763 name "Longtables ! Floats"
8770 \begin_layout Standard
8771 There might be problems when a float appears on the same page where a longtable
8773 To avoid such situation, add the command
8779 as ERT before your longtable.
8782 \begin_layout Subsection
8784 \begin_inset LatexCommand index
8785 name "Longtables ! Forced Page Breaks"
8792 \begin_layout Standard
8793 By default tables are only broken between rows.
8794 If you have a cell with multiples lines and want to have a page break within
8795 the cell, insert the new line command
8796 \begin_inset Quotes eld
8808 \begin_inset Quotes erd
8811 as ERT at this point of the cell where it should be broken.
8820 command you have to insert in ERT so many
8821 \begin_inset Quotes eld
8829 \begin_inset Quotes erd
8832 characters like the number of the following table columns.
8837 is the character to separate table cells.
8838 Write in ERT after each
8842 the content of the corresponding following cell and delete the content
8853 command, insert so many
8857 characters like the number of table columns before the current column.
8858 In Table\InsetSpace ~
8860 \begin_inset LatexCommand ref
8861 reference "tab:ForcedPagebreak"
8865 the cell that should be broken is in the second column followed by another
8867 Therefore the following command was inserted in the cell as ERT behind
8869 \begin_inset Quotes eld
8877 \begin_inset Quotes erd
8883 \begin_layout Standard
8895 \begin_layout Standard
8897 \begin_inset Quotes eld
8901 \begin_inset Quotes erd
8904 in the third columns of the row was deleted.
8905 If your footer row of the longtable has for a certain reason no upper line
8906 but you would have a horizontal line where the cell is broken, use this
8910 \begin_layout Standard
8924 \begin_layout Standard
8925 When the cell to be broken is in the last column, the command
8928 \begin_layout Standard
8935 parf\SpecialChar \textcompwordmark{}
8939 \begin_layout Standard
8940 must be inserted as ERT at the beginning of the cell.
8941 This assures that the part of the cell that will be displayed on the new
8942 page appears with the full width.
8945 \begin_layout Standard
8947 \begin_inset Tabular
8948 <lyxtabular version="3" rows="39" columns="3">
8949 <features islongtable="true">
8950 <column alignment="left" valignment="top" leftline="true" width="0cm">
8951 <column alignment="left" valignment="top" rightline="true" width="3cm">
8952 <column alignment="right" valignment="top" rightline="true" width="0pt">
8953 <row endfirsthead="true">
8954 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Standard
8958 \begin_inset Caption
8960 \begin_layout Standard
8961 Table with forced page break in table cell
8962 \begin_inset LatexCommand label
8963 name "tab:ForcedPagebreak"
8971 \begin_layout Standard
8972 Table with forced page break in table cell
8986 \begin_layout Standard
9002 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9005 \begin_layout Standard
9011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9014 \begin_layout Standard
9021 <row topline="true" bottomline="true" endfirsthead="true">
9022 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9025 \begin_layout Standard
9028 Example Phone List (ignore the names)
9033 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9036 \begin_layout Standard
9042 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9045 \begin_layout Standard
9052 <row topline="true" bottomline="true" endfirsthead="true">
9053 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9056 \begin_layout Standard
9064 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9067 \begin_layout Standard
9073 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9076 \begin_layout Standard
9085 <row bottomline="true" endhead="true">
9086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9089 \begin_layout Standard
9093 \begin_layout Standard
9097 caption*{Continued table with forced page break in table cell}
9111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9114 \begin_layout Standard
9120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9123 \begin_layout Standard
9130 <row topline="true" bottomline="true" endhead="true">
9131 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9134 \begin_layout Standard
9142 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9145 \begin_layout Standard
9151 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9154 \begin_layout Standard
9161 <row topline="true" bottomline="true" endhead="true">
9162 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9165 \begin_layout Standard
9173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9176 \begin_layout Standard
9182 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9185 \begin_layout Standard
9194 <row topline="true" bottomline="true" endfoot="true">
9195 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
9198 \begin_layout Standard
9199 continued on next page
9204 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9207 \begin_layout Standard
9213 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9216 \begin_layout Standard
9224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9227 \begin_layout Standard
9235 <cell alignment="center" valignment="top" topline="true" usebox="none">
9238 \begin_layout Standard
9244 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9247 \begin_layout Standard
9255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9258 \begin_layout Standard
9266 <cell alignment="center" valignment="top" topline="true" usebox="none">
9269 \begin_layout Standard
9275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9278 \begin_layout Standard
9286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9289 \begin_layout Standard
9297 <cell alignment="center" valignment="top" topline="true" usebox="none">
9300 \begin_layout Standard
9306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9309 \begin_layout Standard
9317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9320 \begin_layout Standard
9328 <cell alignment="center" valignment="top" topline="true" usebox="none">
9331 \begin_layout Standard
9337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9340 \begin_layout Standard
9348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9351 \begin_layout Standard
9359 <cell alignment="center" valignment="top" topline="true" usebox="none">
9362 \begin_layout Standard
9368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9371 \begin_layout Standard
9379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9382 \begin_layout Standard
9390 <cell alignment="center" valignment="top" topline="true" usebox="none">
9393 \begin_layout Standard
9399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9402 \begin_layout Standard
9410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9413 \begin_layout Standard
9421 <cell alignment="center" valignment="top" topline="true" usebox="none">
9424 \begin_layout Standard
9430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9433 \begin_layout Standard
9441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9444 \begin_layout Standard
9452 <cell alignment="center" valignment="top" topline="true" usebox="none">
9455 \begin_layout Standard
9461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9464 \begin_layout Standard
9472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9475 \begin_layout Standard
9483 <cell alignment="center" valignment="top" topline="true" usebox="none">
9486 \begin_layout Standard
9492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9495 \begin_layout Standard
9503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9506 \begin_layout Standard
9514 <cell alignment="center" valignment="top" topline="true" usebox="none">
9517 \begin_layout Standard
9523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9526 \begin_layout Standard
9534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9537 \begin_layout Standard
9545 <cell alignment="center" valignment="top" topline="true" usebox="none">
9548 \begin_layout Standard
9554 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9557 \begin_layout Standard
9565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9568 \begin_layout Standard
9576 <cell alignment="center" valignment="top" topline="true" usebox="none">
9579 \begin_layout Standard
9585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9588 \begin_layout Standard
9596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9599 \begin_layout Standard
9607 <cell alignment="center" valignment="top" topline="true" usebox="none">
9610 \begin_layout Standard
9616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9619 \begin_layout Standard
9627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9630 \begin_layout Standard
9638 <cell alignment="center" valignment="top" topline="true" usebox="none">
9641 \begin_layout Standard
9647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9650 \begin_layout Standard
9658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9661 \begin_layout Standard
9669 <cell alignment="center" valignment="top" topline="true" usebox="none">
9672 \begin_layout Standard
9678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9681 \begin_layout Standard
9689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9692 \begin_layout Standard
9700 <cell alignment="center" valignment="top" topline="true" usebox="none">
9703 \begin_layout Standard
9709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9712 \begin_layout Standard
9720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9723 \begin_layout Standard
9731 <cell alignment="center" valignment="top" topline="true" usebox="none">
9734 \begin_layout Standard
9740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9743 \begin_layout Standard
9751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9754 \begin_layout Standard
9762 <cell alignment="center" valignment="top" topline="true" usebox="none">
9765 \begin_layout Standard
9771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9774 \begin_layout Standard
9782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9785 \begin_layout Standard
9793 <cell alignment="center" valignment="top" topline="true" usebox="none">
9796 \begin_layout Standard
9802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9805 \begin_layout Standard
9813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9816 \begin_layout Standard
9824 <cell alignment="center" valignment="top" topline="true" usebox="none">
9827 \begin_layout Standard
9833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9836 \begin_layout Standard
9844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9847 \begin_layout Standard
9855 <cell alignment="center" valignment="top" topline="true" usebox="none">
9858 \begin_layout Standard
9864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9867 \begin_layout Standard
9875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9878 \begin_layout Standard
9886 <cell alignment="center" valignment="top" topline="true" usebox="none">
9889 \begin_layout Standard
9895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9898 \begin_layout Standard
9906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9909 \begin_layout Standard
9917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9920 \begin_layout Standard
9922 Fürst von Montecompatri, 11.
9923 Fürst von Sulmona und Vivaro, 10.
9924 Fürst von Rossano, 5.
9925 Herzog von Canemorte, 11.
9926 Herzog von Palombara, 5.
9927 Herzog von Castelchiodato,
9931 \begin_layout Standard
9940 \begin_layout Standard
9948 Herzog von Poggionativo, 11.
9949 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9950 Graf von Valinfreda, 11.
9951 Baron von Cropalati, 11.
9952 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9960 \begin_layout Standard
9968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9971 \begin_layout Standard
9979 <cell alignment="center" valignment="top" topline="true" usebox="none">
9982 \begin_layout Standard
9988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9991 \begin_layout Standard
9999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10002 \begin_layout Standard
10010 <cell alignment="center" valignment="top" topline="true" usebox="none">
10013 \begin_layout Standard
10019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10022 \begin_layout Standard
10030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10033 \begin_layout Standard
10041 <cell alignment="center" valignment="top" topline="true" usebox="none">
10044 \begin_layout Standard
10050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10053 \begin_layout Standard
10061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10064 \begin_layout Standard
10072 <cell alignment="center" valignment="top" topline="true" usebox="none">
10075 \begin_layout Standard
10081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10084 \begin_layout Standard
10092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10095 \begin_layout Standard
10103 <cell alignment="center" valignment="top" topline="true" usebox="none">
10106 \begin_layout Standard
10112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10115 \begin_layout Standard
10123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10126 \begin_layout Standard
10134 <cell alignment="center" valignment="top" topline="true" usebox="none">
10137 \begin_layout Standard
10143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10146 \begin_layout Standard
10154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10157 \begin_layout Standard
10165 <cell alignment="center" valignment="top" topline="true" usebox="none">
10168 \begin_layout Standard
10174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10177 \begin_layout Standard
10184 <row bottomline="true">
10185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10188 \begin_layout Standard
10196 <cell alignment="center" valignment="top" topline="true" usebox="none">
10199 \begin_layout Standard
10205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10208 \begin_layout Standard
10215 <row endlastfoot="true">
10216 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10219 \begin_layout Standard
10225 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10228 \begin_layout Standard
10234 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10237 \begin_layout Standard
10251 \begin_layout Standard
10257 \begin_layout Section
10258 Multiple Lines Columns and Rows
10261 \begin_layout Subsection
10262 Multiple Lines in Table Cells
10263 \begin_inset LatexCommand label
10264 name "sub:Multiple-Lines-in"
10269 \begin_inset LatexCommand index
10270 name "Multiple Lines in Table Cells"
10275 \begin_inset LatexCommand index
10276 name "Table ! Linebreaks"
10283 \begin_layout Standard
10285 \begin_inset Float table
10291 \begin_layout Standard
10292 \begin_inset Caption
10294 \begin_layout Standard
10295 \begin_inset LatexCommand label
10296 name "tab:Table-with-multiple"
10300 Table with multiple lines in cells
10308 \begin_layout Standard
10310 \begin_inset Tabular
10311 <lyxtabular version="3" rows="3" columns="3">
10313 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10314 <column alignment="center" valignment="middle" leftline="true" width="0">
10315 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10316 <row topline="true">
10317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10320 \begin_layout Standard
10325 \begin_layout Standard
10339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10342 \begin_layout Standard
10348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10351 \begin_layout Standard
10358 <row topline="true">
10359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10362 \begin_layout Standard
10368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10371 \begin_layout Standard
10377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10380 \begin_layout Standard
10387 <row topline="true" bottomline="true">
10388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10391 \begin_layout Standard
10397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10400 \begin_layout Standard
10406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10409 \begin_layout Standard
10428 \begin_layout Standard
10429 Adjusting a fixed width for a column, enables to enter text as a paragraph
10430 with multiple lines and hyphenations.
10433 \begin_layout Standard
10434 To produce Table\InsetSpace ~
10436 \begin_inset LatexCommand ref
10437 reference "tab:Table-with-multiple"
10441 , create a 3×3 table, mark the first cell and right-click on it.
10442 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10443 cm and choose centered
10444 for the vertical and horizontal alignment.
10445 The vertical alignment is used for all cells of the row.
10446 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10447 cm, only one line will appear.
10448 To get two lines, we add a line break with the command
10451 \begin_layout Standard
10459 \begin_layout Standard
10461 If the text is wider than the set cell width it will automatically be broken
10465 \begin_layout Standard
10466 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10467 by LaTeX if it is the first entry.
10468 Therefore you need to insert something, to make the word not being the
10469 first entry: Add the command
10472 \begin_layout Standard
10480 \begin_layout Standard
10481 in ERT before the word.
10482 As the space is zero, it doesn't change the output.
10485 \begin_inset LatexCommand ref
10486 reference "tab:Table-with-and"
10493 \begin_layout Standard
10494 \begin_inset Float table
10500 \begin_layout Standard
10501 \begin_inset Caption
10503 \begin_layout Standard
10504 \begin_inset LatexCommand label
10505 name "tab:Table-with-and"
10509 Table with and without hyphenation
10517 \begin_layout Standard
10521 \begin_inset Tabular
10522 <lyxtabular version="3" rows="3" columns="3">
10524 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10525 <column alignment="center" valignment="middle" leftline="true" width="0">
10526 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10527 <row topline="true">
10528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10531 \begin_layout Standard
10532 verylongtablecellword
10537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10540 \begin_layout Standard
10546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10549 \begin_layout Standard
10556 <row topline="true">
10557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10560 \begin_layout Standard
10566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10569 \begin_layout Standard
10575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10578 \begin_layout Standard
10585 <row topline="true" bottomline="true">
10586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10589 \begin_layout Standard
10595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10598 \begin_layout Standard
10604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10607 \begin_layout Standard
10621 \begin_inset Tabular
10622 <lyxtabular version="3" rows="3" columns="3">
10624 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10625 <column alignment="center" valignment="middle" leftline="true" width="0">
10626 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10627 <row topline="true">
10628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10631 \begin_layout Standard
10635 \begin_layout Standard
10644 verylongtablecellword
10649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10652 \begin_layout Standard
10658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10661 \begin_layout Standard
10668 <row topline="true">
10669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10672 \begin_layout Standard
10678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10681 \begin_layout Standard
10687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10690 \begin_layout Standard
10697 <row topline="true" bottomline="true">
10698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10701 \begin_layout Standard
10707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10710 \begin_layout Standard
10716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10719 \begin_layout Standard
10740 \begin_layout Standard
10746 \begin_layout Subsection
10748 \begin_inset LatexCommand label
10749 name "sub:Multicolumns"
10754 \begin_inset LatexCommand index
10755 name "Multicolumns"
10760 \begin_inset LatexCommand index
10761 name "Table ! Multicolumns"
10768 \begin_layout Subsubsection
10772 \begin_layout Standard
10773 To span a cell over multiple columns, mark as much cells within a line that
10774 should be one spanned cell and use either the table-toolbar button
10775 \begin_inset Graphics
10776 filename ../images/tabular-feature_multicolumn.png
10778 scaleBeforeRotation
10784 Edit\SpecialChar \menuseparator
10785 Table\SpecialChar \menuseparator
10788 , or right click on the marked cells and choose multicolumn in the appearing
10789 table dialog under the tab
10796 \begin_layout Standard
10797 Multicolumns have there own cell settings.
10798 That means changing cell borders, cell alignment, and the width only affects
10800 Here is an example table with a multicolumn cell in the first row and one
10801 in the last row without the upper border:
10804 \begin_layout Standard
10806 \begin_inset Tabular
10807 <lyxtabular version="3" rows="3" columns="4">
10808 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10809 <column alignment="center" valignment="top" leftline="true" width="0pt">
10810 <column alignment="center" valignment="middle" leftline="true" width="0">
10811 <column alignment="center" valignment="top" leftline="true" width="0in">
10812 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10813 <row topline="true" bottomline="true">
10814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10817 \begin_layout Standard
10823 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10826 \begin_layout Standard
10832 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10835 \begin_layout Standard
10841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10844 \begin_layout Standard
10851 <row topline="true">
10852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10855 \begin_layout Standard
10870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10873 \begin_layout Standard
10879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10882 \begin_layout Standard
10888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10891 \begin_layout Standard
10898 <row topline="true" bottomline="true">
10899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10902 \begin_layout Standard
10908 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10911 \begin_layout Standard
10917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10920 \begin_layout Standard
10926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10929 \begin_layout Standard
10943 \begin_layout Subsubsection
10944 Multicolumn Calculations
10945 \begin_inset LatexCommand label
10946 name "sub:Multicolumn-Calculations"
10951 \begin_inset LatexCommand index
10952 name "Multicolumns ! Calculations"
10959 \begin_layout Standard
10960 LyX supports multicolumns directly, but we have to take notice of the cell
10961 width of the columns spanned by the multicolumn cell.
10964 \begin_layout Standard
10965 \begin_inset Float table
10970 \begin_layout Standard
10971 \begin_inset Caption
10973 \begin_layout Standard
10974 \begin_inset LatexCommand label
10975 name "tab:Table-with-centered"
10979 Table with centered multicolumn text above two columns that have exactly
10980 half the width of the multicolumn cell
10981 \begin_inset OptArg
10984 \begin_layout Standard
10985 Perfect multicolumn table
10998 \begin_layout Standard
11000 \begin_inset Tabular
11001 <lyxtabular version="3" rows="3" columns="3">
11003 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11004 <column alignment="center" valignment="middle" leftline="true" width="0">
11005 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11006 <row topline="true">
11007 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11010 \begin_layout Standard
11011 multiple lines multicolumn
11016 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11019 \begin_layout Standard
11025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11028 \begin_layout Standard
11035 <row topline="true">
11036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11039 \begin_layout Standard
11045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11048 \begin_layout Standard
11054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11057 \begin_layout Standard
11064 <row topline="true" bottomline="true">
11065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11068 \begin_layout Standard
11074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11077 \begin_layout Standard
11083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11086 \begin_layout Standard
11105 \begin_layout Standard
11106 To create for example Table\InsetSpace ~
11108 \begin_inset LatexCommand ref
11109 reference "tab:Table-with-centered"
11113 , mark the first two cells in the first row of a 3×3 table and right-click
11115 Now choose for this cell
11123 and a width of 2.5\InsetSpace \thinspace{}
11124 cm in the table dialog.
11125 The spanned columns should have exactly half the width of the multicolumn
11126 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
11127 cm for the first column.
11128 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
11130 width - width of first column).
11131 This was done for Table\InsetSpace ~
11133 \begin_inset LatexCommand ref
11134 reference "tab:Table-without-half"
11141 \begin_layout Standard
11142 \begin_inset Float table
11147 \begin_layout Standard
11148 \begin_inset Caption
11150 \begin_layout Standard
11151 \begin_inset LatexCommand label
11152 name "tab:Table-without-half"
11156 Table where the spanned table columns have not exactly half the width of
11157 the multicolumn cell
11158 \begin_inset OptArg
11161 \begin_layout Standard
11162 Imperfect multicolumn table
11175 \begin_layout Standard
11177 \begin_inset Tabular
11178 <lyxtabular version="3" rows="3" columns="3">
11180 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
11181 <column alignment="center" valignment="top" leftline="true" width="0">
11182 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11183 <row topline="true" bottomline="true">
11184 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11187 \begin_layout Standard
11188 multiple lines multicolumn
11193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11196 \begin_layout Standard
11202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11205 \begin_layout Standard
11212 <row topline="true">
11213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11216 \begin_layout Standard
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11225 \begin_layout Standard
11231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11234 \begin_layout Standard
11241 <row topline="true" bottomline="true">
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11245 \begin_layout Standard
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11254 \begin_layout Standard
11260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11263 \begin_layout Standard
11282 \begin_layout Standard
11283 You can see that the first column has not the half width of the multicolumn
11284 cell, it is a bit bigger.
11285 The reason is that the given width of a cell
11286 \begin_inset Formula $W_{g}$
11289 is not its total width
11290 \begin_inset Formula $W_{\mathrm{tot}}$
11293 because a cell is always a bit larger than its given width.
11294 Appendix\InsetSpace ~
11296 \begin_inset LatexCommand eqref
11297 reference "cha:Explanation-of-Equation"
11301 explains it in detail.
11304 \begin_layout Standard
11305 The needed given width
11306 \begin_inset Formula $W_{g\, n}$
11313 columns are spanned can be calculated, so that each column has a total
11315 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11319 \begin_inset Formula \begin{equation}
11320 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11327 \begin_layout Standard
11328 In our case we have
11329 \begin_inset Formula $n=2$
11333 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11336 cm and the default values for the lengths, so that equation
11337 \begin_inset LatexCommand ref
11343 \begin_inset Formula \begin{equation}
11344 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11351 \begin_layout Standard
11352 To enable calculations in LaTeX, the LaTeX-package
11356 must be loaded with the document preamble line
11357 \begin_inset LatexCommand index
11358 name "LaTeX-packages ! calc"
11365 \begin_layout Standard
11373 \begin_layout Standard
11374 LyX does not allow to calculate lengths in the width-field of the table
11376 Therefore you have to format the column by inserting a LaTeX-argument in
11378 Here is an overview about the arguments:
11381 \begin_layout Itemize
11386 creates cell with a fixed width, its text is vertically top-aligned
11389 \begin_layout Itemize
11394 creates cell with a fixed width, its text is vertically centered
11397 \begin_layout Itemize
11402 creates cell with a fixed width, its text is vertically bottom-aligned
11405 \begin_layout Standard
11406 By entering a LaTeX-argument, all cell settings set in the table dialog
11410 \begin_layout Standard
11411 \begin_inset Note Greyedout
11414 \begin_layout Standard
11419 Due to a bug, LyX shows the overwritten settings anyway.
11427 \begin_layout Standard
11428 As the text should be horizontally centered, the command
11435 You can now enter the following LaTeX-argument for the first spanned column:
11438 \begin_layout Standard
11443 centering}m{1.25cm-6.2pt}
11446 \begin_layout Standard
11451 means, that the commands inside the braces are applied before the cell
11455 \begin_layout Standard
11456 Although we have chosen centered alignment for the text of the multicolumn
11457 cell, it is still left aligned.
11458 This is because LyX only applies the alignment to single columns.
11459 So we have to use for the multicolumn the LaTeX-argument
11462 \begin_layout Standard
11470 \begin_layout Subsection
11472 \begin_inset LatexCommand index
11478 \begin_inset LatexCommand index
11479 name "Table ! Multirows"
11484 \begin_inset LatexCommand index
11485 name "LaTeX-packages ! multirow"
11492 \begin_layout Standard
11493 In contrary to multicolumns multirows are not yet supported by LyX so a
11494 bit of ERT needs to be used.
11495 To use multirows load the LaTeX-package
11499 in your document preamble with the command
11502 \begin_layout Standard
11507 usepackage{multirow}
11510 \begin_layout Standard
11511 Multirows are created with the command
11514 \begin_layout Standard
11519 multirow{number of rows}{cell width}{cell entry}
11522 \begin_layout Standard
11523 To create the following table:
11526 \begin_layout Standard
11531 \begin_layout Standard
11545 \begin_inset Tabular
11546 <lyxtabular version="3" rows="3" columns="3">
11548 <column alignment="center" valignment="top" leftline="true" width="0">
11549 <column alignment="center" valignment="top" leftline="true" width="0">
11550 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11551 <row topline="true">
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11555 \begin_layout Standard
11561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11564 \begin_layout Standard
11570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11573 \begin_layout Standard
11580 <row topline="true">
11581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11584 \begin_layout Standard
11588 \begin_layout Standard
11592 multirow{2}{2.5cm}{
11601 \begin_layout Standard
11613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Standard
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11625 \begin_layout Standard
11632 <row topline="true" bottomline="true">
11633 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11636 \begin_layout Standard
11642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11645 \begin_layout Standard
11651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11654 \begin_layout Standard
11669 \begin_layout Standard
11685 \begin_layout Standard
11686 create a 3×3 table.
11687 To get rid of the line above the last cell in the first column, the cell
11688 is marked as multicolumn and the upper border is unset.
11689 The multirow is now created in the second row of the first column by inserting
11693 \begin_layout Standard
11698 multirow{2}{2.5cm}{
11701 \begin_layout Standard
11703 According to the command parameters the multirow spans now two rows and
11704 has a width of 2.5\InsetSpace \thinspace{}
11706 The content of the multirow cell follows outside the ERT box and the command
11707 is finished with a right brace
11711 in another ERT-box behind the text.
11714 \begin_layout Standard
11721 left-aligns its content by default.
11722 To override the default, renew the command
11731 \begin_layout Standard
11743 \begin_layout Standard
11744 in ERT in the document preamble.
11745 Then all entries of multirow cells in the document are centered.
11746 If centering is only needed for several tables, you can renew the command
11747 in an ERT box just before the table instead of the preamble.
11748 If the text should be right-aligned, replace
11761 To return to left-alignment
11770 \begin_layout Section
11772 \begin_inset LatexCommand label
11773 name "sec:Formal-Tables"
11778 \begin_inset LatexCommand index
11779 name "Table ! Formal"
11786 \begin_layout Standard
11787 Tables are often typeset in books similar to Table\InsetSpace ~
11789 \begin_inset LatexCommand ref
11790 reference "tab:Example-booktabs-table"
11795 This kind of tables is called
11796 \begin_inset Quotes eld
11804 \begin_inset Quotes erd
11808 To make a table a formal table use the option
11816 tab of the table dialog.
11819 \begin_layout Standard
11820 \begin_inset Float table
11826 \begin_layout Standard
11827 \begin_inset Caption
11829 \begin_layout Standard
11830 \begin_inset LatexCommand label
11831 name "tab:Example-booktabs-table"
11835 Example booktabs-table
11843 \begin_layout Standard
11845 \begin_inset Tabular
11846 <lyxtabular version="3" rows="8" columns="4">
11847 <features booktabs="true">
11848 <column alignment="center" valignment="top" rightline="true" width="0">
11849 <column alignment="center" valignment="top" width="0">
11850 <column alignment="center" valignment="top" width="0">
11851 <column alignment="center" valignment="top" width="0">
11852 <row topline="true">
11853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11856 \begin_layout Standard
11862 <cell alignment="center" valignment="top" topline="true" usebox="none">
11865 \begin_layout Standard
11867 \begin_inset Formula $\,$
11875 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11878 \begin_layout Standard
11880 \begin_inset Formula $\,$
11888 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11891 \begin_layout Standard
11899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11902 \begin_layout Standard
11906 \begin_layout Standard
11919 \begin_layout Standard
11928 Detector thickness [µm]
11933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11936 \begin_layout Standard
11942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11945 \begin_layout Standard
11951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11954 \begin_layout Standard
11961 <row topline="true">
11962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11965 \begin_layout Standard
11971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11974 \begin_layout Standard
11980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11983 \begin_layout Standard
11989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11992 \begin_layout Standard
11999 <row topspace="default">
12000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12003 \begin_layout Standard
12004 Spatial resolution [µm]
12009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12012 \begin_layout Standard
12018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12021 \begin_layout Standard
12027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12030 \begin_layout Standard
12037 <row topspace="default">
12038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12041 \begin_layout Standard
12043 \begin_inset Formula $f_{\mathrm{max}}$
12051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12054 \begin_layout Standard
12060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12063 \begin_layout Standard
12069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12072 \begin_layout Standard
12079 <row topspace="default">
12080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12083 \begin_layout Standard
12087 \begin_layout Standard
12091 cmidrule(l{10pt}){1-1}
12096 LSF-spatial resolution
12101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12104 \begin_layout Standard
12110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12113 \begin_layout Standard
12119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12122 \begin_layout Standard
12130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12133 \begin_layout Standard
12139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12142 \begin_layout Standard
12148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12151 \begin_layout Standard
12157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12160 \begin_layout Standard
12167 <row bottomline="true">
12168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12171 \begin_layout Standard
12177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12180 \begin_layout Standard
12186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12189 \begin_layout Standard
12195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12198 \begin_layout Standard
12217 \begin_layout Standard
12218 Spaces to table rows can be added using the
12222 tab of the table dialog as described in section\InsetSpace ~
12224 \begin_inset LatexCommand ref
12225 reference "sub:Row-Spacing"
12232 \begin_layout Standard
12233 In contrary to normal tables, formal tables have no vertical table lines.
12234 The horizontal table lines can be set like for normal tables but they appear
12235 with different width in the output:
12237 The first and the last table line have
12238 a default width of 0.08\InsetSpace \thinspace{}
12239 em while the other lines have a default width of
12240 0.05\InsetSpace \thinspace{}
12244 \begin_layout Standard
12245 The default widths can be changed with the following preamble lines
12248 \begin_layout Standard
12268 \begin_layout Standard
12269 This example is for the first line, the so called
12274 If you want to change the width for the last line, replace
12283 To change the width for the other lines replace
12292 You can use all units listed in appendix\InsetSpace ~
12294 \begin_inset LatexCommand ref
12295 reference "cha:Units-available-in"
12302 \begin_layout Standard
12303 Lines that don't span over all table columns can be created by setting a
12304 table line for multicolumn cells.
12305 LyX will then internally use the command
12311 to create this line.
12315 \begin_layout Standard
12320 cmidrule[width](trim){startcol-endcol}
12323 \begin_layout Standard
12330 are are currently not supported by LyX so you have to use ERT to be able
12338 s can manually be created by inserting the command as ERT as first cell
12339 entry of the first cell of a row.
12340 The line is then drawn in the output above the current row.
12343 \begin_layout Standard
12344 The default for the width is 0.03\InsetSpace \thinspace{}
12346 Startcol is the number of the column where the line starts and endcol the
12347 column number where the line ends.
12348 The endcol always needs to be specified, also when the line should span
12350 The optional parameter trim could be either
12358 where the trimwidth is also optional.
12359 Using for example the parameter
12363 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
12365 If you don't specify the trimwidth the lines are trimmed by the default
12366 of 0.5\InsetSpace \thinspace{}
12370 \begin_layout Standard
12371 \begin_inset VSpace bigskip
12376 \begin_inset LatexCommand ref
12377 reference "tab:Example-booktabs-table"
12381 was created using the commands
12384 \begin_layout Standard
12394 \begin_layout Standard
12395 at the beginning of the in the second row and
12398 \begin_layout Standard
12403 cmidrule(l{10pt}){1-1}
12406 \begin_layout Standard
12410 \begin_layout Standard
12411 \begin_inset VSpace bigskip
12417 \begin_layout Standard
12418 You might want to have overlapping
12424 s like in Table\InsetSpace ~
12426 \begin_inset LatexCommand ref
12427 reference "tab:Special-booktabs-table"
12432 This can be achieved with the ERT command
12435 \begin_layout Standard
12443 \begin_layout Standard
12444 The command that was used for the second row of Table\InsetSpace ~
12446 \begin_inset LatexCommand ref
12447 reference "tab:Special-booktabs-table"
12454 \begin_layout Standard
12468 \begin_layout Standard
12469 The command for the sixth row is
12472 \begin_layout Standard
12484 \begin_layout Standard
12485 \begin_inset VSpace bigskip
12491 \begin_layout Standard
12492 If you are anyway not satisfied with the border line spacing, you can use
12493 the following command to produce lines that span over all table columns
12498 \begin_layout Standard
12503 specialrule{width}{space above}{space below}
12506 \begin_layout Standard
12507 For more informations about these specialties, we refer to the manual of
12513 \begin_inset LatexCommand cite
12519 \begin_inset LatexCommand index
12520 name "LaTeX-packages ! booktabs"
12527 \begin_layout Standard
12528 \begin_inset Float table
12534 \begin_layout Standard
12535 \begin_inset Caption
12537 \begin_layout Standard
12538 \begin_inset LatexCommand label
12539 name "tab:Special-booktabs-table"
12543 Special booktabs-table
12551 \begin_layout Standard
12553 \begin_inset Tabular
12554 <lyxtabular version="3" rows="8" columns="4">
12555 <features booktabs="true">
12556 <column alignment="center" valignment="top" width="0">
12557 <column alignment="center" valignment="top" width="0">
12558 <column alignment="center" valignment="top" width="0">
12559 <column alignment="center" valignment="top" width="0">
12560 <row topline="true">
12561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12564 \begin_layout Standard
12570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12573 \begin_layout Standard
12574 Medipix\InsetSpace \thinspace{}
12580 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12583 \begin_layout Standard
12584 Medipix\InsetSpace \thinspace{}
12590 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12593 \begin_layout Standard
12601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12604 \begin_layout Standard
12608 \begin_layout Standard
12621 \begin_layout Standard
12634 \begin_layout Standard
12647 \begin_layout Standard
12656 Detector thickness [µm]
12661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12664 \begin_layout Standard
12670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12673 \begin_layout Standard
12679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12682 \begin_layout Standard
12689 <row topline="true">
12690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12693 \begin_layout Standard
12699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12702 \begin_layout Standard
12708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12711 \begin_layout Standard
12717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12720 \begin_layout Standard
12727 <row topspace="default">
12728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12731 \begin_layout Standard
12732 Spatial resolution [µm]
12737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12740 \begin_layout Standard
12746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12749 \begin_layout Standard
12755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12758 \begin_layout Standard
12765 <row topspace="default">
12766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12769 \begin_layout Standard
12771 \begin_inset Formula $f_{\mathrm{max}}$
12779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12782 \begin_layout Standard
12788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12791 \begin_layout Standard
12797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12800 \begin_layout Standard
12807 <row topline="true">
12808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12811 \begin_layout Standard
12815 \begin_layout Standard
12828 \begin_layout Standard
12837 LSF-spatial resolution
12842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12845 \begin_layout Standard
12851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12854 \begin_layout Standard
12860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12863 \begin_layout Standard
12871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12874 \begin_layout Standard
12880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12883 \begin_layout Standard
12889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12892 \begin_layout Standard
12898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12901 \begin_layout Standard
12908 <row bottomline="true">
12909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12912 \begin_layout Standard
12918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12921 \begin_layout Standard
12927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12930 \begin_layout Standard
12936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12939 \begin_layout Standard
12958 \begin_layout Section
12959 Vertical Table Alignment
12960 \begin_inset LatexCommand index
12961 name "Table ! Alignment"
12968 \begin_layout Standard
12969 To align tables vertically in a text line the table must be inside a box.
12970 The box can then be vertically aligned as described in section\InsetSpace ~
12972 \begin_inset LatexCommand ref
12973 reference "sec:Box-Dialog"
12980 \begin_layout Standard
12981 In the following example the tables are inside a minipage
12985 \begin_layout Standard
12986 Minipages are described in section\InsetSpace ~
12988 \begin_inset LatexCommand ref
12989 reference "sec:Minipages"
12998 box that has a width of 15\InsetSpace \thinspace{}
13002 \begin_layout Itemize
13004 \begin_inset Box Frameless
13013 height_special "totalheight"
13016 \begin_layout Standard
13017 \begin_inset Tabular
13018 <lyxtabular version="3" rows="3" columns="3">
13020 <column alignment="center" valignment="top" leftline="true" width="0">
13021 <column alignment="center" valignment="top" leftline="true" width="0">
13022 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13023 <row topline="true">
13024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13027 \begin_layout Standard
13033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13036 \begin_layout Standard
13042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13045 \begin_layout Standard
13052 <row topline="true">
13053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13056 \begin_layout Standard
13062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13065 \begin_layout Standard
13071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13074 \begin_layout Standard
13081 <row topline="true" bottomline="true">
13082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13085 \begin_layout Standard
13091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13094 \begin_layout Standard
13100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13103 \begin_layout Standard
13123 \begin_layout Standard
13135 \begin_inset Box Frameless
13144 height_special "totalheight"
13147 \begin_layout Standard
13148 \begin_inset Tabular
13149 <lyxtabular version="3" rows="3" columns="3">
13151 <column alignment="center" valignment="top" leftline="true" width="0">
13152 <column alignment="center" valignment="top" leftline="true" width="0">
13153 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13154 <row topline="true">
13155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13158 \begin_layout Standard
13164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13167 \begin_layout Standard
13173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13176 \begin_layout Standard
13183 <row topline="true">
13184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13187 \begin_layout Standard
13193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13196 \begin_layout Standard
13202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13205 \begin_layout Standard
13212 <row topline="true" bottomline="true">
13213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13216 \begin_layout Standard
13222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13225 \begin_layout Standard
13231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13234 \begin_layout Standard
13254 \begin_layout Standard
13264 \begin_layout Itemize
13266 \begin_inset Box Frameless
13275 height_special "totalheight"
13278 \begin_layout Standard
13279 \begin_inset Tabular
13280 <lyxtabular version="3" rows="3" columns="3">
13282 <column alignment="center" valignment="top" leftline="true" width="0">
13283 <column alignment="center" valignment="top" leftline="true" width="0">
13284 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13285 <row topline="true">
13286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13289 \begin_layout Standard
13295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13298 \begin_layout Standard
13304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13307 \begin_layout Standard
13314 <row topline="true">
13315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13318 \begin_layout Standard
13324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13327 \begin_layout Standard
13333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13336 \begin_layout Standard
13343 <row topline="true" bottomline="true">
13344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13347 \begin_layout Standard
13353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13356 \begin_layout Standard
13362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13365 \begin_layout Standard
13384 \begin_layout Itemize
13386 \begin_inset Box Frameless
13395 height_special "totalheight"
13398 \begin_layout Standard
13399 \begin_inset Tabular
13400 <lyxtabular version="3" rows="3" columns="3">
13402 <column alignment="center" valignment="top" leftline="true" width="0">
13403 <column alignment="center" valignment="top" leftline="true" width="0">
13404 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13405 <row topline="true">
13406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13409 \begin_layout Standard
13415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13418 \begin_layout Standard
13424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13427 \begin_layout Standard
13434 <row topline="true">
13435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13438 \begin_layout Standard
13444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13447 \begin_layout Standard
13453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13456 \begin_layout Standard
13463 <row topline="true" bottomline="true">
13464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13467 \begin_layout Standard
13473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13476 \begin_layout Standard
13482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13485 \begin_layout Standard
13505 \begin_layout Standard
13517 \begin_inset Box Frameless
13526 height_special "totalheight"
13529 \begin_layout Standard
13530 \begin_inset Tabular
13531 <lyxtabular version="3" rows="3" columns="3">
13533 <column alignment="center" valignment="top" leftline="true" width="0">
13534 <column alignment="center" valignment="top" leftline="true" width="0">
13535 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13536 <row topline="true">
13537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13540 \begin_layout Standard
13546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13549 \begin_layout Standard
13555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13558 \begin_layout Standard
13565 <row topline="true">
13566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13569 \begin_layout Standard
13575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13578 \begin_layout Standard
13584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13587 \begin_layout Standard
13594 <row topline="true" bottomline="true">
13595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13598 \begin_layout Standard
13604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13607 \begin_layout Standard
13613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13616 \begin_layout Standard
13636 \begin_layout Standard
13646 \begin_layout Standard
13647 As you can see, the content of the first and last table row is not correctly
13648 aligned with the text line where the table is in.
13649 To get this alignment, the minipage box must be set into a raisebox
13653 \begin_layout Standard
13654 Raiseboxes are described in section\InsetSpace ~
13656 \begin_inset LatexCommand ref
13657 reference "sub:Vertical-Alignment"
13667 In the example above the second table in the first item is aligned using
13671 \begin_layout Standard
13681 \begin_layout Standard
13683 Behind the box the closing brace
13687 is inserted as ERT.
13688 For the second table in the last item the command
13691 \begin_layout Standard
13701 \begin_layout Standard
13705 \begin_layout Standard
13706 \begin_inset Note Greyedout
13709 \begin_layout Standard
13714 The alignment of the table row content to the surrounding text line is
13716 The needed factor of the
13722 command for this alignment depends on the document font, the font size,
13723 and the table line thickness.
13731 \begin_layout Section
13733 \begin_inset LatexCommand label
13734 name "sec:Colored-Tables"
13739 \begin_inset LatexCommand index
13740 name "Table ! Color"
13747 \begin_layout Subsection
13749 \begin_inset LatexCommand index
13750 name "Table Color ! for Cells"
13755 \begin_inset LatexCommand index
13756 name "Color ! for Table Cells"
13763 \begin_layout Standard
13764 \begin_inset Float table
13770 \begin_layout Standard
13771 \begin_inset Caption
13773 \begin_layout Standard
13774 \begin_inset LatexCommand label
13775 name "tab:Table-colored-without"
13779 Table colored without using the package
13784 \begin_inset OptArg
13787 \begin_layout Standard
13788 Table without colortbl
13801 \begin_layout Standard
13803 \begin_inset Tabular
13804 <lyxtabular version="3" rows="3" columns="3">
13806 <column alignment="center" valignment="top" leftline="true" width="0">
13807 <column alignment="center" valignment="top" leftline="true" width="0">
13808 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13809 <row topline="true">
13810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13813 \begin_layout Standard
13821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13824 \begin_layout Standard
13832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13835 \begin_layout Standard
13844 <row topline="true">
13845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13848 \begin_layout Standard
13856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13859 \begin_layout Standard
13867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13870 \begin_layout Standard
13879 <row topline="true" bottomline="true">
13880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13883 \begin_layout Standard
13891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13894 \begin_layout Standard
13902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13905 \begin_layout Standard
13926 \begin_layout Standard
13927 If you only need colored text, mark the cells and choose a color in the
13930 Edit\SpecialChar \menuseparator
13935 This was used to create Table\InsetSpace ~
13937 \begin_inset LatexCommand ref
13938 reference "tab:Table-colored-without"
13943 In any other case you have to use the LaTeX-package
13948 \begin_inset LatexCommand index
13949 name "LaTeX-packages ! colortbl"
13956 \begin_layout Standard
13960 \begin_layout Standard
13970 \begin_inset Note Note
13973 \begin_layout Standard
13974 The following section part will only be displayed when you have the LaTeX-packag
13987 \begin_layout Standard
13988 To create colored tables,
13992 must be loaded in the preamble with the line
13995 \begin_layout Standard
14000 usepackage{colortbl}
14003 \begin_layout Standard
14004 The color of a column is adjusted with the command
14007 \begin_layout Standard
14012 columncolor{name of color}
14015 \begin_layout Standard
14021 More about the command
14025 is described in section\InsetSpace ~
14027 \begin_inset LatexCommand ref
14028 reference "sub:Multicolumn-Calculations"
14035 \begin_layout Standard
14036 The following color names are predefined:
14039 \begin_layout Standard
14073 \begin_layout Standard
14074 \begin_inset VSpace medskip
14080 \begin_layout Standard
14081 You can also define your own color with the command
14084 \begin_layout Standard
14089 def\SpecialChar \textcompwordmark{}
14090 inecolor{color name}{color model}{color values}
14093 \begin_layout Standard
14094 The color model can be
14097 \begin_layout Labeling
14098 \labelwidthstring 00.00.0000
14099 cmyk: cyan, magenta, yellow, black
14102 \begin_layout Labeling
14103 \labelwidthstring 00.00.0000
14104 rgb: red, green blue
14107 \begin_layout Labeling
14108 \labelwidthstring 00.00.0000
14112 \begin_layout Standard
14113 and the color values are comma separated numbers between 0 and 1 describing
14114 the factor for the corresponding color of the color model.
14117 \begin_layout Standard
14118 You can e.\InsetSpace \thinspace{}
14124 " in the preamble with
14127 \begin_layout Standard
14132 def\SpecialChar \textcompwordmark{}
14133 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14136 \begin_layout Standard
14144 \begin_layout Standard
14149 def\SpecialChar \textcompwordmark{}
14150 inecolor{lightgray}{gray}{0.8}
14153 \begin_layout Standard
14154 \begin_inset VSpace medskip
14160 \begin_layout Standard
14161 Lines are colored with the command
14164 \begin_layout Standard
14169 rowcolor{name of color}
14172 \begin_layout Standard
14173 and cells are colored with the command
14176 \begin_layout Standard
14181 cellcolor{name of color}
14184 \begin_layout Standard
14185 Both commands are inserted at the beginning of a cell as ERT.
14188 \begin_layout Standard
14189 To color characters in the table, mark the cells and use the LyX menu
14191 Edit\SpecialChar \menuseparator
14196 If a cell contains ERT mark only the characters, otherwise the colored
14197 ERT will cause LaTeX-errors.
14200 \begin_layout Standard
14201 \begin_inset Note Greyedout
14204 \begin_layout Standard
14209 Not all DVI-viewers are able to display self-defined colors.
14217 \begin_layout Standard
14218 \begin_inset VSpace bigskip
14224 \begin_layout Standard
14225 To create Table\InsetSpace ~
14227 \begin_inset LatexCommand ref
14228 reference "tab:Table-colored-using"
14232 do the following: The color of the first column should be
14240 \begin_layout Standard
14245 columncolor{darkgreen}
14250 \begin_layout Standard
14251 as LaTeX-argument for this column.
14252 The first row should be blue, therefore the ERT command
14255 \begin_layout Standard
14263 \begin_layout Standard
14264 is inserted to the first cell of this row.
14265 Note that this overwrites the column color for the first cell.
14266 The last cell of the last row is colored magenta by inserting the ERT command
14269 \begin_layout Standard
14277 \begin_layout Standard
14278 The characters could now be colored using the menu
14280 Edit\SpecialChar \menuseparator
14287 \begin_layout Standard
14288 \begin_inset Float table
14294 \begin_layout Standard
14295 \begin_inset Caption
14297 \begin_layout Standard
14298 \begin_inset LatexCommand label
14299 name "tab:Table-colored-using"
14303 Table colored using the package
14308 \begin_inset OptArg
14311 \begin_layout Standard
14312 Table with colortbl
14325 \begin_layout Standard
14327 \begin_inset Tabular
14328 <lyxtabular version="3" rows="3" columns="3">
14330 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
14331 <column alignment="center" valignment="top" width="0">
14332 <column alignment="center" valignment="top" width="0">
14334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14337 \begin_layout Standard
14341 \begin_layout Standard
14357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14360 \begin_layout Standard
14368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14371 \begin_layout Standard
14381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14384 \begin_layout Standard
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14395 \begin_layout Standard
14403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14406 \begin_layout Standard
14416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14419 \begin_layout Standard
14427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14430 \begin_layout Standard
14438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14441 \begin_layout Standard
14445 \begin_layout Standard
14474 \begin_layout Standard
14478 \begin_layout Standard
14488 \begin_inset Note Note
14491 \begin_layout Standard
14492 The following will be displayed when the LaTeX-package
14504 \begin_layout Standard
14505 You need to install the package
14509 to see the content of this section in the output.
14512 \begin_layout Standard
14516 \begin_layout Standard
14528 \begin_layout Subsection
14530 \begin_inset LatexCommand index
14531 name "Table Color ! for Lines"
14536 \begin_inset LatexCommand index
14537 name "Color ! for Table Lines"
14544 \begin_layout Standard
14545 As described in section\InsetSpace ~
14547 \begin_inset LatexCommand ref
14548 reference "sub:Line-Thickness"
14552 , the line thickness for all lines in a table can be adjusted with the length
14560 It is set to 1.5\InsetSpace \thinspace{}
14561 pt for all tables of this section.
14565 \begin_layout Standard
14571 arrayrulewidth}{1.5pt}
14579 \begin_layout Standard
14580 To color vertical lines for example with green, create the following column
14581 format in the document preamble, according to the description in section\InsetSpace ~
14583 \begin_inset LatexCommand ref
14584 reference "sub:Customized-Format"
14591 \begin_layout Standard
14596 newcolumntype{W}{!{
14603 \begin_layout Standard
14604 For Table\InsetSpace ~
14606 \begin_inset LatexCommand ref
14607 reference "tab:Table-with-vertical-colored"
14615 was used for the last column and
14619 for the other columns.
14622 \begin_layout Standard
14623 If you want to have several colors, define more column formats.
14626 \begin_layout Standard
14627 \begin_inset Float table
14632 \begin_layout Standard
14633 \begin_inset Caption
14635 \begin_layout Standard
14636 \begin_inset LatexCommand label
14637 name "tab:Table-with-vertical-colored"
14641 Table with colored vertical lines
14649 \begin_layout Standard
14651 \begin_inset Tabular
14652 <lyxtabular version="3" rows="3" columns="3">
14654 <column alignment="center" valignment="top" width="0" special="Wc">
14655 <column alignment="center" valignment="top" width="0" special="Wc">
14656 <column alignment="center" valignment="top" width="0" special="WcW">
14657 <row topline="true">
14658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14661 \begin_layout Standard
14667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14670 \begin_layout Standard
14676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14679 \begin_layout Standard
14686 <row topline="true">
14687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14690 \begin_layout Standard
14696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14699 \begin_layout Standard
14705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14708 \begin_layout Standard
14715 <row topline="true" bottomline="true">
14716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14719 \begin_layout Standard
14725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14728 \begin_layout Standard
14734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14737 \begin_layout Standard
14756 \begin_layout Standard
14757 \begin_inset VSpace bigskip
14760 To color horizontal lines for example with red, like in Table\InsetSpace ~
14762 \begin_inset LatexCommand ref
14763 reference "tab:Table-with-horizontal-colored"
14767 , insert these commands in ERT before the table or table float:
14770 \begin_layout Standard
14791 \begin_layout Standard
14802 arrayrulecolor{red}
14806 arrayrulecolor{black}}
14809 \begin_layout Standard
14813 \begin_layout Standard
14824 \begin_layout Standard
14833 \begin_layout Standard
14837 arrayrulecolor{red}
14841 arrayrulecolor{black}}
14847 \begin_inset Float table
14852 \begin_layout Standard
14853 \begin_inset Caption
14855 \begin_layout Standard
14856 \begin_inset LatexCommand label
14857 name "tab:Table-with-horizontal-colored"
14861 Table with colored horizontal lines
14869 \begin_layout Standard
14871 \begin_inset Tabular
14872 <lyxtabular version="3" rows="3" columns="3">
14874 <column alignment="center" valignment="top" leftline="true" width="0">
14875 <column alignment="center" valignment="top" leftline="true" width="0">
14876 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14877 <row topline="true">
14878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14881 \begin_layout Standard
14887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14890 \begin_layout Standard
14896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14899 \begin_layout Standard
14906 <row topline="true">
14907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14910 \begin_layout Standard
14916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14919 \begin_layout Standard
14925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14928 \begin_layout Standard
14935 <row topline="true" bottomline="true">
14936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14939 \begin_layout Standard
14945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14948 \begin_layout Standard
14954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14957 \begin_layout Standard
14976 \begin_layout Standard
14980 \begin_layout Standard
14992 \begin_layout Standard
14993 To return to the default line color black, insert this command in ERT behind
14994 the table or table float:
14997 \begin_layout Standard
15009 \begin_layout Standard
15012 \begin_inset LatexCommand ref
15013 reference "tab:Table-with-colored"
15017 is an example with colored vertical and horizontal lines.
15020 \begin_layout Standard
15021 \begin_inset Float table
15027 \begin_layout Standard
15028 \begin_inset Caption
15030 \begin_layout Standard
15031 \begin_inset LatexCommand label
15032 name "tab:Table-with-colored"
15036 Table with colored lines
15044 \begin_layout Standard
15046 \begin_inset Tabular
15047 <lyxtabular version="3" rows="3" columns="3">
15049 <column alignment="center" valignment="top" width="0" special="Wc">
15050 <column alignment="center" valignment="top" width="0" special="Wc">
15051 <column alignment="center" valignment="top" width="0" special="WcW">
15052 <row topline="true">
15053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15056 \begin_layout Standard
15062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15065 \begin_layout Standard
15071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15074 \begin_layout Standard
15081 <row topline="true">
15082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15085 \begin_layout Standard
15091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15094 \begin_layout Standard
15100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15103 \begin_layout Standard
15110 <row topline="true" bottomline="true" topspace="default">
15111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15114 \begin_layout Standard
15120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15123 \begin_layout Standard
15129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15132 \begin_layout Standard
15151 \begin_layout Standard
15155 \begin_layout Standard
15171 \begin_layout Standard
15175 \begin_layout Standard
15181 arrayrulewidth}{0.4pt}
15189 \begin_layout Section
15190 Table Customization
15191 \begin_inset LatexCommand index
15192 name "Table Customization"
15197 \begin_inset LatexCommand index
15198 name "Table ! Customization"
15205 \begin_layout Subsection
15207 \begin_inset LatexCommand label
15208 name "sub:Row-Spacing"
15213 \begin_inset LatexCommand index
15214 name "Table Customization ! Row Spacing"
15221 \begin_layout Standard
15222 You can add vertical space to table rows in the
15226 tab of the table dialog.
15227 You find there three possibilities:
15230 \begin_layout Description
15233 row will add space above the characters of the table row.
15234 If the table is a formal table
15238 \begin_layout Standard
15239 Formal tables are explained in section\InsetSpace ~
15241 \begin_inset LatexCommand ref
15242 reference "sec:Formal-Tables"
15251 LyX will insert as default 0.5\InsetSpace \thinspace{}
15253 For normal tables the inserted space will unfortunately destroy the vertical
15254 table lines as in the following table:
15255 \begin_inset VSpace medskip
15264 \begin_layout Standard
15276 \begin_inset Tabular
15277 <lyxtabular version="3" rows="3" columns="1">
15279 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15280 <row topline="true">
15281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15284 \begin_layout Standard
15291 <row topline="true" topspace="3mm">
15292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15295 \begin_layout Standard
15296 3\InsetSpace \thinspace{}
15297 mm space top of row
15303 <row topline="true" bottomline="true">
15304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15307 \begin_layout Standard
15324 \begin_layout Standard
15334 \begin_inset VSpace medskip
15339 So inserting space to the top of row for normal tables is only useful when
15340 you don't have vertical lines.
15343 \begin_layout Description
15344 Bottom\InsetSpace ~
15346 row will add space below the characters of the table row.
15347 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15349 normal tables the default size is 2\InsetSpace \thinspace{}
15353 \begin_layout Description
15354 Between\InsetSpace ~
15355 rows adds space between the current and the following row.
15356 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15358 For normal tables the inserted space will unfortunately destroy the vertical
15359 table lines as in the following table:
15360 \begin_inset VSpace medskip
15369 \begin_layout Standard
15381 \begin_inset Tabular
15382 <lyxtabular version="3" rows="3" columns="1">
15384 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15385 <row topline="true">
15386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15389 \begin_layout Standard
15396 <row topline="true" interlinespace="3mm">
15397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15400 \begin_layout Standard
15401 \begin_inset Formula $\downarrow$
15404 3\InsetSpace \thinspace{}
15405 mm space between row
15406 \begin_inset Formula $\downarrow$
15415 <row topline="true" bottomline="true">
15416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15419 \begin_layout Standard
15420 \begin_inset Formula $\uparrow$
15423 3\InsetSpace \thinspace{}
15424 mm space between row
15425 \begin_inset Formula $\uparrow$
15444 \begin_layout Standard
15454 \begin_inset VSpace medskip
15459 So inserting space between rows for normal tables is only useful when you
15460 don't have vertical lines.
15463 \begin_layout Standard
15464 \begin_inset VSpace bigskip
15467 When you want to add extra height to all cells of all tables, you can do
15468 this with the following preamble lines:
15471 \begin_layout Standard
15476 @ifundef\SpecialChar \textcompwordmark{}
15477 ined{extrarowheight}
15483 \begin_layout Standard
15494 usepackage{array}}{}
15500 extrarowheight}{height}
15503 \begin_layout Standard
15504 But this has the disadvantage that the cell texts are no longer exactly
15505 vertically centered.
15510 will be loaded automatically by LyX when you use self defined table formats.
15511 To avoid that it is loaded twice the command
15515 @ifundef\SpecialChar \textcompwordmark{}
15518 is used in the above command.)
15521 \begin_layout Subsection
15522 Special Cell Alignment
15523 \begin_inset LatexCommand index
15524 name "Table Customization ! Special Cell Alignment"
15531 \begin_layout Standard
15532 Sometimes it looks better when the cell entries of a column are aligned
15533 with a special character, e.\InsetSpace \thinspace{}
15535 with the decimal separator as in Table\InsetSpace ~
15537 \begin_inset LatexCommand ref
15538 reference "tab:Table-cells-of"
15545 \begin_layout Standard
15546 \begin_inset Float table
15552 \begin_layout Standard
15553 \begin_inset Caption
15555 \begin_layout Standard
15556 \begin_inset LatexCommand label
15557 name "tab:Table-cells-of"
15561 Table cells of a column aligned with the decimal separator.
15569 \begin_layout Standard
15571 \begin_inset Tabular
15572 <lyxtabular version="3" rows="4" columns="2">
15574 <column alignment="right" valignment="top" width="0">
15575 <column alignment="left" valignment="top" width="0" special="@{}l">
15576 <row bottomline="true">
15577 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15580 \begin_layout Standard
15586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15589 \begin_layout Standard
15597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15600 \begin_layout Standard
15606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15609 \begin_layout Standard
15617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15620 \begin_layout Standard
15626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15629 \begin_layout Standard
15637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15640 \begin_layout Standard
15646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15649 \begin_layout Standard
15668 \begin_layout Standard
15669 This table was created with a 4×2 table.
15670 The heading is a centered multicolumn.
15671 The first column is right-aligned and contains the digits before the decimal
15672 point and the decimal point.
15673 The second column is left aligned and contains the digits after the decimal
15675 To omit the space that is normally between two table columns, use the following
15676 LaTeX-argument for the second column:
15679 \begin_layout Standard
15685 \begin_layout Standard
15688 \begin_inset LatexCommand ref
15689 reference "tab:Several-table-cell"
15693 shows some example alignments.
15694 For the alignment with the relation sign, you must add the second smallest
15695 math-space at the beginning of the last column to get the correct space
15696 surrounding the relation sign.
15699 \begin_layout Standard
15700 \begin_inset Float table
15705 \begin_layout Standard
15706 \begin_inset Caption
15708 \begin_layout Standard
15709 \begin_inset LatexCommand label
15710 name "tab:Several-table-cell"
15714 Several table cell alignments.
15722 \begin_layout Standard
15724 \begin_inset Tabular
15725 <lyxtabular version="3" rows="4" columns="6">
15727 <column alignment="right" valignment="top" width="0">
15728 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15729 <column alignment="right" valignment="top" width="0">
15730 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15731 <column alignment="right" valignment="top" width="0">
15732 <column alignment="left" valignment="top" width="0" special="@{}l">
15733 <row bottomline="true">
15734 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15737 \begin_layout Standard
15743 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15746 \begin_layout Standard
15752 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15755 \begin_layout Standard
15761 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15764 \begin_layout Standard
15770 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15773 \begin_layout Standard
15779 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15782 \begin_layout Standard
15790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15793 \begin_layout Standard
15799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15802 \begin_layout Standard
15803 24\InsetSpace \thinspace{}
15809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15812 \begin_layout Standard
15813 \begin_inset Formula $10\cdot$
15821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15824 \begin_layout Standard
15825 \begin_inset Formula $10^{\mbox{-}17}$
15833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15836 \begin_layout Standard
15837 \begin_inset Formula $\Gamma(t)\propto$
15845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15848 \begin_layout Standard
15849 \begin_inset Formula $\:\Upsilon(t)$
15859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15862 \begin_layout Standard
15868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15871 \begin_layout Standard
15872 768\InsetSpace \thinspace{}
15878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15881 \begin_layout Standard
15882 \begin_inset Formula $5.78\cdot$
15890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15893 \begin_layout Standard
15894 \begin_inset Formula $10^{7}$
15902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15905 \begin_layout Standard
15906 \begin_inset Formula $A\ne$
15914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15917 \begin_layout Standard
15918 \begin_inset Formula $\: B_{\mathrm{red}}$
15928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15931 \begin_layout Standard
15937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15940 \begin_layout Standard
15941 6\InsetSpace \thinspace{}
15947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15950 \begin_layout Standard
15952 \begin_inset Formula $33.5\cdot$
15960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15963 \begin_layout Standard
15964 \begin_inset Formula $10^{4}$
15972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15975 \begin_layout Standard
15976 \begin_inset Formula $\sin(\alpha)\ge$
15984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15987 \begin_layout Standard
15988 \begin_inset Formula $\:\sin(\beta)$
16009 \begin_layout Standard
16010 \begin_inset VSpace bigskip
16013 There is also the LaTeX-package
16018 \begin_inset LatexCommand index
16019 name "LaTeX-packages ! dcolumn"
16023 that provides table cell alignments.
16024 But this unfortunately treats the cell entries as math and doesn't allow
16025 formulas in table cells: The first column of Table\InsetSpace ~
16027 \begin_inset LatexCommand ref
16028 reference "tab:Several-table-cell"
16036 like the first column in Table\InsetSpace ~
16038 \begin_inset LatexCommand ref
16039 reference "tab:Alignments-when"
16043 and only with some tricks like the expected.
16044 The alignment of the second and third column of Table\InsetSpace ~
16046 \begin_inset LatexCommand ref
16047 reference "tab:Several-table-cell"
16051 is not possible with
16058 \begin_layout Standard
16059 \begin_inset Float table
16065 \begin_layout Standard
16066 \begin_inset Caption
16068 \begin_layout Standard
16069 \begin_inset LatexCommand label
16070 name "tab:Alignments-when"
16074 Alignments when LaTeX-package dcolumn is used.
16075 For all column alignments tricks have to be used to get the output.
16083 \begin_layout Standard
16085 \begin_inset Tabular
16086 <lyxtabular version="3" rows="4" columns="3">
16088 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
16089 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
16090 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16091 <row bottomline="true">
16092 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16095 \begin_layout Standard
16101 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16104 \begin_layout Standard
16110 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16113 \begin_layout Standard
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16124 \begin_layout Standard
16125 12x24\InsetSpace \thinspace{}
16131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16134 \begin_layout Standard
16135 12x24\InsetSpace \thinspace{}
16137 \begin_inset Formula $\mbox{bottles}$
16145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16148 \begin_layout Standard
16153 \begin_layout Standard
16163 \begin_inset Formula $\mbox{bottles}$
16173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16176 \begin_layout Standard
16177 1024x768\InsetSpace \thinspace{}
16183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16186 \begin_layout Standard
16187 1024x768\InsetSpace \thinspace{}
16189 \begin_inset Formula $\mbox{Pixels}$
16197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16200 \begin_layout Standard
16205 \begin_layout Standard
16215 \begin_inset Formula $\mbox{Pixels}$
16225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16228 \begin_layout Standard
16229 32x6\InsetSpace \thinspace{}
16235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16238 \begin_layout Standard
16239 32x6\InsetSpace \thinspace{}
16241 \begin_inset Formula $\mbox{cm}$
16249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16252 \begin_layout Standard
16257 \begin_layout Standard
16267 \begin_inset Formula $\mbox{cm}$
16288 \begin_layout Subsection
16289 Customized Cell/Column Format
16290 \begin_inset LatexCommand label
16291 name "sub:Customized-Format"
16296 \begin_inset LatexCommand index
16297 name "Table Customization ! Cell/Column Format"
16304 \begin_layout Standard
16305 Calculating the needed width for spanned columns like in section\InsetSpace ~
16307 \begin_inset LatexCommand ref
16308 reference "sub:Multicolumn-Calculations"
16312 is very annoying if you have several tables with multicolumn cells.
16313 To make life easier, you can define a cell/column format in the preamble,
16314 so that it can be used in all tables of the document.
16315 The format is defined with the command
16318 \begin_layout Standard
16323 newcolumntype{name of format}[number of arguments]{commands}
16326 \begin_layout Standard
16327 The format name may only consist of one letter.
16352 are predefined and cannot be used.
16353 But all letters are allowed as capitals.
16356 \begin_layout Standard
16357 \begin_inset VSpace medskip
16363 \begin_layout Standard
16364 For vertically and horizontally centered multicolumn cells with a fixed
16365 width you can define the cell format
16368 \begin_layout Standard
16373 newcolumntype{M}[1]{>{
16380 \begin_layout Standard
16387 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
16389 \begin_inset LatexCommand ref
16390 reference "sub:Multiple-Lines-in"
16395 Now you can simply enter
16398 \begin_layout Standard
16404 \begin_layout Standard
16405 as LaTeX-argument in the table dialog to create a multicolumn.
16408 \begin_layout Standard
16409 \begin_inset VSpace bigskip
16415 \begin_layout Standard
16416 For cells spanned by a multicolumn cell, you can define the format
16419 \begin_layout Standard
16424 newcolumntype{S}[2]{>{
16434 \begin_layout Standard
16445 newcolumntype{S}[2]
16449 \begin_layout Standard
16460 arrayrulewidth)*(1-#2))/#2}}
16463 \begin_layout Standard
16464 This format uses equation
16465 \begin_inset LatexCommand eqref
16470 to calculate the needed width so that each spanned cell has the same width.
16473 \begin_layout Standard
16477 \begin_layout Standard
16480 S{width of multicolumn cell}{number of spanned columns}
16483 \begin_layout Standard
16484 as LaTeX-argument of the column.
16487 \begin_layout Standard
16488 \begin_inset VSpace bigskip
16494 \begin_layout Standard
16495 For colored columns, you can define
16498 \begin_layout Standard
16503 newcolumntype{K}[1]{>{
16510 \begin_layout Standard
16512 \begin_inset Quotes eld
16516 \begin_inset Quotes erd
16519 at the end creates a column with a flexible width whose text is horizontally
16524 \begin_layout Standard
16530 \begin_layout Standard
16534 \begin_layout Standard
16535 \begin_inset VSpace bigskip
16541 \begin_layout Standard
16542 To create Table\InsetSpace ~
16544 \begin_inset LatexCommand ref
16545 reference "tab:Table-using-user-defined"
16549 use the LaTeX-arguments
16552 \begin_layout Standard
16558 \begin_layout Standard
16559 for the first column and the multicolumn,
16562 \begin_layout Standard
16568 \begin_layout Standard
16569 for the the last column, and
16572 \begin_layout Standard
16578 \begin_layout Standard
16579 for the cells in the second column.
16582 \begin_layout Standard
16583 \begin_inset Float table
16589 \begin_layout Standard
16590 \begin_inset Caption
16592 \begin_layout Standard
16593 \begin_inset LatexCommand label
16594 name "tab:Table-using-user-defined"
16598 Table using user-defined table formats
16606 \begin_layout Standard
16608 \begin_inset Tabular
16609 <lyxtabular version="3" rows="3" columns="4">
16611 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16612 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16613 <column alignment="center" valignment="middle" leftline="true" width="0">
16614 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16615 <row topline="true">
16616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16619 \begin_layout Standard
16620 verylongtablecellword
16625 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16628 \begin_layout Standard
16629 multiple lines multicolumn
16634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16637 \begin_layout Standard
16643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16646 \begin_layout Standard
16653 <row topline="true">
16654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16657 \begin_layout Standard
16663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16666 \begin_layout Standard
16672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16675 \begin_layout Standard
16681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16684 \begin_layout Standard
16691 <row topline="true" bottomline="true">
16692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16695 \begin_layout Standard
16701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16704 \begin_layout Standard
16710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16713 \begin_layout Standard
16719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16722 \begin_layout Standard
16741 \begin_layout Subsection
16743 \begin_inset LatexCommand label
16744 name "sub:Line-Thickness"
16749 \begin_inset LatexCommand index
16750 name "Table Customization ! Line Thickness"
16757 \begin_layout Standard
16758 The line thickness for all lines in a table can be adjusted with the length
16766 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16767 pt, like in Table\InsetSpace ~
16769 \begin_inset LatexCommand ref
16770 reference "tab:Table-with-1.5"
16774 , insert the command
16777 \begin_layout Standard
16784 arrayrulewidth}{1.5pt}
16787 \begin_layout Standard
16788 in ERT before the table or table float.
16789 The changed thickness is valid for all following tables.
16790 To use the default value again, set
16796 to 0.4\InsetSpace \thinspace{}
16797 pt in ERT behind the table or table float.
16800 \begin_layout Standard
16804 \begin_layout Standard
16810 arrayrulewidth}{1.5pt}
16816 \begin_inset Float table
16821 \begin_layout Standard
16822 \begin_inset Caption
16824 \begin_layout Standard
16825 \begin_inset LatexCommand label
16826 name "tab:Table-with-1.5"
16830 Table with 1.5\InsetSpace \thinspace{}
16839 \begin_layout Standard
16841 \begin_inset Tabular
16842 <lyxtabular version="3" rows="3" columns="3">
16844 <column alignment="center" valignment="top" leftline="true" width="0">
16845 <column alignment="center" valignment="top" leftline="true" width="0">
16846 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16847 <row topline="true">
16848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16851 \begin_layout Standard
16857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16860 \begin_layout Standard
16866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16869 \begin_layout Standard
16876 <row topline="true">
16877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16880 \begin_layout Standard
16886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16889 \begin_layout Standard
16895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16898 \begin_layout Standard
16905 <row topline="true" bottomline="true">
16906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16909 \begin_layout Standard
16915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16918 \begin_layout Standard
16924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16927 \begin_layout Standard
16947 \begin_layout Standard
16953 arrayrulewidth}{0.4pt}
16961 \begin_layout Standard
16962 \begin_inset VSpace bigskip
16965 To set the line thickness to 1.5\InsetSpace \thinspace{}
16966 pt only for horizontal lines, like in Table\InsetSpace ~
16968 \begin_inset LatexCommand ref
16969 reference "tab:Table-with-horizontal"
16973 , insert these commands in ERT before the table or table float:
16976 \begin_layout Standard
16999 arrayrulewidth 1.5pt}
17009 arrayrulewidth 0.4pt}}
17012 \begin_layout Standard
17013 To return to the default line thickness, insert this command in ERT behind
17014 the table or table float:
17017 \begin_layout Standard
17029 \begin_layout Standard
17033 \begin_layout Standard
17044 \begin_layout Standard
17053 \begin_layout Standard
17061 arrayrulewidth 1.5pt}
17064 \begin_layout Standard
17074 arrayrulewidth 0.4pt}}
17080 \begin_inset Float table
17085 \begin_layout Standard
17086 \begin_inset Caption
17088 \begin_layout Standard
17089 \begin_inset LatexCommand label
17090 name "tab:Table-with-horizontal"
17094 Table with 1.5\InsetSpace \thinspace{}
17095 pt thick horizontal lines
17103 \begin_layout Standard
17105 \begin_inset Tabular
17106 <lyxtabular version="3" rows="3" columns="3">
17108 <column alignment="center" valignment="top" leftline="true" width="0">
17109 <column alignment="center" valignment="top" leftline="true" width="0">
17110 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17111 <row topline="true">
17112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17115 \begin_layout Standard
17121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17124 \begin_layout Standard
17130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17133 \begin_layout Standard
17140 <row topline="true">
17141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17144 \begin_layout Standard
17150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17153 \begin_layout Standard
17159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17162 \begin_layout Standard
17169 <row topline="true" bottomline="true">
17170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17173 \begin_layout Standard
17179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17182 \begin_layout Standard
17188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17191 \begin_layout Standard
17211 \begin_layout Standard
17227 \begin_layout Standard
17228 \begin_inset VSpace bigskip
17231 To set the line thickness to 1.5\InsetSpace \thinspace{}
17232 pt only for vertical lines, create the following
17233 column format in the document preamble, according to the description in
17234 section\InsetSpace ~
17236 \begin_inset LatexCommand ref
17237 reference "sub:Customized-Format"
17244 \begin_layout Standard
17249 newcolumntype{V}{!{
17251 vrule width 1.5pt}}
17254 \begin_layout Standard
17255 For Table\InsetSpace ~
17257 \begin_inset LatexCommand ref
17258 reference "tab:Table-with-vertical"
17265 \begin_layout Standard
17271 \begin_layout Standard
17272 was used for the last column and
17275 \begin_layout Standard
17281 \begin_layout Standard
17282 for the other columns.
17285 \begin_layout Standard
17286 \begin_inset Float table
17291 \begin_layout Standard
17292 \begin_inset Caption
17294 \begin_layout Standard
17295 \begin_inset LatexCommand label
17296 name "tab:Table-with-vertical"
17300 Table with 1.5\InsetSpace \thinspace{}
17301 pt thick vertical lines
17309 \begin_layout Standard
17311 \begin_inset Tabular
17312 <lyxtabular version="3" rows="3" columns="3">
17314 <column alignment="center" valignment="top" width="0" special="Vc">
17315 <column alignment="center" valignment="top" width="0" special="Vc">
17316 <column alignment="center" valignment="top" width="0" special="VcV">
17317 <row topline="true">
17318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17321 \begin_layout Standard
17327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17330 \begin_layout Standard
17336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17339 \begin_layout Standard
17346 <row topline="true">
17347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17350 \begin_layout Standard
17356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17359 \begin_layout Standard
17365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17368 \begin_layout Standard
17375 <row topline="true" bottomline="true">
17376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17379 \begin_layout Standard
17385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17388 \begin_layout Standard
17394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17397 \begin_layout Standard
17416 \begin_layout Subsection
17418 \begin_inset LatexCommand index
17419 name "Table Customization ! Dashed Lines"
17426 \begin_layout Standard
17430 \begin_layout Standard
17440 \begin_inset Note Note
17443 \begin_layout Standard
17444 The following section will only be displayed when you have the LaTeX-package
17457 \begin_layout Standard
17458 \begin_inset Float table
17464 \begin_layout Standard
17465 \begin_inset Caption
17467 \begin_layout Standard
17468 \begin_inset LatexCommand label
17469 name "tab:Table-with-dashed"
17473 Table with dashed lines
17481 \begin_layout Standard
17483 \begin_inset Tabular
17484 <lyxtabular version="3" rows="5" columns="5">
17486 <column alignment="center" valignment="top" leftline="true" width="0">
17487 <column alignment="center" valignment="top" leftline="true" width="0">
17488 <column alignment="center" valignment="top" width="0" special=":c">
17489 <column alignment="center" valignment="top" leftline="true" width="0">
17490 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17491 <row topline="true" bottomline="true">
17492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17495 \begin_layout Standard
17501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17504 \begin_layout Standard
17510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17513 \begin_layout Standard
17519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17522 \begin_layout Standard
17528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17531 \begin_layout Standard
17538 <row topline="true">
17539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17542 \begin_layout Standard
17548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17551 \begin_layout Standard
17557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17560 \begin_layout Standard
17566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17569 \begin_layout Standard
17575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17578 \begin_layout Standard
17586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17589 \begin_layout Standard
17593 \begin_layout Standard
17607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17610 \begin_layout Standard
17616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17619 \begin_layout Standard
17625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17628 \begin_layout Standard
17634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17637 \begin_layout Standard
17644 <row topline="true">
17645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17648 \begin_layout Standard
17652 \begin_layout Standard
17666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17669 \begin_layout Standard
17675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17678 \begin_layout Standard
17684 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17687 \begin_layout Standard
17693 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17696 \begin_layout Standard
17703 <row topline="true" bottomline="true">
17704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17707 \begin_layout Standard
17713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17716 \begin_layout Standard
17722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17725 \begin_layout Standard
17731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17734 \begin_layout Standard
17740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17743 \begin_layout Standard
17762 \begin_layout Standard
17763 LyX doesn't natively support dashed lines, so you have to use ERT.
17764 As prerequisite the LaTeX-package
17769 \begin_inset LatexCommand index
17770 name "LaTeX-packages ! arydshln"
17774 must be loaded in the document preamble with the command
17777 \begin_layout Standard
17782 usepackage{arydshln}
17785 \begin_layout Standard
17786 To make a vertical line dashed, enter the colon
17787 \begin_inset Quotes eld
17791 \begin_inset Quotes erd
17794 together with the character for the horizontal alignment as LaTeX-argument
17795 in the table cell dialog.
17798 \begin_layout Standard
17799 For a horizontal dashed line add the command
17802 \begin_layout Standard
17810 \begin_layout Standard
17811 in ERT as first element of the first cell in the table row.
17814 \begin_layout Standard
17815 For dashed multicolumn lines use the command
17818 \begin_layout Standard
17823 cdashline{line number
17828 \begin_layout Standard
17829 in ERT as first element of the first cell in the table row.
17830 If you have for example a multicolumn spanning over columns 2 to 4 and
17831 you want to have a dashed line above, add the command
17834 \begin_layout Standard
17842 \begin_layout Standard
17843 as first element of the first cell in the row of the multicolumn.
17846 \begin_layout Standard
17847 \begin_inset VSpace bigskip
17853 \begin_layout Standard
17856 \begin_inset LatexCommand ref
17857 reference "tab:Table-with-dashed"
17862 \begin_inset Quotes eld
17870 \begin_inset Quotes erd
17873 as LaTeX-argument of the third column.
17880 was inserted to the first cell of the third row and the the ERT command
17889 was inserted to the first cell of the fourth row.
17892 \begin_layout Standard
17893 \begin_inset Note Greyedout
17896 \begin_layout Standard
17901 The used LaTeX-package
17905 is apparently not compatible with the LaTeX-package
17910 \begin_inset LatexCommand index
17911 name "LaTeX-packages ! colortbl"
17915 that is used for colored tables in section\InsetSpace ~
17917 \begin_inset LatexCommand ref
17918 reference "sec:Colored-Tables"
17923 That means colored tables cannot have dashed lines.
17931 \begin_layout Standard
17935 \begin_layout Standard
17945 \begin_inset Note Note
17948 \begin_layout Standard
17949 The following will be displayed when the LaTeX-package
17961 \begin_layout Standard
17962 You need to install the package
17966 to see the content of this section in the output.
17969 \begin_layout Standard
17973 \begin_layout Standard
17985 \begin_layout Chapter
17987 \begin_inset LatexCommand index
17993 \begin_inset LatexCommand label
18001 \begin_layout Section
18003 \begin_inset LatexCommand label
18004 name "sec:FloatIntroduction"
18009 \begin_inset LatexCommand index
18010 name "Floats ! Introduction"
18017 \begin_layout Standard
18018 A float is a block of text associated with some sort of label, which doesn't
18019 have a fixed location.
18021 \begin_inset Quotes eld
18025 \begin_inset Quotes erd
18028 forward or backward a page or two, to wherever it fits best.
18035 Margin\InsetSpace ~
18038 are also floats, because they can float to the next page when there are
18039 too many notes at the page.
18042 \begin_layout Standard
18043 Floats allow a high quality layout.
18044 Images and tables can evenly be spread to the pages to avoid white space
18045 and pages without text.
18046 As the floating often destroys the context between the text and the image/table
18047 , every float can be referenced in the text.
18048 Floats are therefore numbered.
18049 Referencing is described in section\InsetSpace ~
18051 \begin_inset LatexCommand ref
18052 reference "sec:Referencing-Floats"
18059 \begin_layout Standard
18060 To insert a float, use the menu
18062 Insert\SpecialChar \menuseparator
18070 inset, a box with a label.
18071 The label will automatically be translated to the document language in
18073 Behind the label you can insert the caption text.
18074 The image or table is inserted above or below the caption in a separate
18075 paragraph within the float.
18076 More about the caption placement is described in section\InsetSpace ~
18078 \begin_inset LatexCommand ref
18079 reference "sec:Caption-Placement"
18084 To keep your LyX-document readable, you can open and close the float box
18085 by left-clicking on the box label.
18086 A closed float box looks like this:
18087 \begin_inset Graphics
18088 filename clipart/floatQt4.png
18090 scaleBeforeRotation
18094 -- a gray button with a red label.
18097 \begin_layout Standard
18098 It is recommended to insert floats as a separate paragraph to avoid possible
18099 LaTeX-errors that can occur when the surrounding text is specially formatted.
18102 \begin_layout Standard
18103 Existing figures or tables can be put into a float by marking them and then
18104 pressing the corresponding toolbar button for a new float.
18107 \begin_layout Section
18111 \begin_layout Standard
18112 Besides figure and table floats that are described in section\InsetSpace ~
18114 \begin_inset LatexCommand ref
18115 reference "sec:Figure-Floats"
18120 \begin_inset LatexCommand ref
18121 reference "sec:Table-Floats"
18125 , respectively, LyX offers the float types
18138 \begin_layout Subsection
18140 \begin_inset LatexCommand index
18141 name "Floats ! Algorithms"
18146 \begin_inset LatexCommand label
18147 name "sub:Algorithm-Floats"
18154 \begin_layout Standard
18155 \begin_inset Float algorithm
18161 \begin_layout Standard
18162 \begin_inset Caption
18164 \begin_layout Standard
18165 \begin_inset LatexCommand label
18166 name "alg:Example-Algorithm-float"
18170 Example Algorithm float
18178 \begin_layout LyX-Code
18181 Sum:= Sum + A(I); /*comment*/
18184 \begin_inset VSpace -4mm
18195 \begin_layout Standard
18196 This float type is inserted with the menu
18198 Insert\SpecialChar \menuseparator
18199 Floats\SpecialChar \menuseparator
18203 It is used for program codes and descriptions of algorithms.
18204 A possible environment for algorithms is the
18208 , described in LyX's
18213 Algorithm\InsetSpace ~
18215 \begin_inset LatexCommand ref
18216 reference "alg:Example-Algorithm-float"
18220 is an example of an algorithm float where -4\InsetSpace \thinspace{}
18221 mm vertical space was added
18222 at the end of the float to have the bottom rule exactly below the last
18226 \begin_layout Standard
18227 The float label is not automatically translated into the document language.
18228 If your document is not in English, you have to do this manually by adding
18229 the following line to the document preamble
18234 \begin_layout Standard
18239 floatname{algorithm}{your\InsetSpace ~
18243 \begin_layout Standard
18250 \begin_inset Quotes eld
18258 \begin_inset Quotes erd
18264 \begin_layout Description
18269 When the LaTeX-package
18274 \begin_inset LatexCommand index
18275 name "LaTeX-packages ! hyperref"
18279 is used to link cross-references to floats in the PDF-output, it must be
18280 loaded in the document preamble before the definition of floats to be able
18281 to reference floats.
18282 As LyX sets the float definition for algorithm floats automatically before
18283 the user editable part of the document preamble, you need to insert the
18284 following preamble lines
18288 the loading command of
18293 \begin_inset VSpace defskip
18302 newfloat{Xalgorithm}{tbp}{loa}
18306 floatname{Xalgorithm}{your\InsetSpace ~
18319 renewenvironment{algorithm}[1][tbp]
18325 \begin_layout Standard
18336 begin{Xalgorithm}[#1]}{
18341 \begin_inset VSpace defskip
18346 To insert the list of algorithms you can in this case not use the menu
18348 Insert\SpecialChar \menuseparator
18349 List\InsetSpace \thinspace{}
18350 /\InsetSpace \thinspace{}
18351 TOC\SpecialChar \menuseparator
18354 but have to use this command in ERT instead:
18360 listof{Xalgorithm}{List of Algorithms}
18363 \begin_inset Note Note
18366 \begin_layout Standard
18369 is used at the end of this document
18377 \begin_layout Standard
18378 Algorithm floats are not by default numbered in the scheme
18379 \begin_inset Quotes eld
18383 \begin_inset Quotes erd
18386 like it is the case for table and figure floats in many document-classes.
18387 To number algorithm floats in the same scheme, add this command to your
18391 \begin_layout Standard
18396 numberwithin{algorithm}{chapter}
18399 \begin_layout Standard
18400 If you use the LaTeX-package
18404 , add this line instead
18412 (the commands from above) to the preamble:
18415 \begin_layout Standard
18420 numberwithin{Xalgorithm}{chapter}
18423 \begin_layout Standard
18424 To be able to use the command
18435 in the document settings the option
18445 \begin_layout Subsection
18447 \begin_inset LatexCommand index
18448 name "Floats ! Text Wrap Floats"
18453 \begin_inset LatexCommand label
18454 name "sub:floatflt-wrap-float"
18461 \begin_layout Standard
18462 This float type is used if you want to
18463 \begin_inset Quotes eld
18467 \begin_inset Quotes erd
18470 text around a figure so that it only occupies some fraction of the column
18472 It can be inserted using the menu
18473 \begin_inset Wrap figure
18478 \begin_layout Standard
18479 \begin_inset Graphics
18480 filename clipart/mobius.eps
18483 scaleBeforeRotation
18484 rotateOrigin center
18491 \begin_layout Standard
18492 \begin_inset Caption
18494 \begin_layout Standard
18495 \begin_inset LatexCommand label
18496 name "fig:This-is-a"
18500 This is a wrapped figure, and this is the brilliant caption that describes
18502 \begin_inset VSpace medskip
18517 Insert\SpecialChar \menuseparator
18518 Floats\SpecialChar \menuseparator
18523 if the LaTeX-package
18525 f\SpecialChar \textcompwordmark{}
18526 loatf\SpecialChar \textcompwordmark{}
18530 \begin_inset LatexCommand index
18531 name "LaTeX-packages ! floatflt"
18539 \begin_layout Standard
18540 Installing a LaTeX-package is explained it in the
18550 The width and placement of the float is adjusted by right-clicking on the
18552 Figure\InsetSpace ~
18554 \begin_inset LatexCommand ref
18555 reference "fig:This-is-a"
18559 is an example text wrap float with a width of 40
18560 \begin_inset Formula $\,$
18567 \begin_layout Standard
18568 Available units are explained in
18569 \begin_inset LatexCommand ref
18570 reference "cha:Units-available-in"
18579 Some space was added under the caption to separate it better from the surroundi
18583 \begin_layout Standard
18586 f\SpecialChar \textcompwordmark{}
18587 loatf\SpecialChar \textcompwordmark{}
18590 also supports table wrap floats, but they are not yet supported by LyX.
18591 If you need this, read the documentation of
18593 f\SpecialChar \textcompwordmark{}
18594 loatf\SpecialChar \textcompwordmark{}
18598 \begin_inset LatexCommand cite
18606 \begin_layout Standard
18607 \begin_inset Note Greyedout
18610 \begin_layout Standard
18616 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18618 having a figure too close to the bottom
18619 of the page can mess things up in the way that the float doesn't appear
18620 in the output or that it is placed over some other text.
18624 \begin_layout Standard
18625 The better solution is to use the LaTeX-package
18627 wrapf\SpecialChar \textcompwordmark{}
18631 \begin_inset LatexCommand index
18632 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18638 f\SpecialChar \textcompwordmark{}
18639 loatf\SpecialChar \textcompwordmark{}
18642 , but it is currently not supported by LyX.
18655 \begin_layout Standard
18659 \begin_layout Itemize
18660 Wrap floats should not be placed in paragraphs that run over a page break.
18661 That means that wrap floats should better be inserted to the exact place
18662 when the document is nearly finished and you are able to estimate where
18663 page breaks will appear.
18666 \begin_layout Itemize
18667 Wrap floats should either be placed in an own paragraph before the paragraph
18668 where they should wrap into or within a paragraph.
18671 \begin_layout Itemize
18672 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18673 there is a text paragraph between them as separator.
18676 \begin_layout Itemize
18677 Wrap floats are not allowed in section headings or tables.
18680 \begin_layout Section
18682 \begin_inset LatexCommand label
18683 name "sec:Float-Numbering"
18688 \begin_inset LatexCommand index
18689 name "Floats ! Numbering"
18696 \begin_layout Standard
18697 Floats are usually numbered either independent from the sections the floats
18698 are in, or in the scheme
18699 \begin_inset Quotes eld
18703 \begin_inset Quotes erd
18707 \begin_inset Quotes eld
18711 \begin_inset Quotes erd
18715 This depends on the used document class.
18718 \begin_layout Standard
18719 To change the section independent numbering, you can use this command in
18720 the document preamble:
18723 \begin_layout Standard
18735 \begin_layout Standard
18742 is the command that prints the table number, for figure floats, the command
18756 prints in the command above the table number as small roman number.
18759 \begin_layout Standard
18760 To change the numbering scheme for example to
18761 \begin_inset Quotes eld
18765 \begin_inset Quotes erd
18768 , use this command in the preamble:
18771 \begin_layout Standard
18776 numberwithin{table}{subsection}
18779 \begin_layout Standard
18780 To be able to use the command
18791 in the document settings the option
18801 \begin_layout Standard
18802 Please also have a look at section\InsetSpace ~
18804 \begin_inset LatexCommand ref
18805 reference "sub:Footnote-Numbering"
18809 for the details and important notes about the numbering commands.
18812 \begin_layout Section
18814 \begin_inset LatexCommand label
18815 name "sec:Referencing-Floats"
18820 \begin_inset LatexCommand index
18821 name "Floats ! References"
18826 \begin_inset LatexCommand index
18834 \begin_layout Standard
18835 To reference a float, insert a label into its caption using the menu
18837 Insert\SpecialChar \menuseparator
18840 or the toolbar button
18841 \begin_inset Graphics
18842 filename ../images/label-insert.png
18844 scaleBeforeRotation
18849 A grey label box like this one:
18850 \begin_inset Graphics
18851 filename clipart/labelQt4.png
18853 scaleBeforeRotation
18857 will be inserted and the label window pops up asking for the label text.
18858 LyX offers as text the first words of the caption with a prefix.
18859 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18861 for figure floats the prefix will
18869 \begin_layout Standard
18870 The label is used as anchor and name for the reference.
18871 You can refer to the label using the menu
18873 Insert\SpecialChar \menuseparator
18876 or the toolbar button
18877 \begin_inset Graphics
18878 filename ../images/dialog-show-new-inset_ref.png
18880 scaleBeforeRotation
18885 A grey cross-reference box like this one:
18886 \begin_inset Graphics
18887 filename clipart/referenceQt4.png
18889 scaleBeforeRotation
18893 will be inserted and the cross-reference window appear showing all labels
18895 If you have multiple LyX-documents opened, choose the one you are working
18896 on from the drop-list at the top of the dialog.
18897 You can now sort the labels alphabetically and then choose one.
18898 At the position of the cross-reference box the float number will appear
18902 \begin_layout Standard
18903 It is recommended to use a protected space between the cross-reference name
18904 and its number to avoid line breaks between them.
18905 If a cross-reference refers to a non-existing label, you will see two question
18906 marks in the output instead of the reference.
18909 \begin_layout Standard
18910 You can change labels at any time by clicking on the label box.
18911 References to the changed label will automatically change its link to the
18912 new label text, so that you don't need to take care about this.
18915 \begin_layout Standard
18922 in the cross-reference window sets the cursor before the referred label.
18923 The button text changes then to Go\InsetSpace ~
18924 Back and you can use it to set the cursor
18925 back to the cross-reference.
18926 Right-clicking on a cross-reference box also sets the cursor before the
18927 referenced label but without a possibility to go back.
18930 \begin_layout Subsection
18931 Cross-Reference Formats
18932 \begin_inset LatexCommand label
18933 name "sub:Cross-Reference-Formats"
18938 \begin_inset LatexCommand index
18939 name "References ! Formats"
18946 \begin_layout Standard
18947 There are six varieties of cross-references:
18950 \begin_layout Description
18951 <reference>: prints the float number, this is the default:
18952 \begin_inset LatexCommand ref
18953 reference "fig:Two-distorted-images"
18960 \begin_layout Description
18961 (<reference>): prints the float number within two parentheses, this is the
18962 style normally used to reference formulas, especially when the reference
18964 \begin_inset Quotes eld
18968 \begin_inset Quotes erd
18972 \begin_inset LatexCommand eqref
18980 \begin_layout Description
18981 <page>: prints the page number: Page\InsetSpace ~
18983 \begin_inset LatexCommand pageref
18984 reference "fig:Two-distorted-images"
18991 \begin_layout Description
18994 <page>: prints the text "on page" and the page number:
18995 \begin_inset LatexCommand vpageref
18996 reference "fig:Two-distorted-images"
19003 \begin_layout Description
19004 <reference>\InsetSpace ~
19007 <page>: prints the float number, the text "on page", and
19009 \begin_inset LatexCommand vref
19010 reference "fig:Two-distorted-images"
19017 \begin_layout Description
19018 Formatted\InsetSpace ~
19019 reference: prints a self defined cross-reference format.
19021 \begin_inset Note Greyedout
19024 \begin_layout Standard
19029 This feature is only available when you have the LaTeX-package
19041 \begin_layout Standard
19042 Note that the style <page> won't print the page number if the label is on
19043 the previous, the same, or the next page.
19044 You will e.\InsetSpace \thinspace{}
19047 \begin_inset Quotes eld
19055 \begin_inset Quotes erd
19061 \begin_layout Standard
19062 The number and current page of the referred document part in the output,
19063 is automatically calculated by LaTeX.
19064 The varieties are adjusted in the field
19068 of the cross-reference window, that appear when you click on the cross-referenc
19072 \begin_layout Subsection
19073 Referencing Subfigures
19074 \begin_inset LatexCommand label
19075 name "sub:Referencing-Subfigures"
19080 \begin_inset LatexCommand index
19081 name "References ! to Subfigures"
19088 \begin_layout Standard
19089 Currently referencing subfigures is not supported by LyX, so you have to
19090 use LaTeX-commands.
19091 The label is the created with the command
19094 \begin_layout Standard
19099 label{fig:YourLabelName}
19102 \begin_layout Standard
19103 that is directly inserted into the subfigure caption field.
19104 To reference the label add this command in ERT
19107 \begin_layout Standard
19112 ref{fig:YourLabelName}
19115 \begin_layout Standard
19116 to the position in your document where the reference should be placed.
19117 Here is a reference to a subfigure: Subfigure\InsetSpace ~
19122 \begin_layout Standard
19134 \begin_layout Subsection
19135 Automatic Reference Naming
19136 \begin_inset LatexCommand index
19137 name "References ! Automatic Reference Naming"
19144 \begin_layout Standard
19149 provides a very useful feature that cross-references automatically include
19150 the name of the referenced floats (or text parts like sections).
19151 You save to write e.\InsetSpace \thinspace{}
19154 \begin_inset Quotes eld
19158 \begin_inset Quotes erd
19161 before every reference box.
19162 To get this automatic reference naming, you have to load the LaTeX-package
19168 \begin_inset LatexCommand index
19169 name "LaTeX-packages ! hyperref"
19173 in the document preamble with
19176 \begin_layout Standard
19181 usepackage[pdfborder={0 0 0}]{hyperref}
19196 \begin_layout Standard
19201 is used to link cross-references in the DVI- and PDF-output, this means
19202 that the reader of your document will be able to click on a table of content
19203 (TOC) entry or on a reference and he will be shown the referenced document
19209 also creates PDF-bookmarks for every section of your document to make it
19210 easier for readers to navigate through the document.
19211 This is also used in this document but when you have a look in the document
19212 preamble you will find various options in the load command of
19217 To learn more about the
19221 package, we refer to its documentation
19222 \begin_inset LatexCommand cite
19230 \begin_layout Standard
19231 \begin_inset Note Greyedout
19234 \begin_layout Standard
19239 Automatic reference naming cannot be used when you use cross-references
19242 Formatted\InsetSpace ~
19245 style, described in section\InsetSpace ~
19247 \begin_inset LatexCommand ref
19248 reference "sub:Cross-Reference-Formats"
19260 \begin_layout Subsection
19262 \begin_inset LatexCommand label
19263 name "sub:Reference-Position"
19268 \begin_inset LatexCommand index
19269 name "References ! Reference Position"
19276 \begin_layout Standard
19282 \begin_inset LatexCommand index
19283 name "LaTeX-packages ! hyperref"
19287 to link cross-references in the output, you will see that clicking on an
19288 image float reference jumps to the image label.
19289 The caption will be the first text part on the screen, so that you cannot
19290 see the image without scrolling.
19291 This is because the reference link anchor is placed at the position of
19293 With the use of the package
19298 \begin_inset LatexCommand index
19299 name "LaTeX-packages ! hypcap"
19303 , which is part of the LaTeX-package
19308 \begin_inset LatexCommand index
19309 name "LaTeX-packages ! oberdiek"
19313 , the link anchor is placed at the beginning of a float.
19314 To use this feature for figure floats, load
19318 in the document preamble with the line
19321 \begin_layout Standard
19326 usepackage[f\SpecialChar \textcompwordmark{}
19330 \begin_layout Standard
19335 for all floats but this isn't recommended for stability reasons.
19336 For more informations, have a look at
19341 \begin_inset LatexCommand cite
19349 \begin_layout Standard
19350 \begin_inset Note Greyedout
19353 \begin_layout Standard
19362 must be loaded after
19366 in the document preamble.
19374 \begin_layout Standard
19375 \begin_inset Note Greyedout
19378 \begin_layout Standard
19387 has no effect for references to subfigures.
19395 \begin_layout Section
19397 \begin_inset LatexCommand label
19398 name "sec:Float-Placement"
19403 \begin_inset LatexCommand index
19404 name "Floats ! Placement"
19411 \begin_layout Standard
19412 Right-clicking on a float-box opens a dialog where you can alter the placement
19413 options that LaTeX uses for positioning the float.
19420 is only useful for two-column documents: If you select it, the float will
19421 span across both columns on the page instead of being confined to just
19426 Rotate\InsetSpace ~
19429 is used to rotate floats, see section
19430 \begin_inset LatexCommand ref
19431 reference "sec:Rotated-Floats"
19438 \begin_layout Standard
19439 You can use one ore more of the following options in the float dialog to
19440 set the placement for a particular float when you uncheck the option
19443 default\InsetSpace ~
19449 \begin_layout Description
19452 possible try to place the float on the position where it is inserted
19455 \begin_layout Description
19458 page try to place the float on the top of the current page
19461 \begin_layout Description
19462 Bottom\InsetSpace ~
19464 page try to place the float on the bottom of the current page
19467 \begin_layout Description
19470 floats try to place the float on an own page
19473 \begin_layout Standard
19474 The order of the above option is
19479 That means, if you use the default placement, LaTeX will first try out
19492 , and then the others.
19493 If you don't use the default, LaTeX will try only the checked options but
19495 If none of the 4 placements are possible the procedure is internally repeated
19496 but it is tried to put the float on the following page.
19499 \begin_layout Standard
19500 By default, each option has its own rules:
19503 \begin_layout Labeling
19504 \labelwidthstring 00.00.0000
19511 only floats occupying less than 70\InsetSpace \thinspace{}
19512 % of the page can be placed at the top
19522 \begin_layout Labeling
19523 \labelwidthstring 00.00.0000
19526 Bottom\InsetSpace ~
19530 : only floats occupying less than 30\InsetSpace \thinspace{}
19531 % of the page can be placed at the bottom
19542 \begin_layout Labeling
19543 \labelwidthstring 00.00.0000
19550 : only if more than 50\InsetSpace \thinspace{}
19551 % of the page are occupied by floats, several floats
19552 can be set together on a page.
19562 \begin_layout Standard
19563 If you don't like these rules, you can ignore them by using the additional
19566 Ignore\InsetSpace ~
19572 You can also redefine the rules with LaTeX-commands that are given in parenthese
19573 s behind the rules description above.
19574 To increase for example the often too small default of the bottom-rule
19575 to 50\InsetSpace \thinspace{}
19576 % of the page, add this line to your document preamble:
19579 \begin_layout Standard
19586 bottomfraction}{0.5}
19589 \begin_layout Standard
19590 Sometimes you might need, under all circumstances, a float to be placed
19591 exactly at the position where it is inserted.
19592 For this case you can use the option
19598 Use this option very rarely and only if the document is nearly ready to
19600 Because the float is then no longer able to
19601 \begin_inset Quotes eld
19605 \begin_inset Quotes erd
19608 when you change your document and this will often destroy the page layout.
19611 \begin_layout Standard
19612 There are no placement options for text wrap floats, because they are always
19613 surrounded by the text of a certain paragraph.
19614 \begin_inset VSpace bigskip
19620 \begin_layout Standard
19621 Sometimes you have the problem that a float is placed at the top of a page
19622 while its corresponding section starts at the middle of the page, so that
19623 the reader could think the float is part of the previous section.
19624 To avoid this the LaTeX-command
19631 It suppresses a given float placement for the page where it is inserted
19632 and can therefore be used to avoid that floats could be set before a section
19634 To get this, add these commands to your document preamble:
19637 \begin_layout Standard
19659 \begin_layout Standard
19660 You can define the same for all section headings, like chapters and subsections.
19661 This definition is not recommended to be used for small text parts like
19662 subsubsections because LaTeX may then have problems to find a suitable
19666 \begin_layout Standard
19667 \begin_inset VSpace bigskip
19670 In some cases it is required to have all figures/tables at the end of the
19672 For this purpose the LaTeX-package
19677 \begin_inset LatexCommand index
19678 name "LaTeX-packages ! endfloat"
19683 It puts all figure and table floats at the end of the document into own
19685 At the original float position a text hint like
19686 \begin_inset Quotes eld
19691 [Figure\InsetSpace ~
19695 \begin_inset Quotes erd
19699 The endfloat-package is loaded in the preamble with the line
19702 \begin_layout Standard
19707 usepackage[options]{endfloat}
19710 \begin_layout Standard
19711 There are various package options to format the created figure/table sections.
19712 For more information we refer to the
19717 \begin_inset LatexCommand cite
19725 \begin_inset Note Greyedout
19728 \begin_layout Standard
19733 doesn't provide an automatic translation for the text hint, you have to
19734 do this manually, see section\InsetSpace ~
19736 \begin_inset LatexCommand cite
19749 \begin_inset Note Greyedout
19752 \begin_layout Standard
19757 There is currently a bug in
19761 when the caption contains a German
19762 \begin_inset Quotes eld
19766 \begin_inset Quotes erd
19770 Use in this case the command
19771 \begin_inset Quotes eld
19781 \begin_inset Quotes erd
19785 \begin_inset Quotes eld
19789 \begin_inset Quotes erd
19800 \begin_layout Standard
19801 \begin_inset VSpace bigskip
19804 For more details about float placements, have a look at LaTeX books,
19805 \begin_inset LatexCommand cite
19806 key "latexcompanion,latexguide,latexbook"
19813 \begin_layout Section
19815 \begin_inset LatexCommand label
19816 name "sec:Rotated-Floats"
19821 \begin_inset LatexCommand index
19822 name "Floats ! Rotating"
19829 \begin_layout Standard
19830 Especially for wide tables you might have floats rotated.
19831 To rotate a whole float including the caption, right-click on the float-box
19834 Rotate\InsetSpace ~
19840 \begin_layout Standard
19841 Rotated floats are always placed on its own page (or column, when you have
19842 a two-column document).
19843 They are rotated so that you can read them from the outside margin.
19844 To force a certain rotation direction for all pages, you can add either
19853 to the document class options.
19856 \begin_layout Standard
19857 Referencing rotated floats is the same like for normal floats, the caption
19858 format is also the same: Table\InsetSpace ~
19860 \begin_inset LatexCommand ref
19861 reference "tab:Rotated-table"
19865 is an example of a rotated table float.
19868 \begin_layout Standard
19869 \begin_inset Note Greyedout
19872 \begin_layout Standard
19877 Not all DVI-viewers are able to display rotated floats.
19885 \begin_layout Standard
19886 \begin_inset Float table
19891 \begin_layout Standard
19892 \begin_inset Caption
19894 \begin_layout Standard
19895 \begin_inset LatexCommand label
19896 name "tab:Rotated-table"
19908 \begin_layout Standard
19910 \begin_inset Tabular
19911 <lyxtabular version="3" rows="1" columns="5">
19913 <column alignment="center" valignment="top" leftline="true" width="0">
19914 <column alignment="center" valignment="top" leftline="true" width="0">
19915 <column alignment="center" valignment="top" leftline="true" width="0">
19916 <column alignment="center" valignment="top" leftline="true" width="0">
19917 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19918 <row topline="true" bottomline="true">
19919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19922 \begin_layout Standard
19928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19931 \begin_layout Standard
19937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19940 \begin_layout Standard
19946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19949 \begin_layout Standard
19955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19958 \begin_layout Standard
19977 \begin_layout Section
19979 \begin_inset LatexCommand index
19980 name "Caption ! Formatting"
19985 \begin_inset LatexCommand index
19986 name "Floats ! Caption Formatting"
19991 \begin_inset LatexCommand index
19992 name "LaTeX-packages ! caption"
19997 \begin_inset LatexCommand label
19998 name "sec:Caption-Formatting"
20005 \begin_layout Standard
20010 environment is the default paragraph environment for
20015 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
20018 \begin_inset Quotes eld
20026 \begin_inset Quotes erd
20029 followed by the caption text.
20031 \begin_inset Quotes eld
20035 \begin_inset Quotes erd
20038 is the actual reference number.
20039 By default the label and the number are in the same font as the caption
20040 text and a colon follows the number to divide the label from the text.
20041 This caption format is not suitable for all document formats.
20045 \begin_layout Standard
20046 To change the default caption format, load the LaTeX-package
20051 \begin_inset LatexCommand index
20052 name "LaTeX-packages ! caption"
20056 in the document preamble with this line:
20059 \begin_layout Standard
20064 usepackage[format definition]{caption}
20067 \begin_layout Standard
20068 To have for example the label and the number in sans-serif bold font and
20069 the table captions always above the table like in this document, use the
20073 \begin_layout Standard
20078 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
20081 \begin_layout Standard
20082 You can also define different caption formats for the different float types.
20083 In this case load the
20087 package without format specific options and define the different formats
20088 with the help of the command
20091 \begin_layout Standard
20096 captionsetup[float type]{format definition}
20099 \begin_layout Standard
20100 in the document preamble.
20101 For example the caption formats of Figure\InsetSpace ~
20103 \begin_inset LatexCommand ref
20104 reference "fig:This-is-an-fig"
20108 and Table\InsetSpace ~
20110 \begin_inset LatexCommand ref
20111 reference "tab:This-is-an-tab"
20115 can be created using these commands in the document preamble:
20118 \begin_layout Standard
20123 usepackage[tableposition=top]{caption}
20131 captionsetup[f\SpecialChar \textcompwordmark{}
20132 igure]{labelfont={tt}, textfont=it, indention=1cm,%
20138 \begin_layout Standard
20146 captionsetup[figure]
20157 captionsetup[table]{labelfont={bf,sf}}
20160 \begin_layout Standard
20161 \begin_inset Note Greyedout
20164 \begin_layout Standard
20173 has no effect when a
20178 \begin_inset LatexCommand index
20179 name "LaTeX-packages ! koma-script"
20183 document class is used.
20184 In this case the document class option
20196 \begin_layout Standard
20197 For more information about the package
20201 we refer to its documentation
20202 \begin_inset LatexCommand cite
20203 key "caption,caption-de"
20210 \begin_layout Standard
20211 To change the label name from e.g.
20213 \begin_inset Quotes eld
20217 \begin_inset Quotes erd
20221 \begin_inset Quotes eld
20225 \begin_inset Quotes erd
20228 use this preamble command:
20231 \begin_layout Standard
20238 fnum@figure}{Image~
20243 \begin_layout Standard
20250 inserts the figure number and
20253 \begin_inset Quotes eld
20259 \begin_inset Quotes erd
20262 creates a protected space.
20265 \begin_layout Standard
20266 \begin_inset VSpace bigskip
20274 \begin_inset LatexCommand index
20275 name "LaTeX-packages ! koma-script"
20281 article (koma-script)
20289 letter (koma-script)
20293 report (koma-script)
20295 \InsetSpace \thinspace{}
20296 ), you can alternatively to the
20304 's built-in command
20311 For example, to have the caption label in bold, add this command to your
20315 \begin_layout Standard
20320 setkomafont{captionlabel}{
20325 \begin_layout Standard
20326 For more information about
20337 \begin_inset LatexCommand cite
20338 key "koma-script,koma-script-de"
20345 \begin_layout Standard
20349 \begin_layout Standard
20353 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
20360 \begin_inset Note Note
20363 \begin_layout Standard
20364 The caption format is changed only for this example.
20372 \begin_layout Standard
20373 \begin_inset Float figure
20379 \begin_layout Standard
20381 \begin_inset Graphics
20382 filename clipart/mobius.eps
20385 scaleBeforeRotation
20392 \begin_layout Standard
20393 \begin_inset Caption
20395 \begin_layout Standard
20396 \begin_inset LatexCommand label
20397 name "fig:This-is-an-fig"
20401 This is an example figure caption that is longer than one line to show the
20402 different caption format.
20403 Here a self-defined caption format is used.
20416 \begin_layout Standard
20420 \begin_layout Standard
20424 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
20433 \begin_layout Standard
20434 \begin_inset Float table
20440 \begin_layout Standard
20441 \begin_inset Caption
20443 \begin_layout Standard
20444 \begin_inset LatexCommand label
20445 name "tab:This-is-an-tab"
20449 This is an example table caption that is longer than one line to show the
20450 different caption format.
20451 Here the standard caption format for tables in this document is used.
20459 \begin_layout Standard
20461 \begin_inset Tabular
20462 <lyxtabular version="3" rows="1" columns="5">
20464 <column alignment="center" valignment="top" leftline="true" width="0">
20465 <column alignment="center" valignment="top" leftline="true" width="0">
20466 <column alignment="center" valignment="top" leftline="true" width="0">
20467 <column alignment="center" valignment="top" leftline="true" width="0">
20468 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20469 <row topline="true" bottomline="true">
20470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20473 \begin_layout Standard
20479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20482 \begin_layout Standard
20488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20491 \begin_layout Standard
20497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20500 \begin_layout Standard
20506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20509 \begin_layout Standard
20528 \begin_layout Section
20530 \begin_inset LatexCommand index
20531 name "Caption ! Placement"
20536 \begin_inset LatexCommand index
20537 name "Floats ! Caption Placement"
20542 \begin_inset LatexCommand label
20543 name "sec:Caption-Placement"
20550 \begin_layout Standard
20551 The common caption placement rule is:
20554 \begin_layout Description
20555 Figure: Caption is set below the figure
20558 \begin_layout Description
20559 Table: Caption is set above the table
20562 \begin_layout Standard
20563 Having the caption above the table is unfortunately not supported in LaTeX's
20565 That means if you are using the document classes
20581 there will be no space between the caption and the table.
20582 To insert the needed space, add the following option to the load command
20583 of the LaTeX-package
20587 in your document preamble
20591 \begin_layout Standard
20592 See section\InsetSpace ~
20594 \begin_inset LatexCommand ref
20595 reference "sec:Caption-Formatting"
20599 for more information of the package
20611 \begin_layout Standard
20617 \begin_layout Standard
20623 \begin_inset LatexCommand index
20624 name "LaTeX-packages ! koma-script"
20630 article (koma-script)
20638 letter (koma-script)
20642 report (koma-script)
20644 \InsetSpace \thinspace{}
20645 ), you can alternatively to the
20649 package set the document class option
20656 \begin_layout Standard
20657 \begin_inset VSpace bigskip
20660 It is also possible to set the caption beside a figure or table.
20661 To get this the LaTeX-package
20666 \begin_inset LatexCommand index
20667 name "LaTeX-packages ! sidecap"
20671 has to be loaded in the document preamble with the line
20674 \begin_layout Standard
20679 usepackage[option]{sidecap}
20682 \begin_layout Standard
20683 If you set no option, the caption is placed on the side of the outer page
20684 margin -- to the right on odd pages, to the left on even pages.
20685 You can change the placement to inner margin with the option
20690 To force the placement always to the right or left, use the option
20701 \begin_layout Standard
20702 To place in LyX the caption of a float on the side, it is necessary to add
20703 these commands to the document preamble:
20706 \begin_layout Standard
20712 \begin_layout Standard
20725 \begin_layout Standard
20746 \begin_layout Standard
20767 \begin_layout Standard
20778 renewenvironment{table}{
20785 \begin_layout Standard
20798 \begin_layout Standard
20819 \begin_layout Standard
20837 \begin_layout Standard
20850 \begin_layout Standard
20865 f\SpecialChar \textcompwordmark{}
20872 \begin_layout Standard
20885 MyEndf\SpecialChar \textcompwordmark{}
20888 endf\SpecialChar \textcompwordmark{}
20895 \begin_layout Standard
20906 renewenvironment{f\SpecialChar \textcompwordmark{}
20909 begin{SCf\SpecialChar \textcompwordmark{}
20912 end{SCf\SpecialChar \textcompwordmark{}
20916 \begin_layout Standard
20929 \begin_layout Standard
20942 f\SpecialChar \textcompwordmark{}
20951 \begin_layout Standard
20964 endf\SpecialChar \textcompwordmark{}
20967 MyEndf\SpecialChar \textcompwordmark{}
20971 \begin_layout Standard
20977 \begin_layout Standard
20978 The commands allow you to redefine the floats so that the caption is set
20980 For figure floats use the command
20983 \begin_layout Standard
20991 \begin_layout Standard
20992 in ERT before the float.
20993 Behind the float insert the command
20996 \begin_layout Standard
21004 \begin_layout Standard
21005 in ERT to get back to the original float definition.
21008 \begin_layout Standard
21009 For table floats use the corresponding commands
21012 \begin_layout Standard
21026 \begin_layout Standard
21027 Figure\InsetSpace ~
21029 \begin_inset LatexCommand ref
21030 reference "fig:cap-beside-fig"
21034 and Table\InsetSpace ~
21036 \begin_inset LatexCommand ref
21037 reference "tab:cap-beside-tab"
21041 are examples where the caption is set beside.
21044 \begin_layout Standard
21045 You can see in the examples that the caption text appears at the top of
21046 the floats for table floats and at the bottom for figure floats.
21047 To change this, you can use the command
21050 \begin_layout Standard
21055 sidecaptionvpos{float type}{placement}
21058 \begin_layout Standard
21059 in the document preamble or in ERT before the float.
21060 The float type is either
21068 , the placement can be
21069 \begin_inset Quotes eld
21077 \begin_inset Quotes erd
21081 \begin_inset Quotes eld
21089 \begin_inset Quotes erd
21093 \begin_inset Quotes eld
21101 \begin_inset Quotes erd
21105 To have for example the caption of figure floats vertically centered, use
21109 \begin_layout Standard
21114 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
21118 \begin_layout Standard
21119 This was used for Figure\InsetSpace ~
21121 \begin_inset LatexCommand ref
21122 reference "fig:cap-beside-fig-2"
21129 \begin_layout Standard
21130 \begin_inset VSpace medskip
21133 For more information about the package
21137 we refer to its documentation
21138 \begin_inset LatexCommand cite
21146 \begin_layout Standard
21147 \begin_inset Note Greyedout
21150 \begin_layout Standard
21160 \begin_inset LatexCommand index
21161 name "LaTeX-packages ! hypcap"
21165 , described in section\InsetSpace ~
21167 \begin_inset LatexCommand ref
21168 reference "sub:Reference-Position"
21172 , has no effect on floats with the caption set beside.
21180 \begin_layout Standard
21184 \begin_layout Standard
21196 \begin_layout Standard
21197 \begin_inset Float figure
21202 \begin_layout Standard
21203 \begin_inset Graphics
21204 filename clipart/escher-lsd.eps
21206 scaleBeforeRotation
21213 \begin_layout Standard
21214 \begin_inset Caption
21216 \begin_layout Standard
21217 \begin_inset LatexCommand label
21218 name "fig:cap-beside-fig"
21222 This is a caption beside a figure.
21235 \begin_layout Standard
21239 \begin_layout Standard
21251 \begin_layout Standard
21252 \begin_inset Float table
21257 \begin_layout Standard
21258 \begin_inset Caption
21260 \begin_layout Standard
21261 \begin_inset LatexCommand label
21262 name "tab:cap-beside-tab"
21266 This is a caption beside a table.
21274 \begin_layout Standard
21275 \begin_inset Tabular
21276 <lyxtabular version="3" rows="4" columns="5">
21278 <column alignment="center" valignment="top" leftline="true" width="0">
21279 <column alignment="center" valignment="top" leftline="true" width="0">
21280 <column alignment="center" valignment="top" leftline="true" width="0">
21281 <column alignment="center" valignment="top" leftline="true" width="0">
21282 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
21283 <row topline="true">
21284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21287 \begin_layout Standard
21293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21296 \begin_layout Standard
21302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21305 \begin_layout Standard
21311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21314 \begin_layout Standard
21320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21323 \begin_layout Standard
21330 <row topline="true">
21331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21334 \begin_layout Standard
21340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21343 \begin_layout Standard
21349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21352 \begin_layout Standard
21358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21361 \begin_layout Standard
21367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21370 \begin_layout Standard
21377 <row topline="true">
21378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21381 \begin_layout Standard
21387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21390 \begin_layout Standard
21396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21399 \begin_layout Standard
21405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21408 \begin_layout Standard
21414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21417 \begin_layout Standard
21424 <row topline="true" bottomline="true">
21425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21428 \begin_layout Standard
21434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21437 \begin_layout Standard
21443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21446 \begin_layout Standard
21452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21455 \begin_layout Standard
21461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21464 \begin_layout Standard
21483 \begin_layout Standard
21487 \begin_layout Standard
21499 \begin_layout Standard
21503 \begin_layout Standard
21507 sidecaptionvpos{figure}{c}
21513 \begin_inset Float figure
21518 \begin_layout Standard
21519 \begin_inset Graphics
21520 filename clipart/escher-lsd.eps
21522 scaleBeforeRotation
21529 \begin_layout Standard
21530 \begin_inset Caption
21532 \begin_layout Standard
21533 \begin_inset LatexCommand label
21534 name "fig:cap-beside-fig-2"
21538 This is a vertically centered caption beside a figure.
21551 \begin_layout Standard
21555 \begin_layout Standard
21567 \begin_layout Section
21569 \begin_inset LatexCommand label
21570 name "sec:Listings-of-Floats"
21575 \begin_inset LatexCommand index
21576 name "Floats ! Float Lists"
21583 \begin_layout Standard
21584 Similar to the the table of contents where the sections of the document
21585 are listed, there are listings for all float types, like the figures of
21587 You can insert them via the
21589 Insert\SpecialChar \menuseparator
21597 \begin_layout Standard
21598 The list entries are the float captions or its short title, the float number,
21599 and the page number where they appear in the document.
21602 \begin_layout Standard
21603 You can find the list of figures and tables at the end of this document.
21606 \begin_layout Chapter
21610 \begin_layout Section
21612 \begin_inset LatexCommand label
21613 name "sec:LyX-Notes"
21618 \begin_inset LatexCommand index
21619 name "Notes ! LyX Notes"
21626 \begin_layout Standard
21627 Notes are inserted with the toolbar button
21628 \begin_inset Graphics
21629 filename ../images/note-insert.png
21631 scaleBeforeRotation
21637 Insert\SpecialChar \menuseparator
21641 There are five types of notes:
21644 \begin_layout Description
21646 Note This note type is for internal notes that won't appear in the output.
21647 Its note-box looks like this:
21652 \begin_inset Graphics
21653 filename clipart/LyXNoteImageQt4.png
21656 scaleBeforeRotation
21661 \begin_inset Note Note
21664 \begin_layout Standard
21665 This is text in a note box that doesn't appear in the output.
21673 \begin_layout Description
21674 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21675 ent, when you export the document to LaTeX via the menu
21677 File\SpecialChar \menuseparator
21678 Export\SpecialChar \menuseparator
21679 LaTeX (pdflatex) / (plain)
21682 Its note-box looks like this:
21687 \begin_inset Graphics
21688 filename clipart/CommentNoteImageQt4.png
21691 scaleBeforeRotation
21696 \begin_inset Note Comment
21699 \begin_layout Standard
21700 This is text in a note box that only appears as comment in LaTeX-files.
21708 \begin_layout Description
21709 Greyed\InsetSpace ~
21710 Out This note will appear in the output as grey text.
21711 Its note-box looks like this:
21716 \begin_inset Graphics
21717 filename clipart/GreyedOutNoteImageQt4.png
21720 scaleBeforeRotation
21730 \begin_layout Standard
21734 renewenvironment{lyxgreyedout}
21737 \begin_layout Standard
21741 textcolor[gray]{0.8}
21751 \begin_inset Note Greyedout
21754 \begin_layout Standard
21759 \begin_layout Standard
21760 This is an example footnote within a greyed out note.
21765 of a comment that appears in the output as grey text.
21774 \begin_layout Standard
21778 renewenvironment{lyxgreyedout}
21781 \begin_layout Standard
21795 \begin_inset Note Note
21798 \begin_layout Standard
21799 The greyed out note is here redefined to show it with the original LyX definitio
21800 n because greyed out notes are redefined in the preamble of this document,
21801 as described below, to have blue text.
21810 As you can see in the example, the first line of greyed out notes is a bit
21811 indented and greyed out notes can have footnotes.
21814 \begin_layout Description
21815 Framed This note will appear in the output as framed text.
21816 Its note-box looks like this:
21821 \begin_inset Graphics
21822 filename clipart/FramedNoteImageQt4.png
21825 scaleBeforeRotation
21830 \begin_inset Note Framed
21833 \begin_layout Standard
21834 This is text in a note box that appears framed in the output.
21839 In contrary to framed boxes
21843 \begin_layout Standard
21844 Framed boxes are described in section\InsetSpace ~
21846 \begin_inset LatexCommand ref
21847 reference "sec:Framed-Boxes"
21856 the frame uses always the whole text width and the note is set into its
21860 \begin_layout Description
21861 Shaded This note will appear in the output with red background color.
21862 Its note box looks like this:
21867 \begin_inset Graphics
21868 filename clipart/ShadedNoteImageQt4.png
21871 scaleBeforeRotation
21876 \begin_inset Note Shaded
21879 \begin_layout Standard
21880 This text in a note box appears in the output with red background.
21885 In contrary to colored boxes
21889 \begin_layout Standard
21890 Colored boxes are described in section\InsetSpace ~
21892 \begin_inset LatexCommand ref
21893 reference "sec:Colored-Boxes"
21902 the note uses always the whole text width and the note is set into its
21906 \begin_layout Standard
21907 \begin_inset VSpace bigskip
21910 When you use the toolbar button
21911 \begin_inset Graphics
21912 filename ../images/note-insert.png
21914 scaleBeforeRotation
21924 You can switch between the five note types by right-clicking on the note-box.
21929 If you want to turn existing text into a note, mark it and click on the
21945 \begin_layout Standard
21946 \begin_inset VSpace bigskip
21949 You can change the text color of the greyed out notes in the preamble with
21950 the following command:
21953 \begin_layout Standard
21958 renewenvironment{lyxgreyedout}
21964 \begin_layout Standard
21982 \begin_layout Standard
21983 The available colors and the method to define own colors is explained in
21984 section\InsetSpace ~
21986 \begin_inset LatexCommand ref
21987 reference "sec:Colored-Tables"
21994 \begin_layout Standard
21995 Notes that appear in blue in this document are set using greyed out notes
21999 \begin_layout Standard
22000 \begin_inset VSpace bigskip
22006 \begin_layout Standard
22015 notes can be set in the
22022 \begin_layout Standard
22023 The default frame width for
22027 notes is 0.4\InsetSpace \thinspace{}
22028 pt; it can be changed by changing the size
22035 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
22037 be changed by changing the size
22044 For example the frame appearance of the following
22048 note is set with the ERT commands
22051 \begin_layout Standard
22061 \begin_layout Standard
22065 \begin_layout Standard
22077 \begin_inset Note Framed
22080 \begin_layout Standard
22094 \begin_layout Standard
22108 \begin_layout Standard
22109 \begin_inset VSpace bigskip
22115 \begin_layout Standard
22120 notes the default space between the note content and the note border is
22121 3\InsetSpace \thinspace{}
22122 pt; it can be changed by changing the size
22130 The default background color red can be changed with the command
22134 def\SpecialChar \textcompwordmark{}
22142 def\SpecialChar \textcompwordmark{}
22145 command is explained in section\InsetSpace ~
22147 \begin_inset LatexCommand ref
22148 reference "sec:Colored-Tables"
22156 \begin_layout Standard
22163 \SpecialChar \textcompwordmark{}
22168 requires the LaTeX-package
22172 in the preamble, see section\InsetSpace ~
22174 \begin_inset LatexCommand ref
22175 reference "sec:Colored-Boxes"
22187 \begin_layout Standard
22188 For example the appearance of the following
22192 note is set with the ERT commands
22195 \begin_layout Standard
22208 def\SpecialChar \textcompwordmark{}
22209 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22212 \begin_layout Standard
22216 \begin_layout Standard
22229 \begin_layout Standard
22233 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22239 \begin_inset Note Shaded
22242 \begin_layout Standard
22245 This is yellow text in a
22255 note with darkgreen background.
22264 \begin_layout Standard
22277 \begin_layout Standard
22281 definecolor{shadecolor}{rgb}{1,0,0}
22289 \begin_layout Section
22291 \begin_inset LatexCommand label
22292 name "sec:Footnotes"
22297 \begin_inset LatexCommand index
22298 name "Notes ! Footnotes"
22303 \begin_inset LatexCommand index
22311 \begin_layout Standard
22312 Footnotes can be inserted using the toolbar button
22313 \begin_inset Graphics
22314 filename ../images/footnote-insert.png
22316 scaleBeforeRotation
22322 Insert\SpecialChar \menuseparator
22334 then the following footnote-box:
22335 \begin_inset Graphics
22336 filename clipart/footnoteQt4.png
22338 scaleBeforeRotation
22346 where you can enter the footnote text.
22347 If you want to turn existing text into a footnote, mark it and click on
22363 \begin_layout Standard
22364 Here is an example footnote:
22372 \begin_layout Standard
22373 \begin_inset LatexCommand label
22374 name "foot:This-is-an"
22378 This is an example footnote.
22391 \begin_layout Standard
22395 newcounter{MyRepeatFoot}
22398 \begin_layout Standard
22402 setcounter{MyRepeatFoot}{
22412 \begin_layout Standard
22413 The footnote will appear in the output as a superscript number at the text
22414 position where the footnote box is placed.
22415 The footnote text is placed at the bottom of the current page.
22416 The footnote number is calculated by LaTeX, the numbers are consecutive.
22417 It depends on your document-class, if the footnote number is reset for
22421 \begin_layout Standard
22422 Footnotes can be referenced like floats: Insert a label into the footnote
22423 and cross-reference this label in the text as described in section\InsetSpace ~
22425 \begin_inset LatexCommand ref
22426 reference "sec:Referencing-Floats"
22432 This is a cross-reference of Footnote\InsetSpace ~
22434 \begin_inset LatexCommand ref
22435 reference "foot:This-is-an"
22442 \begin_layout Standard
22443 \begin_inset VSpace defskip
22446 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
22448 \begin_inset LatexCommand ref
22449 reference "sec:Minipages"
22454 Footnotes within longtables are described in section\InsetSpace ~
22456 \begin_inset LatexCommand ref
22457 reference "sub:Footnotes-in-Longtables"
22464 \begin_layout Standard
22465 \begin_inset VSpace defskip
22468 To create only a mark for a footnote, use the command
22472 footnotemark[number]
22475 This is used when you have the same annotation several times in a text
22476 but doesn't want to print the footnote text every time.
22479 the number of the repeating footnote while you are writing the text, you
22480 have to store its number.
22481 For the following footnote mark example, these commands were inserted in
22482 ERT behind Footnote\InsetSpace ~
22484 \begin_inset LatexCommand ref
22485 reference "foot:This-is-an"
22489 to store the footnote number:
22492 \begin_layout Standard
22497 newcounter{MyRepeatFoot}
22501 setcounter{MyRepeatFoot}{
22506 \begin_layout Standard
22507 The footnote mark was then created with this command:
22510 \begin_layout Standard
22520 \begin_layout Standard
22521 Here is an example footnote mark:
22529 \begin_layout Standard
22543 \begin_layout Subsection
22545 \begin_inset LatexCommand label
22546 name "sub:Footnote-Numbering"
22551 \begin_inset LatexCommand index
22552 name "Footnotes ! Numbering"
22559 \begin_layout Standard
22560 To reset the footnote number back to 1 after each section
22562 , add this command to your document preamble:
22565 \begin_layout Standard
22570 @addtoreset{footnote}{section}
22573 \begin_layout Standard
22574 \begin_inset VSpace bigskip
22577 The following preamble command changes the footnote numbering style to small
22581 \begin_layout Standard
22593 \begin_layout Standard
22597 \begin_layout Standard
22610 This is a footnote with roman numbering:
22614 \begin_layout Standard
22615 This is an example footnote with roman numbering.
22623 \begin_layout Standard
22624 To change the numbering style to capital roman numerals replace in the command
22639 \begin_inset Quotes eld
22643 \begin_inset Quotes erd
22646 footnotes with capital or small Latin letters use
22660 \begin_inset Quotes eld
22664 \begin_inset Quotes erd
22667 footnotes with symbols use
22676 \begin_layout Standard
22677 \begin_inset Note Greyedout
22680 \begin_layout Standard
22685 You can only number 26 footnotes with Latin letters, because this numbering
22686 is limited to single letters.
22694 \begin_inset Note Greyedout
22697 \begin_layout Standard
22702 You can only number 9 footnotes with symbols.
22710 \begin_layout Standard
22711 To return to the default numbering style when you changed to another one,
22724 in the command above.
22728 \begin_layout Standard
22744 \begin_layout Standard
22745 \begin_inset VSpace bigskip
22751 \begin_layout Standard
22752 If you want to have footnotes numbered in the scheme
22753 \begin_inset Quotes eld
22757 \begin_inset Quotes erd
22760 , add the following command to your document preamble:
22763 \begin_layout Standard
22768 numberwithin{footnote}{chapter}
22771 \begin_layout Standard
22772 To be able to use the command
22783 in the document settings the option
22793 \begin_layout Standard
22797 \begin_layout Standard
22801 numberwithin{footnote}{chapter}
22806 This is another example footnote:
22812 \begin_layout Standard
22813 This is a footnote numbered in the scheme
22814 \begin_inset Quotes eld
22818 \begin_inset Quotes erd
22832 \begin_layout Standard
22848 \begin_layout Standard
22849 \begin_inset Note Greyedout
22852 \begin_layout Standard
22863 always prints out the footnote number as arabic number; previous redefinitions
22864 to get non-arabic numbers are overwritten.
22872 \begin_layout Standard
22873 So to get for example the scheme
22874 \begin_inset Quotes eld
22880 \begin_inset Quotes erd
22883 , use this command instead of
22892 \begin_layout Standard
22906 \begin_layout Subsection
22908 \begin_inset LatexCommand index
22909 name "Footnotes ! Placement"
22916 \begin_layout Standard
22917 If you have several footnotes in one page, they appear without vertical
22918 space between them at the bottom of the page.
22919 To make them better readable you can e.\InsetSpace \thinspace{}
22921 add 1.5\InsetSpace \thinspace{}
22922 mm space with the following
22926 \begin_layout Standard
22948 \begin_layout Standard
22949 \begin_inset VSpace bigskip
22952 In a two-column document the footnotes appear at the bottom of every column,
22953 see Figure\InsetSpace ~
22955 \begin_inset LatexCommand ref
22956 reference "fig:Standard-footnote-placement"
22961 If the footnotes should only appear at the bottom of the right column,
22962 as in Figure\InsetSpace ~
22964 \begin_inset LatexCommand ref
22965 reference "fig:Footnote-placement-in"
22969 , use the LaTeX-package
22974 \begin_inset LatexCommand index
22975 name "LaTeX-packages ! ftnright"
22979 with this command in the document preamble:
22982 \begin_layout Standard
22987 usepackage{ftnright}
22990 \begin_layout Standard
22991 \begin_inset Float figure
22997 \begin_layout Standard
23001 \begin_layout Standard
23011 \begin_inset Graphics
23012 filename clipart/without_fntright.pdf
23014 scaleBeforeRotation
23022 \begin_layout Standard
23032 \begin_layout Standard
23033 \begin_inset Caption
23035 \begin_layout Standard
23036 \begin_inset LatexCommand label
23037 name "fig:Standard-footnote-placement"
23041 Standard footnote placement in two-column documents.
23054 \begin_layout Standard
23055 \begin_inset Float figure
23061 \begin_layout Standard
23065 \begin_layout Standard
23075 \begin_inset Graphics
23076 filename clipart/with_fntright.pdf
23078 scaleBeforeRotation
23086 \begin_layout Standard
23096 \begin_layout Standard
23097 \begin_inset Caption
23099 \begin_layout Standard
23100 \begin_inset LatexCommand label
23101 name "fig:Footnote-placement-in"
23105 Footnote placement in two-column documents when the LaTeX-package
23122 \begin_layout Standard
23123 \begin_inset VSpace bigskip
23126 In some scientific literature it is usual to collect the footnotes and print
23127 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
23129 \begin_inset LatexCommand ref
23130 reference "fig:Endnotes----footnotes"
23135 They are then so called
23136 \begin_inset Quotes eld
23140 \begin_inset Quotes erd
23144 To use endnotes instead of footnotes in your document, load the LaTeX-package
23150 \begin_inset LatexCommand index
23151 name "LaTeX-packages ! endnotes"
23155 with the document preamble lines
23158 \begin_layout Standard
23163 usepackage{endnotes}
23174 \begin_layout Standard
23175 To insert the collected footnotes, insert the command
23178 \begin_layout Standard
23186 \begin_layout Standard
23187 in ERT at the the end of a section or chapter.
23190 \begin_layout Standard
23191 \begin_inset Float figure
23196 \begin_layout Standard
23201 \begin_layout Standard
23211 \begin_inset Graphics
23212 filename clipart/endnotes.pdf
23213 scaleBeforeRotation
23221 \begin_layout Standard
23231 \begin_layout Standard
23232 \begin_inset Caption
23234 \begin_layout Standard
23235 \begin_inset LatexCommand label
23236 name "fig:Endnotes----footnotes"
23240 Endnotes -- footnotes are printed in a separate paragraph at the end of
23241 sections or chapters.
23254 \begin_layout Standard
23255 \begin_inset VSpace medskip
23258 The paragraph heading for the endnotes isn't automatically translated into
23259 the document language, this must be done manually.
23260 The following preamble command translate the default English name
23261 \begin_inset Quotes eld
23265 \begin_inset Quotes erd
23268 to the German translation
23269 \begin_inset Quotes eld
23273 \begin_inset Quotes erd
23279 \begin_layout Standard
23286 notesname}{Anmerkungen}
23289 \begin_layout Standard
23290 \begin_inset VSpace medskip
23293 The numbering of endnotes can be changed like the footnote numbering as
23294 described in section\InsetSpace ~
23296 \begin_inset LatexCommand ref
23297 reference "sub:Footnote-Numbering"
23301 ; just replace the command
23314 To reset the endnote number use the command
23320 as described in section\InsetSpace ~
23322 \begin_inset LatexCommand ref
23323 reference "sub:Footnote-Numbering"
23327 and replace the command parameter
23338 \begin_layout Standard
23339 To create only a mark for an endnote, use the command
23343 endnotemark[number]
23345 similar to the command
23351 , described in section\InsetSpace ~
23353 \begin_inset LatexCommand ref
23354 reference "sec:Footnotes"
23361 \begin_layout Standard
23362 \begin_inset VSpace bigskip
23365 Footnotes can also be placed in the page margin and the footnote text alignment
23366 can be changed, see the LaTeX-package
23371 \begin_inset LatexCommand index
23372 name "LaTeX-packages ! footmisc"
23377 \begin_inset LatexCommand cite
23382 for more information about this.
23385 \begin_layout Standard
23386 For various further footnote formatting issues have a look at LaTeX-books,
23388 \begin_inset LatexCommand cite
23389 key "latexcompanion,latexguide,latexbook"
23396 \begin_layout Section
23398 \begin_inset LatexCommand index
23399 name "Notes ! Margin Notes"
23406 \begin_layout Standard
23407 Margin notes look and behave in LyX like footnotes.
23408 They are inserted via the menu
23410 Insert\SpecialChar \menuseparator
23411 Marginal\InsetSpace ~
23414 or the toolbar button
23415 \begin_inset Graphics
23416 filename ../images/marginalnote-insert.png
23418 scaleBeforeRotation
23433 \begin_inset Quotes eld
23437 \begin_inset Quotes erd
23440 appears where you can enter the text of the margin note.
23443 \begin_layout Standard
23444 At the side is an example margin note.
23448 \begin_inset Marginal
23451 \begin_layout Standard
23452 This is a margin note.
23460 \begin_layout Standard
23461 Margin notes appear at the right side in single-sided documents.
23462 In double-sided documents they appear in the outer margin -- left on even
23463 pages, right on odd pages.
23464 The text of margin notes is aligned opposite to the outer margin -- right-align
23465 ed when the note appears in the left margin.
23466 The first line of the margin note is placed at the position of the text
23467 line where it is inserted in the document.
23470 \begin_layout Standard
23471 \begin_inset VSpace bigskip
23474 To place the margin note in the inner margin, add the command
23477 \begin_layout Standard
23485 \begin_layout Standard
23486 in ERT before a margin note.
23487 The new placement is valid for all following margin notes.
23491 \begin_layout Standard
23501 \begin_inset Marginal
23504 \begin_layout Standard
23505 This is a margin note in the inner margin.
23517 \begin_inset Note Greyedout
23520 \begin_layout Standard
23525 There is often not enough space in the inner margin so that the notes are
23526 not correctly displayed in the output.
23534 \begin_layout Standard
23535 To return to the default placement insert the command
23538 \begin_layout Standard
23546 \begin_layout Standard
23551 \begin_layout Standard
23561 \begin_inset Note Greyedout
23564 \begin_layout Standard
23569 The command is ignored when it is within a paragraph where also the command
23584 \begin_layout Standard
23585 \begin_inset VSpace bigskip
23592 \begin_inset Marginal
23595 \begin_layout Standard
23596 AVeryLongMarginParWord that isn't hyphenated.
23604 Similar to the case described in section\InsetSpace ~
23606 \begin_inset LatexCommand ref
23607 reference "sub:Multiple-Lines-in"
23611 , long words cannot be hyphenated when they are the first word in a margin
23613 To avoid this, insert the command
23616 \begin_layout Standard
23624 \begin_layout Standard
23625 in ERT before the word
23629 \begin_inset Marginal
23632 \begin_layout Standard
23636 \begin_layout Standard
23645 AVeryLongMarginParWord that is hyphenated.
23653 \begin_layout Standard
23654 \begin_inset VSpace bigskip
23660 \begin_layout Standard
23661 \begin_inset Note Greyedout
23664 \begin_layout Standard
23669 Margin notes can normally not be used inside tables, floats, and footnotes.
23677 \begin_layout Standard
23678 \begin_inset VSpace bigskip
23684 \begin_layout Standard
23688 \begin_layout Standard
23698 \begin_inset Note Note
23701 \begin_layout Standard
23702 The following section will only be displayed when you have the LaTeX-package
23715 \begin_layout Standard
23716 This restriction can be evaded by using the LaTeX-package
23721 \begin_inset LatexCommand index
23722 name "LaTeX-packages ! marginnote"
23727 By adding these two lines to your document preamble, the command used by
23728 LyX for margin notes is redefined to use the command provided by the
23735 \begin_layout Standard
23740 usepackage{marginnote}
23751 \begin_layout Standard
23752 This is also used in this document because
23756 has another useful feature: You can set a vertical offset for the note.
23757 This is often needed when too many margin notes are too close together
23758 or for a better page layout.
23759 The offset is set in LyX as ERT directly behind the margin note in the
23763 \begin_layout Standard
23769 \begin_layout Standard
23770 where the offset is a length with one of the units listed in Table\InsetSpace ~
23772 \begin_inset LatexCommand ref
23773 reference "tab:Units"
23778 A negative value shifts the note up, a positive value shifts it down.
23782 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23785 \begin_inset Quotes eld
23795 \begin_inset Quotes erd
23799 \begin_inset Marginal
23802 \begin_layout Standard
23803 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23804 cm from its original position.
23816 \begin_layout Standard
23826 \begin_layout Standard
23827 \begin_inset VSpace medskip
23834 you can also change the alignment of the text in the margin note.
23835 For example the commands
23838 \begin_layout Standard
23845 raggedleftmarginnote}{
23853 raggedrightmarginnote}{
23858 \begin_layout Standard
23859 set the alignment to centered.
23864 raggedleftmarginnote
23866 denotes margin notes that appear at the left side.
23873 \begin_layout Standard
23879 raggedleftmarginnote}{
23884 \begin_layout Standard
23890 raggedrightmarginnote}{
23898 \begin_inset Marginal
23901 \begin_layout Standard
23902 The text of this margin note is centered.
23913 \begin_layout Standard
23920 raggedleftmarginnote}{
23928 raggedrightmarginnote}{
23937 \begin_layout Standard
23943 raggedleftmarginnote}{
23948 \begin_layout Standard
23954 raggedrightmarginnote}{
23964 \begin_layout Standard
23965 \begin_inset VSpace medskip
23968 For the other features of
23972 we refer to its documentation
23973 \begin_inset LatexCommand cite
23981 \begin_layout Standard
23982 \begin_inset VSpace bigskip
23985 You can adjust the layout of margin notes by changing its definition.
23986 To create for example a header for all margin notes with the underlined,
23987 sans-serif, and bold header text
23988 \begin_inset Quotes eld
24000 \begin_inset Quotes erd
24003 , add this to your document preamble:
24006 \begin_layout Standard
24029 \begin_layout Standard
24046 underbar{Attention!}}}%
24052 \begin_layout Standard
24070 \begin_layout Standard
24077 \begin_layout Standard
24088 \begin_layout Standard
24099 \begin_layout Standard
24107 underbar{Attention!}}}%
24110 \begin_layout Standard
24124 \begin_inset Marginal
24127 \begin_layout Standard
24128 This is a margin note with a defined heading.
24140 \begin_layout Standard
24154 \begin_layout Standard
24171 \begin_inset Note Note
24174 \begin_layout Standard
24175 The margin note format is changed only for this example.
24183 \begin_layout Standard
24187 \begin_layout Standard
24197 \begin_inset Note Note
24200 \begin_layout Standard
24201 The following will be displayed when the LaTeX-package
24213 \begin_layout Standard
24214 You need to install the LaTeX-package
24218 to see the following part of this section in the output.
24221 \begin_layout Standard
24225 \begin_layout Standard
24237 \begin_layout Chapter
24241 \begin_layout Section
24243 \begin_inset LatexCommand index
24244 name "Boxes ! Introduction"
24251 \begin_layout Standard
24252 Boxes are used to format a block of text.
24253 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24255 \begin_inset LatexCommand ref
24256 reference "sec:Minipages"
24260 , to frame texts, see section\InsetSpace ~
24262 \begin_inset LatexCommand ref
24263 reference "sec:Framed-Boxes"
24267 , to prevent words to be hyphenated, see section\InsetSpace ~
24269 \begin_inset LatexCommand ref
24270 reference "sec:Prevent-Hyphenation"
24274 , to align text, see section\InsetSpace ~
24276 \begin_inset LatexCommand ref
24277 reference "sub:Vertical-Alignment"
24281 , or to set the background color of texts, see section\InsetSpace ~
24283 \begin_inset LatexCommand ref
24284 reference "sec:Colored-Boxes"
24291 \begin_layout Standard
24292 Boxes can be inserted with the menu
24294 Insert\SpecialChar \menuseparator
24298 A grey box with the label
24303 \begin_inset Graphics
24304 filename clipart/BoxInsetDefaultQt4.png
24306 scaleBeforeRotation
24310 , will be inserted.
24311 The box type can be specified by right-clicking on the box.
24312 The appearing box dialog offers the
24330 is the default for new boxes and is explained in section\InsetSpace ~
24332 \begin_inset LatexCommand ref
24333 reference "sec:Minipages"
24341 is described in section\InsetSpace ~
24343 \begin_inset LatexCommand ref
24344 reference "sec:Parboxes"
24351 \begin_layout Standard
24352 Boxes aren't numbered and can therefore not be referenced like floats or
24356 \begin_layout Standard
24357 \begin_inset Note Greyedout
24360 \begin_layout Standard
24365 Due to a bug in LyX you have to insert a protected space behind a box when
24366 you want to separate in a line the box from the following text with a space.
24374 \begin_layout Standard
24375 \begin_inset Note Greyedout
24378 \begin_layout Standard
24383 Boxes must not be the item in an
24399 \begin_layout Standard
24400 \begin_inset Note Greyedout
24403 \begin_layout Standard
24408 For an unknown reason you can only set the
24417 when you use a framed box.
24423 type and without frames are explained in section\InsetSpace ~
24425 \begin_inset LatexCommand ref
24426 reference "sec:Prevent-Hyphenation"
24438 \begin_layout Section
24440 \begin_inset LatexCommand label
24441 name "sec:Box-Dialog"
24446 \begin_inset LatexCommand index
24447 name "Boxes ! Box Dialog"
24452 \begin_inset LatexCommand index
24453 name "Boxes ! Alignment"
24460 \begin_layout Standard
24461 In the box dialog you can adjust the box geometry in the fields
24470 The available units for the geometry are explained in Table\InsetSpace ~
24472 \begin_inset LatexCommand ref
24473 reference "tab:Units"
24482 offers the following additional sizes:
24485 \begin_layout Description
24486 Depth This is the plain text
24487 \begin_inset Quotes eld
24491 \begin_inset Quotes erd
24495 It ignores the total depth when there are multiple text lines in the box:
24502 \begin_inset Box Boxed
24511 height_special "depth"
24514 \begin_layout Standard
24516 Box height set to 1\InsetSpace \thinspace{}
24529 \begin_layout Description
24530 Height This is the heigth of the text that is inside the box.
24531 A value of e.\InsetSpace \thinspace{}
24533 2 for this size will set the box heigth to 2 times the text
24535 \begin_inset Box Boxed
24544 height_special "height"
24547 \begin_layout Standard
24549 Box height set to 2\InsetSpace \thinspace{}
24558 \begin_layout Description
24560 Height This is the Height\InsetSpace \thinspace{}
24561 +\InsetSpace \thinspace{}
24563 \begin_inset Box Boxed
24572 height_special "totalheight"
24575 \begin_layout Standard
24577 Box height set to 1\InsetSpace \thinspace{}
24587 \begin_layout Description
24588 Width This set the width of the box as heigth:
24589 \begin_inset Box Boxed
24598 height_special "width"
24601 \begin_layout Standard
24603 Box height set to 1\InsetSpace \thinspace{}
24612 \begin_layout Standard
24613 \begin_inset VSpace bigskip
24616 When you have chosen an
24621 , the vertical box alignment can be:
24624 \begin_layout Description
24625 Top This is an example text line.
24627 \begin_inset Box Boxed
24636 height_special "totalheight"
24639 \begin_layout Standard
24641 This box is top-aligned.
24647 This is an example text line.
24650 \begin_layout Description
24651 Middle This is an example text line.
24653 \begin_inset Box Boxed
24662 height_special "totalheight"
24665 \begin_layout Standard
24667 This box is middle-aligned.
24673 This is an example text line.
24676 \begin_layout Description
24677 Bottom This is an example text line.
24679 \begin_inset Box Boxed
24688 height_special "totalheight"
24691 \begin_layout Standard
24693 This box is bottom-aligned.
24699 This is an example text line.
24702 \begin_layout Standard
24703 The horizontal box alignment can be set via LyX's paragraph dialog when
24704 you set the box into its own paragraph.
24707 \begin_layout Standard
24708 \begin_inset VSpace bigskip
24711 When you have chosen an
24716 , the box content can be vertical aligned to:
24719 \begin_layout Description
24720 top This is an example text line.
24722 \begin_inset Box Boxed
24731 height_special "totalheight"
24734 \begin_layout Standard
24736 This box text is top-aligned.
24742 This is an example text line.
24745 \begin_layout Description
24746 middle This is an example text line.
24748 \begin_inset Box Boxed
24757 height_special "totalheight"
24760 \begin_layout Standard
24762 This box text is middle-aligned.
24768 This is an example text line.
24771 \begin_layout Description
24772 bottom This is an example text line.
24774 \begin_inset Box Boxed
24783 height_special "totalheight"
24786 \begin_layout Standard
24788 This box text is bottom-aligned.
24794 This is an example text line.
24797 \begin_layout Description
24798 stretch This is an example text line.
24800 \begin_inset Box Boxed
24809 height_special "totalheight"
24812 \begin_layout Standard
24817 \begin_layout Standard
24822 \begin_layout Standard
24830 This is an example text line.
24833 \begin_layout Standard
24834 To stretch the box content, it must consist of more than one paragraph.
24835 In the example above every text line is in an own paragraph.
24838 \begin_layout Standard
24839 \begin_inset VSpace bigskip
24842 To align the box content horizontally you can use LyX's paragraph dialog
24843 when you have chosen an
24851 \begin_layout Standard
24853 \begin_inset Box Boxed
24862 height_special "totalheight"
24865 \begin_layout Standard
24870 \begin_layout Standard
24875 \begin_layout Standard
24885 \begin_layout Standard
24886 If you haven't set an
24891 , you can align the box content horizontally in the box dialog.
24894 \begin_layout Standard
24896 \begin_inset Box Boxed
24905 height_special "totalheight"
24908 \begin_layout Standard
24910 This box text is horizontally stretched.
24918 \begin_layout Section
24920 \begin_inset LatexCommand label
24921 name "sec:Framed-Boxes"
24926 \begin_inset LatexCommand index
24927 name "Boxes ! Frames"
24934 \begin_layout Standard
24935 The frame style of the box can be specified in the box-dialog in the drop-down
24941 The following frame types are possible:
24944 \begin_layout Description
24945 Rectangular\InsetSpace ~
24946 box This draws a rectangle frame around the box.
24947 The frame line thickness has the size of
24955 \begin_inset Box Boxed
24964 height_special "totalheight"
24967 \begin_layout Standard
24977 \begin_layout Description
24980 thin This draws an oval frame around the box.
24981 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24984 \begin_inset Box ovalbox
24993 height_special "totalheight"
24996 \begin_layout Standard
25006 \begin_layout Description
25009 thick This draws an oval frame around the box.
25010 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
25013 \begin_inset Box Ovalbox
25022 height_special "totalheight"
25025 \begin_layout Standard
25035 \begin_layout Description
25036 Shadow\InsetSpace ~
25037 box This draws a rectangle frame with a shadow around the box.
25038 The frame line thickness has the size of
25044 , the shadow has a width of 4\InsetSpace \thinspace{}
25047 \begin_inset Box Shadowbox
25056 height_special "totalheight"
25059 \begin_layout Standard
25069 \begin_layout Description
25070 Double\InsetSpace ~
25071 box This draws a double-line rectangle frame around the box.
25072 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
25079 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
25087 The distance between the lines is 1.5\InsetSpace \thinspace{}
25094 \InsetSpace \thinspace{}
25095 +\InsetSpace \thinspace{}
25096 0.5\InsetSpace \thinspace{}
25099 \begin_inset Box Doublebox
25108 height_special "totalheight"
25111 \begin_layout Standard
25121 \begin_layout Standard
25122 \begin_inset VSpace bigskip
25125 LyX's box label will change to the used frame style when you set a frame.
25126 To be able to use the different frame styles, the LaTeX-package
25131 \begin_inset LatexCommand index
25132 name "LaTeX-packages ! fancybox"
25139 \begin_layout Standard
25140 \begin_inset VSpace bigskip
25143 The default value for the size
25149 is 0.4\InsetSpace \thinspace{}
25151 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
25153 2\InsetSpace \thinspace{}
25157 \begin_layout Standard
25167 \begin_layout Standard
25171 \begin_layout Standard
25183 \begin_inset Box Boxed
25192 height_special "totalheight"
25195 \begin_layout Standard
25197 Rectangular box with
25203 \InsetSpace \thinspace{}
25204 =\InsetSpace \thinspace{}
25205 2\InsetSpace \thinspace{}
25215 \begin_layout Standard
25229 \begin_layout Standard
25230 \begin_inset VSpace bigskip
25233 The space between the frame and the box content is for all frame styles
25234 by default 3\InsetSpace \thinspace{}
25236 You can change it by setting the length
25243 For example the command
25246 \begin_layout Standard
25256 \begin_layout Standard
25257 sets the value to 10\InsetSpace \thinspace{}
25258 pt, like for the following box:
25261 \begin_layout Standard
25265 \begin_layout Standard
25277 \begin_inset Box Boxed
25286 height_special "totalheight"
25289 \begin_layout Standard
25291 Rectangular box with
25297 \InsetSpace \thinspace{}
25298 =\InsetSpace \thinspace{}
25299 10\InsetSpace \thinspace{}
25309 \begin_layout Standard
25323 \begin_layout Standard
25324 \begin_inset VSpace bigskip
25327 The diameter of the round corners of the oval boxes can be set with the
25338 \begin_layout Standard
25346 \begin_layout Standard
25347 sets the diameter to 1\InsetSpace \thinspace{}
25352 \begin_layout Standard
25360 \begin_layout Standard
25361 sets the diameter to
25363 num\InsetSpace \thinspace{}
25364 ×\InsetSpace \thinspace{}
25365 minimum(width and heigth of box)
25377 \begin_layout Standard
25381 \begin_layout Standard
25391 \begin_inset Box Ovalbox
25400 height_special "totalheight"
25403 \begin_layout Standard
25411 \InsetSpace \thinspace{}
25412 =\InsetSpace \thinspace{}
25413 1.5\InsetSpace \thinspace{}
25423 \begin_layout Standard
25435 \begin_layout Standard
25436 \begin_inset VSpace bigskip
25439 The size of the shadow can be adjusted by changing the length
25446 It it set to 2\InsetSpace \thinspace{}
25447 pt for the following box by this command:
25450 \begin_layout Standard
25460 \begin_layout Standard
25464 \begin_layout Standard
25476 \begin_inset Box Shadowbox
25485 height_special "totalheight"
25488 \begin_layout Standard
25496 \InsetSpace \thinspace{}
25497 =\InsetSpace \thinspace{}
25498 2\InsetSpace \thinspace{}
25508 \begin_layout Standard
25522 \begin_layout Standard
25523 \begin_inset VSpace bigskip
25526 Changed lengths and widths are valid for all boxes following the commands
25530 \begin_layout Section
25532 \begin_inset LatexCommand label
25533 name "sec:Minipages"
25538 \begin_inset LatexCommand index
25539 name "Boxes ! Minipages"
25546 \begin_layout Standard
25547 Minipages are treated by LaTeX as pages within pages and can therefore for
25548 example have their own footnotes.
25551 \begin_layout Standard
25552 Minipages are useful when you write documents with different languages.
25555 \begin_layout Standard
25556 Below are two example minipages side by side.
25557 Their width is set to 45\InsetSpace \thinspace{}
25558 col% and they are separated by a horizontal fill,
25559 that was inserted via the menu
25561 Insert\SpecialChar \menuseparator
25562 Special\InsetSpace ~
25563 Formatting\SpecialChar \menuseparator
25564 Horizontal\InsetSpace ~
25570 \begin_layout Standard
25571 \begin_inset Box Frameless
25580 height_special "totalheight"
25583 \begin_layout Standard
25586 Dies ist ein deutscher Text.
25587 Dies ist ein deutscher Text.
25588 Dies ist ein deutscher Text.
25589 Dies ist ein deutscher Text.
25590 Dies ist ein deutscher Text.
25591 Dies ist ein deutscher Text.
25592 Dies ist ein deutscher Text.
25593 Dies ist ein deutscher Text.
25594 Dies ist ein deutscher Text.
25595 Dies ist ein deutscher Text.
25596 Dies ist ein deutscher Text.
25597 Dies ist ein deutscher Text.
25598 Dies ist ein deutscher Text
25602 \begin_layout Standard
25605 Dies ist eine deutsche Fußnote.
25611 Dies ist ein deutscher Text.
25612 Dies ist ein deutscher Text.
25620 \begin_inset Box Frameless
25629 height_special "totalheight"
25632 \begin_layout Standard
25633 This is an English Text.
25634 This is an English Text.
25635 This is an English Text.
25636 This is an English Text.
25637 This is an English Text.
25638 This is an English Text.
25639 This is an English Text.
25640 This is an English Text.
25641 This is an English Text.
25642 This is an English Text.
25643 This is an English Text.
25644 This is an English Text.
25645 This is an English Text.
25646 This is an English Text.
25647 This is an English Text.
25648 This is an English Text.
25652 \begin_layout Standard
25653 This is an English footnote.
25658 This is an English Text.
25667 \begin_layout Standard
25668 \begin_inset VSpace bigskip
25671 Another application for minipages are footnotes within tables.
25672 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25673 bottom of the current page.
25674 But when you put the table with the footnote to a minipage, the footnote
25675 will appear at its bottom, numbered with Latin letters.
25676 The footnote number is reset to 1 in every minipage but not outside the
25680 \begin_layout Standard
25681 The footnote of this table doesn't appear:
25682 \begin_inset Tabular
25683 <lyxtabular version="3" rows="3" columns="4">
25685 <column alignment="center" valignment="top" leftline="true" width="0pt">
25686 <column alignment="center" valignment="top" leftline="true" width="0pt">
25687 <column alignment="center" valignment="top" leftline="true" width="0pt">
25688 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25689 <row topline="true">
25690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25693 \begin_layout Standard
25699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25702 \begin_layout Standard
25708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25711 \begin_layout Standard
25716 \begin_layout Standard
25717 This is a footnote within a table.
25727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25730 \begin_layout Standard
25737 <row topline="true">
25738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25741 \begin_layout Standard
25747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25750 \begin_layout Standard
25756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25759 \begin_layout Standard
25765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25768 \begin_layout Standard
25775 <row topline="true" bottomline="true">
25776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25779 \begin_layout Standard
25785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25788 \begin_layout Standard
25794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25797 \begin_layout Standard
25803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25806 \begin_layout Standard
25820 \begin_layout Standard
25822 \begin_inset Box Frameless
25831 height_special "totalheight"
25834 \begin_layout Standard
25836 \begin_inset Tabular
25837 <lyxtabular version="3" rows="3" columns="4">
25839 <column alignment="center" valignment="top" leftline="true" width="0pt">
25840 <column alignment="center" valignment="top" leftline="true" width="0pt">
25841 <column alignment="center" valignment="top" leftline="true" width="0pt">
25842 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25843 <row topline="true">
25844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25847 \begin_layout Standard
25853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25856 \begin_layout Standard
25862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25865 \begin_layout Standard
25870 \begin_layout Standard
25871 This is a footnote within a table.
25881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25884 \begin_layout Standard
25891 <row topline="true">
25892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25895 \begin_layout Standard
25901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25904 \begin_layout Standard
25910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25913 \begin_layout Standard
25919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25922 \begin_layout Standard
25929 <row topline="true" bottomline="true">
25930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25933 \begin_layout Standard
25939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25942 \begin_layout Standard
25948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25951 \begin_layout Standard
25957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25960 \begin_layout Standard
25979 \begin_layout Standard
25980 \begin_inset VSpace bigskip
25983 The document-wide paragraph settings are ignored within minipages.
25984 That means that there will be no space between paragraphs in minipages
25985 although you set it to e.\InsetSpace \thinspace{}
25991 in the document settings.
25994 \begin_layout Standard
25995 Minipages can also be used to set a background color for text parts, see
25996 section\InsetSpace ~
25998 \begin_inset LatexCommand ref
25999 reference "sub:Color-for-Paragraphs"
26006 \begin_layout Standard
26007 \begin_inset Note Greyedout
26010 \begin_layout Standard
26015 You cannot have floats or margin notes inside minipages but minipages can
26016 be used inside tables, floats, and other boxes.
26024 \begin_layout Section
26026 \begin_inset LatexCommand label
26027 name "sec:Parboxes"
26032 \begin_inset LatexCommand index
26033 name "Boxes ! Parboxes"
26040 \begin_layout Standard
26041 Parboxes are very similar to minipages with the difference that they cannot
26043 The main difference to minipages is that minipages are in contrary to parboxes
26044 no real boxes but LaTeX-environments.
26047 \begin_layout Standard
26049 \begin_inset Box Frameless
26058 height_special "totalheight"
26061 \begin_layout Standard
26062 This a text within a parbox.
26063 This a text within a parbox.
26066 \begin_layout Standard
26067 This footnote won't appear:
26071 \begin_layout Standard
26072 This footnote is inside a parbox and will therefore not appear.
26085 \begin_layout Section
26086 Boxes for Words and Characters
26087 \begin_inset LatexCommand index
26088 name "Boxes ! for Characters"
26095 \begin_layout Subsection
26096 Prevent Hyphenation
26097 \begin_inset LatexCommand label
26098 name "sec:Prevent-Hyphenation"
26103 \begin_inset LatexCommand index
26104 name "Boxes ! to Prevent Hyphenation"
26111 \begin_layout Standard
26112 You can use a special kind of boxes to prevent words or text to be hyphenated.
26115 e is an example text:
26118 \begin_layout Standard
26119 This line is an example to show how you can prevent the hyphenation of
26120 \begin_inset Quotes eld
26124 \begin_inset Quotes erd
26130 \begin_layout Standard
26131 To prevent the hyphenation of the word
26132 \begin_inset Quotes eld
26136 \begin_inset Quotes erd
26142 \begin_layout Standard
26150 \begin_layout Standard
26151 in ERT before the word.
26152 Behind the word insert a closing brace
26153 \begin_inset Quotes eld
26161 \begin_inset Quotes erd
26168 \begin_layout Standard
26180 \begin_layout Standard
26181 This is the result:
26184 \begin_layout Standard
26185 This line is an example to show how you can prevent the hyphenation of
26189 \begin_layout Standard
26199 \begin_inset Quotes eld
26203 \begin_inset Quotes erd
26210 \begin_layout Standard
26220 \begin_layout Standard
26221 You can alternatively set the command
26222 \begin_inset Quotes eld
26232 \begin_inset Quotes grd
26235 as ERT directly before the word:
26238 \begin_layout Standard
26239 This line is an example to show how you can prevent the hyphenation of
26240 \begin_inset Quotes eld
26247 \begin_layout Standard
26257 \begin_inset Quotes erd
26263 \begin_layout Standard
26264 Of course the word now protrudes over the side margin.
26265 To avoid this, add via the menu
26267 Insert\SpecialChar \menuseparator
26268 Special\InsetSpace ~
26269 Formatting\SpecialChar \menuseparator
26277 ) a line break before the word:
26280 \begin_layout Standard
26281 This line is an example to show how you can prevent the hyphenation of
26287 \begin_layout Standard
26297 \begin_inset Quotes eld
26301 \begin_inset Quotes erd
26308 \begin_layout Standard
26318 \begin_layout Subsection
26320 \begin_inset LatexCommand label
26321 name "sub:Vertical-Alignment"
26326 \begin_inset LatexCommand index
26327 name "Boxes ! for Vertical Alignment"
26332 \begin_inset LatexCommand index
26333 name "Boxes ! Raiseboxes"
26340 \begin_layout Standard
26341 With the help of the command
26347 you can align words, characters or other boxes vertically to the surrounding
26355 is used with the following scheme:
26358 \begin_layout Standard
26363 raisebox{lift}[height][depth]{box content}
26366 \begin_layout Standard
26367 The lift can be a positive value to raise the box or a negative value to
26371 \begin_layout Standard
26372 To align for example the word
26373 \begin_inset Quotes eld
26377 \begin_inset Quotes erd
26380 so that the bottom of the
26381 \begin_inset Quotes eld
26385 \begin_inset Quotes erd
26389 \begin_inset Quotes eld
26393 \begin_inset Quotes erd
26396 is at the baseline, insert the command
26399 \begin_layout Standard
26409 \begin_layout Standard
26410 in ERT before the word.
26411 Behind the word insert a closing brace
26412 \begin_inset Quotes eld
26420 \begin_inset Quotes erd
26425 This is the result:
26428 \begin_layout Standard
26429 This is a text line with the word
26433 \begin_layout Standard
26445 \begin_inset Quotes eld
26449 \begin_inset Quotes erd
26456 \begin_layout Standard
26466 \begin_layout Standard
26467 \begin_inset VSpace bigskip
26470 When you raise or lower characters in a line, the line distance will be
26474 \begin_layout Standard
26475 This is a text line with the word
26479 \begin_layout Standard
26491 \begin_inset Quotes eld
26495 \begin_inset Quotes erd
26502 \begin_layout Standard
26511 This is a text line with the word
26515 \begin_layout Standard
26525 \begin_inset Quotes eld
26529 \begin_inset Quotes erd
26536 \begin_layout Standard
26546 \begin_layout Standard
26547 If you want to prevent this for a certain reason, set the box height to
26552 \begin_layout Standard
26562 \begin_layout Standard
26563 This is a text line with the word
26567 \begin_layout Standard
26579 \begin_inset Quotes eld
26583 \begin_inset Quotes erd
26590 \begin_layout Standard
26599 This is a text line with the word
26603 \begin_layout Standard
26607 raisebox{0.5cm}[0pt]{
26613 \begin_inset Quotes eld
26617 \begin_inset Quotes erd
26624 \begin_layout Standard
26634 \begin_layout Section
26636 \begin_inset LatexCommand label
26637 name "sec:Colored-Boxes"
26642 \begin_inset LatexCommand index
26643 name "Boxes ! Color"
26650 \begin_layout Subsection
26652 \begin_inset LatexCommand index
26653 name "Color ! for Text"
26660 \begin_layout Standard
26661 To color the background of text the text must be put into a so called
26662 \begin_inset Quotes eld
26666 \begin_inset Quotes erd
26670 This requires that the LaTeX-package
26675 \begin_inset LatexCommand index
26676 name "LaTeX-packages ! color"
26680 is loaded in the document preamble with the command
26683 \begin_layout Standard
26688 @ifundef\SpecialChar \textcompwordmark{}
26695 \begin_layout Standard
26706 usepackage{color}}{}
26709 \begin_layout Standard
26714 will be loaded automatically by LyX when you color text
26718 \begin_layout Standard
26719 To avoid that it is loaded twice the command
26723 @ifundef\SpecialChar \textcompwordmark{}
26734 \begin_layout Standard
26735 \begin_inset VSpace medskip
26738 Colorboxes are created with the command
26745 This will be used with the following scheme:
26748 \begin_layout Standard
26753 colorbox{color}{box content}
26756 \begin_layout Standard
26757 The box content can also be a box and colorboxes can also be within other
26761 \begin_layout Standard
26762 The following colors are predefined:
26801 You can also define your own color as described in section\InsetSpace ~
26803 \begin_inset LatexCommand ref
26804 reference "sec:Colored-Tables"
26811 \begin_layout Standard
26812 To have e.\InsetSpace \thinspace{}
26814 a red background for a word, insert the command
26817 \begin_layout Standard
26825 \begin_layout Standard
26826 before the word in ERT.
26827 Behind the word insert a closing brace
26828 \begin_inset Quotes eld
26836 \begin_inset Quotes erd
26841 This is the result:
26844 \begin_layout Standard
26845 This is a line where the word
26849 \begin_layout Standard
26859 \begin_inset Quotes eld
26863 \begin_inset Quotes erd
26870 \begin_layout Standard
26877 has a red background.
26880 \begin_layout Standard
26881 \begin_inset VSpace bigskip
26884 If you would have the box frame in a different color, you can use the command
26891 with the following scheme:
26894 \begin_layout Standard
26899 fcolorbox{frame color}{box color}{box content}
26902 \begin_layout Standard
26916 The frame thickness and the space between the frame and the box content
26917 can be adjusted with the lengths
26929 , respectively, as described in section\InsetSpace ~
26931 \begin_inset LatexCommand ref
26932 reference "sec:Framed-Boxes"
26939 \begin_layout Standard
26940 For the following example the command
26943 \begin_layout Standard
26948 fcolorbox{cyan}{magenta}{
26951 \begin_layout Standard
26955 \begin_layout Standard
26956 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26963 \begin_layout Standard
26978 \begin_layout Standard
26982 fcolorbox{cyan}{magenta}{
26987 This is text within a colored, framed box.
26991 \begin_layout Standard
27001 \begin_layout Standard
27002 \begin_inset VSpace bigskip
27005 Of course you can also have colored text inside a colorbox:
27011 \begin_layout Standard
27015 fcolorbox{cyan}{magenta}{
27022 This is colored text within a colored, framed box.
27028 \begin_layout Standard
27039 \begin_layout Standard
27053 \begin_layout Standard
27056 \begin_inset VSpace medskip
27062 \begin_layout Standard
27063 \begin_inset Note Greyedout
27066 \begin_layout Standard
27071 Text in colorboxes cannot have line breaks.
27072 To color multiple text lines or paragraphs, use a box inside a colorbox
27073 as described in the following.
27081 \begin_layout Subsection
27082 Color for Paragraphs
27083 \begin_inset LatexCommand label
27084 name "sub:Color-for-Paragraphs"
27089 \begin_inset LatexCommand index
27090 name "Color ! for Paragraphs"
27097 \begin_layout Standard
27098 To set the background color for more than one text line, put the text into
27100 Before the minipage insert the
27109 \begin_layout Standard
27117 \begin_layout Standard
27119 Behind the minipage insert a closing brace
27120 \begin_inset Quotes eld
27128 \begin_inset Quotes erd
27134 \begin_layout Standard
27138 \begin_layout Standard
27142 colorbox{lightgrey}{
27148 \begin_inset Box Frameless
27157 height_special "totalheight"
27160 \begin_layout Standard
27161 This is text with background color.
27162 This is text with background color.
27165 \begin_layout Standard
27166 \begin_inset VSpace defskip
27169 The text can have footnotes
27173 \begin_layout Standard
27174 Another example footnote
27179 and can include tables and figures.
27182 \begin_layout Standard
27184 \begin_inset Tabular
27185 <lyxtabular version="3" rows="3" columns="3">
27187 <column alignment="center" valignment="top" leftline="true" width="0">
27188 <column alignment="center" valignment="top" leftline="true" width="0">
27189 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27190 <row topline="true">
27191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27194 \begin_layout Standard
27200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27203 \begin_layout Standard
27209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27212 \begin_layout Standard
27219 <row topline="true">
27220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27223 \begin_layout Standard
27229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27232 \begin_layout Standard
27234 \begin_inset Quotes erd
27242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27245 \begin_layout Standard
27252 <row topline="true" bottomline="true">
27253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27256 \begin_layout Standard
27262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27265 \begin_layout Standard
27271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27274 \begin_layout Standard
27294 \begin_layout Standard
27304 \begin_layout Section
27305 URLs (Uniform Resource Locators)
27306 \begin_inset LatexCommand index
27314 \begin_layout Standard
27315 Links to web pages or email addresses can be inserted via the menu
27317 Insert\SpecialChar \menuseparator
27321 The appearing URL dialog has two fields; the
27329 field for the URL description, which will be typeset as plain text immediately
27333 \begin_layout Standard
27334 Here is an example URL:
27335 \begin_inset LatexCommand url
27336 name "LyX's homepage"
27337 target "http://www.lyx.org"
27344 \begin_layout Standard
27347 Generate\InsetSpace ~
27350 in the URL dialog does nothing.
27351 This relict will be removed in the next LyX-version.
27354 \begin_layout Standard
27355 You cannot change the style of the link text.
27360 field will have the default text style of the document while the text of
27365 field will have the style
27366 \begin_inset Quotes eld
27374 \begin_inset Quotes erd
27380 \begin_layout Standard
27381 When you use the LaTeX-package
27386 \begin_inset LatexCommand index
27387 name "LaTeX-packages ! hyperref"
27391 to link cross-references in the output, URLs will automatically become
27392 clickable hyperlinks in DVI and PDF-output.
27395 \begin_layout Standard
27396 \begin_inset Note Greyedout
27399 \begin_layout Standard
27404 When you use the following characters: "%", "#", "^", you have to write
27405 them with a preceding backslash, e.\InsetSpace \thinspace{}
27408 \begin_inset Quotes eld
27414 \begin_inset Quotes erd
27418 URLs must not end with a backslash.
27426 \begin_layout Standard
27427 \begin_inset VSpace bigskip
27430 To create real hyperlinks without the force to write the link location to
27431 the text, you can use the command
27434 \begin_layout Standard
27439 href{link location}{link text}
27442 \begin_layout Standard
27444 To get for example a link to LyX's web page, write the command
27447 \begin_layout Standard
27452 href{http://www.lyx.org}{
27455 \begin_layout Standard
27457 Insert after the command the link text
27458 \begin_inset Quotes eld
27462 \begin_inset Quotes erd
27465 as normal text followed by a closing brace
27466 \begin_inset Quotes eld
27474 \begin_inset Quotes erd
27478 This is the result:
27482 \begin_layout Standard
27486 href{http://www.lyx.org}{
27495 \begin_layout Standard
27505 \begin_layout Standard
27506 To link to email addresses, add the prefix
27507 \begin_inset Quotes eld
27515 \begin_inset Quotes erd
27518 to the link location:
27524 \begin_layout Standard
27528 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27533 lyx-docs mailing list
27537 \begin_layout Standard
27547 \begin_layout Standard
27554 instead of LyX's URL box has the advantage that you can specify the text
27555 style of the link text like for all other text parts.
27556 You can then set hyphenation points and forced linebreaks to have long
27557 link text broken at the page margin.
27558 You are furthermore able to change the text style for all URLs in your
27559 document with an option in
27563 's load command and the restrictions mentioned above doesn't apply for
27572 \begin_layout Chapter
27574 \begin_inset LatexCommand index
27575 name "External Stuff"
27582 \begin_layout Standard
27585 Insert\SpecialChar \menuseparator
27588 you can insert external material to your document.
27592 \begin_layout Description
27594 Document Another LyX document; its content is directly inserted to your
27598 \begin_layout Description
27600 Text A text document; every of its text lines is inserted to your document
27604 \begin_layout Description
27608 Lines A text document; its text lines are inserted as they
27610 Empty text lines creates a new paragraph in your document.
27613 \begin_layout Description
27614 External\InsetSpace ~
27615 Material Files in various formats.
27618 \begin_layout Description
27620 Document LyX or LaTeX-documents.
27623 \begin_layout Section
27625 \begin_inset LatexCommand index
27626 name "External Stuff ! External Material"
27633 \begin_layout Standard
27634 The external material feature allows you to insert files to your document
27635 without converting them previously to a format that can be read by the
27636 document output format because LyX takes care of needed conversions.
27637 This is similar to images that can be inserted in various image formats
27641 \begin_layout Standard
27642 External material can be inserted via the
27646 dialog that is accessible with the menu
27648 Insert\SpecialChar \menuseparator
27649 File\SpecialChar \menuseparator
27650 External\InsetSpace ~
27654 Currently the following file types (
27661 \begin_layout Description
27662 ChessDiagram This template supports chess position diagrams made with the
27667 \begin_layout Standard
27671 href{http://en.wikipedia.org/wiki/XBoard}{
27684 \begin_layout Standard
27694 \begin_layout Description
27695 Date This inserts the date in the form
27700 This is a date inserted as external material:
27701 \begin_inset External
27709 The date is not shown within LyX, only in the output.
27710 There are two other methods of inserting a date: Via menu
27712 Insert\SpecialChar \menuseparator
27715 and with the LaTeX command
27722 The different methods are compared in Table\InsetSpace ~
27724 \begin_inset LatexCommand ref
27725 reference "tab:Comparison-of-the"
27732 \begin_layout Description
27733 LilyPond This template is used for music notation typeset with the program
27737 \begin_layout Standard
27750 \begin_layout Standard
27754 href{http://en.wikipedia.org/wiki/LilyPond}{
27767 \begin_layout Standard
27775 \begin_inset Note Note
27778 \begin_layout Standard
27785 breaks the line while the remaining text in the line is stretched to the
27794 \begin_layout Description
27795 RasterImage This can be used for bitmap images.
27796 Nearly all popular image formats are supported.
27797 The image can be treated in the
27801 dialog like the images that are usually included via the
27805 dialog as described in section\InsetSpace ~
27807 \begin_inset LatexCommand ref
27808 reference "sec:Graphics-Dialog"
27813 The difference is that only raster images are allowed, that means that
27814 PDF and EPS-images are not supported.
27817 \begin_layout Description
27818 XFig This template supports images created with the program
27822 \begin_layout Standard
27826 href{http://en.wikipedia.org/wiki/Xfig}{
27839 \begin_layout Standard
27849 \begin_layout Standard
27850 \begin_inset Float table
27856 \begin_layout Standard
27857 \begin_inset Caption
27859 \begin_layout Standard
27860 \begin_inset LatexCommand label
27861 name "tab:Comparison-of-the"
27865 Comparison of the date input methods.
27873 \begin_layout Standard
27875 \begin_inset Tabular
27876 <lyxtabular version="3" rows="4" columns="4">
27878 <column alignment="center" valignment="top" leftline="true" width="0">
27879 <column alignment="center" valignment="top" leftline="true" width="0">
27880 <column alignment="center" valignment="top" leftline="true" width="0">
27881 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27882 <row topline="true">
27883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27886 \begin_layout Standard
27892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27895 \begin_layout Standard
27898 External Material\SpecialChar \menuseparator
27904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27907 \begin_layout Standard
27910 Insert\SpecialChar \menuseparator
27916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27919 \begin_layout Standard
27930 <row topline="true">
27931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27934 \begin_layout Standard
27940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27943 \begin_layout Standard
27949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27952 \begin_layout Standard
27958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27961 \begin_layout Standard
27968 <row topline="true">
27969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27972 \begin_layout Standard
27978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27981 \begin_layout Standard
27987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27990 \begin_layout Standard
27996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27999 \begin_layout Standard
28006 <row topline="true" bottomline="true">
28007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28010 \begin_layout Standard
28016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28019 \begin_layout Standard
28025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28028 \begin_layout Standard
28034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28037 \begin_layout Standard
28056 \begin_layout Standard
28057 When you use the option
28069 dialog, only the path to the inserted file is shown in the output.
28072 material is displayed in LyX either as box like this:
28073 \begin_inset Graphics
28074 filename clipart/ExternalMaterialQt4.png
28076 scaleBeforeRotation
28080 or as image, depending on the setting in the
28092 \begin_layout Standard
28099 manual explains how you can define your own templates.
28102 \begin_layout Section
28104 \begin_inset LatexCommand label
28105 name "sec:Child-Documents"
28110 \begin_inset LatexCommand index
28111 name "External Stuff ! Child Documents"
28116 \begin_inset LatexCommand index
28117 name "Files ! Include"
28124 \begin_layout Standard
28125 Child documents are used when you have a long document consisting of several
28126 larger parts or sections.
28127 For maintenance it is often useful and sometimes even required to split
28128 the document in several files that can be revised separately.
28129 The different documents are then the so called child documents and a master
28130 document connects them to print the full document or parts of it.
28133 \begin_layout Standard
28134 Included documents are displayed in LyX as a box like this:
28135 \begin_inset Graphics
28136 filename clipart/ChildDocumentQt4.png
28138 scaleBeforeRotation
28142 To include child documents to a master document use the menu
28144 Insert\SpecialChar \menuseparator
28145 File\SpecialChar \menuseparator
28150 A dialog pops up where you can choose between four include methods:
28153 \begin_layout Description
28154 Include You can include LyX and LaTeX-documents.
28163 dialog, the included documents will be opened in LyX in a new file tab
28164 so that you can modify it.
28169 \begin_layout Standard
28170 Here is a child document inserted using
28175 \begin_inset Include \include{DummyDocument1.lyx}
28183 \begin_layout Standard
28184 The section numbering includes the sections of the included files in the
28185 order they are inserted in the master document.
28186 The included example document has for example a subsection that is numbered
28187 as subsection of this section.
28188 Labels of included documents can be referenced: Subsection\InsetSpace ~
28190 \begin_inset LatexCommand ref
28191 reference "sub:External-Subsection-1"
28198 \begin_layout Standard
28199 The preamble of the child document is ignored, only the preamble of the
28200 master document is used.
28201 Included documents are inserted starting on a new page and end with a pagebreak.
28204 \begin_layout Standard
28205 With the LaTeX-command
28211 you can specify which included child documents are processed when the output
28213 This is useful when you are perhaps only working on a certain chapter of
28214 your large document as this saves compiling time.
28221 is inserted to the master document preamble.
28222 It takes a comma-separated list of the filenames as argument, e.g.
28225 \begin_layout Standard
28230 includeonly{chapter1,chapter5}
28233 \begin_layout Standard
28234 will only process the included files named
28235 \begin_inset Quotes eld
28239 \begin_inset Quotes erd
28243 \begin_inset Quotes eld
28247 \begin_inset Quotes erd
28251 \begin_inset Quotes eld
28255 \begin_inset Quotes erd
28261 \begin_layout Standard
28262 \begin_inset Note Greyedout
28265 \begin_layout Standard
28270 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
28271 w the document in case that the child document uses another document class
28272 than the master document as this will lead to unexpected outputs.
28280 \begin_layout Description
28281 Input This method is very similar to the Include method.
28282 The differences are:
28286 \begin_layout Itemize
28287 Input files don't start with a new page and don't end with a pagebreak.
28290 \begin_layout Itemize
28291 Input files can be previewed in LyX when
28293 Instant\InsetSpace ~
28296 is enabled in LyX's preferences under
28300 feel\SpecialChar \menuseparator
28306 \begin_layout Itemize
28317 \begin_layout Standard
28318 Here is a child document inserted using
28323 \begin_inset Include \input{DummyDocument2.lyx}
28331 \begin_layout Description
28332 Verbatim With this method every text file can be included.
28333 The file is shown in the output with its source code, no command used in
28334 the text is invoked.
28335 You can use the option
28337 Mark spaces in output
28339 that displays the character
28340 \begin_inset Quotes eld
28347 \begin_layout Standard
28357 \begin_inset Quotes erd
28360 for every space character in the source code.
28361 The difference to the method via the menu
28363 Insert\SpecialChar \menuseparator
28364 File\SpecialChar \menuseparator
28368 is that the document content is not shown in LyX.
28371 \begin_layout Standard
28372 Here is a child document inserted as Verbatim:
28373 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
28379 \begin_inset VSpace bigskip
28382 Here is a child document inserted as Verbatim using the
28384 Mark spaces in output
28387 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
28395 \begin_layout Standard
28396 \begin_inset VSpace bigskip
28402 \begin_layout Standard
28403 \begin_inset Note Greyedout
28406 \begin_layout Standard
28411 As you can see in the examples above, the text of the documents included
28416 is not broken at the end of the document lines.
28424 \begin_layout Description
28425 Listings This type is described in chapter\InsetSpace ~
28427 \begin_inset LatexCommand ref
28428 reference "cha:Program-Code-Listings"
28435 \begin_layout Standard
28436 \begin_inset Note Greyedout
28439 \begin_layout Standard
28444 Including the same document twice in a document using different methods
28445 could cause LaTeX-problems.
28453 \begin_layout Chapter
28454 Program Code Listings
28455 \begin_inset LatexCommand label
28456 name "cha:Program-Code-Listings"
28461 \begin_inset LatexCommand index
28467 \begin_inset LatexCommand index
28468 name "Program Code"
28473 \begin_inset LatexCommand index
28474 name "Floats ! Listings"
28481 \begin_layout Standard
28482 To include and typeset program code you can use the
28486 inset that can be inserted via the menu
28488 Insert\SpecialChar \menuseparator
28497 \begin_inset LatexCommand index
28498 name "LaTeX-packages ! listings"
28502 provides a powerful and flexible way to insert program source code to your
28506 \begin_layout Standard
28507 When right-clicking on a listings inset a dialog pops up where you can set
28508 the listings format.
28511 \begin_layout Standard
28512 By default, a listing starts a new paragraph in the output.
28513 The placement option
28515 Inline\InsetSpace ~
28518 prints the listing inline like this:
28519 \begin_inset listings
28520 lstparams "language={C++}"
28524 \begin_layout Standard
28537 creates a listings float where you can specify the placement options
28538 \begin_inset Quotes eld
28546 \begin_inset Quotes erd
28550 \begin_inset Quotes eld
28558 \begin_inset Quotes erd
28562 \begin_inset Quotes eld
28570 \begin_inset Quotes erd
28574 \begin_inset Quotes eld
28582 \begin_inset Quotes erd
28585 corresponding to the float placement options described in section\InsetSpace ~
28587 \begin_inset LatexCommand ref
28588 reference "sec:Float-Placement"
28593 The placement options can be mixed and are inserted without any separation,
28594 e.\InsetSpace \thinspace{}
28597 \begin_inset Quotes eld
28605 \begin_inset Quotes erd
28610 \begin_inset Quotes eld
28614 \begin_inset Quotes erd
28617 has sometimes no effect, but you don't need to use the
28621 option in this case as also non-float listings can have captions and be
28625 \begin_layout Standard
28626 You can add captions to listings with the menu
28628 Insert\SpecialChar \menuseparator
28632 Listings can be referenced like floats: Listing\InsetSpace ~
28634 \begin_inset LatexCommand ref
28635 reference "lst:Example-Listing"
28642 \begin_layout Standard
28643 \begin_inset listings
28644 lstparams "language=Python"
28648 \begin_layout Standard
28650 \begin_inset Caption
28652 \begin_layout Standard
28653 \begin_inset LatexCommand label
28654 name "lst:Example-Listing"
28658 Example Listing float
28663 # Example listing float
28666 \begin_layout Standard
28671 \begin_layout Standard
28673 'this is a python function'
28676 \begin_layout Standard
28686 \begin_layout Standard
28687 When you have set a programming language in the listings dialog, the keywords
28688 of this language will be recognized and specially typeset in the output.
28689 In the example listings the Python keyword
28690 \begin_inset Quotes eld
28694 \begin_inset Quotes erd
28697 is recognized and printed bold in the output.
28700 \begin_layout Standard
28701 \begin_inset Note Greyedout
28704 \begin_layout Standard
28709 If you don't get bold keywords when using typewriter fonts, your typewriter
28710 font probably doesn't provide a bold shape.
28711 In this case select a different one in the menu
28713 Document\SpecialChar \menuseparator
28714 Settings\SpecialChar \menuseparator
28726 provide bold shapes.)
28734 \begin_layout Standard
28740 of the listings dialog you can specify the line numbering style.
28741 You can insert a number to specify which lines are numbered to the field
28747 When you insert e.g.
28749 \begin_inset Quotes eld
28753 \begin_inset Quotes erd
28756 , only every 3rd line will be numbered.
28759 \begin_layout Standard
28760 You can furthermore specify a range of lines, only these will then appear
28764 Extended\InsetSpace ~
28767 should be used when you use national characters like the German umlauts
28770 Here is an example listing with left line numbering, step
28772 \begin_inset Quotes eld
28776 \begin_inset Quotes erd
28780 \begin_inset Quotes eld
28784 \begin_inset Quotes erd
28788 \begin_inset Quotes eld
28791 Extended\InsetSpace ~
28793 \begin_inset Quotes erd
28797 \begin_inset Quotes eld
28803 \begin_inset Quotes erd
28806 , range lines 3\InsetSpace \thinspace{}
28807 -\InsetSpace \thinspace{}
28811 \begin_layout Standard
28812 \begin_inset listings
28813 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28817 \begin_layout Standard
28822 \begin_layout Standard
28824 'this is a python function'
28827 \begin_layout Standard
28832 \begin_layout Standard
28837 \begin_layout Standard
28839 'This is a German word: Tschüß'
28842 \begin_layout Standard
28847 \begin_layout Standard
28852 \begin_layout Standard
28854 'this is a python function'
28857 \begin_layout Standard
28867 \begin_layout Standard
28868 \begin_inset Note Greyedout
28871 \begin_layout Standard
28876 Due to a bug in the
28880 package the line numbering is shifted by a line by every previous listing.
28881 That's the reason why the lines 2 and 5 are numbered in the above listing
28882 and not the lines 3 and 6.
28890 \begin_layout Standard
28891 \begin_inset VSpace bigskip
28897 \begin_layout Standard
28898 It is also possible to print lines from a file as listing.
28899 To do this, use the menu
28901 Insert\SpecialChar \menuseparator
28902 File\SpecialChar \menuseparator
28905 and choose the type
28913 \begin_layout Standard
28914 The other child document types are described in section\InsetSpace ~
28916 \begin_inset LatexCommand ref
28917 reference "sec:Child-Documents"
28926 In the child document dialog you can specify the listing parameters in
28928 To show a list of all available parameters, type in a question mark
28929 \begin_inset Quotes eld
28933 \begin_inset Quotes erd
28939 \begin_layout Standard
28940 To reference child document listings, write a label text into the corresponding
28941 field of the child document dialog.
28942 The label can then be referenced using the menu
28944 Insert\SpecialChar \menuseparator
28950 \begin_layout Standard
28951 Listing\InsetSpace ~
28953 \begin_inset LatexCommand ref
28954 reference "lst:file-listing"
28958 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28959 -\InsetSpace \thinspace{}
28964 \begin_layout Standard
28965 \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]
28973 \begin_layout Standard
28974 \begin_inset VSpace bigskip
28980 \begin_layout Standard
28981 Global listings settings can be set in the
28983 Document\SpecialChar \menuseparator
28984 Settings\SpecialChar \menuseparator
28988 To get there a list of available options, type in a question mark
28989 \begin_inset Quotes eld
28993 \begin_inset Quotes erd
28998 Listings\InsetSpace ~
29004 \begin_layout Standard
29005 For more information about the
29009 package, we refer to its documentation
29010 \begin_inset LatexCommand cite
29018 \begin_layout Standard
29024 \begin_layout Chapter
29026 Units available in LyX
29027 \begin_inset LatexCommand index
29033 \begin_inset LatexCommand label
29034 name "cha:Units-available-in"
29041 \begin_layout Standard
29042 To understand the units described in this documentation, Table\InsetSpace ~
29044 \begin_inset LatexCommand ref
29045 reference "tab:Units"
29049 explains all units available in LyX.
29052 \begin_layout Standard
29053 \begin_inset Float table
29059 \begin_layout Standard
29060 \begin_inset Caption
29062 \begin_layout Standard
29063 \begin_inset LatexCommand label
29076 \begin_layout Standard
29077 \begin_inset VSpace medskip
29083 \begin_layout Standard
29085 \begin_inset Tabular
29086 <lyxtabular version="3" rows="20" columns="2">
29088 <column alignment="center" valignment="top" leftline="true" width="0">
29089 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
29090 <row topline="true" bottomline="true">
29091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29094 \begin_layout Standard
29100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29103 \begin_layout Standard
29110 <row topline="true">
29111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29114 \begin_layout Standard
29120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29123 \begin_layout Standard
29130 <row topline="true">
29131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29134 \begin_layout Standard
29140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29143 \begin_layout Standard
29150 <row topline="true">
29151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29154 \begin_layout Standard
29160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29163 \begin_layout Standard
29170 <row topline="true">
29171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29174 \begin_layout Standard
29180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29183 \begin_layout Standard
29184 point (72.27\InsetSpace \thinspace{}
29185 pt = 1\InsetSpace \thinspace{}
29192 <row topline="true">
29193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29196 \begin_layout Standard
29202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29205 \begin_layout Standard
29206 pica (1\InsetSpace \thinspace{}
29207 pc = 12\InsetSpace \thinspace{}
29214 <row topline="true">
29215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29218 \begin_layout Standard
29224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29227 \begin_layout Standard
29228 scaled point (65536\InsetSpace \thinspace{}
29229 sp = 1\InsetSpace \thinspace{}
29236 <row topline="true">
29237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29240 \begin_layout Standard
29246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29249 \begin_layout Standard
29250 big point (72\InsetSpace \thinspace{}
29251 bp = 1\InsetSpace \thinspace{}
29258 <row topline="true">
29259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29262 \begin_layout Standard
29268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29271 \begin_layout Standard
29272 didot (1\InsetSpace \thinspace{}
29274 \begin_inset Formula $\approx$
29277 0.376\InsetSpace \thinspace{}
29284 <row topline="true">
29285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29288 \begin_layout Standard
29294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29297 \begin_layout Standard
29298 cicero (1\InsetSpace \thinspace{}
29299 cc = 12\InsetSpace \thinspace{}
29306 <row topline="true">
29307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29310 \begin_layout Standard
29316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29319 \begin_layout Standard
29320 % of original image width
29326 <row topline="true">
29327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29330 \begin_layout Standard
29336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29339 \begin_layout Standard
29346 <row topline="true">
29347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29350 \begin_layout Standard
29356 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29359 \begin_layout Standard
29366 <row topline="true">
29367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29370 \begin_layout Standard
29376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29379 \begin_layout Standard
29386 <row topline="true">
29387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29390 \begin_layout Standard
29396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29399 \begin_layout Standard
29406 <row topline="true">
29407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29410 \begin_layout Standard
29416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29419 \begin_layout Standard
29426 <row topline="true">
29427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29430 \begin_layout Standard
29436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29439 \begin_layout Standard
29446 <row topline="true">
29447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29450 \begin_layout Standard
29456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29459 \begin_layout Standard
29470 <row topline="true">
29471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29474 \begin_layout Standard
29480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29483 \begin_layout Standard
29494 <row topline="true" bottomline="true">
29495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29498 \begin_layout Standard
29504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29507 \begin_layout Standard
29508 math unit (1\InsetSpace \thinspace{}
29509 mu = 1/18\InsetSpace \thinspace{}
29528 \begin_layout Chapter
29529 Output File Formats with Graphics
29530 \begin_inset LatexCommand label
29531 name "cha:Output-File-Formats"
29538 \begin_layout Section
29540 \begin_inset LatexCommand index
29541 name "File Formats ! DVI"
29546 \begin_inset LatexCommand index
29547 name "DVI|see{File Formats}"
29554 \begin_layout Standard
29555 This file type has the extension
29556 \begin_inset Quotes eld
29564 \begin_inset Quotes erd
29569 \begin_inset Quotes eld
29573 \begin_inset Quotes erd
29576 (DVI), because it is completely portable; you can move them from one machine
29577 to another without needing to do any sort of conversion.
29578 At the time when this file-format was developed, this was no matter of
29580 DVIs are used for quick previews and as pre-stage for other output formats,
29584 \begin_layout Standard
29585 \begin_inset Note Greyedout
29588 \begin_layout Standard
29593 DVI-files doesn't contain images, they will only be a linked.
29598 So don't forget this, if you move your
29602 file to another computer.
29603 This property can also slow down your computer when you view the DVI.
29604 Because the DVI-viewer has to convert the image in the background to make
29605 it visible when you scroll in the DVI.
29606 So we recommend to use PDF for files with many images.
29609 \begin_layout Standard
29610 You can export your document to DVI by using the menu
29612 File\SpecialChar \menuseparator
29613 Export\SpecialChar \menuseparator
29617 You can view your document as DVI via the
29621 menu or by using the toolbar button
29622 \begin_inset Graphics
29623 filename ../images/buffer-view_dvi.png
29625 scaleBeforeRotation
29632 \begin_layout Section
29634 \begin_inset LatexCommand label
29635 name "sec:PostScript"
29640 \begin_inset LatexCommand index
29641 name "File Formats ! PostScript"
29646 \begin_inset LatexCommand index
29647 name "PostScript|see{File Formats}"
29654 \begin_layout Standard
29655 This file type has the extension
29656 \begin_inset Quotes eld
29664 \begin_inset Quotes erd
29668 PostScript was developed by the company
29672 as printer language.
29673 The file contains therefore commands that the printer uses to print the
29675 PostScript can be seen as
29676 \begin_inset Quotes eld
29679 programming language
29680 \begin_inset Quotes erd
29683 ; you can calculate with it and draw diagrams and images
29687 \begin_layout Standard
29688 If you are interested to learn more about this, have a look at the LaTeX-package
29694 \begin_inset LatexCommand cite
29705 Due to this ability, the files are often bigger than PDFs.
29708 \begin_layout Standard
29709 PostScript can only contain images in the format
29710 \begin_inset Quotes eld
29713 Encapsulated PostScript
29714 \begin_inset Quotes erd
29717 (EPS, file extension
29718 \begin_inset Quotes eld
29726 \begin_inset Quotes erd
29730 As LyX allows you to use any known image format in your document, it has
29731 to convert images in the background to EPS.
29732 If you have e.g 50 images in your document, LyX has to do 50 conversions
29733 whenever you view or export your document.
29734 This will slow down your work flow with LyX drastically.
29735 So if you plan to use PostScript, you can insert your images directly as
29736 EPS to avoid this problem.
29739 \begin_layout Standard
29740 You can export your document to PostScript using the menu
29742 File\SpecialChar \menuseparator
29743 Export\SpecialChar \menuseparator
29747 You can view your document as PostScript via the
29751 menu or by using the toolbar button
29752 \begin_inset Graphics
29753 filename ../images/buffer-view_ps.png
29755 scaleBeforeRotation
29762 \begin_layout Section
29764 \begin_inset LatexCommand label
29770 \begin_inset LatexCommand index
29771 name "File Formats ! PDF"
29776 \begin_inset LatexCommand index
29784 \begin_layout Standard
29785 This file type has the extension
29786 \begin_inset Quotes eld
29794 \begin_inset Quotes erd
29799 \begin_inset Quotes eld
29802 Portable Document Format
29803 \begin_inset Quotes erd
29806 (PDF) is developed by
29810 as derivative from PostScript.
29811 It is more compressed and it uses much less commands than PostScript.
29813 \begin_inset Quotes eld
29817 \begin_inset Quotes erd
29820 implies, it can be processed at any computer system and the printed output
29821 looks exactly the same.
29824 \begin_layout Standard
29825 PDF can contain images in its own PDF format, in the format
29826 \begin_inset Quotes eld
29829 Joint Photographic Experts Group
29830 \begin_inset Quotes erd
29833 (JPG, file extension
29834 \begin_inset Quotes eld
29842 \begin_inset Quotes erd
29846 \begin_inset Quotes eld
29854 \begin_inset Quotes erd
29857 ), and in the format
29858 \begin_inset Quotes eld
29861 Portable Network Graphics
29862 \begin_inset Quotes erd
29865 (PNG, file extension
29866 \begin_inset Quotes eld
29874 \begin_inset Quotes erd
29878 Nevertheless you can use any other image format, because LyX converts them
29879 in the background to one of these formats.
29880 But as described in the section about PostScript, the image conversion
29881 will slow down your work flow.
29882 So it is recommended to use images in one of the three mentioned formats.
29885 \begin_layout Standard
29886 You can export your document to PDF via the menu
29888 File\SpecialChar \menuseparator
29891 in three different ways:
29894 \begin_layout Description
29896 (ps2pdf) This uses the program
29900 that creates a PDF from a PostScript-version of your file.
29901 The PostScript-version is produced by the program
29905 which uses a DVI-version as intermediate step.
29906 So this export variant consist of three conversions.
29909 \begin_layout Description
29911 (dvipdfm) This uses the program
29915 that converts your file in the background to DVI and in a second step to
29919 \begin_layout Description
29921 (pdflatex) This uses the program
29925 that converts your file directly to PDF.
29928 \begin_layout Standard
29929 It is recommended to use
29938 supports all features of actual PDF-versions, is quick and works stable
29944 is not under development and therefore a bit outdated.
29947 \begin_layout Standard
29948 You can view your document as PDF via the
29952 menu or by using the toolbar button
29953 \begin_inset Graphics
29954 filename ../images/buffer-view_pdf2.png
29956 scaleBeforeRotation
29972 \begin_layout Chapter
29973 Explanation of Equation\InsetSpace ~
29975 \begin_inset LatexCommand eqref
29981 \begin_inset LatexCommand label
29982 name "cha:Explanation-of-Equation"
29989 \begin_layout Standard
29995 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29998 can be calculated to
30001 \begin_layout Standard
30002 \begin_inset Formula \begin{equation}
30003 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}
30010 \begin_layout Standard
30012 \begin_inset Formula $W_{g\, n}$
30015 is the given width of all cells.
30022 is the LaTeX-length between the cell text and the cell border, its default
30023 value is 6\InsetSpace \thinspace{}
30031 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
30035 \begin_layout Standard
30036 Following equation\InsetSpace ~
30038 \begin_inset LatexCommand eqref
30039 reference "eq:Wtot_n"
30043 , the total width of a multicolumn
30044 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
30050 \begin_layout Standard
30051 \begin_inset Formula \begin{equation}
30052 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
30059 \begin_layout Standard
30060 By setting equation\InsetSpace ~
30062 \begin_inset LatexCommand eqref
30063 reference "eq:Wtot_n"
30068 \begin_inset LatexCommand eqref
30069 reference "eq:Wtot_mult"
30073 equal we can calculate the needed given width
30074 \begin_inset Formula $W_{g\, n}$
30081 columns are spanned, so that each column has a total width of
30082 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
30088 \begin_layout Standard
30089 \begin_inset Formula \begin{equation}
30090 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
30097 \begin_layout Bibliography
30098 \begin_inset LatexCommand bibitem
30099 key "latexcompanion"
30103 Frank Mittelbach and Michel Goossens:
30105 The LaTeX Companion Second Edition.
30108 Addison-Wesley, 2004
30111 \begin_layout Bibliography
30112 \begin_inset LatexCommand bibitem
30117 Helmut Kopka and Patrick W.
30120 A Guide to LaTeX Fourth Edition.
30123 Addison-Wesley, 2003
30126 \begin_layout Bibliography
30127 \begin_inset LatexCommand bibitem
30134 LaTeX: A Document Preparation System.
30137 Addison-Wesley, second edition, 1994
30140 \begin_layout Bibliography
30141 \begin_inset LatexCommand bibitem
30150 \begin_layout Standard
30154 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
30164 \begin_layout Standard
30171 of the LaTeX-package
30176 \begin_inset LatexCommand index
30177 name "LaTeX-packages ! booktabs"
30184 \begin_layout Bibliography
30185 \begin_inset LatexCommand bibitem
30194 \begin_layout Standard
30198 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
30207 \begin_layout Standard
30214 of the LaTeX-package
30219 \begin_inset LatexCommand index
30220 name "LaTeX-packages ! caption"
30227 \begin_layout Bibliography
30228 \begin_inset LatexCommand bibitem
30237 \begin_layout Standard
30241 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
30251 \begin_layout Standard
30258 of the LaTeX-package
30263 \begin_layout Bibliography
30264 \begin_inset LatexCommand bibitem
30273 \begin_layout Standard
30277 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
30287 \begin_layout Standard
30294 of the LaTeX-package
30296 endf\SpecialChar \textcompwordmark{}
30300 \begin_inset LatexCommand index
30301 name "LaTeX-packages ! endfloat"
30308 \begin_layout Bibliography
30309 \begin_inset LatexCommand bibitem
30318 \begin_layout Standard
30322 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
30332 \begin_layout Standard
30339 of the LaTeX-package
30341 f\SpecialChar \textcompwordmark{}
30342 loatf\SpecialChar \textcompwordmark{}
30346 \begin_inset LatexCommand index
30347 name "LaTeX-packages ! floatflt"
30354 \begin_layout Bibliography
30355 \begin_inset LatexCommand bibitem
30364 \begin_layout Standard
30368 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
30378 \begin_layout Standard
30385 of the LaTeX-package
30390 \begin_inset LatexCommand index
30391 name "LaTeX-packages ! footmisc"
30398 \begin_layout Bibliography
30399 \begin_inset LatexCommand bibitem
30408 \begin_layout Standard
30412 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
30421 \begin_layout Standard
30428 of the LaTeX-package
30433 \begin_inset LatexCommand index
30434 name "LaTeX-packages ! hyperref"
30441 \begin_layout Bibliography
30442 \begin_inset LatexCommand bibitem
30451 \begin_layout Standard
30455 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
30465 \begin_layout Standard
30472 of the LaTeX-package
30477 \begin_inset LatexCommand index
30478 name "LaTeX-packages ! hyperref"
30485 \begin_layout Bibliography
30486 \begin_inset LatexCommand bibitem
30495 \begin_layout Standard
30499 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30509 \begin_layout Standard
30516 of the LaTeX-package
30521 \begin_inset LatexCommand index
30522 name "LaTeX-packages ! koma-script"
30529 \begin_layout Bibliography
30530 \begin_inset LatexCommand bibitem
30531 key "koma-script-de"
30539 \begin_layout Standard
30543 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30553 \begin_layout Standard
30560 of the LaTeX-package
30565 \begin_inset LatexCommand index
30566 name "LaTeX-packages ! koma-script"
30573 \begin_layout Bibliography
30574 \begin_inset LatexCommand bibitem
30583 \begin_layout Standard
30587 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30597 \begin_layout Standard
30604 of the LaTeX-package
30609 \begin_inset LatexCommand index
30610 name "LaTeX-packages ! listings"
30617 \begin_layout Bibliography
30618 \begin_inset LatexCommand bibitem
30627 \begin_layout Standard
30631 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30641 \begin_layout Standard
30648 of the LaTeX-package
30653 \begin_inset LatexCommand index
30654 name "LaTeX-packages ! marginnote"
30661 \begin_layout Bibliography
30662 \begin_inset LatexCommand bibitem
30671 \begin_layout Standard
30675 href{http://tug.org/PSTricks/main.cgi/}{
30684 \begin_layout Standard
30691 of the LaTeX-package
30696 \begin_inset LatexCommand index
30697 name "LaTeX-packages ! PSTricks"
30704 \begin_layout Bibliography
30705 \begin_inset LatexCommand bibitem
30714 \begin_layout Standard
30718 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30727 \begin_layout Standard
30734 of the LaTeX-package
30739 \begin_inset LatexCommand index
30740 name "LaTeX-packages ! sidecap"
30747 \begin_layout Bibliography
30748 \begin_inset LatexCommand bibitem
30757 \begin_layout Standard
30761 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30770 \begin_layout Standard
30777 about new features in
30784 \begin_layout Standard
30785 \begin_inset LatexCommand printindex
30792 \begin_layout Standard
30793 \begin_inset FloatList figure
30800 \begin_layout Standard
30801 \begin_inset FloatList table
30808 \begin_layout Standard
30812 \begin_layout Standard
30816 listof{Xalgorithm}{List of Algorithms}
30822 \begin_inset Note Note
30825 \begin_layout Standard
30826 see section\InsetSpace ~
30828 \begin_inset LatexCommand ref
30829 reference "sub:Algorithm-Floats"