1 #LyX 1.5.2svn 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}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells
110 \@ifundefined{extrarowheight}
111 {\usepackage{array}}{}
112 \setlength{\extrarowheight}{2pt}
114 % used for customized tables
117 {>{\centering\hspace{0pt}}m{#1}}
120 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
123 {>{\columncolor{#1}\hspace{0pt}}c}
125 \newcolumntype{V}{!{\vrule width 1.5pt}}
127 \newcolumntype{W}{!{\color{green}\vline}}
130 % insert additional vertical space of
131 % 1.5 mm between footnotes
133 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
135 % enable algorithm floats to be referenced
136 \newfloat{Xalgorithm}{tbp}{loa}
137 \floatname{Xalgorithm}{Algorithm}
138 \newcommand{\theHalgorithm}{\theHXalgorithm}
139 \renewenvironment{algorithm}[1][tbp]
140 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
142 % number algorithm floats within chapters
143 \numberwithin{Xalgorithm}{chapter}
145 % redefine the greyed out note
146 \renewenvironment{lyxgreyedout}
147 {\textcolor{blue}\bgroup}{\egroup}
149 % ------------------------------------
150 % used to check for needed LaTeX packages
153 % check for package arydshln
154 % used for tables with dashed lines
155 \newboolean{arydshln}
156 \IfFileExists{arydshln.sty}
157 {\usepackage{arydshln}
158 \setboolean{arydshln}{true}}
159 {\setboolean{arydshln}{false}}
161 % check for package marginnote
162 % used for margin notes
163 \newboolean{marginnote}
164 \IfFileExists{marginnote.sty}
165 {\usepackage{marginnote}
166 \let\marginpar\marginnote
167 \setboolean{marginnote}{true}}
168 {\setboolean{marginnote}{false}}
170 % redefine the \LyX macro for PDF bookmarks
171 \def\LyX{\texorpdfstring{%
172 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
175 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
180 \font_typewriter default
181 \font_default_family default
195 \paperorientation portrait
198 \paragraph_separation skip
200 \quotes_language english
203 \paperpagestyle default
207 \tracking_changes false
208 \output_changes false
216 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
225 \begin_layout Standard
227 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_layout Standard
238 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
243 lyx-docs@lists.lyx.org
247 \begin_layout Standard
260 \begin_inset Note Note
263 \begin_layout Standard
264 original author: Uwe Stöhr
278 \begin_layout Standard
279 \begin_inset LatexCommand tableofcontents
286 \begin_layout Standard
287 \begin_inset Note Note
290 \begin_layout Standard
291 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
301 If they are not installed you can export the document anyway but the sections
302 where the packages are required won't appear in the output.
305 \begin_layout Standard
306 The latest PDF-version of this document can be found here:
310 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
318 \begin_layout Chapter
320 \begin_inset LatexCommand label
326 \begin_inset LatexCommand index
332 \begin_inset LatexCommand index
333 name "Graphics|see{Figures}"
340 \begin_layout Section
342 \begin_inset LatexCommand index
343 name "Figures ! Graphics Dialog"
348 \begin_inset LatexCommand label
349 name "sec:Graphics-Dialog"
356 \begin_layout Standard
357 To insert an image into your document, place the cursor at the text position
358 you want and click on the toolbar icon
359 \begin_inset Graphics
360 filename ../images/dialog-show-new-inset_graphics.xpm
368 Insert\SpecialChar \menuseparator
372 Then a dialog will appear to choose the file to load.
373 The image will appear in the output exactly at the position where it is
377 \begin_layout Standard
378 The graphics dialog can be called at any time by right-clicking on an image.
379 This dialog has three tabs:
382 \begin_layout Description
387 Here you can choose an image file and adjust its appearance in the output.
388 The available units for the image size are explained in appendix\InsetSpace ~
390 \begin_inset LatexCommand ref
391 reference "cha:Units-available-in"
397 You can rotate images counter-clockwise by setting a rotation angle and
399 The image will also be rotated inside LyX.
401 Images can be scaled by using
402 a percentage value or by setting the width and height explicitly.
403 If you set only the width or only the height, the other size will be determined
405 If you set both, then the image will be transformed to the given size,
406 possibly distorting it.
407 To prevent the image from distortion, use the option
409 Maintain aspect ratio
412 The image will then be scaled so that its width and height don't exceed
413 the specified dimensions.
415 Images can be opened in a program of your choice
421 The program can be set for every image format in the file format settings
422 in LyX's preferences.
425 \begin_layout Description
430 Alternatively to the usage of scaling units it is possible to set image
431 coordinates to adjust the height and width of the image in the output.
432 The coordinates can also be calculated automatically by pressing the button
444 bounding\InsetSpace ~
447 will only print the image region within the given coordinates.
448 Normally you don't need to take care about image coordinates and can ignore
452 \begin_layout Description
458 In this tab you can modify the appearance of the image within LyX and set
459 the image to be a subfigure of a figure float with an own caption.
460 Subfigures are explained in section\InsetSpace ~
462 \begin_inset LatexCommand ref
463 reference "sec:Figure-Floats"
469 LaTeX experts can also specify on this tab additional LaTeX options.
477 makes the image appear in the output only as a frame with the size of the
487 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
494 When the option is used the images will not be unzipped on export, since
495 LaTeX can handle them as they are.
497 Zipped EPS-graphics are useful to save
498 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
500 \begin_inset LatexCommand ref
501 reference "sec:PostScript"
506 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
517 zgrep %%Bounding x.eps.gz > x.eps.bb
521 The second command creates the bounding box file
522 \begin_inset Quotes eld
526 \begin_inset Quotes erd
529 that is needed by LaTeX for zipped graphics.
532 \begin_layout Standard
533 \begin_inset VSpace bigskip
539 \begin_layout Standard
540 This is an example image in EPS format
544 \begin_layout Standard
545 Image formats are explained in section\InsetSpace ~
547 \begin_inset LatexCommand ref
548 reference "sec:Image-Formats"
557 within a separate, horizontally centered paragraph:
560 \begin_layout Standard
562 \begin_inset Graphics
563 filename clipart/mobius.eps
574 \begin_layout Standard
575 This is the same image like the one above but in draft mode:
578 \begin_layout Standard
580 \begin_inset Graphics
581 filename clipart/mobius.eps
593 \begin_layout Section
595 \begin_inset LatexCommand label
596 name "sec:Figure-Floats"
601 \begin_inset LatexCommand index
602 name "Floats ! Figures"
607 \begin_inset LatexCommand index
608 name "Figures ! Floats"
615 \begin_layout Standard
616 For general explanations about floats, have a look at section\InsetSpace ~
618 \begin_inset LatexCommand ref
619 reference "sec:FloatIntroduction"
626 \begin_layout Standard
628 \begin_inset Graphics
629 filename ../images/float-insert_figure.xpm
637 Insert\SpecialChar \menuseparator
638 Float\SpecialChar \menuseparator
641 inserts a float with a caption that has the label
642 \begin_inset Quotes eld
647 \begin_inset Quotes erd
650 (# is the actual number).
651 You can insert the image above the caption, like in Figure\InsetSpace ~
653 \begin_inset LatexCommand ref
654 reference "fig:kill-plat"
658 or below the caption, like in Figure\InsetSpace ~
660 \begin_inset LatexCommand ref
661 reference "fig:escher"
666 More about the caption placement is described in section\InsetSpace ~
668 \begin_inset LatexCommand ref
669 reference "sec:Caption-Placement"
676 \begin_layout Standard
677 \begin_inset Float figure
682 \begin_layout Standard
684 \begin_inset Graphics
685 filename clipart/platypus.eps
696 \begin_layout Standard
699 \begin_layout Standard
700 \begin_inset LatexCommand label
705 A severely distorted platypus in a float.
718 \begin_layout Standard
719 \begin_inset Float figure
724 \begin_layout Standard
727 \begin_layout Standard
728 \begin_inset LatexCommand label
742 \begin_layout Standard
744 \begin_inset Graphics
745 filename clipart/escher-lsd.eps
761 \begin_layout Standard
762 \begin_inset LatexCommand index
763 name "References ! to Figures"
769 \begin_inset LatexCommand ref
770 reference "fig:kill-plat"
775 \begin_inset LatexCommand ref
776 reference "fig:escher"
780 are examples of referenced figures.
781 Figures can be referenced in the text by referencing their label.
782 To do this insert a label in the caption using the menu
784 Insert\SpecialChar \menuseparator
787 or the toolbar button
788 \begin_inset Graphics
789 filename ../images/label-insert.xpm
796 You can now refer to the label using the menu
798 Insert\SpecialChar \menuseparator
802 or the toolbar button
803 \begin_inset Graphics
804 filename ../images/dialog-show-new-inset_ref.xpm
811 It is important to use references to floats, rather than using vague references
813 \begin_inset Quotes eld
817 \begin_inset Quotes erd
820 , because as LaTeX will reposition the floats in the final document, it
822 \begin_inset Quotes eld
826 \begin_inset Quotes erd
831 Referencing is explained in detail in section\InsetSpace ~
833 \begin_inset LatexCommand ref
834 reference "sec:Referencing-Floats"
841 \begin_layout Standard
842 Normally only one image is inserted to a figure float, but sometimes you
843 might want to use two images with separate subcaptions.
844 This can be set in the tab
849 of the graphics dialog.
850 Choose there the option
854 and enter the subcaption for the image in the caption field.
855 Note that only the main caption of the float is added to the List of Figures.
858 erencing subfigures is explained in section\InsetSpace ~
860 \begin_inset LatexCommand ref
861 reference "sub:Referencing-Subfigures"
868 \begin_layout Standard
871 \begin_inset LatexCommand ref
872 reference "fig:Two-distorted-images"
876 is an example of a figure float with two images set side by side.
877 You can also set the images one below the other.
880 \begin_layout Standard
881 \begin_inset Float figure
886 \begin_layout Standard
890 \begin_inset Graphics
891 filename clipart/escher-lsd.eps
895 subcaptionText "Undefinable structure"
902 \begin_inset Graphics
903 filename clipart/platypus.eps
908 subcaptionText "\label{fig:Platypus} Platypus"
917 \begin_layout Standard
920 \begin_layout Standard
921 \begin_inset LatexCommand label
922 name "fig:Two-distorted-images"
926 Two distorted images.
939 \begin_layout Section
941 \begin_inset LatexCommand label
942 name "sec:Image-Formats"
947 \begin_inset LatexCommand index
953 \begin_inset LatexCommand index
954 name "Figures ! Image Formats"
961 \begin_layout Standard
962 You can insert images in any known file format.
963 But as explained in appendix\InsetSpace ~
965 \begin_inset LatexCommand ref
966 reference "cha:Output-File-Formats"
970 , every output document format allows only a few image formats.
971 LyX uses therefore the program
975 in the background to convert the images to the right format.
976 To increase your work flow by avoiding these conversions in the background,
977 you can use only the image formats that can directly be embedded in the
979 The output file formats are explained in appendix\InsetSpace ~
981 \begin_inset LatexCommand ref
982 reference "cha:Output-File-Formats"
989 \begin_layout Standard
990 Similar to fonts there are two types of image formats:
993 \begin_layout Description
995 images consist of pixel values, often in a compressed form.
996 They are therefore not fully scalable and look pixeled in large zooms.
997 Well-known bitmap image formats are
998 \begin_inset Quotes eld
1001 Graphics Interchange Format
1002 \begin_inset Quotes erd
1005 (GIF, file extension
1006 \begin_inset Quotes eld
1014 \begin_inset Quotes erd
1018 \begin_inset LatexCommand index
1019 name "GIF|see{Image formats}"
1024 \begin_inset Quotes eld
1027 Portable Network Graphics
1028 \begin_inset Quotes erd
1031 (PNG, file extension
1032 \begin_inset Quotes eld
1040 \begin_inset Quotes erd
1044 \begin_inset LatexCommand index
1045 name "PNG|see{Image formats}"
1050 \begin_inset Quotes eld
1053 Joint Photographic Experts Group
1054 \begin_inset Quotes erd
1057 (JPG, file extension
1058 \begin_inset Quotes eld
1066 \begin_inset Quotes erd
1070 \begin_inset Quotes eld
1078 \begin_inset Quotes erd
1082 \begin_inset LatexCommand index
1083 name "JPG|see{Image formats}"
1090 \begin_layout Description
1092 images consist of vectors and can therefore be scaled to any size
1094 The scaling ability is necessary if you want to create presentations, because
1095 presentations are always scaled by the video projector.
1096 Scaling is also useful for online documents to let the user zoom into diagrams.
1099 ell-known scalable image formats are
1100 \begin_inset Quotes eld
1103 Scalable Vector Graphics
1104 \begin_inset Quotes erd
1107 (SVG, file extension
1108 \begin_inset Quotes eld
1116 \begin_inset Quotes erd
1120 \begin_inset LatexCommand index
1121 name "SVG|see{Image formats}"
1126 \begin_inset Quotes eld
1129 Encapsulated PostScript
1130 \begin_inset Quotes erd
1133 (EPS, file extension
1134 \begin_inset Quotes eld
1142 \begin_inset Quotes erd
1146 \begin_inset LatexCommand index
1147 name "EPS|see{Image formats}"
1152 \begin_inset Quotes eld
1155 Portable Document Format
1156 \begin_inset Quotes erd
1159 (PDF, file extension
1160 \begin_inset Quotes eld
1168 \begin_inset Quotes erd
1172 \begin_inset LatexCommand index
1178 \begin_inset Quotes eld
1182 \begin_inset Quotes erd
1185 (WMF, file extension
1186 \begin_inset Quotes eld
1194 \begin_inset Quotes erd
1198 \begin_inset LatexCommand index
1199 name "SVG|see{Image formats}"
1205 \begin_inset Quotes eld
1209 \begin_inset Quotes erd
1212 , because you can convert any bitmap image to a PDF or EPS-image and the
1213 result will still be a bitmap image.
1214 In this cases only a header with the image properties is added to the original
1219 \begin_layout Standard
1220 In the case of PDF, the original image is additionally compressed.
1226 The PDF-files generated by
1230 are for example bitmap images.
1233 \begin_layout Standard
1234 Normally it is not possible to convert a bitmap image into a scalable one,
1236 Only the image formats PDF and EPS can directly be embedded to PDF and
1237 PostScript output files, respectively.
1238 SVG and WMF-images are recalculated to bitmaps when the output file is
1239 generated because there is currently no adequate WMF/SVG
1240 \begin_inset Formula $\to$
1243 PDF/EPS converter available.
1246 \begin_layout Chapter
1248 \begin_inset LatexCommand label
1254 \begin_inset LatexCommand index
1262 \begin_layout Section
1264 \begin_inset LatexCommand index
1265 name "Table ! Introduction"
1272 \begin_layout Standard
1273 You can insert a table using either the toolbar button
1274 \begin_inset Graphics
1275 filename ../images/tabular-insert.xpm
1283 Insert\SpecialChar \menuseparator
1287 The toolbar button offers you a graphical selection: Move the mouse to
1288 set the column/row number of the table that should be created and then
1289 press a mouse button.
1290 When you use the menu to create a table, a dialog will appear, asking you
1291 for the number of rows and columns.
1293 The default table has lines around any
1294 cell and the first row appears separated from the rest of the table.
1295 This separation occurs due to a double line: The cells of the first row
1296 have a line below them and the cells of the second row have a line above
1298 Here is an example table:
1301 \begin_layout Standard
1303 \begin_inset Tabular
1304 <lyxtabular version="3" rows="4" columns="4">
1306 <column alignment="center" valignment="top" leftline="true" width="0">
1307 <column alignment="center" valignment="top" leftline="true" width="0">
1308 <column alignment="center" valignment="top" leftline="true" width="0">
1309 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1310 <row topline="true" bottomline="true">
1311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1314 \begin_layout Standard
1320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1323 \begin_layout Standard
1338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1341 \begin_layout Standard
1347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1350 \begin_layout Standard
1357 <row topline="true">
1358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1361 \begin_layout Standard
1376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1379 \begin_layout Standard
1385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1388 \begin_layout Standard
1394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1397 \begin_layout Standard
1404 <row topline="true">
1405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1408 \begin_layout Standard
1423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1426 \begin_layout Standard
1432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1435 \begin_layout Standard
1441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1444 \begin_layout Standard
1451 <row topline="true" bottomline="true">
1452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1455 \begin_layout Standard
1470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1473 \begin_layout Standard
1479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1482 \begin_layout Standard
1488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1491 \begin_layout Standard
1505 \begin_layout Section
1507 \begin_inset LatexCommand index
1508 name "Table ! Dialog"
1515 \begin_layout Standard
1516 You can alter a table by clicking on it with the right mouse button, which
1517 brings up the table dialog.
1518 Here you can adjust the settings of that cell and row/column respectively
1519 where the cursor is currently placed.
1520 Most of the dialog options also work on selections.
1521 This means if you select more cells, columns or rows, the action is done
1522 for the whole selection.
1523 Note that there is a difference between selecting the
1527 of the cell, and the cell itself.
1528 You can alter tables with the following tabs of the table dialog:
1531 \begin_layout Description
1537 Here you can set the horizontal alignment and the width of the current
1539 When you have set a width you can also adjust the vertical alignment of
1541 A given width will allow the cell to have line breaks and multiple paragraphs
1542 of text, see section\InsetSpace ~
1544 \begin_inset LatexCommand ref
1545 reference "sub:Multiple-Lines-in"
1550 If you set no width, the column is as wide as their widest cell content
1553 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1554 cell, see section\InsetSpace ~
1556 \begin_inset LatexCommand ref
1557 reference "sub:Multicolumns"
1563 The rotate check boxes rotates the current cell, a selection, or the whole
1564 table counter-clockwise by 90°.
1565 The rotation is not shown within LyX, only in the output.
1568 \begin_inset Note Greyedout
1571 \begin_layout Standard
1576 Not all DVI-viewers are able to display rotations.
1583 It is also possible to enter a LaTeX-argument which is needed for special
1584 table formattings, see section\InsetSpace ~
1586 \begin_inset LatexCommand ref
1587 reference "sub:Multicolumn-Calculations"
1592 \begin_inset LatexCommand ref
1593 reference "sec:Colored-Tables"
1600 \begin_layout Description
1605 In this tab you can add and delete border lines for the current row/column.
1612 will convert the table to a formal table as described in section\InsetSpace ~
1614 \begin_inset LatexCommand ref
1615 reference "sec:Formal-Tables"
1621 You can also add here space to table rows as decribed in section\InsetSpace ~
1623 \begin_inset LatexCommand ref
1624 reference "sub:Row-Spacing"
1631 \begin_layout Description
1636 This tab is to make a table a so called
1637 \begin_inset Quotes eld
1645 \begin_inset Quotes erd
1648 that can run over several pages.
1649 Section\InsetSpace ~
1651 \begin_inset LatexCommand ref
1652 reference "sec:Longtables"
1657 \begin_inset LatexCommand ref
1658 reference "sec:Special-Longtable-Issues"
1662 describe the longtable features in detail.
1665 \begin_layout Standard
1666 When the table toolbar is opened, you can move the cursor with the arrow
1667 keys from cell to cell and the property of the current cell will immediately
1668 be displayed in the dialog.
1671 \begin_layout Section
1673 \begin_inset LatexCommand index
1674 name "Table ! Toolbar"
1681 \begin_layout Standard
1682 The table toolbar is an alternative to the table dialog to be able to alter
1684 It should normally appear at the bottom of LyX's main window when the cursor
1686 You can alternatively switch it on to appear always, by right-clicking
1687 in LyX's main menu bar.
1690 \begin_layout Standard
1691 The toolbar has the following icons:
1694 \begin_layout Labeling
1695 \labelwidthstring 00.00.0000
1696 \begin_inset Graphics
1697 filename ../images/tabular-feature_append-row.xpm
1702 adds a row below the current cell or selection
1705 \begin_layout Labeling
1706 \labelwidthstring 00.00.0000
1707 \begin_inset Graphics
1708 filename ../images/tabular-feature_append-column.xpm
1713 adds a column right beside the current cell or selection
1716 \begin_layout Labeling
1717 \labelwidthstring 00.00.0000
1718 \begin_inset Graphics
1719 filename ../images/tabular-feature_delete-row.xpm
1724 deletes the current row or selection
1727 \begin_layout Labeling
1728 \labelwidthstring 00.00.0000
1729 \begin_inset Graphics
1730 filename ../images/tabular-feature_delete-column.xpm
1735 deletes the current column or selection
1738 \begin_layout Labeling
1739 \labelwidthstring 00.00.0000
1740 \begin_inset Graphics
1741 filename ../images/tabular-feature_toggle-line-top.xpm
1746 adds a line at the top of the current cell / row or of a selection
1749 \begin_layout Labeling
1750 \labelwidthstring 00.00.0000
1751 \begin_inset Graphics
1752 filename ../images/tabular-feature_toggle-line-bottom.xpm
1757 adds a line at the bottom 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-left.xpm
1768 adds a line at the left side 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-right.xpm
1779 adds a line at the right 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_set-all-lines.xpm
1790 adds lines around the current or selected cells - if the current cell no
1791 multicolumn this also affects the current row and column
1794 \begin_layout Labeling
1795 \labelwidthstring 00.00.0000
1796 \begin_inset Graphics
1797 filename ../images/tabular-feature_unset-all-lines.xpm
1802 deletes all lines of the current or selected cells - if the current cell
1803 no multicolumn this also affects the current row and column
1806 \begin_layout Labeling
1807 \labelwidthstring 00.00.0000
1808 \begin_inset Graphics
1809 filename ../images/tabular-feature_align-left.xpm
1814 left-aligns the content of the current cell / column
1817 \begin_layout Labeling
1818 \labelwidthstring 00.00.0000
1819 \begin_inset Graphics
1820 filename ../images/tabular-feature_align-center.xpm
1825 centers the content of the current cell / column horizontally
1828 \begin_layout Labeling
1829 \labelwidthstring 00.00.0000
1830 \begin_inset Graphics
1831 filename ../images/tabular-feature_align-right.xpm
1836 right-aligns the content of the current cell / column
1839 \begin_layout Labeling
1840 \labelwidthstring 00.00.0000
1841 \begin_inset Graphics
1842 filename ../images/tabular-feature_valign-top.xpm
1847 aligns the content of the current cell vertically to the top
1850 \begin_layout Labeling
1851 \labelwidthstring 00.00.0000
1852 \begin_inset Graphics
1853 filename ../images/tabular-feature_valign-middle.xpm
1858 centers the content of the current cell vertically
1861 \begin_layout Labeling
1862 \labelwidthstring 00.00.0000
1863 \begin_inset Graphics
1864 filename ../images/tabular-feature_valign-bottom.xpm
1869 aligns the content of the current cell vertically to the bottom
1872 \begin_layout Labeling
1873 \labelwidthstring 00.00.0000
1874 \begin_inset Graphics
1875 filename ../images/tabular-feature_set-rotate-cell.xpm
1880 rotates the current cell or selection counter-clockwise by 90°
1883 \begin_layout Labeling
1884 \labelwidthstring 00.00.0000
1885 \begin_inset Graphics
1886 filename ../images/tabular-feature_set-rotate-tabular.xpm
1891 rotates the whole table counter-clockwise by 90°
1894 \begin_layout Labeling
1895 \labelwidthstring 00.00.0000
1896 \begin_inset Graphics
1897 filename ../images/tabular-feature_multicolumn.xpm
1902 sets the current cell or selection as a multicolumn
1905 \begin_layout Standard
1906 \begin_inset Note Greyedout
1909 \begin_layout Standard
1914 For the output the vertical alignment of the first cell in a row is used
1915 for all following cells in the row.
1923 \begin_layout Section
1925 \begin_inset LatexCommand index
1926 name "Table ! Edit Menu"
1933 \begin_layout Standard
1934 Additionally to the table dialog and toolbar, the menu
1936 Edit\SpecialChar \menuseparator
1939 allows you to add and delete border lines for the current row/column and
1940 to set the current selection as multicolumn.
1941 The menu is only available when the cursor is inside a table.
1944 \begin_layout Section
1946 \begin_inset LatexCommand label
1947 name "sec:Table-Floats"
1952 \begin_inset LatexCommand index
1953 name "Floats ! Tables"
1958 \begin_inset LatexCommand index
1959 name "Table ! Floats"
1966 \begin_layout Standard
1967 For general explanations about floats, have a look at section\InsetSpace ~
1969 \begin_inset LatexCommand ref
1970 reference "sec:FloatIntroduction"
1977 \begin_layout Standard
1978 \begin_inset Float table
1984 \begin_layout Standard
1985 \begin_inset Caption
1987 \begin_layout Standard
1988 \begin_inset LatexCommand label
1989 name "tab:a table float"
2001 \begin_layout Standard
2003 \begin_inset Tabular
2004 <lyxtabular version="3" rows="3" columns="3">
2006 <column alignment="center" valignment="top" leftline="true" width="0pt">
2007 <column alignment="center" valignment="top" leftline="true" width="0pt">
2008 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2009 <row topline="true" bottomline="true">
2010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2013 \begin_layout Standard
2028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2031 \begin_layout Standard
2046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2049 \begin_layout Standard
2065 <row topline="true">
2066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2069 \begin_layout Standard
2084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2087 \begin_layout Standard
2102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2105 \begin_layout Standard
2121 <row topline="true" bottomline="true">
2122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2125 \begin_layout Standard
2135 \begin_inset Formula $\int x^{2}dx$
2143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2146 \begin_layout Standard
2156 \begin_inset Formula $\left[\begin{array}{cc}
2158 c & d\end{array}\right]$
2166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2169 \begin_layout Standard
2179 \begin_inset Formula $1+1=2$
2200 \begin_layout Standard
2201 Table floats can be inserted using the menu
2203 Insert\SpecialChar \menuseparator
2204 Float\SpecialChar \menuseparator
2207 or the toolbar button
2208 \begin_inset Graphics
2209 filename ../images/float-insert_table.xpm
2218 \begin_layout Standard
2219 The float appears as a collapsible box with a caption that has the label
2221 \begin_inset Quotes eld
2226 \begin_inset Quotes erd
2229 (# is the actual table number).
2230 You can insert tables to the float above or below the caption.
2233 \begin_layout Standard
2236 \begin_inset LatexCommand ref
2237 reference "tab:a table float"
2241 is an example table within a table float.
2244 \begin_layout Standard
2245 Having the caption above the table is the common rule that is unfortunately
2246 not supported in LaTeX's standard classes.
2247 That means if you are using the document classes
2263 there will be no space between the caption and the table.
2264 To insert the needed space, add the following option to the load command
2265 of the LaTeX-package
2270 \begin_inset LatexCommand index
2271 name "LaTeX-packages ! caption"
2275 in your document preamble
2279 \begin_layout Standard
2280 For more information have a look at section\InsetSpace ~
2282 \begin_inset LatexCommand ref
2283 reference "sec:Caption-Placement"
2295 \begin_layout Standard
2301 \begin_layout Standard
2306 , which is described in section\InsetSpace ~
2308 \begin_inset LatexCommand ref
2309 reference "sec:Caption-Formatting"
2313 , is used to adjust the caption format.
2316 \begin_layout Standard
2317 \begin_inset LatexCommand index
2318 name "References ! to Tables"
2322 Tables can be cross-referenced in the text by referencing their label.
2323 To do this insert a label in the caption using the menu
2325 Insert\SpecialChar \menuseparator
2328 or the toolbar button
2329 \begin_inset Graphics
2330 filename ../images/label-insert.xpm
2337 You can now refer to the label using the menu
2339 Insert\SpecialChar \menuseparator
2343 or the toolbar button
2344 \begin_inset Graphics
2345 filename ../images/dialog-show-new-inset_ref.xpm
2353 Referencing is explained in detail in section\InsetSpace ~
2355 \begin_inset LatexCommand ref
2356 reference "sec:Referencing-Floats"
2363 \begin_layout Section
2365 \begin_inset LatexCommand label
2366 name "sec:Longtables"
2371 \begin_inset LatexCommand index
2377 \begin_inset LatexCommand index
2378 name "Table ! Longtables"
2385 \begin_layout Standard
2386 If the table is too long to fit on one page, you can use the option
2396 of the table dialog to split the table automatically over more pages.
2397 Doing this enables some check boxes and you can now define:
2400 \begin_layout Description
2405 : The current row and all rows above, that don't have any special options
2406 defined, are defined to be the header rows of all pages of the longtable;
2407 except for the first page, if
2413 This therefore called the main header.
2416 \begin_layout Description
2422 : The current row and all rows above, that don't have any special options
2423 defined, are defined to be the header rows of the first page of the longtable.
2426 \begin_layout Description
2431 : The current row and all rows below, that don't have any special options
2432 defined, are defined to be the footer rows of all pages of the longtable;
2433 except for the last page, if
2441 \begin_layout Description
2447 : The current row and all rows below, that don't have any special options
2448 defined, are defined to be the footer rows of the last page of the longtable.
2451 \begin_layout Standard
2452 You can also specify a row where the table is splitted.
2453 If you set more than one option in the same table row, you should be aware
2454 of the fact that only the first one is used in the given table row.
2455 The others will then be defined as
2460 In this context, first means first in this order:
2467 header, Footer, Last\InsetSpace ~
2471 See the following longtable to see how it works:
2474 \begin_layout Standard
2476 \begin_inset Tabular
2477 <lyxtabular version="3" rows="69" columns="3">
2478 <features islongtable="true">
2479 <column alignment="left" valignment="top" leftline="true" width="0cm">
2480 <column alignment="left" valignment="top" width="0pt">
2481 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2482 <row topline="true" bottomline="true" endfirsthead="true">
2483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2486 \begin_layout Standard
2489 Example Phone List (ignore the names)
2494 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2497 \begin_layout Standard
2503 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2506 \begin_layout Standard
2513 <row topline="true" bottomline="true" endfirsthead="true">
2514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2517 \begin_layout Standard
2525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2528 \begin_layout Standard
2534 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2537 \begin_layout Standard
2546 <row topline="true" bottomline="true" endhead="true">
2547 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2550 \begin_layout Standard
2558 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2561 \begin_layout Standard
2567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2570 \begin_layout Standard
2577 <row topline="true" bottomline="true" endhead="true">
2578 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2581 \begin_layout Standard
2589 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2592 \begin_layout Standard
2598 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2601 \begin_layout Standard
2610 <row topline="true" bottomline="true" endfoot="true">
2611 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2614 \begin_layout Standard
2615 continued on next page
2620 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2623 \begin_layout Standard
2629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2632 \begin_layout Standard
2640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2643 \begin_layout Standard
2651 <cell alignment="center" valignment="top" topline="true" usebox="none">
2654 \begin_layout Standard
2660 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2663 \begin_layout Standard
2671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2674 \begin_layout Standard
2682 <cell alignment="center" valignment="top" topline="true" usebox="none">
2685 \begin_layout Standard
2691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2694 \begin_layout Standard
2702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2705 \begin_layout Standard
2713 <cell alignment="center" valignment="top" topline="true" usebox="none">
2716 \begin_layout Standard
2722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2725 \begin_layout Standard
2733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2736 \begin_layout Standard
2744 <cell alignment="center" valignment="top" topline="true" usebox="none">
2747 \begin_layout Standard
2753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2756 \begin_layout Standard
2764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2767 \begin_layout Standard
2775 <cell alignment="center" valignment="top" topline="true" usebox="none">
2778 \begin_layout Standard
2784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2787 \begin_layout Standard
2795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2798 \begin_layout Standard
2806 <cell alignment="center" valignment="top" topline="true" usebox="none">
2809 \begin_layout Standard
2815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2818 \begin_layout Standard
2826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2829 \begin_layout Standard
2837 <cell alignment="center" valignment="top" topline="true" usebox="none">
2840 \begin_layout Standard
2846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2849 \begin_layout Standard
2857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2860 \begin_layout Standard
2868 <cell alignment="center" valignment="top" topline="true" usebox="none">
2871 \begin_layout Standard
2877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2880 \begin_layout Standard
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2891 \begin_layout Standard
2899 <cell alignment="center" valignment="top" topline="true" usebox="none">
2902 \begin_layout Standard
2908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2911 \begin_layout Standard
2919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2922 \begin_layout Standard
2930 <cell alignment="center" valignment="top" topline="true" usebox="none">
2933 \begin_layout Standard
2939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2942 \begin_layout Standard
2950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2953 \begin_layout Standard
2961 <cell alignment="center" valignment="top" topline="true" usebox="none">
2964 \begin_layout Standard
2970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2973 \begin_layout Standard
2981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2984 \begin_layout Standard
2992 <cell alignment="center" valignment="top" topline="true" usebox="none">
2995 \begin_layout Standard
3001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3004 \begin_layout Standard
3012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3015 \begin_layout Standard
3023 <cell alignment="center" valignment="top" topline="true" usebox="none">
3026 \begin_layout Standard
3032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3035 \begin_layout Standard
3043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3046 \begin_layout Standard
3054 <cell alignment="center" valignment="top" topline="true" usebox="none">
3057 \begin_layout Standard
3063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3066 \begin_layout Standard
3074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3077 \begin_layout Standard
3085 <cell alignment="center" valignment="top" topline="true" usebox="none">
3088 \begin_layout Standard
3094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3097 \begin_layout Standard
3105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3108 \begin_layout Standard
3116 <cell alignment="center" valignment="top" topline="true" usebox="none">
3119 \begin_layout Standard
3125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3128 \begin_layout Standard
3136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3139 \begin_layout Standard
3147 <cell alignment="center" valignment="top" topline="true" usebox="none">
3150 \begin_layout Standard
3156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3159 \begin_layout Standard
3167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3170 \begin_layout Standard
3178 <cell alignment="center" valignment="top" topline="true" usebox="none">
3181 \begin_layout Standard
3187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3190 \begin_layout Standard
3198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3201 \begin_layout Standard
3209 <cell alignment="center" valignment="top" topline="true" usebox="none">
3212 \begin_layout Standard
3218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3221 \begin_layout Standard
3229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3232 \begin_layout Standard
3240 <cell alignment="center" valignment="top" topline="true" usebox="none">
3243 \begin_layout Standard
3249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3252 \begin_layout Standard
3260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3263 \begin_layout Standard
3271 <cell alignment="center" valignment="top" topline="true" usebox="none">
3274 \begin_layout Standard
3280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3283 \begin_layout Standard
3291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3294 \begin_layout Standard
3302 <cell alignment="center" valignment="top" topline="true" usebox="none">
3305 \begin_layout Standard
3311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3314 \begin_layout Standard
3322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3325 \begin_layout Standard
3333 <cell alignment="center" valignment="top" topline="true" usebox="none">
3336 \begin_layout Standard
3342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3345 \begin_layout Standard
3353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3356 \begin_layout Standard
3364 <cell alignment="center" valignment="top" topline="true" usebox="none">
3367 \begin_layout Standard
3373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3376 \begin_layout Standard
3384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3387 \begin_layout Standard
3395 <cell alignment="center" valignment="top" topline="true" usebox="none">
3398 \begin_layout Standard
3404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3407 \begin_layout Standard
3415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3418 \begin_layout Standard
3426 <cell alignment="center" valignment="top" topline="true" usebox="none">
3429 \begin_layout Standard
3435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Standard
3446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3449 \begin_layout Standard
3457 <cell alignment="center" valignment="top" topline="true" usebox="none">
3460 \begin_layout Standard
3466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Standard
3477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3480 \begin_layout Standard
3488 <cell alignment="center" valignment="top" topline="true" usebox="none">
3491 \begin_layout Standard
3497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3500 \begin_layout Standard
3508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3511 \begin_layout Standard
3519 <cell alignment="center" valignment="top" topline="true" usebox="none">
3522 \begin_layout Standard
3528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3531 \begin_layout Standard
3539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3542 \begin_layout Standard
3550 <cell alignment="center" valignment="top" topline="true" usebox="none">
3553 \begin_layout Standard
3559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3562 \begin_layout Standard
3569 <row bottomline="true">
3570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3573 \begin_layout Standard
3581 <cell alignment="center" valignment="top" topline="true" usebox="none">
3584 \begin_layout Standard
3590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3593 \begin_layout Standard
3600 <row bottomline="true">
3601 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Standard
3610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3613 \begin_layout Standard
3619 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3622 \begin_layout Standard
3630 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3633 \begin_layout Standard
3641 <cell alignment="center" valignment="top" topline="true" usebox="none">
3644 \begin_layout Standard
3650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3653 \begin_layout Standard
3661 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3664 \begin_layout Standard
3672 <cell alignment="center" valignment="top" topline="true" usebox="none">
3675 \begin_layout Standard
3681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3684 \begin_layout Standard
3692 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3695 \begin_layout Standard
3703 <cell alignment="center" valignment="top" topline="true" usebox="none">
3706 \begin_layout Standard
3712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3715 \begin_layout Standard
3723 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3726 \begin_layout Standard
3734 <cell alignment="center" valignment="top" topline="true" usebox="none">
3737 \begin_layout Standard
3743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3746 \begin_layout Standard
3754 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3757 \begin_layout Standard
3765 <cell alignment="center" valignment="top" topline="true" usebox="none">
3768 \begin_layout Standard
3774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3777 \begin_layout Standard
3785 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3788 \begin_layout Standard
3796 <cell alignment="center" valignment="top" topline="true" usebox="none">
3799 \begin_layout Standard
3805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3808 \begin_layout Standard
3816 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3819 \begin_layout Standard
3827 <cell alignment="center" valignment="top" topline="true" usebox="none">
3830 \begin_layout Standard
3836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3839 \begin_layout Standard
3847 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3850 \begin_layout Standard
3858 <cell alignment="center" valignment="top" topline="true" usebox="none">
3861 \begin_layout Standard
3867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3870 \begin_layout Standard
3878 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3881 \begin_layout Standard
3889 <cell alignment="center" valignment="top" topline="true" usebox="none">
3892 \begin_layout Standard
3898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3901 \begin_layout Standard
3909 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3912 \begin_layout Standard
3920 <cell alignment="center" valignment="top" topline="true" usebox="none">
3923 \begin_layout Standard
3929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3932 \begin_layout Standard
3940 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3943 \begin_layout Standard
3951 <cell alignment="center" valignment="top" topline="true" usebox="none">
3954 \begin_layout Standard
3960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3963 \begin_layout Standard
3971 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3974 \begin_layout Standard
3982 <cell alignment="center" valignment="top" topline="true" usebox="none">
3985 \begin_layout Standard
3991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3994 \begin_layout Standard
4002 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4005 \begin_layout Standard
4013 <cell alignment="center" valignment="top" topline="true" usebox="none">
4016 \begin_layout Standard
4022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4025 \begin_layout Standard
4033 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4036 \begin_layout Standard
4044 <cell alignment="center" valignment="top" topline="true" usebox="none">
4047 \begin_layout Standard
4053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4056 \begin_layout Standard
4064 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4067 \begin_layout Standard
4075 <cell alignment="center" valignment="top" topline="true" usebox="none">
4078 \begin_layout Standard
4084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4087 \begin_layout Standard
4095 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4098 \begin_layout Standard
4106 <cell alignment="center" valignment="top" topline="true" usebox="none">
4109 \begin_layout Standard
4115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4118 \begin_layout Standard
4126 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4129 \begin_layout Standard
4137 <cell alignment="center" valignment="top" topline="true" usebox="none">
4140 \begin_layout Standard
4146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4149 \begin_layout Standard
4157 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4160 \begin_layout Standard
4168 <cell alignment="center" valignment="top" topline="true" usebox="none">
4171 \begin_layout Standard
4177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4180 \begin_layout Standard
4188 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4191 \begin_layout Standard
4199 <cell alignment="center" valignment="top" topline="true" usebox="none">
4202 \begin_layout Standard
4208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4211 \begin_layout Standard
4219 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4222 \begin_layout Standard
4230 <cell alignment="center" valignment="top" topline="true" usebox="none">
4233 \begin_layout Standard
4239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4242 \begin_layout Standard
4250 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4253 \begin_layout Standard
4261 <cell alignment="center" valignment="top" topline="true" usebox="none">
4264 \begin_layout Standard
4270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4273 \begin_layout Standard
4281 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4284 \begin_layout Standard
4292 <cell alignment="center" valignment="top" topline="true" usebox="none">
4295 \begin_layout Standard
4301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4304 \begin_layout Standard
4312 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4315 \begin_layout Standard
4323 <cell alignment="center" valignment="top" topline="true" usebox="none">
4326 \begin_layout Standard
4332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4335 \begin_layout Standard
4343 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4346 \begin_layout Standard
4354 <cell alignment="center" valignment="top" topline="true" usebox="none">
4357 \begin_layout Standard
4363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4366 \begin_layout Standard
4374 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4377 \begin_layout Standard
4385 <cell alignment="center" valignment="top" topline="true" usebox="none">
4388 \begin_layout Standard
4394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4397 \begin_layout Standard
4405 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4408 \begin_layout Standard
4416 <cell alignment="center" valignment="top" topline="true" usebox="none">
4419 \begin_layout Standard
4425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4428 \begin_layout Standard
4436 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4439 \begin_layout Standard
4447 <cell alignment="center" valignment="top" topline="true" usebox="none">
4450 \begin_layout Standard
4456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Standard
4467 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4470 \begin_layout Standard
4478 <cell alignment="center" valignment="top" topline="true" usebox="none">
4481 \begin_layout Standard
4487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Standard
4498 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4501 \begin_layout Standard
4509 <cell alignment="center" valignment="top" topline="true" usebox="none">
4512 \begin_layout Standard
4518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Standard
4529 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4532 \begin_layout Standard
4540 <cell alignment="center" valignment="top" topline="true" usebox="none">
4543 \begin_layout Standard
4549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Standard
4559 <row bottomline="true">
4560 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4563 \begin_layout Standard
4571 <cell alignment="center" valignment="top" topline="true" usebox="none">
4574 \begin_layout Standard
4580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4583 \begin_layout Standard
4590 <row bottomline="true" endlastfoot="true">
4591 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4594 \begin_layout Standard
4600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4603 \begin_layout Standard
4609 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4612 \begin_layout Standard
4627 \begin_layout Standard
4631 addtocounter{table}{-1}
4637 \begin_inset Note Note
4640 \begin_layout Standard
4641 See greyed-out note in section\InsetSpace ~
4643 \begin_inset LatexCommand ref
4644 reference "sub:Longtable-Captions"
4648 for an explanation of this command.
4656 \begin_layout Subsection
4657 Footnotes in Longtables
4658 \begin_inset LatexCommand label
4659 name "sub:Footnotes-in-Longtables"
4664 \begin_inset LatexCommand index
4665 name "Longtables ! Footnotes"
4672 \begin_layout Standard
4673 Footnotes can be inserted to every longtable cell.
4674 They appear at the bottom of the page where the table cell with the footnote
4678 \begin_inset LatexCommand ref
4679 reference "tab:DiffCaptions"
4683 has for example a footnote.
4686 \begin_layout Subsection
4688 \begin_inset LatexCommand index
4689 name "Longtables ! Alignment"
4696 \begin_layout Standard
4697 Longtables are by default centered.
4698 In contrary to the alignment of the table columns and row, the table alignment
4699 can currently not be changed in the table dialog.
4700 To change the alignment of longtables you have to change the value of the
4713 by inserting this line as ERT before the corresponding longtable:
4716 \begin_layout Standard
4726 \begin_layout Standard
4727 Where the value can have any of the units listed in Table\InsetSpace ~
4729 \begin_inset LatexCommand ref
4730 reference "tab:Units"
4741 controls the horizontal distance from the left page border to the longtable,
4748 the distance from the right side.
4749 The default value for both lengths is
4755 , which is in this case the same as an horizontal fill in LyX.
4758 \begin_layout Standard
4759 The following longtable was left-aligned by setting
4765 to 0\InsetSpace \thinspace{}
4770 \begin_layout Standard
4784 \begin_layout Standard
4785 \begin_inset Tabular
4786 <lyxtabular version="3" rows="5" columns="5">
4787 <features islongtable="true">
4788 <column alignment="center" valignment="top" leftline="true" width="0">
4789 <column alignment="center" valignment="top" leftline="true" width="0">
4790 <column alignment="center" valignment="top" leftline="true" width="0">
4791 <column alignment="center" valignment="top" leftline="true" width="0">
4792 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4793 <row topline="true">
4794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4797 \begin_layout Standard
4803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4806 \begin_layout Standard
4812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4815 \begin_layout Standard
4821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4824 \begin_layout Standard
4830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4833 \begin_layout Standard
4840 <row topline="true">
4841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4844 \begin_layout Standard
4850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4853 \begin_layout Standard
4859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4862 \begin_layout Standard
4868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4871 \begin_layout Standard
4877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4880 \begin_layout Standard
4887 <row topline="true">
4888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4891 \begin_layout Standard
4897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4900 \begin_layout Standard
4906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4909 \begin_layout Standard
4915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4918 \begin_layout Standard
4924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4927 \begin_layout Standard
4934 <row topline="true">
4935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4938 \begin_layout Standard
4944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4947 \begin_layout Standard
4953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4956 \begin_layout Standard
4962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4965 \begin_layout Standard
4971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4974 \begin_layout Standard
4981 <row topline="true" bottomline="true">
4982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4985 \begin_layout Standard
4991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4994 \begin_layout Standard
5000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5003 \begin_layout Standard
5009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5012 \begin_layout Standard
5018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5021 \begin_layout Standard
5036 \begin_layout Standard
5052 \begin_layout Subsection
5054 \begin_inset LatexCommand index
5055 name "Longtables ! Captions"
5060 \begin_inset LatexCommand label
5061 name "sub:Longtable-Captions"
5068 \begin_layout Standard
5069 A longtable cannot be put into a table float because floats can only be
5070 on one page but the caption environment of floats can also be used for
5074 \begin_layout Standard
5075 As LyX does not yet fully support captions in longtables, a hack is needed
5079 \begin_layout Enumerate
5085 \begin_layout Enumerate
5086 Mark the first row and disable its upper line.
5089 \begin_layout Enumerate
5090 Insert a caption via the menu
5092 Insert\SpecialChar \menuseparator
5095 into the first table cell.
5097 You can also add a short title for the caption.
5100 \begin_layout Enumerate
5102 \begin_inset Quotes eld
5114 \begin_inset Quotes erd
5117 as ERT behind the caption.
5120 \begin_layout Standard
5121 A short title that will appear in the LOT instead of the full title.
5130 behind the caption omits the vertical lines between the following cells
5132 The first table row is now only a dummy row for the caption, the actual
5133 table starts with the second row.
5136 \begin_layout Standard
5137 Here is a short longtable to see how it works:
5140 \begin_layout Standard
5141 \begin_inset Tabular
5142 <lyxtabular version="3" rows="6" columns="5">
5143 <features islongtable="true">
5144 <column alignment="center" valignment="top" leftline="true" width="0">
5145 <column alignment="center" valignment="top" leftline="true" width="0">
5146 <column alignment="center" valignment="top" leftline="true" width="0">
5147 <column alignment="center" valignment="top" leftline="true" width="0">
5148 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5153 \begin_layout Standard
5154 \begin_inset Caption
5156 \begin_layout Standard
5157 Longtable with caption
5161 \begin_layout Standard
5176 \begin_layout Standard
5192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5195 \begin_layout Standard
5201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5204 \begin_layout Standard
5210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5213 \begin_layout Standard
5219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5222 \begin_layout Standard
5229 <row topline="true">
5230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5233 \begin_layout Standard
5239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5242 \begin_layout Standard
5248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5251 \begin_layout Standard
5257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5260 \begin_layout Standard
5266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5269 \begin_layout Standard
5276 <row topline="true">
5277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5280 \begin_layout Standard
5286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5289 \begin_layout Standard
5295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5298 \begin_layout Standard
5304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5307 \begin_layout Standard
5313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5316 \begin_layout Standard
5323 <row topline="true">
5324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5327 \begin_layout Standard
5333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5336 \begin_layout Standard
5342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5345 \begin_layout Standard
5351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5354 \begin_layout Standard
5360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5363 \begin_layout Standard
5370 <row topline="true">
5371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5374 \begin_layout Standard
5380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5383 \begin_layout Standard
5389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5392 \begin_layout Standard
5398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5401 \begin_layout Standard
5407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5410 \begin_layout Standard
5417 <row topline="true" bottomline="true">
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Standard
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5430 \begin_layout Standard
5436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5439 \begin_layout Standard
5445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5448 \begin_layout Standard
5454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5457 \begin_layout Standard
5471 \begin_layout Standard
5472 \begin_inset VSpace medskip
5476 \begin_inset Note Greyedout
5479 \begin_layout Standard
5484 The table number is increased for every longtable, also if you didn't set
5486 For this reason you could have the case that e.g.
5488 2.4 follows on Table\InsetSpace ~
5489 2.1 in the list of tables if there are two longtables
5491 To avoid this you can add the following command in ERT behind every longtable
5495 \begin_layout Standard
5500 addtocounter{table}{-1}
5508 \begin_layout Standard
5509 \begin_inset Note Greyedout
5512 \begin_layout Standard
5517 If you are using the LaTeX-package
5522 \begin_inset LatexCommand index
5523 name "LaTeX-packages ! hyperref"
5527 to link cross-references, the link to a longtable caption will always point
5528 to the beginning of the document.
5536 \begin_layout Standard
5542 \begin_layout Subsubsection
5543 References to Longtables
5544 \begin_inset LatexCommand index
5545 name "Longtables ! References"
5552 \begin_layout Standard
5553 \begin_inset Tabular
5554 <lyxtabular version="3" rows="6" columns="5">
5555 <features islongtable="true">
5556 <column alignment="center" valignment="top" leftline="true" width="0">
5557 <column alignment="center" valignment="top" leftline="true" width="0">
5558 <column alignment="center" valignment="top" leftline="true" width="0">
5559 <column alignment="center" valignment="top" leftline="true" width="0">
5560 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5565 \begin_layout Standard
5566 \begin_inset Caption
5568 \begin_layout Standard
5569 Referenced longtable
5570 \begin_inset LatexCommand label
5571 name "tab:RefExample"
5584 \begin_layout Standard
5600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5603 \begin_layout Standard
5609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5612 \begin_layout Standard
5618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5621 \begin_layout Standard
5627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5630 \begin_layout Standard
5637 <row topline="true">
5638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5641 \begin_layout Standard
5647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5650 \begin_layout Standard
5656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5659 \begin_layout Standard
5665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5668 \begin_layout Standard
5674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5677 \begin_layout Standard
5684 <row topline="true">
5685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5688 \begin_layout Standard
5694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5697 \begin_layout Standard
5703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5706 \begin_layout Standard
5712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5715 \begin_layout Standard
5721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5724 \begin_layout Standard
5731 <row topline="true">
5732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5735 \begin_layout Standard
5741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5744 \begin_layout Standard
5750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5753 \begin_layout Standard
5759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5762 \begin_layout Standard
5768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5771 \begin_layout Standard
5778 <row topline="true">
5779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5782 \begin_layout Standard
5788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5791 \begin_layout Standard
5797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5800 \begin_layout Standard
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Standard
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5818 \begin_layout Standard
5825 <row topline="true" bottomline="true">
5826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5829 \begin_layout Standard
5835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5838 \begin_layout Standard
5844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5847 \begin_layout Standard
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Standard
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5865 \begin_layout Standard
5879 \begin_layout Standard
5880 To reference a longtable, insert a label into the caption.
5881 Note that you have to add the label prefix
5882 \begin_inset Quotes eld
5890 \begin_inset Quotes eld
5893 manually in the label field.
5896 \begin_layout Standard
5897 This is a reference to Table\InsetSpace ~
5899 \begin_inset LatexCommand ref
5900 reference "tab:RefExample"
5907 \begin_layout Standard
5908 The caption layout can be set together with all other caption of your document
5909 using the LaTeX-package
5914 \begin_inset LatexCommand index
5915 name "LaTeX-packages ! caption"
5919 , see section\InsetSpace ~
5921 \begin_inset LatexCommand ref
5922 reference "sec:Caption-Formatting"
5929 \begin_layout Subsubsection
5931 \begin_inset LatexCommand index
5932 name "Longtables ! Caption Width"
5939 \begin_layout Standard
5940 The maximal width of of caption lines is defined by the length
5947 Its default value is 4\InsetSpace \thinspace{}
5949 To change it add the following command to your document preamble or as
5950 ERT into your document before the longtable that should be affected
5953 \begin_layout Standard
5963 \begin_layout Standard
5964 where the width could have one of the units listed in appendix\InsetSpace ~
5966 \begin_inset LatexCommand ref
5967 reference "cha:Units-available-in"
5974 \begin_layout Standard
5975 The following tables show the difference:
5978 \begin_layout Standard
5979 \begin_inset Tabular
5980 <lyxtabular version="3" rows="6" columns="5">
5981 <features islongtable="true">
5982 <column alignment="center" valignment="top" leftline="true" width="0">
5983 <column alignment="center" valignment="top" leftline="true" width="0">
5984 <column alignment="center" valignment="top" leftline="true" width="0">
5985 <column alignment="center" valignment="top" leftline="true" width="0">
5986 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5991 \begin_layout Standard
5992 \begin_inset Caption
5994 \begin_layout Standard
5995 long full title with default width long full title with default width long
5996 full title with default width
6000 \begin_layout Standard
6001 caption with default width
6015 \begin_layout Standard
6031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6034 \begin_layout Standard
6040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6043 \begin_layout Standard
6049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6052 \begin_layout Standard
6058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6061 \begin_layout Standard
6068 <row topline="true">
6069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6072 \begin_layout Standard
6078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6081 \begin_layout Standard
6087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6090 \begin_layout Standard
6096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6099 \begin_layout Standard
6105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6108 \begin_layout Standard
6115 <row topline="true">
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6119 \begin_layout Standard
6125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6128 \begin_layout Standard
6134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6137 \begin_layout Standard
6143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6146 \begin_layout Standard
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6155 \begin_layout Standard
6162 <row topline="true">
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6166 \begin_layout Standard
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Standard
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6184 \begin_layout Standard
6190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6193 \begin_layout Standard
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6202 \begin_layout Standard
6209 <row topline="true">
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6213 \begin_layout Standard
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Standard
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6231 \begin_layout Standard
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6240 \begin_layout Standard
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6249 \begin_layout Standard
6256 <row topline="true" bottomline="true">
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6260 \begin_layout Standard
6266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6269 \begin_layout Standard
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6278 \begin_layout Standard
6284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6287 \begin_layout Standard
6293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6296 \begin_layout Standard
6310 \begin_layout Standard
6314 \begin_layout Standard
6326 \begin_inset Tabular
6327 <lyxtabular version="3" rows="6" columns="5">
6328 <features islongtable="true">
6329 <column alignment="center" valignment="top" leftline="true" width="0">
6330 <column alignment="center" valignment="top" leftline="true" width="0">
6331 <column alignment="center" valignment="top" leftline="true" width="0">
6332 <column alignment="center" valignment="top" leftline="true" width="0">
6333 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
6335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6338 \begin_layout Standard
6339 \begin_inset Caption
6341 \begin_layout Standard
6342 long full title with width set to 5\InsetSpace \thinspace{}
6343 cm long full title with width set to
6344 5\InsetSpace \thinspace{}
6345 cm long full title with width set to 5\InsetSpace \thinspace{}
6350 \begin_layout Standard
6351 caption with width\InsetSpace \thinspace{}
6352 =\InsetSpace \thinspace{}
6353 5\InsetSpace \thinspace{}
6368 \begin_layout Standard
6384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6387 \begin_layout Standard
6393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6396 \begin_layout Standard
6402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6405 \begin_layout Standard
6411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6414 \begin_layout Standard
6421 <row topline="true">
6422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6425 \begin_layout Standard
6431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6434 \begin_layout Standard
6440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6443 \begin_layout Standard
6449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6452 \begin_layout Standard
6458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6461 \begin_layout Standard
6468 <row topline="true">
6469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6472 \begin_layout Standard
6478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6481 \begin_layout Standard
6487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6490 \begin_layout Standard
6496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6499 \begin_layout Standard
6505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6508 \begin_layout Standard
6515 <row topline="true">
6516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6519 \begin_layout Standard
6525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6528 \begin_layout Standard
6534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6537 \begin_layout Standard
6543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6546 \begin_layout Standard
6552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6555 \begin_layout Standard
6562 <row topline="true">
6563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6566 \begin_layout Standard
6572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6575 \begin_layout Standard
6581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6584 \begin_layout Standard
6590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6593 \begin_layout Standard
6599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6602 \begin_layout Standard
6609 <row topline="true" bottomline="true">
6610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6613 \begin_layout Standard
6619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6622 \begin_layout Standard
6628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6631 \begin_layout Standard
6637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6640 \begin_layout Standard
6646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6649 \begin_layout Standard
6663 \begin_layout Standard
6667 \begin_layout Standard
6681 \begin_layout Standard
6682 \begin_inset Note Greyedout
6685 \begin_layout Standard
6690 When the LaTeX-package
6695 \begin_inset LatexCommand index
6696 name "LaTeX-packages ! caption"
6700 is used, as in this document, the full page width is used for the caption
6701 when you use the default value of 4\InsetSpace \thinspace{}
6709 To get in this case exactly a 4\InsetSpace \thinspace{}
6710 in wide caption, you can either use a value
6711 slightly different from 4.0\InsetSpace \thinspace{}
6713 3.99\InsetSpace \thinspace{}
6714 in, or the LaTeX-command
6718 captionsetup{width=value}
6720 that is provided by the
6732 \begin_layout Subsubsection
6733 Different Captions for Table Pages
6734 \begin_inset LatexCommand index
6735 name "Longtables ! Different Captions for Pages"
6742 \begin_layout Standard
6743 When the other captions should differ from the one of the first table page,
6744 insert a caption with a non-empty short title in a dummy caption row marked
6746 The caption used for the other table pages is inserted as caption without
6747 a short title in a dummy caption row that is marked as main header.
6748 When this caption shouldn't include the table number, use the command
6751 \begin_layout Standard
6756 caption*{caption text}
6759 \begin_layout Standard
6760 instead of LyX's caption box.
6761 The label to reference the table is inserted into the caption of the first
6765 \begin_inset LatexCommand ref
6766 reference "tab:DiffCaptions"
6770 is an example for a longtable with different heading where the second caption
6771 doesn't include the table number.
6774 \begin_layout Standard
6776 \begin_inset Tabular
6777 <lyxtabular version="3" rows="60" columns="3">
6778 <features islongtable="true">
6779 <column alignment="left" valignment="top" leftline="true" width="0cm">
6780 <column alignment="left" valignment="top" rightline="true" width="0pt">
6781 <column alignment="right" valignment="top" rightline="true" width="0pt">
6782 <row endfirsthead="true">
6783 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6786 \begin_layout Standard
6787 \begin_inset Caption
6789 \begin_layout Standard
6791 \begin_inset LatexCommand label
6792 name "tab:DiffCaptions"
6800 \begin_layout Standard
6815 \begin_layout Standard
6831 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6834 \begin_layout Standard
6840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6843 \begin_layout Standard
6850 <row topline="true" bottomline="true" endfirsthead="true">
6851 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6854 \begin_layout Standard
6857 Example Phone List (ignore the names)
6862 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6865 \begin_layout Standard
6871 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6874 \begin_layout Standard
6881 <row topline="true" bottomline="true" endfirsthead="true">
6882 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6885 \begin_layout Standard
6893 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6896 \begin_layout Standard
6902 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6905 \begin_layout Standard
6914 <row bottomline="true" endhead="true">
6915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6918 \begin_layout Standard
6922 \begin_layout Standard
6926 caption*{Continued Example Phone List}
6940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6943 \begin_layout Standard
6949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6952 \begin_layout Standard
6959 <row topline="true" bottomline="true" endhead="true">
6960 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6963 \begin_layout Standard
6971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6974 \begin_layout Standard
6980 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6983 \begin_layout Standard
6990 <row topline="true" bottomline="true" endhead="true">
6991 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6994 \begin_layout Standard
7002 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7005 \begin_layout Standard
7011 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7014 \begin_layout Standard
7023 <row topline="true" bottomline="true" endfoot="true">
7024 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
7027 \begin_layout Standard
7028 continued on next page
7033 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7036 \begin_layout Standard
7042 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7045 \begin_layout Standard
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7056 \begin_layout Standard
7064 <cell alignment="center" valignment="top" topline="true" usebox="none">
7067 \begin_layout Standard
7073 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7076 \begin_layout Standard
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Standard
7095 <cell alignment="center" valignment="top" topline="true" usebox="none">
7098 \begin_layout Standard
7104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7107 \begin_layout Standard
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Standard
7126 <cell alignment="center" valignment="top" topline="true" usebox="none">
7129 \begin_layout Standard
7135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7138 \begin_layout Standard
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7149 \begin_layout Standard
7157 <cell alignment="center" valignment="top" topline="true" usebox="none">
7160 \begin_layout Standard
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7169 \begin_layout Standard
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7180 \begin_layout Standard
7188 <cell alignment="center" valignment="top" topline="true" usebox="none">
7191 \begin_layout Standard
7197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7200 \begin_layout Standard
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Standard
7219 <cell alignment="center" valignment="top" topline="true" usebox="none">
7222 \begin_layout Standard
7228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7231 \begin_layout Standard
7239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7242 \begin_layout Standard
7250 <cell alignment="center" valignment="top" topline="true" usebox="none">
7253 \begin_layout Standard
7259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7262 \begin_layout Standard
7270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7273 \begin_layout Standard
7281 <cell alignment="center" valignment="top" topline="true" usebox="none">
7284 \begin_layout Standard
7290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7293 \begin_layout Standard
7301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7304 \begin_layout Standard
7312 <cell alignment="center" valignment="top" topline="true" usebox="none">
7315 \begin_layout Standard
7321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7324 \begin_layout Standard
7332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7335 \begin_layout Standard
7343 <cell alignment="center" valignment="top" topline="true" usebox="none">
7346 \begin_layout Standard
7352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7355 \begin_layout Standard
7363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7366 \begin_layout Standard
7374 <cell alignment="center" valignment="top" topline="true" usebox="none">
7377 \begin_layout Standard
7383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7386 \begin_layout Standard
7394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7397 \begin_layout Standard
7405 <cell alignment="center" valignment="top" topline="true" usebox="none">
7408 \begin_layout Standard
7414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7417 \begin_layout Standard
7425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7428 \begin_layout Standard
7436 <cell alignment="center" valignment="top" topline="true" usebox="none">
7439 \begin_layout Standard
7445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7448 \begin_layout Standard
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7459 \begin_layout Standard
7467 <cell alignment="center" valignment="top" topline="true" usebox="none">
7470 \begin_layout Standard
7476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7479 \begin_layout Standard
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7490 \begin_layout Standard
7499 \begin_layout Standard
7510 <cell alignment="center" valignment="top" topline="true" usebox="none">
7513 \begin_layout Standard
7519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7522 \begin_layout Standard
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7533 \begin_layout Standard
7541 <cell alignment="center" valignment="top" topline="true" usebox="none">
7544 \begin_layout Standard
7550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7553 \begin_layout Standard
7561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7564 \begin_layout Standard
7572 <cell alignment="center" valignment="top" topline="true" usebox="none">
7575 \begin_layout Standard
7581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Standard
7592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7595 \begin_layout Standard
7603 <cell alignment="center" valignment="top" topline="true" usebox="none">
7606 \begin_layout Standard
7612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Standard
7623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7626 \begin_layout Standard
7634 <cell alignment="center" valignment="top" topline="true" usebox="none">
7637 \begin_layout Standard
7643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Standard
7654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7657 \begin_layout Standard
7665 <cell alignment="center" valignment="top" topline="true" usebox="none">
7668 \begin_layout Standard
7674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7677 \begin_layout Standard
7685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7688 \begin_layout Standard
7696 <cell alignment="center" valignment="top" topline="true" usebox="none">
7699 \begin_layout Standard
7705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7708 \begin_layout Standard
7716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7719 \begin_layout Standard
7727 <cell alignment="center" valignment="top" topline="true" usebox="none">
7730 \begin_layout Standard
7736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7739 \begin_layout Standard
7747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7750 \begin_layout Standard
7758 <cell alignment="center" valignment="top" topline="true" usebox="none">
7761 \begin_layout Standard
7767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Standard
7778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7781 \begin_layout Standard
7789 <cell alignment="center" valignment="top" topline="true" usebox="none">
7792 \begin_layout Standard
7798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Standard
7809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7812 \begin_layout Standard
7820 <cell alignment="center" valignment="top" topline="true" usebox="none">
7823 \begin_layout Standard
7829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Standard
7840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7843 \begin_layout Standard
7851 <cell alignment="center" valignment="top" topline="true" usebox="none">
7854 \begin_layout Standard
7860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Standard
7871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7874 \begin_layout Standard
7882 <cell alignment="center" valignment="top" topline="true" usebox="none">
7885 \begin_layout Standard
7891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Standard
7902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7905 \begin_layout Standard
7913 <cell alignment="center" valignment="top" topline="true" usebox="none">
7916 \begin_layout Standard
7922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Standard
7933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7936 \begin_layout Standard
7944 <cell alignment="center" valignment="top" topline="true" usebox="none">
7947 \begin_layout Standard
7953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Standard
7964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7967 \begin_layout Standard
7975 <cell alignment="center" valignment="top" topline="true" usebox="none">
7978 \begin_layout Standard
7984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Standard
7994 <row bottomline="true">
7995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7998 \begin_layout Standard
8006 <cell alignment="center" valignment="top" topline="true" usebox="none">
8009 \begin_layout Standard
8015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Standard
8025 <row bottomline="true">
8026 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8029 \begin_layout Standard
8035 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8038 \begin_layout Standard
8044 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8047 \begin_layout Standard
8055 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8058 \begin_layout Standard
8066 <cell alignment="center" valignment="top" topline="true" usebox="none">
8069 \begin_layout Standard
8075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8078 \begin_layout Standard
8086 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8089 \begin_layout Standard
8097 <cell alignment="center" valignment="top" topline="true" usebox="none">
8100 \begin_layout Standard
8106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8109 \begin_layout Standard
8117 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8120 \begin_layout Standard
8128 <cell alignment="center" valignment="top" topline="true" usebox="none">
8131 \begin_layout Standard
8137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8140 \begin_layout Standard
8148 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8151 \begin_layout Standard
8159 <cell alignment="center" valignment="top" topline="true" usebox="none">
8162 \begin_layout Standard
8168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8171 \begin_layout Standard
8179 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8182 \begin_layout Standard
8190 <cell alignment="center" valignment="top" topline="true" usebox="none">
8193 \begin_layout Standard
8199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8202 \begin_layout Standard
8210 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8213 \begin_layout Standard
8221 <cell alignment="center" valignment="top" topline="true" usebox="none">
8224 \begin_layout Standard
8230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8233 \begin_layout Standard
8241 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8244 \begin_layout Standard
8252 <cell alignment="center" valignment="top" topline="true" usebox="none">
8255 \begin_layout Standard
8261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8264 \begin_layout Standard
8272 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8275 \begin_layout Standard
8283 <cell alignment="center" valignment="top" topline="true" usebox="none">
8286 \begin_layout Standard
8292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8295 \begin_layout Standard
8303 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8306 \begin_layout Standard
8314 <cell alignment="center" valignment="top" topline="true" usebox="none">
8317 \begin_layout Standard
8323 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8326 \begin_layout Standard
8334 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8337 \begin_layout Standard
8345 <cell alignment="center" valignment="top" topline="true" usebox="none">
8348 \begin_layout Standard
8354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8357 \begin_layout Standard
8365 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8368 \begin_layout Standard
8376 <cell alignment="center" valignment="top" topline="true" usebox="none">
8379 \begin_layout Standard
8385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8388 \begin_layout Standard
8396 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8399 \begin_layout Standard
8407 <cell alignment="center" valignment="top" topline="true" usebox="none">
8410 \begin_layout Standard
8416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8419 \begin_layout Standard
8427 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8430 \begin_layout Standard
8438 <cell alignment="center" valignment="top" topline="true" usebox="none">
8441 \begin_layout Standard
8447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8450 \begin_layout Standard
8458 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8461 \begin_layout Standard
8469 <cell alignment="center" valignment="top" topline="true" usebox="none">
8472 \begin_layout Standard
8478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8481 \begin_layout Standard
8489 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8492 \begin_layout Standard
8500 <cell alignment="center" valignment="top" topline="true" usebox="none">
8503 \begin_layout Standard
8509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8512 \begin_layout Standard
8520 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8523 \begin_layout Standard
8531 <cell alignment="center" valignment="top" topline="true" usebox="none">
8534 \begin_layout Standard
8540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8543 \begin_layout Standard
8551 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8554 \begin_layout Standard
8562 <cell alignment="center" valignment="top" topline="true" usebox="none">
8565 \begin_layout Standard
8571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8574 \begin_layout Standard
8582 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8585 \begin_layout Standard
8593 <cell alignment="center" valignment="top" topline="true" usebox="none">
8596 \begin_layout Standard
8602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8605 \begin_layout Standard
8613 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8616 \begin_layout Standard
8624 <cell alignment="center" valignment="top" topline="true" usebox="none">
8627 \begin_layout Standard
8633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8636 \begin_layout Standard
8643 <row bottomline="true">
8644 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8647 \begin_layout Standard
8655 <cell alignment="center" valignment="top" topline="true" usebox="none">
8658 \begin_layout Standard
8664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8667 \begin_layout Standard
8674 <row bottomline="true" endlastfoot="true">
8675 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8678 \begin_layout Standard
8684 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8687 \begin_layout Standard
8693 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8696 \begin_layout Standard
8710 \begin_layout Section
8711 Special Longtable Issues
8712 \begin_inset LatexCommand label
8713 name "sec:Special-Longtable-Issues"
8720 \begin_layout Subsection
8721 Longtable Calculation
8722 \begin_inset LatexCommand index
8723 name "Longtables ! Calculation"
8730 \begin_layout Standard
8731 LaTeX calculates the height of table pages and their page breaks using so
8733 Chunks are pieces of the tables that are at once in LaTeX's memory.
8734 The default value is historically set to only 20 table rows.
8735 If you are using longtables with many pages this may slow down the creation
8737 You can safely increase the chunk size to values of 100-1000 by adding
8738 this command line to your document preamble:
8741 \begin_layout Standard
8746 setcounter{LTchunksize}{100}
8749 \begin_layout Subsection
8750 Floats and Longtables
8751 \begin_inset LatexCommand index
8752 name "Longtables ! Floats"
8759 \begin_layout Standard
8760 There might be problems when a float appears on the same page where a longtable
8762 To avoid such situation, add the command
8768 as ERT before your longtable.
8771 \begin_layout Subsection
8773 \begin_inset LatexCommand index
8774 name "Longtables ! Forced Page Breaks"
8781 \begin_layout Standard
8782 By default tables are only broken between rows.
8783 If you have a cell with multiples lines and want to have a page break within
8784 the cell, insert the new line command
8785 \begin_inset Quotes eld
8797 \begin_inset Quotes erd
8800 as ERT at this point of the cell where it should be broken.
8809 command you have to insert in ERT so many
8810 \begin_inset Quotes eld
8818 \begin_inset Quotes erd
8821 characters like the number of the following table columns.
8826 is the character to separate table cells.
8827 Write in ERT after each
8831 the content of the corresponding following cell and delete the content
8842 command, insert so many
8846 characters like the number of table columns before the current column.
8847 In Table\InsetSpace ~
8849 \begin_inset LatexCommand ref
8850 reference "tab:ForcedPagebreak"
8854 the cell that should be broken is in the second column followed by another
8856 Therefore the following command was inserted in the cell as ERT behind
8858 \begin_inset Quotes eld
8866 \begin_inset Quotes erd
8872 \begin_layout Standard
8884 \begin_layout Standard
8886 \begin_inset Quotes eld
8890 \begin_inset Quotes erd
8893 in the third columns of the row was deleted.
8894 If your footer row of the longtable has for a certain reason no upper line
8895 but you would have a horizontal line where the cell is broken, use this
8899 \begin_layout Standard
8913 \begin_layout Standard
8914 When the cell to be broken is in the last column, the command
8917 \begin_layout Standard
8924 parf\SpecialChar \textcompwordmark{}
8928 \begin_layout Standard
8929 must be inserted as ERT at the beginning of the cell.
8930 This assures that the part of the cell that will be displayed on the new
8931 page appears with the full width.
8934 \begin_layout Standard
8936 \begin_inset Tabular
8937 <lyxtabular version="3" rows="39" columns="3">
8938 <features islongtable="true">
8939 <column alignment="left" valignment="top" leftline="true" width="0cm">
8940 <column alignment="left" valignment="top" rightline="true" width="3cm">
8941 <column alignment="right" valignment="top" rightline="true" width="0pt">
8942 <row endfirsthead="true">
8943 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8946 \begin_layout Standard
8947 \begin_inset Caption
8949 \begin_layout Standard
8950 Table with forced page break in table cell
8951 \begin_inset LatexCommand label
8952 name "tab:ForcedPagebreak"
8960 \begin_layout Standard
8961 Table with forced page break in table cell
8975 \begin_layout Standard
8991 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8994 \begin_layout Standard
9000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9003 \begin_layout Standard
9010 <row topline="true" bottomline="true" endfirsthead="true">
9011 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9014 \begin_layout Standard
9017 Example Phone List (ignore the names)
9022 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9025 \begin_layout Standard
9031 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9034 \begin_layout Standard
9041 <row topline="true" bottomline="true" endfirsthead="true">
9042 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9045 \begin_layout Standard
9053 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9056 \begin_layout Standard
9062 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9065 \begin_layout Standard
9074 <row bottomline="true" endhead="true">
9075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9078 \begin_layout Standard
9082 \begin_layout Standard
9086 caption*{Continued table with forced page break in table cell}
9100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9103 \begin_layout Standard
9109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9112 \begin_layout Standard
9119 <row topline="true" bottomline="true" endhead="true">
9120 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9123 \begin_layout Standard
9131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9134 \begin_layout Standard
9140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9143 \begin_layout Standard
9150 <row topline="true" bottomline="true" endhead="true">
9151 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9154 \begin_layout Standard
9162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9165 \begin_layout Standard
9171 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9174 \begin_layout Standard
9183 <row topline="true" bottomline="true" endfoot="true">
9184 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
9187 \begin_layout Standard
9188 continued on next page
9193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9196 \begin_layout Standard
9202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9205 \begin_layout Standard
9213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9216 \begin_layout Standard
9224 <cell alignment="center" valignment="top" topline="true" usebox="none">
9227 \begin_layout Standard
9233 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9236 \begin_layout Standard
9244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9247 \begin_layout Standard
9255 <cell alignment="center" valignment="top" topline="true" usebox="none">
9258 \begin_layout Standard
9264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9267 \begin_layout Standard
9275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9278 \begin_layout Standard
9286 <cell alignment="center" valignment="top" topline="true" usebox="none">
9289 \begin_layout Standard
9295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9298 \begin_layout Standard
9306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9309 \begin_layout Standard
9317 <cell alignment="center" valignment="top" topline="true" usebox="none">
9320 \begin_layout Standard
9326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9329 \begin_layout Standard
9337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9340 \begin_layout Standard
9348 <cell alignment="center" valignment="top" topline="true" usebox="none">
9351 \begin_layout Standard
9357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9360 \begin_layout Standard
9368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9371 \begin_layout Standard
9379 <cell alignment="center" valignment="top" topline="true" usebox="none">
9382 \begin_layout Standard
9388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9391 \begin_layout Standard
9399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9402 \begin_layout Standard
9410 <cell alignment="center" valignment="top" topline="true" usebox="none">
9413 \begin_layout Standard
9419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9422 \begin_layout Standard
9430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9433 \begin_layout Standard
9441 <cell alignment="center" valignment="top" topline="true" usebox="none">
9444 \begin_layout Standard
9450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9453 \begin_layout Standard
9461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9464 \begin_layout Standard
9472 <cell alignment="center" valignment="top" topline="true" usebox="none">
9475 \begin_layout Standard
9481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9484 \begin_layout Standard
9492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9495 \begin_layout Standard
9503 <cell alignment="center" valignment="top" topline="true" usebox="none">
9506 \begin_layout Standard
9512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9515 \begin_layout Standard
9523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9526 \begin_layout Standard
9534 <cell alignment="center" valignment="top" topline="true" usebox="none">
9537 \begin_layout Standard
9543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9546 \begin_layout Standard
9554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9557 \begin_layout Standard
9565 <cell alignment="center" valignment="top" topline="true" usebox="none">
9568 \begin_layout Standard
9574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9577 \begin_layout Standard
9585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9588 \begin_layout Standard
9596 <cell alignment="center" valignment="top" topline="true" usebox="none">
9599 \begin_layout Standard
9605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9608 \begin_layout Standard
9616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9619 \begin_layout Standard
9627 <cell alignment="center" valignment="top" topline="true" usebox="none">
9630 \begin_layout Standard
9636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9639 \begin_layout Standard
9647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9650 \begin_layout Standard
9658 <cell alignment="center" valignment="top" topline="true" usebox="none">
9661 \begin_layout Standard
9667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9670 \begin_layout Standard
9678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9681 \begin_layout Standard
9689 <cell alignment="center" valignment="top" topline="true" usebox="none">
9692 \begin_layout Standard
9698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9701 \begin_layout Standard
9709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9712 \begin_layout Standard
9720 <cell alignment="center" valignment="top" topline="true" usebox="none">
9723 \begin_layout Standard
9729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9732 \begin_layout Standard
9740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9743 \begin_layout Standard
9751 <cell alignment="center" valignment="top" topline="true" usebox="none">
9754 \begin_layout Standard
9760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9763 \begin_layout Standard
9771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9774 \begin_layout Standard
9782 <cell alignment="center" valignment="top" topline="true" usebox="none">
9785 \begin_layout Standard
9791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9794 \begin_layout Standard
9802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9805 \begin_layout Standard
9813 <cell alignment="center" valignment="top" topline="true" usebox="none">
9816 \begin_layout Standard
9822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9825 \begin_layout Standard
9833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9836 \begin_layout Standard
9844 <cell alignment="center" valignment="top" topline="true" usebox="none">
9847 \begin_layout Standard
9853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9856 \begin_layout Standard
9864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9867 \begin_layout Standard
9875 <cell alignment="center" valignment="top" topline="true" usebox="none">
9878 \begin_layout Standard
9884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9887 \begin_layout Standard
9895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9898 \begin_layout Standard
9906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9909 \begin_layout Standard
9911 Fürst von Montecompatri, 11.
9912 Fürst von Sulmona und Vivaro, 10.
9913 Fürst von Rossano, 5.
9914 Herzog von Canemorte, 11.
9915 Herzog von Palombara, 5.
9916 Herzog von Castelchiodato,
9920 \begin_layout Standard
9929 \begin_layout Standard
9937 Herzog von Poggionativo, 11.
9938 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9939 Graf von Valinfreda, 11.
9940 Baron von Cropalati, 11.
9941 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9949 \begin_layout Standard
9957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9960 \begin_layout Standard
9968 <cell alignment="center" valignment="top" topline="true" usebox="none">
9971 \begin_layout Standard
9977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9980 \begin_layout Standard
9988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9991 \begin_layout Standard
9999 <cell alignment="center" valignment="top" topline="true" usebox="none">
10002 \begin_layout Standard
10008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10011 \begin_layout Standard
10019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10022 \begin_layout Standard
10030 <cell alignment="center" valignment="top" topline="true" usebox="none">
10033 \begin_layout Standard
10039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10042 \begin_layout Standard
10050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10053 \begin_layout Standard
10061 <cell alignment="center" valignment="top" topline="true" usebox="none">
10064 \begin_layout Standard
10070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10073 \begin_layout Standard
10081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10084 \begin_layout Standard
10092 <cell alignment="center" valignment="top" topline="true" usebox="none">
10095 \begin_layout Standard
10101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10104 \begin_layout Standard
10112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10115 \begin_layout Standard
10123 <cell alignment="center" valignment="top" topline="true" usebox="none">
10126 \begin_layout Standard
10132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10135 \begin_layout Standard
10143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10146 \begin_layout Standard
10154 <cell alignment="center" valignment="top" topline="true" usebox="none">
10157 \begin_layout Standard
10163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10166 \begin_layout Standard
10173 <row bottomline="true">
10174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10177 \begin_layout Standard
10185 <cell alignment="center" valignment="top" topline="true" usebox="none">
10188 \begin_layout Standard
10194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10197 \begin_layout Standard
10204 <row endlastfoot="true">
10205 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10208 \begin_layout Standard
10214 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10217 \begin_layout Standard
10223 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10226 \begin_layout Standard
10240 \begin_layout Standard
10246 \begin_layout Section
10247 Multiple Lines Columns and Rows
10250 \begin_layout Subsection
10251 Multiple Lines in Table Cells
10252 \begin_inset LatexCommand label
10253 name "sub:Multiple-Lines-in"
10258 \begin_inset LatexCommand index
10259 name "Multiple Lines in Table Cells"
10264 \begin_inset LatexCommand index
10265 name "Table ! Linebreaks"
10272 \begin_layout Standard
10274 \begin_inset Float table
10280 \begin_layout Standard
10281 \begin_inset Caption
10283 \begin_layout Standard
10284 \begin_inset LatexCommand label
10285 name "tab:Table-with-multiple"
10289 Table with multiple lines in cells
10297 \begin_layout Standard
10299 \begin_inset Tabular
10300 <lyxtabular version="3" rows="3" columns="3">
10302 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10303 <column alignment="center" valignment="middle" leftline="true" width="0">
10304 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10305 <row topline="true">
10306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10309 \begin_layout Standard
10314 \begin_layout Standard
10328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10331 \begin_layout Standard
10337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10340 \begin_layout Standard
10347 <row topline="true">
10348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10351 \begin_layout Standard
10357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10360 \begin_layout Standard
10366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10369 \begin_layout Standard
10376 <row topline="true" bottomline="true">
10377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10380 \begin_layout Standard
10386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10389 \begin_layout Standard
10395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10398 \begin_layout Standard
10417 \begin_layout Standard
10418 Adjusting a fixed width for a column, enables to enter text as a paragraph
10419 with multiple lines and hyphenations.
10422 \begin_layout Standard
10423 To produce Table\InsetSpace ~
10425 \begin_inset LatexCommand ref
10426 reference "tab:Table-with-multiple"
10430 , create a 3×3 table, mark the first cell and right-click on it.
10431 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10432 cm and choose centered
10433 for the vertical and horizontal alignment.
10434 The vertical alignment is used for all cells of the row.
10435 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10436 cm, only one line will appear.
10437 To get two lines, we add a line break with the command
10440 \begin_layout Standard
10448 \begin_layout Standard
10450 If the text is wider than the set cell width it will automatically be broken
10454 \begin_layout Standard
10455 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10456 by LaTeX if it is the first entry.
10457 Therefore you need to insert something, to make the word not being the
10458 first entry: Add the command
10461 \begin_layout Standard
10469 \begin_layout Standard
10470 in ERT before the word.
10471 As the space is zero, it doesn't change the output.
10474 \begin_inset LatexCommand ref
10475 reference "tab:Table-with-and"
10482 \begin_layout Standard
10483 \begin_inset Float table
10489 \begin_layout Standard
10490 \begin_inset Caption
10492 \begin_layout Standard
10493 \begin_inset LatexCommand label
10494 name "tab:Table-with-and"
10498 Table with and without hyphenation
10506 \begin_layout Standard
10510 \begin_inset Tabular
10511 <lyxtabular version="3" rows="3" columns="3">
10513 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10514 <column alignment="center" valignment="middle" leftline="true" width="0">
10515 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10516 <row topline="true">
10517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10520 \begin_layout Standard
10521 verylongtablecellword
10526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10529 \begin_layout Standard
10535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10538 \begin_layout Standard
10545 <row topline="true">
10546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10549 \begin_layout Standard
10555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10558 \begin_layout Standard
10564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10567 \begin_layout Standard
10574 <row topline="true" bottomline="true">
10575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10578 \begin_layout Standard
10584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10587 \begin_layout Standard
10593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10596 \begin_layout Standard
10610 \begin_inset Tabular
10611 <lyxtabular version="3" rows="3" columns="3">
10613 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10614 <column alignment="center" valignment="middle" leftline="true" width="0">
10615 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10616 <row topline="true">
10617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10620 \begin_layout Standard
10624 \begin_layout Standard
10633 verylongtablecellword
10638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10641 \begin_layout Standard
10647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10650 \begin_layout Standard
10657 <row topline="true">
10658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10661 \begin_layout Standard
10667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10670 \begin_layout Standard
10676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10679 \begin_layout Standard
10686 <row topline="true" bottomline="true">
10687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10690 \begin_layout Standard
10696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10699 \begin_layout Standard
10705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10708 \begin_layout Standard
10729 \begin_layout Standard
10735 \begin_layout Subsection
10737 \begin_inset LatexCommand label
10738 name "sub:Multicolumns"
10743 \begin_inset LatexCommand index
10744 name "Multicolumns"
10749 \begin_inset LatexCommand index
10750 name "Table ! Multicolumns"
10757 \begin_layout Subsubsection
10761 \begin_layout Standard
10762 To span a cell over multiple columns, mark as much cells within a line that
10763 should be one spanned cell and use either the table-toolbar button
10764 \begin_inset Graphics
10765 filename ../images/tabular-feature_multicolumn.xpm
10767 scaleBeforeRotation
10773 Edit\SpecialChar \menuseparator
10774 Table\SpecialChar \menuseparator
10777 , or right click on the marked cells and choose multicolumn in the appearing
10778 table dialog under the tab
10785 \begin_layout Standard
10786 Multicolumns have there own cell settings.
10787 That means changing cell borders, cell alignment, and the width only affects
10789 Here is an example table with a multicolumn cell in the first row and one
10790 in the last row without the upper border:
10793 \begin_layout Standard
10795 \begin_inset Tabular
10796 <lyxtabular version="3" rows="3" columns="4">
10797 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10798 <column alignment="center" valignment="top" leftline="true" width="0pt">
10799 <column alignment="center" valignment="middle" leftline="true" width="0">
10800 <column alignment="center" valignment="top" leftline="true" width="0in">
10801 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10802 <row topline="true" bottomline="true">
10803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10806 \begin_layout Standard
10812 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10815 \begin_layout Standard
10821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10824 \begin_layout Standard
10830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10833 \begin_layout Standard
10840 <row topline="true">
10841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10844 \begin_layout Standard
10859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10862 \begin_layout Standard
10868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10871 \begin_layout Standard
10877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10880 \begin_layout Standard
10887 <row topline="true" bottomline="true">
10888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10891 \begin_layout Standard
10897 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10900 \begin_layout Standard
10906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10909 \begin_layout Standard
10915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10918 \begin_layout Standard
10932 \begin_layout Subsubsection
10933 Multicolumn Calculations
10934 \begin_inset LatexCommand label
10935 name "sub:Multicolumn-Calculations"
10940 \begin_inset LatexCommand index
10941 name "Multicolumns ! Calculations"
10948 \begin_layout Standard
10949 LyX supports multicolumns directly, but we have to take notice of the cell
10950 width of the columns spanned by the multicolumn cell.
10953 \begin_layout Standard
10954 \begin_inset Float table
10959 \begin_layout Standard
10960 \begin_inset Caption
10962 \begin_layout Standard
10963 \begin_inset LatexCommand label
10964 name "tab:Table-with-centered"
10968 Table with centered multicolumn text above two columns that have exactly
10969 half the width of the multicolumn cell
10970 \begin_inset OptArg
10973 \begin_layout Standard
10974 Perfect multicolumn table
10987 \begin_layout Standard
10989 \begin_inset Tabular
10990 <lyxtabular version="3" rows="3" columns="3">
10992 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10993 <column alignment="center" valignment="middle" leftline="true" width="0">
10994 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10995 <row topline="true">
10996 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10999 \begin_layout Standard
11000 multiple lines multicolumn
11005 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11008 \begin_layout Standard
11014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11017 \begin_layout Standard
11024 <row topline="true">
11025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11028 \begin_layout Standard
11034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11037 \begin_layout Standard
11043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11046 \begin_layout Standard
11053 <row topline="true" bottomline="true">
11054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11057 \begin_layout Standard
11063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11066 \begin_layout Standard
11072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11075 \begin_layout Standard
11094 \begin_layout Standard
11095 To create for example Table\InsetSpace ~
11097 \begin_inset LatexCommand ref
11098 reference "tab:Table-with-centered"
11102 , mark the first two cells in the first row of a 3×3 table and right-click
11104 Now choose for this cell
11112 and a width of 2.5\InsetSpace \thinspace{}
11113 cm in the table dialog.
11114 The spanned columns should have exactly half the width of the multicolumn
11115 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
11116 cm for the first column.
11117 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
11119 width - width of first column).
11120 This was done for Table\InsetSpace ~
11122 \begin_inset LatexCommand ref
11123 reference "tab:Table-without-half"
11130 \begin_layout Standard
11131 \begin_inset Float table
11136 \begin_layout Standard
11137 \begin_inset Caption
11139 \begin_layout Standard
11140 \begin_inset LatexCommand label
11141 name "tab:Table-without-half"
11145 Table where the spanned table columns have not exactly half the width of
11146 the multicolumn cell
11147 \begin_inset OptArg
11150 \begin_layout Standard
11151 Imperfect multicolumn table
11164 \begin_layout Standard
11166 \begin_inset Tabular
11167 <lyxtabular version="3" rows="3" columns="3">
11169 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
11170 <column alignment="center" valignment="top" leftline="true" width="0">
11171 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11172 <row topline="true" bottomline="true">
11173 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11176 \begin_layout Standard
11177 multiple lines multicolumn
11182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11185 \begin_layout Standard
11191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11194 \begin_layout Standard
11201 <row topline="true">
11202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11205 \begin_layout Standard
11211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11214 \begin_layout Standard
11220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11223 \begin_layout Standard
11230 <row topline="true" bottomline="true">
11231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11234 \begin_layout Standard
11240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11243 \begin_layout Standard
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11252 \begin_layout Standard
11271 \begin_layout Standard
11272 You can see that the first column has not the half width of the multicolumn
11273 cell, it is a bit bigger.
11274 The reason is that the given width of a cell
11275 \begin_inset Formula $W_{g}$
11278 is not its total width
11279 \begin_inset Formula $W_{\mathrm{tot}}$
11282 because a cell is always a bit larger than its given width.
11283 Appendix\InsetSpace ~
11285 \begin_inset LatexCommand eqref
11286 reference "cha:Explanation-of-Equation"
11290 explains it in detail.
11293 \begin_layout Standard
11294 The needed given width
11295 \begin_inset Formula $W_{g\, n}$
11302 columns are spanned can be calculated, so that each column has a total
11304 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11308 \begin_inset Formula \begin{equation}
11309 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11316 \begin_layout Standard
11317 In our case we have
11318 \begin_inset Formula $n=2$
11322 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11325 cm and the default values for the lengths, so that equation
11326 \begin_inset LatexCommand ref
11332 \begin_inset Formula \begin{equation}
11333 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11340 \begin_layout Standard
11341 To enable calculations in LaTeX, the LaTeX-package
11345 must be loaded with the document preamble line
11346 \begin_inset LatexCommand index
11347 name "LaTeX-packages ! calc"
11354 \begin_layout Standard
11362 \begin_layout Standard
11363 LyX does not allow to calculate lengths in the width-field of the table
11365 Therefore you have to format the column by inserting a LaTeX-argument in
11367 Here is an overview about the arguments:
11370 \begin_layout Itemize
11375 creates cell with a fixed width, its text is vertically top-aligned
11378 \begin_layout Itemize
11383 creates cell with a fixed width, its text is vertically centered
11386 \begin_layout Itemize
11391 creates cell with a fixed width, its text is vertically bottom-aligned
11394 \begin_layout Standard
11395 By entering a LaTeX-argument, all cell settings set in the table dialog
11399 \begin_layout Standard
11400 \begin_inset Note Greyedout
11403 \begin_layout Standard
11408 Due to a bug, LyX shows the overwritten settings anyway.
11416 \begin_layout Standard
11417 As the text should be horizontally centered, the command
11424 You can now enter the following LaTeX-argument for the first spanned column:
11427 \begin_layout Standard
11432 centering}m{1.25cm-6.2pt}
11435 \begin_layout Standard
11440 means, that the commands inside the braces are applied before the cell
11444 \begin_layout Standard
11445 Although we have chosen centered alignment for the text of the multicolumn
11446 cell, it is still left aligned.
11447 This is because LyX only applies the alignment to single columns.
11448 So we have to use for the multicolumn the LaTeX-argument
11451 \begin_layout Standard
11459 \begin_layout Subsection
11461 \begin_inset LatexCommand index
11467 \begin_inset LatexCommand index
11468 name "Table ! Multirows"
11473 \begin_inset LatexCommand index
11474 name "LaTeX-packages ! multirow"
11481 \begin_layout Standard
11482 In contrary to multicolumns multirows are not yet supported by LyX so a
11483 bit of ERT needs to be used.
11484 To use multirows load the LaTeX-package
11488 in your document preamble with the command
11491 \begin_layout Standard
11496 usepackage{multirow}
11499 \begin_layout Standard
11500 Multirows are created with the command
11503 \begin_layout Standard
11508 multirow{number of rows}{cell width}{cell entry}
11511 \begin_layout Standard
11512 To create the following table:
11515 \begin_layout Standard
11520 \begin_layout Standard
11534 \begin_inset Tabular
11535 <lyxtabular version="3" rows="3" columns="3">
11537 <column alignment="center" valignment="top" leftline="true" width="0">
11538 <column alignment="center" valignment="top" leftline="true" width="0">
11539 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11540 <row topline="true">
11541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11544 \begin_layout Standard
11550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11553 \begin_layout Standard
11559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11562 \begin_layout Standard
11569 <row topline="true">
11570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11573 \begin_layout Standard
11577 \begin_layout Standard
11581 multirow{2}{2.5cm}{
11590 \begin_layout Standard
11602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11605 \begin_layout Standard
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11614 \begin_layout Standard
11621 <row topline="true" bottomline="true">
11622 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11625 \begin_layout Standard
11631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11634 \begin_layout Standard
11640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11643 \begin_layout Standard
11658 \begin_layout Standard
11674 \begin_layout Standard
11675 create a 3×3 table.
11676 To get rid of the line above the last cell in the first column, the cell
11677 is marked as multicolumn and the upper border is unset.
11678 The multirow is now created in the second row of the first column by inserting
11682 \begin_layout Standard
11687 multirow{2}{2.5cm}{
11690 \begin_layout Standard
11692 According to the command parameters the multirow spans now two rows and
11693 has a width of 2.5\InsetSpace \thinspace{}
11695 The content of the multirow cell follows outside the ERT box and the command
11696 is finished with a right brace
11700 in another ERT-box behind the text.
11703 \begin_layout Standard
11710 left-aligns its content by default.
11711 To override the default, renew the command
11720 \begin_layout Standard
11732 \begin_layout Standard
11733 in ERT in the document preamble.
11734 Then all entries of multirow cells in the document are centered.
11735 If centering is only needed for several tables, you can renew the command
11736 in an ERT box just before the table instead of the preamble.
11737 If the text should be right-aligned, replace
11750 To return to left-alignment
11759 \begin_layout Section
11761 \begin_inset LatexCommand label
11762 name "sec:Formal-Tables"
11767 \begin_inset LatexCommand index
11768 name "Table ! Formal"
11775 \begin_layout Standard
11776 Tables are often typeset in books similar to Table\InsetSpace ~
11778 \begin_inset LatexCommand ref
11779 reference "tab:Example-booktabs-table"
11784 This kind of tables is called
11785 \begin_inset Quotes eld
11793 \begin_inset Quotes erd
11797 To make a table a formal table use the option
11805 tab of the table dialog.
11808 \begin_layout Standard
11809 \begin_inset Float table
11815 \begin_layout Standard
11816 \begin_inset Caption
11818 \begin_layout Standard
11819 \begin_inset LatexCommand label
11820 name "tab:Example-booktabs-table"
11824 Example booktabs-table
11832 \begin_layout Standard
11834 \begin_inset Tabular
11835 <lyxtabular version="3" rows="8" columns="4">
11836 <features booktabs="true">
11837 <column alignment="center" valignment="top" rightline="true" width="0">
11838 <column alignment="center" valignment="top" width="0">
11839 <column alignment="center" valignment="top" width="0">
11840 <column alignment="center" valignment="top" width="0">
11841 <row topline="true">
11842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11845 \begin_layout Standard
11851 <cell alignment="center" valignment="top" topline="true" usebox="none">
11854 \begin_layout Standard
11856 \begin_inset Formula $\,$
11864 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11867 \begin_layout Standard
11869 \begin_inset Formula $\,$
11877 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11880 \begin_layout Standard
11888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11891 \begin_layout Standard
11895 \begin_layout Standard
11908 \begin_layout Standard
11917 Detector thickness [µm]
11922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11925 \begin_layout Standard
11931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11934 \begin_layout Standard
11940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11943 \begin_layout Standard
11950 <row topline="true">
11951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11954 \begin_layout Standard
11960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11963 \begin_layout Standard
11969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11972 \begin_layout Standard
11978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11981 \begin_layout Standard
11988 <row topspace="default">
11989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11992 \begin_layout Standard
11993 Spatial resolution [µm]
11998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12001 \begin_layout Standard
12007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12010 \begin_layout Standard
12016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12019 \begin_layout Standard
12026 <row topspace="default">
12027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12030 \begin_layout Standard
12032 \begin_inset Formula $f_{\mathrm{max}}$
12040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12043 \begin_layout Standard
12049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12052 \begin_layout Standard
12058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12061 \begin_layout Standard
12068 <row topspace="default">
12069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12072 \begin_layout Standard
12076 \begin_layout Standard
12080 cmidrule(l{10pt}){1-1}
12085 LSF-spatial resolution
12090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12093 \begin_layout Standard
12099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12102 \begin_layout Standard
12108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12111 \begin_layout Standard
12119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12122 \begin_layout Standard
12128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12131 \begin_layout Standard
12137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12140 \begin_layout Standard
12146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12149 \begin_layout Standard
12156 <row bottomline="true">
12157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12160 \begin_layout Standard
12166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12169 \begin_layout Standard
12175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12178 \begin_layout Standard
12184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12187 \begin_layout Standard
12206 \begin_layout Standard
12207 Spaces to table rows can be added using the
12211 tab of the table dialog as described in section\InsetSpace ~
12213 \begin_inset LatexCommand ref
12214 reference "sub:Row-Spacing"
12221 \begin_layout Standard
12222 In contrary to normal tables, formal tables have no vertical table lines.
12223 The horizontal table lines can be set like for normal tables but they appear
12224 with different width in the output:
12226 The first and the last table line have
12227 a default width of 0.08\InsetSpace \thinspace{}
12228 em while the other lines have a default width of
12229 0.05\InsetSpace \thinspace{}
12233 \begin_layout Standard
12234 The default widths can be changed with the following preamble lines
12237 \begin_layout Standard
12257 \begin_layout Standard
12258 This example is for the first line, the so called
12263 If you want to change the width for the last line, replace
12272 To change the width for the other lines replace
12281 You can use all units listed in appendix\InsetSpace ~
12283 \begin_inset LatexCommand ref
12284 reference "cha:Units-available-in"
12291 \begin_layout Standard
12292 Lines that don't span over all table columns can be created by setting a
12293 table line for multicolumn cells.
12294 LyX will then internally use the command
12300 to create this line.
12304 \begin_layout Standard
12309 cmidrule[width](trim){startcol-endcol}
12312 \begin_layout Standard
12319 are are currently not supported by LyX so you have to use ERT to be able
12327 s can manually be created by inserting the command as ERT as first cell
12328 entry of the first cell of a row.
12329 The line is then drawn in the output above the current row.
12332 \begin_layout Standard
12333 The default for the width is 0.03\InsetSpace \thinspace{}
12335 Startcol is the number of the column where the line starts and endcol the
12336 column number where the line ends.
12337 The endcol always needs to be specified, also when the line should span
12339 The optional parameter trim could be either
12347 where the trimwidth is also optional.
12348 Using for example the parameter
12352 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
12354 If you don't specify the trimwidth the lines are trimmed by the default
12355 of 0.5\InsetSpace \thinspace{}
12359 \begin_layout Standard
12360 \begin_inset VSpace bigskip
12365 \begin_inset LatexCommand ref
12366 reference "tab:Example-booktabs-table"
12370 was created using the commands
12373 \begin_layout Standard
12383 \begin_layout Standard
12384 at the beginning of the in the second row and
12387 \begin_layout Standard
12392 cmidrule(l{10pt}){1-1}
12395 \begin_layout Standard
12399 \begin_layout Standard
12400 \begin_inset VSpace bigskip
12406 \begin_layout Standard
12407 You might want to have overlapping
12413 s like in Table\InsetSpace ~
12415 \begin_inset LatexCommand ref
12416 reference "tab:Special-booktabs-table"
12421 This can be achieved with the ERT command
12424 \begin_layout Standard
12432 \begin_layout Standard
12433 The command that was used for the second row of Table\InsetSpace ~
12435 \begin_inset LatexCommand ref
12436 reference "tab:Special-booktabs-table"
12443 \begin_layout Standard
12457 \begin_layout Standard
12458 The command for the sixth row is
12461 \begin_layout Standard
12473 \begin_layout Standard
12474 \begin_inset VSpace bigskip
12480 \begin_layout Standard
12481 If you are anyway not satisfied with the border line spacing, you can use
12482 the following command to produce lines that span over all table columns
12487 \begin_layout Standard
12492 specialrule{width}{space above}{space below}
12495 \begin_layout Standard
12496 For more informations about these specialties, we refer to the manual of
12502 \begin_inset LatexCommand cite
12508 \begin_inset LatexCommand index
12509 name "LaTeX-packages ! booktabs"
12516 \begin_layout Standard
12517 \begin_inset Float table
12523 \begin_layout Standard
12524 \begin_inset Caption
12526 \begin_layout Standard
12527 \begin_inset LatexCommand label
12528 name "tab:Special-booktabs-table"
12532 Special booktabs-table
12540 \begin_layout Standard
12542 \begin_inset Tabular
12543 <lyxtabular version="3" rows="8" columns="4">
12544 <features booktabs="true">
12545 <column alignment="center" valignment="top" width="0">
12546 <column alignment="center" valignment="top" width="0">
12547 <column alignment="center" valignment="top" width="0">
12548 <column alignment="center" valignment="top" width="0">
12549 <row topline="true">
12550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12553 \begin_layout Standard
12559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12562 \begin_layout Standard
12563 Medipix\InsetSpace \thinspace{}
12569 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12572 \begin_layout Standard
12573 Medipix\InsetSpace \thinspace{}
12579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12582 \begin_layout Standard
12590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12593 \begin_layout Standard
12597 \begin_layout Standard
12610 \begin_layout Standard
12623 \begin_layout Standard
12636 \begin_layout Standard
12645 Detector thickness [µm]
12650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12653 \begin_layout Standard
12659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12662 \begin_layout Standard
12668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12671 \begin_layout Standard
12678 <row topline="true">
12679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12682 \begin_layout Standard
12688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12691 \begin_layout Standard
12697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12700 \begin_layout Standard
12706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12709 \begin_layout Standard
12716 <row topspace="default">
12717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12720 \begin_layout Standard
12721 Spatial resolution [µm]
12726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12729 \begin_layout Standard
12735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12738 \begin_layout Standard
12744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12747 \begin_layout Standard
12754 <row topspace="default">
12755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12758 \begin_layout Standard
12760 \begin_inset Formula $f_{\mathrm{max}}$
12768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12771 \begin_layout Standard
12777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12780 \begin_layout Standard
12786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12789 \begin_layout Standard
12796 <row topline="true">
12797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12800 \begin_layout Standard
12804 \begin_layout Standard
12817 \begin_layout Standard
12826 LSF-spatial resolution
12831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12834 \begin_layout Standard
12840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12843 \begin_layout Standard
12849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12852 \begin_layout Standard
12860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12863 \begin_layout Standard
12869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12872 \begin_layout Standard
12878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12881 \begin_layout Standard
12887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12890 \begin_layout Standard
12897 <row bottomline="true">
12898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12901 \begin_layout Standard
12907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12910 \begin_layout Standard
12916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12919 \begin_layout Standard
12925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12928 \begin_layout Standard
12947 \begin_layout Section
12948 Vertical Table Alignment
12949 \begin_inset LatexCommand index
12950 name "Table ! Alignment"
12957 \begin_layout Standard
12958 To align tables vertically in a text line the table must be inside a box.
12959 The box can then be vertically aligned as described in section\InsetSpace ~
12961 \begin_inset LatexCommand ref
12962 reference "sec:Box-Dialog"
12969 \begin_layout Standard
12970 In the following example the tables are inside a minipage
12974 \begin_layout Standard
12975 Minipages are described in section\InsetSpace ~
12977 \begin_inset LatexCommand ref
12978 reference "sec:Minipages"
12987 box that has a width of 15\InsetSpace \thinspace{}
12991 \begin_layout Itemize
12993 \begin_inset Box Frameless
13002 height_special "totalheight"
13005 \begin_layout Standard
13006 \begin_inset Tabular
13007 <lyxtabular version="3" rows="3" columns="3">
13009 <column alignment="center" valignment="top" leftline="true" width="0">
13010 <column alignment="center" valignment="top" leftline="true" width="0">
13011 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13012 <row topline="true">
13013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13016 \begin_layout Standard
13022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13025 \begin_layout Standard
13031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13034 \begin_layout Standard
13041 <row topline="true">
13042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13045 \begin_layout Standard
13051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13054 \begin_layout Standard
13060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13063 \begin_layout Standard
13070 <row topline="true" bottomline="true">
13071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13074 \begin_layout Standard
13080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13083 \begin_layout Standard
13089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13092 \begin_layout Standard
13112 \begin_layout Standard
13124 \begin_inset Box Frameless
13133 height_special "totalheight"
13136 \begin_layout Standard
13137 \begin_inset Tabular
13138 <lyxtabular version="3" rows="3" columns="3">
13140 <column alignment="center" valignment="top" leftline="true" width="0">
13141 <column alignment="center" valignment="top" leftline="true" width="0">
13142 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13143 <row topline="true">
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13147 \begin_layout Standard
13153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13156 \begin_layout Standard
13162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13165 \begin_layout Standard
13172 <row topline="true">
13173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13176 \begin_layout Standard
13182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13185 \begin_layout Standard
13191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13194 \begin_layout Standard
13201 <row topline="true" bottomline="true">
13202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13205 \begin_layout Standard
13211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13214 \begin_layout Standard
13220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13223 \begin_layout Standard
13243 \begin_layout Standard
13253 \begin_layout Itemize
13255 \begin_inset Box Frameless
13264 height_special "totalheight"
13267 \begin_layout Standard
13268 \begin_inset Tabular
13269 <lyxtabular version="3" rows="3" columns="3">
13271 <column alignment="center" valignment="top" leftline="true" width="0">
13272 <column alignment="center" valignment="top" leftline="true" width="0">
13273 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13274 <row topline="true">
13275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13278 \begin_layout Standard
13284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13287 \begin_layout Standard
13293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13296 \begin_layout Standard
13303 <row topline="true">
13304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13307 \begin_layout Standard
13313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13316 \begin_layout Standard
13322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13325 \begin_layout Standard
13332 <row topline="true" bottomline="true">
13333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13336 \begin_layout Standard
13342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13345 \begin_layout Standard
13351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13354 \begin_layout Standard
13373 \begin_layout Itemize
13375 \begin_inset Box Frameless
13384 height_special "totalheight"
13387 \begin_layout Standard
13388 \begin_inset Tabular
13389 <lyxtabular version="3" rows="3" columns="3">
13391 <column alignment="center" valignment="top" leftline="true" width="0">
13392 <column alignment="center" valignment="top" leftline="true" width="0">
13393 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13394 <row topline="true">
13395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13398 \begin_layout Standard
13404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13407 \begin_layout Standard
13413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13416 \begin_layout Standard
13423 <row topline="true">
13424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13427 \begin_layout Standard
13433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13436 \begin_layout Standard
13442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13445 \begin_layout Standard
13452 <row topline="true" bottomline="true">
13453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13456 \begin_layout Standard
13462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13465 \begin_layout Standard
13471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13474 \begin_layout Standard
13494 \begin_layout Standard
13506 \begin_inset Box Frameless
13515 height_special "totalheight"
13518 \begin_layout Standard
13519 \begin_inset Tabular
13520 <lyxtabular version="3" rows="3" columns="3">
13522 <column alignment="center" valignment="top" leftline="true" width="0">
13523 <column alignment="center" valignment="top" leftline="true" width="0">
13524 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13525 <row topline="true">
13526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13529 \begin_layout Standard
13535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13538 \begin_layout Standard
13544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13547 \begin_layout Standard
13554 <row topline="true">
13555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13558 \begin_layout Standard
13564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13567 \begin_layout Standard
13573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13576 \begin_layout Standard
13583 <row topline="true" bottomline="true">
13584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13587 \begin_layout Standard
13593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13596 \begin_layout Standard
13602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13605 \begin_layout Standard
13625 \begin_layout Standard
13635 \begin_layout Standard
13636 As you can see, the content of the first and last table row is not correctly
13637 aligned with the text line where the table is in.
13638 To get this alignment, the minipage box must be set into a raisebox
13642 \begin_layout Standard
13643 Raiseboxes are described in section\InsetSpace ~
13645 \begin_inset LatexCommand ref
13646 reference "sub:Vertical-Alignment"
13656 In the example above the second table in the first item is aligned using
13660 \begin_layout Standard
13670 \begin_layout Standard
13672 Behind the box the closing brace
13676 is inserted as ERT.
13677 For the second table in the last item the command
13680 \begin_layout Standard
13690 \begin_layout Standard
13694 \begin_layout Standard
13695 \begin_inset Note Greyedout
13698 \begin_layout Standard
13703 The alignment of the table row content to the surrounding text line is
13705 The needed factor of the
13711 command for this alignment depends on the document font, the font size,
13712 and the table line thickness.
13720 \begin_layout Section
13722 \begin_inset LatexCommand label
13723 name "sec:Colored-Tables"
13728 \begin_inset LatexCommand index
13729 name "Table ! Color"
13736 \begin_layout Subsection
13738 \begin_inset LatexCommand index
13739 name "Table Color ! for Cells"
13744 \begin_inset LatexCommand index
13745 name "Color ! for Table Cells"
13752 \begin_layout Standard
13753 \begin_inset Float table
13759 \begin_layout Standard
13760 \begin_inset Caption
13762 \begin_layout Standard
13763 \begin_inset LatexCommand label
13764 name "tab:Table-colored-without"
13768 Table colored without using the package
13773 \begin_inset OptArg
13776 \begin_layout Standard
13777 Table without colortbl
13790 \begin_layout Standard
13792 \begin_inset Tabular
13793 <lyxtabular version="3" rows="3" columns="3">
13795 <column alignment="center" valignment="top" leftline="true" width="0">
13796 <column alignment="center" valignment="top" leftline="true" width="0">
13797 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13798 <row topline="true">
13799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13802 \begin_layout Standard
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" rightline="true" usebox="none">
13824 \begin_layout Standard
13833 <row topline="true">
13834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13837 \begin_layout Standard
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" rightline="true" usebox="none">
13859 \begin_layout Standard
13868 <row topline="true" bottomline="true">
13869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13872 \begin_layout Standard
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" rightline="true" usebox="none">
13894 \begin_layout Standard
13915 \begin_layout Standard
13916 If you only need colored text, mark the cells and choose a color in the
13919 Edit\SpecialChar \menuseparator
13924 This was used to create Table\InsetSpace ~
13926 \begin_inset LatexCommand ref
13927 reference "tab:Table-colored-without"
13932 In any other case you have to use the LaTeX-package
13937 \begin_inset LatexCommand index
13938 name "LaTeX-packages ! colortbl"
13945 \begin_layout Standard
13946 To create colored tables,
13950 must be loaded in the preamble with the line
13953 \begin_layout Standard
13958 usepackage{colortbl}
13961 \begin_layout Standard
13962 The color of a column is adjusted with the command
13965 \begin_layout Standard
13970 columncolor{name of color}
13973 \begin_layout Standard
13979 More about the command
13983 is described in section\InsetSpace ~
13985 \begin_inset LatexCommand ref
13986 reference "sub:Multicolumn-Calculations"
13993 \begin_layout Standard
13994 The following color names are predefined:
13997 \begin_layout Standard
14031 \begin_layout Standard
14032 \begin_inset VSpace medskip
14038 \begin_layout Standard
14039 You can also define your own color with the command
14042 \begin_layout Standard
14047 def\SpecialChar \textcompwordmark{}
14048 inecolor{color name}{color model}{color values}
14051 \begin_layout Standard
14052 The color model can be
14055 \begin_layout Labeling
14056 \labelwidthstring 00.00.0000
14057 cmyk: cyan, magenta, yellow, black
14060 \begin_layout Labeling
14061 \labelwidthstring 00.00.0000
14062 rgb: red, green blue
14065 \begin_layout Labeling
14066 \labelwidthstring 00.00.0000
14070 \begin_layout Standard
14071 and the color values are comma separated numbers between 0 and 1 describing
14072 the factor for the corresponding color of the color model.
14075 \begin_layout Standard
14076 You can e.\InsetSpace \thinspace{}
14082 " in the preamble with
14085 \begin_layout Standard
14090 def\SpecialChar \textcompwordmark{}
14091 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14094 \begin_layout Standard
14102 \begin_layout Standard
14107 def\SpecialChar \textcompwordmark{}
14108 inecolor{lightgray}{gray}{0.8}
14111 \begin_layout Standard
14112 \begin_inset VSpace medskip
14118 \begin_layout Standard
14119 Lines are colored with the command
14122 \begin_layout Standard
14127 rowcolor{name of color}
14130 \begin_layout Standard
14131 and cells are colored with the command
14134 \begin_layout Standard
14139 cellcolor{name of color}
14142 \begin_layout Standard
14143 Both commands are inserted at the beginning of a cell as ERT.
14146 \begin_layout Standard
14147 To color characters in the table, mark the cells and use the LyX menu
14149 Edit\SpecialChar \menuseparator
14154 If a cell contains ERT mark only the characters, otherwise the colored
14155 ERT will cause LaTeX-errors.
14158 \begin_layout Standard
14159 \begin_inset Note Greyedout
14162 \begin_layout Standard
14167 Not all DVI-viewers are able to display self-defined colors.
14175 \begin_layout Standard
14176 \begin_inset VSpace bigskip
14182 \begin_layout Standard
14183 To create Table\InsetSpace ~
14185 \begin_inset LatexCommand ref
14186 reference "tab:Table-colored-using"
14190 do the following: The color of the first column should be
14198 \begin_layout Standard
14203 columncolor{darkgreen}
14208 \begin_layout Standard
14209 as LaTeX-argument for this column.
14210 The first row should be blue, therefore the ERT command
14213 \begin_layout Standard
14221 \begin_layout Standard
14222 is inserted to the first cell of this row.
14223 Note that this overwrites the column color for the first cell.
14224 The last cell of the last row is colored magenta by inserting the ERT command
14227 \begin_layout Standard
14235 \begin_layout Standard
14236 The characters could now be colored using the menu
14238 Edit\SpecialChar \menuseparator
14245 \begin_layout Standard
14246 \begin_inset Float table
14252 \begin_layout Standard
14253 \begin_inset Caption
14255 \begin_layout Standard
14256 \begin_inset LatexCommand label
14257 name "tab:Table-colored-using"
14261 Table colored using the package
14266 \begin_inset OptArg
14269 \begin_layout Standard
14270 Table with colortbl
14283 \begin_layout Standard
14285 \begin_inset Tabular
14286 <lyxtabular version="3" rows="3" columns="3">
14288 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
14289 <column alignment="center" valignment="top" width="0">
14290 <column alignment="center" valignment="top" width="0">
14292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14295 \begin_layout Standard
14299 \begin_layout Standard
14315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14318 \begin_layout Standard
14326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14329 \begin_layout Standard
14339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14342 \begin_layout Standard
14350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14353 \begin_layout Standard
14361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14364 \begin_layout Standard
14374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14377 \begin_layout Standard
14385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14388 \begin_layout Standard
14396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14399 \begin_layout Standard
14403 \begin_layout Standard
14432 \begin_layout Subsection
14434 \begin_inset LatexCommand index
14435 name "Table Color ! for Lines"
14440 \begin_inset LatexCommand index
14441 name "Color ! for Table Lines"
14448 \begin_layout Standard
14449 As described in section\InsetSpace ~
14451 \begin_inset LatexCommand ref
14452 reference "sub:Line-Thickness"
14456 , the line thickness for all lines in a table can be adjusted with the length
14464 It is set to 1.5\InsetSpace \thinspace{}
14465 pt for all tables of this section.
14469 \begin_layout Standard
14475 arrayrulewidth}{1.5pt}
14483 \begin_layout Standard
14484 To color vertical lines for example with green, create the following column
14485 format in the document preamble, according to the description in section\InsetSpace ~
14487 \begin_inset LatexCommand ref
14488 reference "sub:Customized-Format"
14495 \begin_layout Standard
14500 newcolumntype{W}{!{
14507 \begin_layout Standard
14508 For Table\InsetSpace ~
14510 \begin_inset LatexCommand ref
14511 reference "tab:Table-with-vertical-colored"
14519 was used for the last column and
14523 for the other columns.
14526 \begin_layout Standard
14527 If you want to have several colors, define more column formats.
14530 \begin_layout Standard
14531 \begin_inset Float table
14536 \begin_layout Standard
14537 \begin_inset Caption
14539 \begin_layout Standard
14540 \begin_inset LatexCommand label
14541 name "tab:Table-with-vertical-colored"
14545 Table with colored vertical lines
14553 \begin_layout Standard
14555 \begin_inset Tabular
14556 <lyxtabular version="3" rows="3" columns="3">
14558 <column alignment="center" valignment="top" width="0" special="Wc">
14559 <column alignment="center" valignment="top" width="0" special="Wc">
14560 <column alignment="center" valignment="top" width="0" special="WcW">
14561 <row topline="true">
14562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14565 \begin_layout Standard
14571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14574 \begin_layout Standard
14580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14583 \begin_layout Standard
14590 <row topline="true">
14591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14594 \begin_layout Standard
14600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14603 \begin_layout Standard
14609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14612 \begin_layout Standard
14619 <row topline="true" bottomline="true">
14620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14623 \begin_layout Standard
14629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14632 \begin_layout Standard
14638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14641 \begin_layout Standard
14660 \begin_layout Standard
14661 \begin_inset VSpace bigskip
14664 To color horizontal lines for example with red, like in Table\InsetSpace ~
14666 \begin_inset LatexCommand ref
14667 reference "tab:Table-with-horizontal-colored"
14671 , insert these commands in ERT before the table or table float:
14674 \begin_layout Standard
14695 \begin_layout Standard
14706 arrayrulecolor{red}
14710 arrayrulecolor{black}}
14713 \begin_layout Standard
14717 \begin_layout Standard
14728 \begin_layout Standard
14737 \begin_layout Standard
14741 arrayrulecolor{red}
14745 arrayrulecolor{black}}
14751 \begin_inset Float table
14756 \begin_layout Standard
14757 \begin_inset Caption
14759 \begin_layout Standard
14760 \begin_inset LatexCommand label
14761 name "tab:Table-with-horizontal-colored"
14765 Table with colored horizontal lines
14773 \begin_layout Standard
14775 \begin_inset Tabular
14776 <lyxtabular version="3" rows="3" columns="3">
14778 <column alignment="center" valignment="top" leftline="true" width="0">
14779 <column alignment="center" valignment="top" leftline="true" width="0">
14780 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14781 <row topline="true">
14782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14785 \begin_layout Standard
14791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14794 \begin_layout Standard
14800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14803 \begin_layout Standard
14810 <row topline="true">
14811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14814 \begin_layout Standard
14820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14823 \begin_layout Standard
14829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14832 \begin_layout Standard
14839 <row topline="true" bottomline="true">
14840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14843 \begin_layout Standard
14849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14852 \begin_layout Standard
14858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14861 \begin_layout Standard
14880 \begin_layout Standard
14884 \begin_layout Standard
14896 \begin_layout Standard
14897 To return to the default line color black, insert this command in ERT behind
14898 the table or table float:
14901 \begin_layout Standard
14913 \begin_layout Standard
14916 \begin_inset LatexCommand ref
14917 reference "tab:Table-with-colored"
14921 is an example with colored vertical and horizontal lines.
14924 \begin_layout Standard
14925 \begin_inset Float table
14931 \begin_layout Standard
14932 \begin_inset Caption
14934 \begin_layout Standard
14935 \begin_inset LatexCommand label
14936 name "tab:Table-with-colored"
14940 Table with colored lines
14948 \begin_layout Standard
14950 \begin_inset Tabular
14951 <lyxtabular version="3" rows="3" columns="3">
14953 <column alignment="center" valignment="top" width="0" special="Wc">
14954 <column alignment="center" valignment="top" width="0" special="Wc">
14955 <column alignment="center" valignment="top" width="0" special="WcW">
14956 <row topline="true">
14957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14960 \begin_layout Standard
14966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14969 \begin_layout Standard
14975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14978 \begin_layout Standard
14985 <row topline="true">
14986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14989 \begin_layout Standard
14995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14998 \begin_layout Standard
15004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15007 \begin_layout Standard
15014 <row topline="true" bottomline="true" topspace="default">
15015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15018 \begin_layout Standard
15024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15027 \begin_layout Standard
15033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15036 \begin_layout Standard
15055 \begin_layout Standard
15059 \begin_layout Standard
15075 \begin_layout Standard
15079 \begin_layout Standard
15085 arrayrulewidth}{0.4pt}
15093 \begin_layout Section
15094 Table Customization
15095 \begin_inset LatexCommand index
15096 name "Table Customization"
15101 \begin_inset LatexCommand index
15102 name "Table ! Customization"
15109 \begin_layout Subsection
15111 \begin_inset LatexCommand label
15112 name "sub:Row-Spacing"
15117 \begin_inset LatexCommand index
15118 name "Table Customization ! Row Spacing"
15125 \begin_layout Standard
15126 You can add vertical space to table rows in the
15130 tab of the table dialog.
15131 You find there three possibilities:
15134 \begin_layout Description
15137 row will add space above the characters of the table row.
15138 If the table is a formal table
15142 \begin_layout Standard
15143 Formal tables are explained in section\InsetSpace ~
15145 \begin_inset LatexCommand ref
15146 reference "sec:Formal-Tables"
15155 LyX will insert as default 0.5\InsetSpace \thinspace{}
15157 For normal tables the inserted space will unfortunately destroy the vertical
15158 table lines as in the following table:
15159 \begin_inset VSpace medskip
15168 \begin_layout Standard
15180 \begin_inset Tabular
15181 <lyxtabular version="3" rows="3" columns="1">
15183 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15184 <row topline="true">
15185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15188 \begin_layout Standard
15195 <row topline="true" topspace="3mm">
15196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15199 \begin_layout Standard
15200 3\InsetSpace \thinspace{}
15201 mm space top of row
15207 <row topline="true" bottomline="true">
15208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15211 \begin_layout Standard
15228 \begin_layout Standard
15238 \begin_inset VSpace medskip
15243 So inserting space to the top of row for normal tables is only useful when
15244 you don't have vertical lines.
15247 \begin_layout Description
15248 Bottom\InsetSpace ~
15250 row will add space below the characters of the table row.
15251 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15253 normal tables the default size is 2\InsetSpace \thinspace{}
15257 \begin_layout Description
15258 Between\InsetSpace ~
15259 rows adds space between the current and the following row.
15260 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
15262 For normal tables the inserted space will unfortunately destroy the vertical
15263 table lines as in the following table:
15264 \begin_inset VSpace medskip
15273 \begin_layout Standard
15285 \begin_inset Tabular
15286 <lyxtabular version="3" rows="3" columns="1">
15288 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
15289 <row topline="true">
15290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15293 \begin_layout Standard
15300 <row topline="true" interlinespace="3mm">
15301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15304 \begin_layout Standard
15305 \begin_inset Formula $\downarrow$
15308 3\InsetSpace \thinspace{}
15309 mm space between row
15310 \begin_inset Formula $\downarrow$
15319 <row topline="true" bottomline="true">
15320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15323 \begin_layout Standard
15324 \begin_inset Formula $\uparrow$
15327 3\InsetSpace \thinspace{}
15328 mm space between row
15329 \begin_inset Formula $\uparrow$
15348 \begin_layout Standard
15358 \begin_inset VSpace medskip
15363 So inserting space between rows for normal tables is only useful when you
15364 don't have vertical lines.
15367 \begin_layout Standard
15368 \begin_inset VSpace bigskip
15371 When you want to add extra height to all cells of all tables, you can do
15372 this with the following preamble lines:
15375 \begin_layout Standard
15380 @ifundef\SpecialChar \textcompwordmark{}
15381 ined{extrarowheight}
15387 \begin_layout Standard
15398 usepackage{array}}{}
15404 extrarowheight}{height}
15407 \begin_layout Standard
15408 But this has the disadvantage that the cell texts are no longer exactly
15409 vertically centered.
15414 will be loaded automatically by LyX when you use self defined table formats.
15415 To avoid that it is loaded twice the command
15419 @ifundef\SpecialChar \textcompwordmark{}
15422 is used in the above command.)
15425 \begin_layout Subsection
15426 Special Cell Alignment
15427 \begin_inset LatexCommand index
15428 name "Table Customization ! Special Cell Alignment"
15435 \begin_layout Standard
15436 Sometimes it looks better when the cell entries of a column are aligned
15437 with a special character, e.\InsetSpace \thinspace{}
15439 with the decimal separator as in Table\InsetSpace ~
15441 \begin_inset LatexCommand ref
15442 reference "tab:Table-cells-of"
15449 \begin_layout Standard
15450 \begin_inset Float table
15456 \begin_layout Standard
15457 \begin_inset Caption
15459 \begin_layout Standard
15460 \begin_inset LatexCommand label
15461 name "tab:Table-cells-of"
15465 Table cells of a column aligned with the decimal separator.
15473 \begin_layout Standard
15475 \begin_inset Tabular
15476 <lyxtabular version="3" rows="4" columns="2">
15478 <column alignment="right" valignment="top" width="0">
15479 <column alignment="left" valignment="top" width="0" special="@{}l">
15480 <row bottomline="true">
15481 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15484 \begin_layout Standard
15490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15493 \begin_layout Standard
15501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15504 \begin_layout Standard
15510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15513 \begin_layout Standard
15521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15524 \begin_layout Standard
15530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15533 \begin_layout Standard
15541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15544 \begin_layout Standard
15550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15553 \begin_layout Standard
15572 \begin_layout Standard
15573 This table was created with a 4×2 table.
15574 The heading is a centered multicolumn.
15575 The first column is right-aligned and contains the digits before the decimal
15576 point and the decimal point.
15577 The second column is left aligned and contains the digits after the decimal
15579 To omit the space that is normally between two table columns, use the following
15580 LaTeX-argument for the second column:
15583 \begin_layout Standard
15589 \begin_layout Standard
15592 \begin_inset LatexCommand ref
15593 reference "tab:Several-table-cell"
15597 shows some example alignments.
15598 For the alignment with the relation sign, you must add the second smallest
15599 math-space at the beginning of the last column to get the correct space
15600 surrounding the relation sign.
15603 \begin_layout Standard
15604 \begin_inset Float table
15609 \begin_layout Standard
15610 \begin_inset Caption
15612 \begin_layout Standard
15613 \begin_inset LatexCommand label
15614 name "tab:Several-table-cell"
15618 Several table cell alignments.
15626 \begin_layout Standard
15628 \begin_inset Tabular
15629 <lyxtabular version="3" rows="4" columns="6">
15631 <column alignment="right" valignment="top" width="0">
15632 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15633 <column alignment="right" valignment="top" width="0">
15634 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15635 <column alignment="right" valignment="top" width="0">
15636 <column alignment="left" valignment="top" width="0" special="@{}l">
15637 <row bottomline="true">
15638 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15641 \begin_layout Standard
15647 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15650 \begin_layout Standard
15656 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15659 \begin_layout Standard
15665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15668 \begin_layout Standard
15674 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15677 \begin_layout Standard
15683 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15686 \begin_layout Standard
15694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15697 \begin_layout Standard
15703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15706 \begin_layout Standard
15707 24\InsetSpace \thinspace{}
15713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15716 \begin_layout Standard
15717 \begin_inset Formula $10\cdot$
15725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15728 \begin_layout Standard
15729 \begin_inset Formula $10^{\mbox{-}17}$
15737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15740 \begin_layout Standard
15741 \begin_inset Formula $\Gamma(t)\propto$
15749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15752 \begin_layout Standard
15753 \begin_inset Formula $\:\Upsilon(t)$
15763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15766 \begin_layout Standard
15772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15775 \begin_layout Standard
15776 768\InsetSpace \thinspace{}
15782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15785 \begin_layout Standard
15786 \begin_inset Formula $5.78\cdot$
15794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15797 \begin_layout Standard
15798 \begin_inset Formula $10^{7}$
15806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15809 \begin_layout Standard
15810 \begin_inset Formula $A\ne$
15818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15821 \begin_layout Standard
15822 \begin_inset Formula $\: B_{\mathrm{red}}$
15832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15835 \begin_layout Standard
15841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15844 \begin_layout Standard
15845 6\InsetSpace \thinspace{}
15851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15854 \begin_layout Standard
15856 \begin_inset Formula $33.5\cdot$
15864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15867 \begin_layout Standard
15868 \begin_inset Formula $10^{4}$
15876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15879 \begin_layout Standard
15880 \begin_inset Formula $\sin(\alpha)\ge$
15888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15891 \begin_layout Standard
15892 \begin_inset Formula $\:\sin(\beta)$
15913 \begin_layout Standard
15914 \begin_inset VSpace bigskip
15917 There is also the LaTeX-package
15922 \begin_inset LatexCommand index
15923 name "LaTeX-packages ! dcolumn"
15927 that provides table cell alignments.
15928 But this unfortunately treats the cell entries as math and doesn't allow
15929 formulas in table cells: The first column of Table\InsetSpace ~
15931 \begin_inset LatexCommand ref
15932 reference "tab:Several-table-cell"
15940 like the first column in Table\InsetSpace ~
15942 \begin_inset LatexCommand ref
15943 reference "tab:Alignments-when"
15947 and only with some tricks like the expected.
15948 The alignment of the second and third column of Table\InsetSpace ~
15950 \begin_inset LatexCommand ref
15951 reference "tab:Several-table-cell"
15955 is not possible with
15962 \begin_layout Standard
15963 \begin_inset Float table
15969 \begin_layout Standard
15970 \begin_inset Caption
15972 \begin_layout Standard
15973 \begin_inset LatexCommand label
15974 name "tab:Alignments-when"
15978 Alignments when LaTeX-package dcolumn is used.
15979 For all column alignments tricks have to be used to get the output.
15987 \begin_layout Standard
15989 \begin_inset Tabular
15990 <lyxtabular version="3" rows="4" columns="3">
15992 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15993 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15994 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15995 <row bottomline="true">
15996 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15999 \begin_layout Standard
16005 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16008 \begin_layout Standard
16014 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16017 \begin_layout Standard
16025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16028 \begin_layout Standard
16029 12x24\InsetSpace \thinspace{}
16035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16038 \begin_layout Standard
16039 12x24\InsetSpace \thinspace{}
16041 \begin_inset Formula $\mbox{bottles}$
16049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16052 \begin_layout Standard
16057 \begin_layout Standard
16067 \begin_inset Formula $\mbox{bottles}$
16077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16080 \begin_layout Standard
16081 1024x768\InsetSpace \thinspace{}
16087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16090 \begin_layout Standard
16091 1024x768\InsetSpace \thinspace{}
16093 \begin_inset Formula $\mbox{Pixels}$
16101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16104 \begin_layout Standard
16109 \begin_layout Standard
16119 \begin_inset Formula $\mbox{Pixels}$
16129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16132 \begin_layout Standard
16133 32x6\InsetSpace \thinspace{}
16139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16142 \begin_layout Standard
16143 32x6\InsetSpace \thinspace{}
16145 \begin_inset Formula $\mbox{cm}$
16153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16156 \begin_layout Standard
16161 \begin_layout Standard
16171 \begin_inset Formula $\mbox{cm}$
16192 \begin_layout Subsection
16193 Customized Cell/Column Format
16194 \begin_inset LatexCommand label
16195 name "sub:Customized-Format"
16200 \begin_inset LatexCommand index
16201 name "Table Customization ! Cell/Column Format"
16208 \begin_layout Standard
16209 Calculating the needed width for spanned columns like in section\InsetSpace ~
16211 \begin_inset LatexCommand ref
16212 reference "sub:Multicolumn-Calculations"
16216 is very annoying if you have several tables with multicolumn cells.
16217 To make life easier, you can define a cell/column format in the preamble,
16218 so that it can be used in all tables of the document.
16219 The format is defined with the command
16222 \begin_layout Standard
16227 newcolumntype{name of format}[number of arguments]{commands}
16230 \begin_layout Standard
16231 The format name may only consist of one letter.
16256 are predefined and cannot be used.
16257 But all letters are allowed as capitals.
16260 \begin_layout Standard
16261 \begin_inset VSpace medskip
16267 \begin_layout Standard
16268 For vertically and horizontally centered multicolumn cells with a fixed
16269 width you can define the cell format
16272 \begin_layout Standard
16277 newcolumntype{M}[1]{>{
16284 \begin_layout Standard
16291 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
16293 \begin_inset LatexCommand ref
16294 reference "sub:Multiple-Lines-in"
16299 Now you can simply enter
16302 \begin_layout Standard
16308 \begin_layout Standard
16309 as LaTeX-argument in the table dialog to create a multicolumn.
16312 \begin_layout Standard
16313 \begin_inset VSpace bigskip
16319 \begin_layout Standard
16320 For cells spanned by a multicolumn cell, you can define the format
16323 \begin_layout Standard
16328 newcolumntype{S}[2]{>{
16338 \begin_layout Standard
16349 newcolumntype{S}[2]
16353 \begin_layout Standard
16364 arrayrulewidth)*(1-#2))/#2}}
16367 \begin_layout Standard
16368 This format uses equation
16369 \begin_inset LatexCommand eqref
16374 to calculate the needed width so that each spanned cell has the same width.
16377 \begin_layout Standard
16381 \begin_layout Standard
16384 S{width of multicolumn cell}{number of spanned columns}
16387 \begin_layout Standard
16388 as LaTeX-argument of the column.
16391 \begin_layout Standard
16392 \begin_inset VSpace bigskip
16398 \begin_layout Standard
16399 For colored columns, you can define
16402 \begin_layout Standard
16407 newcolumntype{K}[1]{>{
16414 \begin_layout Standard
16416 \begin_inset Quotes eld
16420 \begin_inset Quotes erd
16423 at the end creates a column with a flexible width whose text is horizontally
16428 \begin_layout Standard
16434 \begin_layout Standard
16438 \begin_layout Standard
16439 \begin_inset VSpace bigskip
16445 \begin_layout Standard
16446 To create Table\InsetSpace ~
16448 \begin_inset LatexCommand ref
16449 reference "tab:Table-using-user-defined"
16453 use the LaTeX-arguments
16456 \begin_layout Standard
16462 \begin_layout Standard
16463 for the first column and the multicolumn,
16466 \begin_layout Standard
16472 \begin_layout Standard
16473 for the the last column, and
16476 \begin_layout Standard
16482 \begin_layout Standard
16483 for the cells in the second column.
16486 \begin_layout Standard
16487 \begin_inset Float table
16493 \begin_layout Standard
16494 \begin_inset Caption
16496 \begin_layout Standard
16497 \begin_inset LatexCommand label
16498 name "tab:Table-using-user-defined"
16502 Table using user-defined table formats
16510 \begin_layout Standard
16512 \begin_inset Tabular
16513 <lyxtabular version="3" rows="3" columns="4">
16515 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16516 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16517 <column alignment="center" valignment="middle" leftline="true" width="0">
16518 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16519 <row topline="true">
16520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16523 \begin_layout Standard
16524 verylongtablecellword
16529 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16532 \begin_layout Standard
16533 multiple lines multicolumn
16538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16541 \begin_layout Standard
16547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16550 \begin_layout Standard
16557 <row topline="true">
16558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16561 \begin_layout Standard
16567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16570 \begin_layout Standard
16576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16579 \begin_layout Standard
16585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16588 \begin_layout Standard
16595 <row topline="true" bottomline="true">
16596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16599 \begin_layout Standard
16605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16608 \begin_layout Standard
16614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16617 \begin_layout Standard
16623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16626 \begin_layout Standard
16645 \begin_layout Subsection
16647 \begin_inset LatexCommand label
16648 name "sub:Line-Thickness"
16653 \begin_inset LatexCommand index
16654 name "Table Customization ! Line Thickness"
16661 \begin_layout Standard
16662 The line thickness for all lines in a table can be adjusted with the length
16670 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16671 pt, like in Table\InsetSpace ~
16673 \begin_inset LatexCommand ref
16674 reference "tab:Table-with-1.5"
16678 , insert the command
16681 \begin_layout Standard
16688 arrayrulewidth}{1.5pt}
16691 \begin_layout Standard
16692 in ERT before the table or table float.
16693 The changed thickness is valid for all following tables.
16694 To use the default value again, set
16700 to 0.4\InsetSpace \thinspace{}
16701 pt in ERT behind the table or table float.
16704 \begin_layout Standard
16708 \begin_layout Standard
16714 arrayrulewidth}{1.5pt}
16720 \begin_inset Float table
16725 \begin_layout Standard
16726 \begin_inset Caption
16728 \begin_layout Standard
16729 \begin_inset LatexCommand label
16730 name "tab:Table-with-1.5"
16734 Table with 1.5\InsetSpace \thinspace{}
16743 \begin_layout Standard
16745 \begin_inset Tabular
16746 <lyxtabular version="3" rows="3" columns="3">
16748 <column alignment="center" valignment="top" leftline="true" width="0">
16749 <column alignment="center" valignment="top" leftline="true" width="0">
16750 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16751 <row topline="true">
16752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16755 \begin_layout Standard
16761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16764 \begin_layout Standard
16770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16773 \begin_layout Standard
16780 <row topline="true">
16781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16784 \begin_layout Standard
16790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16793 \begin_layout Standard
16799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16802 \begin_layout Standard
16809 <row topline="true" bottomline="true">
16810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16813 \begin_layout Standard
16819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16822 \begin_layout Standard
16828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16831 \begin_layout Standard
16851 \begin_layout Standard
16857 arrayrulewidth}{0.4pt}
16865 \begin_layout Standard
16866 \begin_inset VSpace bigskip
16869 To set the line thickness to 1.5\InsetSpace \thinspace{}
16870 pt only for horizontal lines, like in Table\InsetSpace ~
16872 \begin_inset LatexCommand ref
16873 reference "tab:Table-with-horizontal"
16877 , insert these commands in ERT before the table or table float:
16880 \begin_layout Standard
16903 arrayrulewidth 1.5pt}
16913 arrayrulewidth 0.4pt}}
16916 \begin_layout Standard
16917 To return to the default line thickness, insert this command in ERT behind
16918 the table or table float:
16921 \begin_layout Standard
16933 \begin_layout Standard
16937 \begin_layout Standard
16948 \begin_layout Standard
16957 \begin_layout Standard
16965 arrayrulewidth 1.5pt}
16968 \begin_layout Standard
16978 arrayrulewidth 0.4pt}}
16984 \begin_inset Float table
16989 \begin_layout Standard
16990 \begin_inset Caption
16992 \begin_layout Standard
16993 \begin_inset LatexCommand label
16994 name "tab:Table-with-horizontal"
16998 Table with 1.5\InsetSpace \thinspace{}
16999 pt thick horizontal lines
17007 \begin_layout Standard
17009 \begin_inset Tabular
17010 <lyxtabular version="3" rows="3" columns="3">
17012 <column alignment="center" valignment="top" leftline="true" width="0">
17013 <column alignment="center" valignment="top" leftline="true" width="0">
17014 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17015 <row topline="true">
17016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17019 \begin_layout Standard
17025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17028 \begin_layout Standard
17034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17037 \begin_layout Standard
17044 <row topline="true">
17045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17048 \begin_layout Standard
17054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17057 \begin_layout Standard
17063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17066 \begin_layout Standard
17073 <row topline="true" bottomline="true">
17074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17077 \begin_layout Standard
17083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17086 \begin_layout Standard
17092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17095 \begin_layout Standard
17115 \begin_layout Standard
17131 \begin_layout Standard
17132 \begin_inset VSpace bigskip
17135 To set the line thickness to 1.5\InsetSpace \thinspace{}
17136 pt only for vertical lines, create the following
17137 column format in the document preamble, according to the description in
17138 section\InsetSpace ~
17140 \begin_inset LatexCommand ref
17141 reference "sub:Customized-Format"
17148 \begin_layout Standard
17153 newcolumntype{V}{!{
17155 vrule width 1.5pt}}
17158 \begin_layout Standard
17159 For Table\InsetSpace ~
17161 \begin_inset LatexCommand ref
17162 reference "tab:Table-with-vertical"
17169 \begin_layout Standard
17175 \begin_layout Standard
17176 was used for the last column and
17179 \begin_layout Standard
17185 \begin_layout Standard
17186 for the other columns.
17189 \begin_layout Standard
17190 \begin_inset Float table
17195 \begin_layout Standard
17196 \begin_inset Caption
17198 \begin_layout Standard
17199 \begin_inset LatexCommand label
17200 name "tab:Table-with-vertical"
17204 Table with 1.5\InsetSpace \thinspace{}
17205 pt thick vertical lines
17213 \begin_layout Standard
17215 \begin_inset Tabular
17216 <lyxtabular version="3" rows="3" columns="3">
17218 <column alignment="center" valignment="top" width="0" special="Vc">
17219 <column alignment="center" valignment="top" width="0" special="Vc">
17220 <column alignment="center" valignment="top" width="0" special="VcV">
17221 <row topline="true">
17222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17225 \begin_layout Standard
17231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17234 \begin_layout Standard
17240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17243 \begin_layout Standard
17250 <row topline="true">
17251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17254 \begin_layout Standard
17260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17263 \begin_layout Standard
17269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17272 \begin_layout Standard
17279 <row topline="true" bottomline="true">
17280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17283 \begin_layout Standard
17289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17292 \begin_layout Standard
17298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17301 \begin_layout Standard
17320 \begin_layout Subsection
17322 \begin_inset LatexCommand index
17323 name "Table Customization ! Dashed Lines"
17330 \begin_layout Standard
17334 \begin_layout Standard
17344 \begin_inset Note Note
17347 \begin_layout Standard
17348 The following section will only be displayed when you have the LaTeX-package
17361 \begin_layout Standard
17362 \begin_inset Float table
17368 \begin_layout Standard
17369 \begin_inset Caption
17371 \begin_layout Standard
17372 \begin_inset LatexCommand label
17373 name "tab:Table-with-dashed"
17377 Table with dashed lines
17385 \begin_layout Standard
17387 \begin_inset Tabular
17388 <lyxtabular version="3" rows="5" columns="5">
17390 <column alignment="center" valignment="top" leftline="true" width="0">
17391 <column alignment="center" valignment="top" leftline="true" width="0">
17392 <column alignment="center" valignment="top" width="0" special=":c">
17393 <column alignment="center" valignment="top" leftline="true" width="0">
17394 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17395 <row topline="true" bottomline="true">
17396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17399 \begin_layout Standard
17405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17408 \begin_layout Standard
17414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17417 \begin_layout Standard
17423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17426 \begin_layout Standard
17432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17435 \begin_layout Standard
17442 <row topline="true">
17443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17446 \begin_layout Standard
17452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17455 \begin_layout Standard
17461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17464 \begin_layout Standard
17470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17473 \begin_layout Standard
17479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17482 \begin_layout Standard
17490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17493 \begin_layout Standard
17497 \begin_layout Standard
17511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17514 \begin_layout Standard
17520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17523 \begin_layout Standard
17529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17532 \begin_layout Standard
17538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17541 \begin_layout Standard
17548 <row topline="true">
17549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17552 \begin_layout Standard
17556 \begin_layout Standard
17570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17573 \begin_layout Standard
17579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17582 \begin_layout Standard
17588 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17591 \begin_layout Standard
17597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17600 \begin_layout Standard
17607 <row topline="true" bottomline="true">
17608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17611 \begin_layout Standard
17617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17620 \begin_layout Standard
17626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17629 \begin_layout Standard
17635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17638 \begin_layout Standard
17644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17647 \begin_layout Standard
17666 \begin_layout Standard
17667 LyX doesn't natively support dashed lines, so you have to use ERT.
17668 As prerequisite the LaTeX-package
17673 \begin_inset LatexCommand index
17674 name "LaTeX-packages ! arydshln"
17678 must be loaded in the document preamble with the command
17681 \begin_layout Standard
17686 usepackage{arydshln}
17689 \begin_layout Standard
17690 To make a vertical line dashed, enter the colon
17691 \begin_inset Quotes eld
17695 \begin_inset Quotes erd
17698 together with the character for the horizontal alignment as LaTeX-argument
17699 in the table cell dialog.
17702 \begin_layout Standard
17703 For a horizontal dashed line add the command
17706 \begin_layout Standard
17714 \begin_layout Standard
17715 in ERT as first element of the first cell in the table row.
17718 \begin_layout Standard
17719 For dashed multicolumn lines use the command
17722 \begin_layout Standard
17727 cdashline{line number
17732 \begin_layout Standard
17733 in ERT as first element of the first cell in the table row.
17734 If you have for example a multicolumn spanning over columns 2 to 4 and
17735 you want to have a dashed line above, add the command
17738 \begin_layout Standard
17746 \begin_layout Standard
17747 as first element of the first cell in the row of the multicolumn.
17750 \begin_layout Standard
17751 \begin_inset VSpace bigskip
17757 \begin_layout Standard
17760 \begin_inset LatexCommand ref
17761 reference "tab:Table-with-dashed"
17766 \begin_inset Quotes eld
17774 \begin_inset Quotes erd
17777 as LaTeX-argument of the third column.
17784 was inserted to the first cell of the third row and the the ERT command
17793 was inserted to the first cell of the fourth row.
17796 \begin_layout Standard
17797 \begin_inset Note Greyedout
17800 \begin_layout Standard
17805 The used LaTeX-package
17809 is apparently not compatible with the LaTeX-package
17814 \begin_inset LatexCommand index
17815 name "LaTeX-packages ! colortbl"
17819 that is used for colored tables in section\InsetSpace ~
17821 \begin_inset LatexCommand ref
17822 reference "sec:Colored-Tables"
17827 That means colored tables cannot have dashed lines.
17835 \begin_layout Standard
17839 \begin_layout Standard
17849 \begin_inset Note Note
17852 \begin_layout Standard
17853 The following will be displayed when the LaTeX-package
17865 \begin_layout Standard
17866 You need to install the package
17870 to see the contents of this section in the output.
17873 \begin_layout Standard
17877 \begin_layout Standard
17889 \begin_layout Chapter
17891 \begin_inset LatexCommand index
17897 \begin_inset LatexCommand label
17905 \begin_layout Section
17907 \begin_inset LatexCommand label
17908 name "sec:FloatIntroduction"
17913 \begin_inset LatexCommand index
17914 name "Floats ! Introduction"
17921 \begin_layout Standard
17922 A float is a block of text associated with some sort of label, which doesn't
17923 have a fixed location.
17925 \begin_inset Quotes eld
17929 \begin_inset Quotes erd
17932 forward or backward a page or two, to wherever it fits best.
17939 Margin\InsetSpace ~
17942 are also floats, because they can float to the next page when there are
17943 too many notes at the page.
17946 \begin_layout Standard
17947 Floats allow a high quality layout.
17948 Images and tables can evenly be spread to the pages to avoid white space
17949 and pages without text.
17950 As the floating often destroys the context between the text and the image/table
17951 , every float can be referenced in the text.
17952 Floats are therefore numbered.
17953 Referencing is described in section\InsetSpace ~
17955 \begin_inset LatexCommand ref
17956 reference "sec:Referencing-Floats"
17963 \begin_layout Standard
17964 To insert a float, use the menu
17966 Insert\SpecialChar \menuseparator
17974 inset, a box with a label.
17975 The label will automatically be translated to the document language in
17977 Behind the label you can insert the caption text.
17978 The image or table is inserted above or below the caption in a separate
17979 paragraph within the float.
17980 More about the caption placement is described in section\InsetSpace ~
17982 \begin_inset LatexCommand ref
17983 reference "sec:Caption-Placement"
17988 To keep your LyX-document readable, you can open and close the float box
17989 by left-clicking on the box label.
17990 A closed float box looks like this:
17991 \begin_inset Graphics
17992 filename clipart/floatQt4.png
17994 scaleBeforeRotation
17998 -- a gray button with a red label.
18001 \begin_layout Standard
18002 It is recommended to insert floats as a separate paragraph to avoid possible
18003 LaTeX-errors that can occur when the surrounding text is specially formatted.
18006 \begin_layout Standard
18007 Existing figures or tables can be put into a float by marking them and then
18008 pressing the corresponding toolbar button for a new float.
18011 \begin_layout Section
18015 \begin_layout Standard
18016 Besides figure and table floats that are described in section\InsetSpace ~
18018 \begin_inset LatexCommand ref
18019 reference "sec:Figure-Floats"
18024 \begin_inset LatexCommand ref
18025 reference "sec:Table-Floats"
18029 , respectively, LyX offers the float types
18042 \begin_layout Subsection
18044 \begin_inset LatexCommand index
18045 name "Floats ! Algorithms"
18052 \begin_layout Standard
18053 \begin_inset Float algorithm
18059 \begin_layout Standard
18060 \begin_inset Caption
18062 \begin_layout Standard
18063 \begin_inset LatexCommand label
18064 name "alg:Example-Algorithm-float"
18068 Example Algorithm float
18076 \begin_layout LyX-Code
18079 Sum:= Sum + A(I); /*comment*/
18082 \begin_inset VSpace -4mm
18093 \begin_layout Standard
18094 This float type is inserted with the menu
18096 Insert\SpecialChar \menuseparator
18097 Floats\SpecialChar \menuseparator
18101 It is used for program codes and descriptions of algorithms.
18102 A possible environment for algorithms is the
18106 , described in LyX's
18111 Algorithm\InsetSpace ~
18113 \begin_inset LatexCommand ref
18114 reference "alg:Example-Algorithm-float"
18118 is an example of an algorithm float where -4\InsetSpace \thinspace{}
18119 mm vertical space was added
18120 at the end of the float to have the bottom rule exactly below the last
18124 \begin_layout Standard
18125 The float label is not automatically translated into the document language.
18126 If your document is not in English, you have to do this manually by adding
18127 the following line to the document preamble
18132 \begin_layout Standard
18137 floatname{algorithm}{your\InsetSpace ~
18141 \begin_layout Standard
18148 \begin_inset Quotes eld
18156 \begin_inset Quotes erd
18162 \begin_layout Description
18167 When the LaTeX-package
18172 \begin_inset LatexCommand index
18173 name "LaTeX-packages ! hyperref"
18177 is used to link cross-references to floats in the PDF-output, it must be
18178 loaded in the document preamble before the definition of floats to be able
18179 to reference floats.
18180 As LyX sets the float definition for algorithm floats automatically before
18181 the user editable part of the document preamble, you need to insert the
18182 following preamble lines
18186 the loading command of
18193 \begin_inset VSpace defskip
18200 newfloat{Xalgorithm}{tbp}{loa}
18204 floatname{Xalgorithm}{your\InsetSpace ~
18217 renewenvironment{algorithm}[1][tbp]
18223 \begin_layout Standard
18234 begin{Xalgorithm}[#1]}{
18237 \begin_inset VSpace defskip
18243 \begin_layout Standard
18244 Algorithm floats are not by default numbered in the scheme
18245 \begin_inset Quotes eld
18249 \begin_inset Quotes erd
18252 like it is the case for table and figure floats in many document-classes.
18253 To number algorithm floats in the same scheme, add this command to your
18257 \begin_layout Standard
18262 numberwithin{algorithm}{chapter}
18265 \begin_layout Standard
18266 If you use the LaTeX-package
18270 , add this line instead
18278 (the commands from above) to the preamble:
18281 \begin_layout Standard
18286 numberwithin{Xalgorithm}{chapter}
18289 \begin_layout Standard
18290 To be able to use the command
18301 in the document settings the option
18311 \begin_layout Subsection
18313 \begin_inset LatexCommand index
18314 name "Floats ! Text Wrap Floats"
18319 \begin_inset LatexCommand label
18320 name "sub:floatflt-wrap-float"
18327 \begin_layout Standard
18328 This float type is used if you want to
18329 \begin_inset Quotes eld
18333 \begin_inset Quotes erd
18336 text around a figure so that it only occupies some fraction of the column
18338 It can be inserted using the menu
18339 \begin_inset Wrap figure
18344 \begin_layout Standard
18345 \begin_inset Graphics
18346 filename clipart/mobius.eps
18349 scaleBeforeRotation
18350 rotateOrigin center
18357 \begin_layout Standard
18358 \begin_inset Caption
18360 \begin_layout Standard
18361 \begin_inset LatexCommand label
18362 name "fig:This-is-a"
18366 This is a wrapped figure, and this is the brilliant caption that describes
18368 \begin_inset VSpace medskip
18383 Insert\SpecialChar \menuseparator
18384 Floats\SpecialChar \menuseparator
18389 if the LaTeX-package
18391 f\SpecialChar \textcompwordmark{}
18392 loatf\SpecialChar \textcompwordmark{}
18396 \begin_inset LatexCommand index
18397 name "LaTeX-packages ! floatflt"
18405 \begin_layout Standard
18406 Installing a LaTeX-package is explained it in the
18416 The width and placement of the float is adjusted by right-clicking on the
18418 Figure\InsetSpace ~
18420 \begin_inset LatexCommand ref
18421 reference "fig:This-is-a"
18425 is an example text wrap float with a width of 40
18426 \begin_inset Formula $\,$
18433 \begin_layout Standard
18434 Available units are explained in
18435 \begin_inset LatexCommand ref
18436 reference "cha:Units-available-in"
18445 Some space was added under the caption to separate it better from the surroundi
18449 \begin_layout Standard
18452 f\SpecialChar \textcompwordmark{}
18453 loatf\SpecialChar \textcompwordmark{}
18456 also supports table wrap floats, but they are not yet supported by LyX.
18457 If you need this, read the documentation of
18459 f\SpecialChar \textcompwordmark{}
18460 loatf\SpecialChar \textcompwordmark{}
18464 \begin_inset LatexCommand cite
18472 \begin_layout Standard
18473 \begin_inset Note Greyedout
18476 \begin_layout Standard
18482 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18484 having a figure too close to the bottom
18485 of the page can mess things up in the way that the float doesn't appear
18486 in the output or that it is placed over some other text.
18490 \begin_layout Standard
18491 The better solution is to use the LaTeX-package
18493 wrapf\SpecialChar \textcompwordmark{}
18497 \begin_inset LatexCommand index
18498 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18504 f\SpecialChar \textcompwordmark{}
18505 loatf\SpecialChar \textcompwordmark{}
18508 , but it is currently not supported by LyX.
18521 \begin_layout Standard
18525 \begin_layout Itemize
18526 Wrap floats should not be placed in paragraphs that run over a page break.
18527 That means that wrap floats should better be inserted to the exact place
18528 when the document is nearly finished and you are able to estimate where
18529 page breaks will appear.
18532 \begin_layout Itemize
18533 Wrap floats should either be placed in an own paragraph before the paragraph
18534 where they should wrap into or within a paragraph.
18537 \begin_layout Itemize
18538 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18539 there is a text paragraph between them as separator.
18542 \begin_layout Itemize
18543 Wrap floats are not allowed in section headings or tables.
18546 \begin_layout Section
18548 \begin_inset LatexCommand label
18549 name "sec:Float-Numbering"
18554 \begin_inset LatexCommand index
18555 name "Floats ! Numbering"
18562 \begin_layout Standard
18563 Floats are usually numbered either independent from the sections the floats
18564 are in, or in the scheme
18565 \begin_inset Quotes eld
18569 \begin_inset Quotes erd
18573 \begin_inset Quotes eld
18577 \begin_inset Quotes erd
18581 This depends on the used document class.
18584 \begin_layout Standard
18585 To change the section independent numbering, you can use this command in
18586 the document preamble:
18589 \begin_layout Standard
18601 \begin_layout Standard
18608 is the command that prints the table number, for figure floats, the command
18622 prints in the command above the table number as small roman number.
18625 \begin_layout Standard
18626 To change the numbering scheme for example to
18627 \begin_inset Quotes eld
18631 \begin_inset Quotes erd
18634 , use this command in the preamble:
18637 \begin_layout Standard
18642 numberwithin{table}{subsection}
18645 \begin_layout Standard
18646 To be able to use the command
18657 in the document settings the option
18667 \begin_layout Standard
18668 Please also have a look at section\InsetSpace ~
18670 \begin_inset LatexCommand ref
18671 reference "sub:Footnote-Numbering"
18675 for the details and important notes about the numbering commands.
18678 \begin_layout Section
18680 \begin_inset LatexCommand label
18681 name "sec:Referencing-Floats"
18686 \begin_inset LatexCommand index
18687 name "Floats ! References"
18692 \begin_inset LatexCommand index
18700 \begin_layout Standard
18701 To reference a float, insert a label into its caption using the menu
18703 Insert\SpecialChar \menuseparator
18706 or the toolbar button
18707 \begin_inset Graphics
18708 filename ../images/label-insert.xpm
18710 scaleBeforeRotation
18715 A grey label box like this one:
18716 \begin_inset Graphics
18717 filename clipart/labelQt4.png
18719 scaleBeforeRotation
18723 will be inserted and the label window pops up asking for the label text.
18724 LyX offers as text the first words of the caption with a prefix.
18725 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18727 for figure floats the prefix will
18735 \begin_layout Standard
18736 The label is used as anchor and name for the reference.
18737 You can refer to the label using the menu
18739 Insert\SpecialChar \menuseparator
18742 or the toolbar button
18743 \begin_inset Graphics
18744 filename ../images/dialog-show-new-inset_ref.xpm
18746 scaleBeforeRotation
18751 A grey cross-reference box like this one:
18752 \begin_inset Graphics
18753 filename clipart/referenceQt4.png
18755 scaleBeforeRotation
18759 will be inserted and the cross-reference window appear showing all labels
18761 If you have multiple LyX-documents opened, choose the one you are working
18762 on from the drop-list at the top of the dialog.
18763 You can now sort the labels alphabetically and then choose one.
18764 At the position of the cross-reference box the float number will appear
18768 \begin_layout Standard
18769 It is recommended to use a protected space between the cross-reference name
18770 and its number to avoid line breaks between them.
18771 If a cross-reference refers to a non-existing label, you will see two question
18772 marks in the output instead of the reference.
18775 \begin_layout Standard
18776 You can change labels at any time by clicking on the label box.
18777 References to the changed label will automatically change its link to the
18778 new label text, so that you don't need to take care about this.
18781 \begin_layout Standard
18788 in the cross-reference window sets the cursor before the referred label.
18789 The button text changes then to Go\InsetSpace ~
18790 Back and you can use it to set the cursor
18791 back to the cross-reference.
18792 Right-clicking on a cross-reference box also sets the cursor before the
18793 referenced label but without a possibility to go back.
18796 \begin_layout Subsection
18797 Cross-Reference Formats
18798 \begin_inset LatexCommand label
18799 name "sub:Cross-Reference-Formats"
18804 \begin_inset LatexCommand index
18805 name "References ! Formats"
18812 \begin_layout Standard
18813 There are six varieties of cross-references:
18816 \begin_layout Description
18817 <reference>: prints the float number, this is the default:
18818 \begin_inset LatexCommand ref
18819 reference "fig:Two-distorted-images"
18826 \begin_layout Description
18827 (<reference>): prints the float number within two parentheses, this is the
18828 style normally used to reference formulas, especially when the reference
18830 \begin_inset Quotes eld
18834 \begin_inset Quotes erd
18838 \begin_inset LatexCommand eqref
18846 \begin_layout Description
18847 <page>: prints the page number: Page\InsetSpace ~
18849 \begin_inset LatexCommand pageref
18850 reference "fig:Two-distorted-images"
18857 \begin_layout Description
18860 <page>: prints the text "on page" and the page number:
18861 \begin_inset LatexCommand vpageref
18862 reference "fig:Two-distorted-images"
18869 \begin_layout Description
18870 <reference>\InsetSpace ~
18873 <page>: prints the float number, the text "on page", and
18875 \begin_inset LatexCommand vref
18876 reference "fig:Two-distorted-images"
18883 \begin_layout Description
18884 Formatted\InsetSpace ~
18885 reference: prints a self defined cross-reference format.
18887 \begin_inset Note Greyedout
18890 \begin_layout Standard
18895 This feature is only available when you have the LaTeX-package
18907 \begin_layout Standard
18908 Note that the style <page> won't print the page number if the label is on
18909 the previous, the same, or the next page.
18910 You will e.\InsetSpace \thinspace{}
18913 \begin_inset Quotes eld
18921 \begin_inset Quotes erd
18927 \begin_layout Standard
18928 The number and current page of the referred document part in the output,
18929 is automatically calculated by LaTeX.
18930 The varieties are adjusted in the field
18934 of the cross-reference window, that appear when you click on the cross-referenc
18938 \begin_layout Subsection
18939 Referencing Subfigures
18940 \begin_inset LatexCommand label
18941 name "sub:Referencing-Subfigures"
18946 \begin_inset LatexCommand index
18947 name "References ! to Subfigures"
18954 \begin_layout Standard
18955 Currently referencing subfigures is not supported by LyX, so you have to
18956 use LaTeX-commands.
18957 The label is the created with the command
18960 \begin_layout Standard
18965 label{fig:YourLabelName}
18968 \begin_layout Standard
18969 that is directly inserted into the subfigure caption field.
18970 To reference the label add this command in ERT
18973 \begin_layout Standard
18978 ref{fig:YourLabelName}
18981 \begin_layout Standard
18982 to the position in your document where the reference should be placed.
18983 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18988 \begin_layout Standard
19000 \begin_layout Subsection
19001 Automatic Reference Naming
19002 \begin_inset LatexCommand index
19003 name "References ! Automatic Reference Naming"
19010 \begin_layout Standard
19015 provides a very useful feature that cross-references automatically include
19016 the name of the referenced floats (or text parts like sections).
19017 You save to write e.\InsetSpace \thinspace{}
19020 \begin_inset Quotes eld
19024 \begin_inset Quotes erd
19027 before every reference box.
19028 To get this automatic reference naming, you have to load the LaTeX-package
19034 \begin_inset LatexCommand index
19035 name "LaTeX-packages ! hyperref"
19039 in the document preamble with
19042 \begin_layout Standard
19047 usepackage[pdfborder={0 0 0}]{hyperref}
19062 \begin_layout Standard
19067 is used to link cross-references in the DVI- and PDF-output, this means
19068 that the reader of your document will be able to click on a table of content
19069 (TOC) entry or on a reference and he will be shown the referenced document
19075 also creates PDF-bookmarks for every section of your document to make it
19076 easier for readers to navigate through the document.
19077 This is also used in this document but when you have a look in the document
19078 preamble you will find various options in the load command of
19083 To learn more about the
19087 package, we refer to its documentation
19088 \begin_inset LatexCommand cite
19096 \begin_layout Standard
19097 \begin_inset Note Greyedout
19100 \begin_layout Standard
19105 Automatic reference naming cannot be used when you use cross-references
19108 Formatted\InsetSpace ~
19111 style, described in section\InsetSpace ~
19113 \begin_inset LatexCommand ref
19114 reference "sub:Cross-Reference-Formats"
19126 \begin_layout Subsection
19128 \begin_inset LatexCommand label
19129 name "sub:Reference-Position"
19134 \begin_inset LatexCommand index
19135 name "References ! Reference Position"
19142 \begin_layout Standard
19148 \begin_inset LatexCommand index
19149 name "LaTeX-packages ! hyperref"
19153 to link cross-references in the output, you will see that clicking on an
19154 image float reference jumps to the image label.
19155 The caption will be the first text part on the screen, so that you cannot
19156 see the image without scrolling.
19157 This is because the reference link anchor is placed at the position of
19159 With the use of the package
19164 \begin_inset LatexCommand index
19165 name "LaTeX-packages ! hypcap"
19169 , which is part of the LaTeX-package
19174 \begin_inset LatexCommand index
19175 name "LaTeX-packages ! oberdiek"
19179 , the link anchor is placed at the beginning of a float.
19180 To use this feature for figure floats, load
19184 in the document preamble with the line
19187 \begin_layout Standard
19192 usepackage[f\SpecialChar \textcompwordmark{}
19196 \begin_layout Standard
19201 for all floats but this isn't recommended for stability reasons.
19202 For more informations, have a look at
19207 \begin_inset LatexCommand cite
19215 \begin_layout Standard
19216 \begin_inset Note Greyedout
19219 \begin_layout Standard
19228 must be loaded after
19232 in the document preamble.
19240 \begin_layout Standard
19241 \begin_inset Note Greyedout
19244 \begin_layout Standard
19253 has no effect for references to subfigures.
19261 \begin_layout Section
19263 \begin_inset LatexCommand label
19264 name "sec:Float-Placement"
19269 \begin_inset LatexCommand index
19270 name "Floats ! Placement"
19277 \begin_layout Standard
19278 Right-clicking on a float-box opens a dialog where you can alter the placement
19279 options that LaTeX uses for positioning the float.
19286 is only useful for two-column documents: If you select it, the float will
19287 span across both columns on the page instead of being confined to just
19292 Rotate\InsetSpace ~
19295 is used to rotate floats, see section
19296 \begin_inset LatexCommand ref
19297 reference "sec:Rotated-Floats"
19304 \begin_layout Standard
19305 You can use one ore more of the following options in the float dialog to
19306 set the placement for a particular float when you uncheck the option
19309 default\InsetSpace ~
19315 \begin_layout Description
19318 possible try to place the float on the position where it is inserted
19321 \begin_layout Description
19324 page try to place the float on the top of the current page
19327 \begin_layout Description
19328 Bottom\InsetSpace ~
19330 page try to place the float on the bottom of the current page
19333 \begin_layout Description
19336 floats try to place the float on an own page
19339 \begin_layout Standard
19340 The order of the above option is
19345 That means, if you use the default placement, LaTeX will first try out
19358 , and then the others.
19359 If you don't use the default, LaTeX will try only the checked options but
19361 If none of the 4 placements are possible the procedure is internally repeated
19362 but it is tried to put the float on the following page.
19365 \begin_layout Standard
19366 By default, each option has its own rules:
19369 \begin_layout Labeling
19370 \labelwidthstring 00.00.0000
19377 only floats occupying less than 70\InsetSpace \thinspace{}
19378 % of the page can be placed at the top
19388 \begin_layout Labeling
19389 \labelwidthstring 00.00.0000
19392 Bottom\InsetSpace ~
19396 : only floats occupying less than 30\InsetSpace \thinspace{}
19397 % of the page can be placed at the bottom
19408 \begin_layout Labeling
19409 \labelwidthstring 00.00.0000
19416 : only if more than 50\InsetSpace \thinspace{}
19417 % of the page are occupied by floats, several floats
19418 can be set together on a page.
19423 f\SpecialChar \textcompwordmark{}
19429 \begin_layout Standard
19430 If you don't like these rules, you can ignore them by using the additional
19433 Ignore\InsetSpace ~
19439 You can also redefine the rules with LaTeX-commands that are given in parenthese
19440 s behind the rules description above.
19441 To increase for example the often too small default of the bottom-rule
19442 to 50\InsetSpace \thinspace{}
19443 % of the page, add this line to your document preamble:
19446 \begin_layout Standard
19453 bottomfraction}{0.5}
19456 \begin_layout Standard
19457 Sometimes you might need, under all circumstances, a float to be placed
19458 exactly at the position where it is inserted.
19459 For this case you can use the option
19465 Use this option very rarely and only if the document is nearly ready to
19467 Because the float is then no longer able to
19468 \begin_inset Quotes eld
19472 \begin_inset Quotes erd
19475 when you change your document and this will often destroy the page layout.
19478 \begin_layout Standard
19479 There are no placement options for text wrap floats, because they are always
19480 surrounded by the text of a certain paragraph.
19481 \begin_inset VSpace bigskip
19487 \begin_layout Standard
19488 Sometimes you have the problem that a float is placed at the top of a page
19489 while its corresponding section starts at the middle of the page, so that
19490 the reader could think the float is part of the previous section.
19491 To avoid this the LaTeX-command
19495 suppressf\SpecialChar \textcompwordmark{}
19499 It suppresses a given float placement for the page where it is inserted
19500 and can therefore be used to avoid that floats could be set before a section
19502 To get this, add these commands to your document preamble:
19505 \begin_layout Standard
19522 suppressf\SpecialChar \textcompwordmark{}
19528 \begin_layout Standard
19529 You can define the same for all section headings, like chapters and subsections.
19530 This definition is not recommended to be used for small text parts like
19531 subsubsections because LaTeX may then have problems to find a suitable
19535 \begin_layout Standard
19536 \begin_inset VSpace bigskip
19539 In some cases it is required to have all figures/tables at the end of the
19541 For this purpose the LaTeX-package
19543 endf\SpecialChar \textcompwordmark{}
19547 \begin_inset LatexCommand index
19548 name "LaTeX-packages ! endfloat"
19553 It puts all figure and table floats at the end of the document into own
19555 At the original float position a text hint like
19556 \begin_inset Quotes eld
19561 [Figure\InsetSpace ~
19565 \begin_inset Quotes erd
19569 The endfloat-package is loaded in the preamble with the line
19572 \begin_layout Standard
19577 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19581 \begin_layout Standard
19582 There are various package options to format the created figure/table sections.
19583 For more information we refer to the
19585 endf\SpecialChar \textcompwordmark{}
19589 \begin_inset LatexCommand cite
19597 \begin_inset Note Greyedout
19600 \begin_layout Standard
19603 Note: endf\SpecialChar \textcompwordmark{}
19606 doesn't provide an automatic translation for the text hint, you have to
19607 do this manually, see section\InsetSpace ~
19609 \begin_inset LatexCommand cite
19622 \begin_inset Note Greyedout
19625 \begin_layout Standard
19630 There is currently a bug in
19632 endf\SpecialChar \textcompwordmark{}
19635 when the caption contains a German
19636 \begin_inset Quotes eld
19640 \begin_inset Quotes erd
19644 Use in this case the command
19645 \begin_inset Quotes eld
19655 \begin_inset Quotes erd
19659 \begin_inset Quotes eld
19663 \begin_inset Quotes erd
19674 \begin_layout Standard
19675 \begin_inset VSpace bigskip
19678 For more details about float placements, have a look at LaTeX books,
19679 \begin_inset LatexCommand cite
19680 key "latexcompanion,latexguide,latexbook"
19687 \begin_layout Section
19689 \begin_inset LatexCommand label
19690 name "sec:Rotated-Floats"
19695 \begin_inset LatexCommand index
19696 name "Floats ! Rotating"
19703 \begin_layout Standard
19704 Especially for wide tables you might have floats rotated.
19705 To rotate a whole float including the caption, right-click on the float-box
19708 Rotate\InsetSpace ~
19714 \begin_layout Standard
19715 Rotated floats are always placed on its own page (or column, when you have
19716 a two-column document).
19717 They are normally rotated so that you can read them from the outside margin
19718 -- to the left on even pages, to the right on odd pages.
19719 To force a certain rotation direction for all pages, you can add either
19722 f\SpecialChar \textcompwordmark{}
19727 f\SpecialChar \textcompwordmark{}
19730 to the document class options.
19733 \begin_layout Standard
19734 Referencing rotated floats is the same like for normal floats, the caption
19735 format is also the same: Table\InsetSpace ~
19737 \begin_inset LatexCommand ref
19738 reference "tab:Rotated-table"
19742 is an example of a rotated table float.
19745 \begin_layout Standard
19746 \begin_inset Note Greyedout
19749 \begin_layout Standard
19754 Not all DVI-viewers are able to display rotated floats.
19762 \begin_layout Standard
19763 \begin_inset Float table
19768 \begin_layout Standard
19769 \begin_inset Caption
19771 \begin_layout Standard
19772 \begin_inset LatexCommand label
19773 name "tab:Rotated-table"
19785 \begin_layout Standard
19787 \begin_inset Tabular
19788 <lyxtabular version="3" rows="1" columns="5">
19790 <column alignment="center" valignment="top" leftline="true" width="0">
19791 <column alignment="center" valignment="top" leftline="true" width="0">
19792 <column alignment="center" valignment="top" leftline="true" width="0">
19793 <column alignment="center" valignment="top" leftline="true" width="0">
19794 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19795 <row topline="true" bottomline="true">
19796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19799 \begin_layout Standard
19805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19808 \begin_layout Standard
19814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19817 \begin_layout Standard
19823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19826 \begin_layout Standard
19832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19835 \begin_layout Standard
19854 \begin_layout Section
19856 \begin_inset LatexCommand index
19857 name "Caption ! Formatting"
19862 \begin_inset LatexCommand index
19863 name "Floats ! Caption Formatting"
19868 \begin_inset LatexCommand index
19869 name "LaTeX-packages ! caption"
19874 \begin_inset LatexCommand label
19875 name "sec:Caption-Formatting"
19882 \begin_layout Standard
19887 environment is the default paragraph environment for
19892 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19895 \begin_inset Quotes eld
19903 \begin_inset Quotes erd
19906 followed by the caption text.
19908 \begin_inset Quotes eld
19912 \begin_inset Quotes erd
19915 is the actual reference number.
19916 By default the label and the number are in the same font as the caption
19917 text and a colon follows the number to divide the label from the text.
19918 This caption format is not suitable for all document formats.
19922 \begin_layout Standard
19923 To change the default caption format, load the LaTeX-package
19928 \begin_inset LatexCommand index
19929 name "LaTeX-packages ! caption"
19933 in the document preamble with this line:
19936 \begin_layout Standard
19941 usepackage[format definition]{caption}
19944 \begin_layout Standard
19945 To have for example the label and the number in sans-serif bold font and
19946 the table captions always above the table like in this document, use the
19950 \begin_layout Standard
19955 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19958 \begin_layout Standard
19959 You can also define different caption formats for the different float types.
19960 In this case load the
19964 package without format specific options and define the different formats
19965 with the help of the command
19968 \begin_layout Standard
19973 captionsetup[float type]{format definition}
19976 \begin_layout Standard
19977 in the document preamble.
19978 For example the caption formats of Figure\InsetSpace ~
19980 \begin_inset LatexCommand ref
19981 reference "fig:This-is-an-fig"
19985 and Table\InsetSpace ~
19987 \begin_inset LatexCommand ref
19988 reference "tab:This-is-an-tab"
19992 can be created using these commands in the document preamble:
19995 \begin_layout Standard
20000 usepackage[tableposition=top]{caption}
20008 captionsetup[f\SpecialChar \textcompwordmark{}
20009 igure]{labelfont={tt}, textfont=it, indention=1cm,%
20015 \begin_layout Standard
20023 captionsetup[figure]
20034 captionsetup[table]{labelfont={bf,sf}}
20037 \begin_layout Standard
20038 \begin_inset Note Greyedout
20041 \begin_layout Standard
20050 has no effect when a
20055 \begin_inset LatexCommand index
20056 name "LaTeX-packages ! koma-script"
20060 document class is used.
20061 In this case the document class option
20073 \begin_layout Standard
20074 For more information about the package
20078 we refer to its documentation
20079 \begin_inset LatexCommand cite
20080 key "caption,caption-de"
20087 \begin_layout Standard
20088 To change the label name from e.g.
20090 \begin_inset Quotes eld
20094 \begin_inset Quotes erd
20098 \begin_inset Quotes eld
20102 \begin_inset Quotes erd
20105 use this preamble command:
20108 \begin_layout Standard
20115 fnum@figure}{Image~
20120 \begin_layout Standard
20127 inserts the figure number and
20130 \begin_inset Quotes eld
20136 \begin_inset Quotes erd
20139 creates a protected space.
20142 \begin_layout Standard
20143 \begin_inset VSpace bigskip
20151 \begin_inset LatexCommand index
20152 name "LaTeX-packages ! koma-script"
20158 article (koma-script)
20166 letter (koma-script)
20170 report (koma-script)
20172 \InsetSpace \thinspace{}
20173 ), you can alternatively to the
20181 's built-in command
20188 For example, to have the caption label in bold, add this command to your
20192 \begin_layout Standard
20197 setkomafont{captionlabel}{
20202 \begin_layout Standard
20203 For more information about
20214 \begin_inset LatexCommand cite
20215 key "koma-script,koma-script-de"
20222 \begin_layout Standard
20226 \begin_layout Standard
20230 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
20237 \begin_inset Note Note
20240 \begin_layout Standard
20241 The caption format is changed only for this example.
20249 \begin_layout Standard
20250 \begin_inset Float figure
20256 \begin_layout Standard
20258 \begin_inset Graphics
20259 filename clipart/mobius.eps
20262 scaleBeforeRotation
20269 \begin_layout Standard
20270 \begin_inset Caption
20272 \begin_layout Standard
20273 \begin_inset LatexCommand label
20274 name "fig:This-is-an-fig"
20278 This is an example figure caption that is longer than one line to show the
20279 different caption format.
20280 Here a self-defined caption format is used.
20293 \begin_layout Standard
20297 \begin_layout Standard
20301 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
20310 \begin_layout Standard
20311 \begin_inset Float table
20317 \begin_layout Standard
20318 \begin_inset Caption
20320 \begin_layout Standard
20321 \begin_inset LatexCommand label
20322 name "tab:This-is-an-tab"
20326 This is an example table caption that is longer than one line to show the
20327 different caption format.
20328 Here the standard caption format for tables in this document is used.
20336 \begin_layout Standard
20338 \begin_inset Tabular
20339 <lyxtabular version="3" rows="1" columns="5">
20341 <column alignment="center" valignment="top" leftline="true" width="0">
20342 <column alignment="center" valignment="top" leftline="true" width="0">
20343 <column alignment="center" valignment="top" leftline="true" width="0">
20344 <column alignment="center" valignment="top" leftline="true" width="0">
20345 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20346 <row topline="true" bottomline="true">
20347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20350 \begin_layout Standard
20356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20359 \begin_layout Standard
20365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20368 \begin_layout Standard
20374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20377 \begin_layout Standard
20383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20386 \begin_layout Standard
20405 \begin_layout Section
20407 \begin_inset LatexCommand index
20408 name "Caption ! Placement"
20413 \begin_inset LatexCommand index
20414 name "Floats ! Caption Placement"
20419 \begin_inset LatexCommand label
20420 name "sec:Caption-Placement"
20427 \begin_layout Standard
20428 The common caption placement rule is:
20431 \begin_layout Description
20432 Figure: Caption is set below the figure
20435 \begin_layout Description
20436 Table: Caption is set above the table
20439 \begin_layout Standard
20440 Having the caption above the table is unfortunately not supported in LaTeX's
20442 That means if you are using the document classes
20458 there will be no space between the caption and the table.
20459 To insert the needed space, add the following option to the load command
20460 of the LaTeX-package
20464 in your document preamble
20468 \begin_layout Standard
20469 See section\InsetSpace ~
20471 \begin_inset LatexCommand ref
20472 reference "sec:Caption-Formatting"
20476 for more information of the package
20488 \begin_layout Standard
20494 \begin_layout Standard
20500 \begin_inset LatexCommand index
20501 name "LaTeX-packages ! koma-script"
20507 article (koma-script)
20515 letter (koma-script)
20519 report (koma-script)
20521 \InsetSpace \thinspace{}
20522 ), you can alternatively to the
20526 package set the document class option
20533 \begin_layout Standard
20534 \begin_inset VSpace bigskip
20537 It is also possible to set the caption beside a figure or table.
20538 To get this the LaTeX-package
20543 \begin_inset LatexCommand index
20544 name "LaTeX-packages ! sidecap"
20548 has to be loaded in the document preamble with the line
20551 \begin_layout Standard
20556 usepackage[option]{sidecap}
20559 \begin_layout Standard
20560 If you set no option, the caption is placed on the side of the outer page
20561 margin -- to the right on odd pages, to the left on even pages.
20562 You can change the placement to inner margin with the option
20567 To force the placement always to the right or left, use the option
20578 \begin_layout Standard
20579 To place in LyX the caption of a float on the side, it is necessary to add
20580 these commands to the document preamble:
20583 \begin_layout Standard
20589 \begin_layout Standard
20602 \begin_layout Standard
20623 \begin_layout Standard
20644 \begin_layout Standard
20655 renewenvironment{table}{
20662 \begin_layout Standard
20675 \begin_layout Standard
20696 \begin_layout Standard
20714 \begin_layout Standard
20727 \begin_layout Standard
20742 f\SpecialChar \textcompwordmark{}
20749 \begin_layout Standard
20762 MyEndf\SpecialChar \textcompwordmark{}
20765 endf\SpecialChar \textcompwordmark{}
20772 \begin_layout Standard
20783 renewenvironment{f\SpecialChar \textcompwordmark{}
20786 begin{SCf\SpecialChar \textcompwordmark{}
20789 end{SCf\SpecialChar \textcompwordmark{}
20793 \begin_layout Standard
20806 \begin_layout Standard
20819 f\SpecialChar \textcompwordmark{}
20828 \begin_layout Standard
20841 endf\SpecialChar \textcompwordmark{}
20844 MyEndf\SpecialChar \textcompwordmark{}
20848 \begin_layout Standard
20854 \begin_layout Standard
20855 The commands allow you to redefine the floats so that the caption is set
20857 For figure floats use the command
20860 \begin_layout Standard
20868 \begin_layout Standard
20869 in ERT before the float.
20870 Behind the float insert the command
20873 \begin_layout Standard
20881 \begin_layout Standard
20882 in ERT to get back to the original float definition.
20885 \begin_layout Standard
20886 For table floats use the corresponding commands
20889 \begin_layout Standard
20903 \begin_layout Standard
20904 Figure\InsetSpace ~
20906 \begin_inset LatexCommand ref
20907 reference "fig:cap-beside-fig"
20911 and Table\InsetSpace ~
20913 \begin_inset LatexCommand ref
20914 reference "tab:cap-beside-tab"
20918 are examples where the caption is set beside.
20921 \begin_layout Standard
20922 You can see in the examples that the caption text appears at the top of
20923 the floats for table floats and at the bottom for figure floats.
20924 To change this, you can use the command
20927 \begin_layout Standard
20932 sidecaptionvpos{float type}{placement}
20935 \begin_layout Standard
20936 in the document preamble or in ERT before the float.
20937 The float type is either
20945 , the placement can be
20946 \begin_inset Quotes eld
20954 \begin_inset Quotes erd
20958 \begin_inset Quotes eld
20966 \begin_inset Quotes erd
20970 \begin_inset Quotes eld
20978 \begin_inset Quotes erd
20982 To have for example the caption of figure floats vertically centered, use
20986 \begin_layout Standard
20991 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20995 \begin_layout Standard
20996 This was used for Figure\InsetSpace ~
20998 \begin_inset LatexCommand ref
20999 reference "fig:cap-beside-fig-2"
21006 \begin_layout Standard
21007 \begin_inset VSpace medskip
21010 For more information about the package
21014 we refer to its documentation
21015 \begin_inset LatexCommand cite
21023 \begin_layout Standard
21024 \begin_inset Note Greyedout
21027 \begin_layout Standard
21037 \begin_inset LatexCommand index
21038 name "LaTeX-packages ! hypcap"
21042 , described in section\InsetSpace ~
21044 \begin_inset LatexCommand ref
21045 reference "sub:Reference-Position"
21049 , has no effect on floats with the caption set beside.
21057 \begin_layout Standard
21061 \begin_layout Standard
21073 \begin_layout Standard
21074 \begin_inset Float figure
21079 \begin_layout Standard
21080 \begin_inset Graphics
21081 filename clipart/escher-lsd.eps
21083 scaleBeforeRotation
21090 \begin_layout Standard
21091 \begin_inset Caption
21093 \begin_layout Standard
21094 \begin_inset LatexCommand label
21095 name "fig:cap-beside-fig"
21099 This is a caption beside a figure.
21112 \begin_layout Standard
21116 \begin_layout Standard
21128 \begin_layout Standard
21129 \begin_inset Float table
21134 \begin_layout Standard
21135 \begin_inset Caption
21137 \begin_layout Standard
21138 \begin_inset LatexCommand label
21139 name "tab:cap-beside-tab"
21143 This is a caption beside a table.
21151 \begin_layout Standard
21152 \begin_inset Tabular
21153 <lyxtabular version="3" rows="4" columns="5">
21155 <column alignment="center" valignment="top" leftline="true" width="0">
21156 <column alignment="center" valignment="top" leftline="true" width="0">
21157 <column alignment="center" valignment="top" leftline="true" width="0">
21158 <column alignment="center" valignment="top" leftline="true" width="0">
21159 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
21160 <row topline="true">
21161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21164 \begin_layout Standard
21170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21173 \begin_layout Standard
21179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21182 \begin_layout Standard
21188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21191 \begin_layout Standard
21197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21200 \begin_layout Standard
21207 <row topline="true">
21208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21211 \begin_layout Standard
21217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21220 \begin_layout Standard
21226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21229 \begin_layout Standard
21235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21238 \begin_layout Standard
21244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21247 \begin_layout Standard
21254 <row topline="true">
21255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21258 \begin_layout Standard
21264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21267 \begin_layout Standard
21273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21276 \begin_layout Standard
21282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21285 \begin_layout Standard
21291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21294 \begin_layout Standard
21301 <row topline="true" bottomline="true">
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" usebox="none">
21323 \begin_layout Standard
21329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21332 \begin_layout Standard
21338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21341 \begin_layout Standard
21360 \begin_layout Standard
21364 \begin_layout Standard
21376 \begin_layout Standard
21380 \begin_layout Standard
21384 sidecaptionvpos{figure}{c}
21390 \begin_inset Float figure
21395 \begin_layout Standard
21396 \begin_inset Graphics
21397 filename clipart/escher-lsd.eps
21399 scaleBeforeRotation
21406 \begin_layout Standard
21407 \begin_inset Caption
21409 \begin_layout Standard
21410 \begin_inset LatexCommand label
21411 name "fig:cap-beside-fig-2"
21415 This is a vertically centered caption beside a figure.
21428 \begin_layout Standard
21432 \begin_layout Standard
21444 \begin_layout Section
21446 \begin_inset LatexCommand label
21447 name "sec:Listings-of-Floats"
21452 \begin_inset LatexCommand index
21453 name "Floats ! Float Lists"
21460 \begin_layout Standard
21461 Similar to the the table of contents where the sections of the document
21462 are listed, there are listings for all float types, like the figures of
21464 You can insert them via the
21466 Insert\SpecialChar \menuseparator
21474 \begin_layout Standard
21475 The list entries are the float captions or its short title, the float number,
21476 and the page number where they appear in the document.
21479 \begin_layout Standard
21480 You can find the list of figures and tables at the end of this document.
21483 \begin_layout Chapter
21487 \begin_layout Section
21489 \begin_inset LatexCommand label
21490 name "sec:LyX-Notes"
21495 \begin_inset LatexCommand index
21496 name "Notes ! LyX Notes"
21503 \begin_layout Standard
21504 Notes are inserted with the toolbar button
21505 \begin_inset Graphics
21506 filename ../images/note-insert.xpm
21508 scaleBeforeRotation
21514 Insert\SpecialChar \menuseparator
21518 There are five types of notes:
21521 \begin_layout Description
21523 Note This note type is for internal notes that won't appear in the output.
21524 Its note-box looks like this:
21529 \begin_inset Graphics
21530 filename clipart/LyXNoteImageQt4.png
21533 scaleBeforeRotation
21538 \begin_inset Note Note
21541 \begin_layout Standard
21542 This is text in a note box that doesn't appear in the output.
21550 \begin_layout Description
21551 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21552 ent, when you export the document to LaTeX via the menu
21554 File\SpecialChar \menuseparator
21555 Export\SpecialChar \menuseparator
21556 LaTeX (pdflatex) / (plain)
21559 Its note-box looks like this:
21564 \begin_inset Graphics
21565 filename clipart/CommentNoteImageQt4.png
21568 scaleBeforeRotation
21573 \begin_inset Note Comment
21576 \begin_layout Standard
21577 This is text in a note box that only appears as comment in LaTeX-files.
21585 \begin_layout Description
21586 Greyed\InsetSpace ~
21587 Out This note will appear in the output as grey text.
21588 Its note-box looks like this:
21593 \begin_inset Graphics
21594 filename clipart/GreyedOutNoteImageQt4.png
21597 scaleBeforeRotation
21607 \begin_layout Standard
21611 renewenvironment{lyxgreyedout}
21614 \begin_layout Standard
21618 textcolor[gray]{0.8}
21628 \begin_inset Note Greyedout
21631 \begin_layout Standard
21636 \begin_layout Standard
21637 This is an example footnote within a greyed out note.
21642 of a comment that appears in the output as grey text.
21651 \begin_layout Standard
21655 renewenvironment{lyxgreyedout}
21658 \begin_layout Standard
21672 \begin_inset Note Note
21675 \begin_layout Standard
21676 The greyed out note is here redefined to show it with the original LyX definitio
21677 n because greyed out notes are redefined in the preamble of this document,
21678 as described below, to have blue text.
21687 As you can see in the example, the first line of greyed out notes is a bit
21688 indented and greyed out notes can have footnotes.
21691 \begin_layout Description
21692 Framed This note will appear in the output as framed text.
21693 Its note-box looks like this:
21698 \begin_inset Graphics
21699 filename clipart/FramedNoteImageQt4.png
21702 scaleBeforeRotation
21707 \begin_inset Note Framed
21710 \begin_layout Standard
21711 This is text in a note box that appears framed in the output.
21716 In contrary to framed boxes
21720 \begin_layout Standard
21721 Framed boxes are described in section\InsetSpace ~
21723 \begin_inset LatexCommand ref
21724 reference "sec:Framed-Boxes"
21733 the frame uses always the whole text width and the note is set into its
21737 \begin_layout Description
21738 Shaded This note will appear in the output with red background color.
21739 Its note box looks like this:
21744 \begin_inset Graphics
21745 filename clipart/ShadedNoteImageQt4.png
21748 scaleBeforeRotation
21753 \begin_inset Note Shaded
21756 \begin_layout Standard
21757 This text in a note box appears in the output with red background.
21762 In contrary to colored boxes
21766 \begin_layout Standard
21767 Colored boxes are described in section\InsetSpace ~
21769 \begin_inset LatexCommand ref
21770 reference "sec:Colored-Boxes"
21779 the note uses always the whole text width and the note is set into its
21783 \begin_layout Standard
21784 \begin_inset VSpace bigskip
21787 When you use the toolbar button
21788 \begin_inset Graphics
21789 filename ../images/note-insert.xpm
21791 scaleBeforeRotation
21801 You can switch between the five note types by right-clicking on the note-box.
21806 If you want to turn existing text into a note, mark it and click on the
21822 \begin_layout Standard
21823 \begin_inset VSpace bigskip
21826 You can change the text color of the greyed out notes in the preamble with
21827 the following command:
21830 \begin_layout Standard
21835 renewenvironment{lyxgreyedout}
21841 \begin_layout Standard
21859 \begin_layout Standard
21860 The available colors and the method to define own colors is explained in
21861 section\InsetSpace ~
21863 \begin_inset LatexCommand ref
21864 reference "sec:Colored-Tables"
21871 \begin_layout Standard
21872 Notes that appear in blue in this document are set using greyed out notes
21876 \begin_layout Standard
21877 \begin_inset VSpace bigskip
21883 \begin_layout Standard
21892 notes can be set in the
21899 \begin_layout Standard
21900 The default frame width for
21904 notes is 0.4\InsetSpace \thinspace{}
21905 pt; it can be changed by changing the size
21912 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21914 be changed by changing the size
21921 For example the frame appearance of the following
21925 note is set with the ERT commands
21928 \begin_layout Standard
21938 \begin_layout Standard
21942 \begin_layout Standard
21954 \begin_inset Note Framed
21957 \begin_layout Standard
21971 \begin_layout Standard
21985 \begin_layout Standard
21986 \begin_inset VSpace bigskip
21992 \begin_layout Standard
21997 notes the default space between the note content and the note border is
21998 3\InsetSpace \thinspace{}
21999 pt; it can be changed by changing the size
22007 The default background color red can be changed with the command
22011 def\SpecialChar \textcompwordmark{}
22019 def\SpecialChar \textcompwordmark{}
22022 command is explained in section\InsetSpace ~
22024 \begin_inset LatexCommand ref
22025 reference "sec:Colored-Tables"
22033 \begin_layout Standard
22040 \SpecialChar \textcompwordmark{}
22045 requires the LaTeX-package
22049 in the preamble, see section\InsetSpace ~
22051 \begin_inset LatexCommand ref
22052 reference "sec:Colored-Boxes"
22064 \begin_layout Standard
22065 For example the appearance of the following
22069 note is set with the ERT commands
22072 \begin_layout Standard
22085 def\SpecialChar \textcompwordmark{}
22086 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22089 \begin_layout Standard
22093 \begin_layout Standard
22106 \begin_layout Standard
22110 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
22116 \begin_inset Note Shaded
22119 \begin_layout Standard
22122 This is yellow text in a
22132 note with darkgreen background.
22141 \begin_layout Standard
22154 \begin_layout Standard
22158 definecolor{shadecolor}{rgb}{1,0,0}
22166 \begin_layout Section
22168 \begin_inset LatexCommand label
22169 name "sec:Footnotes"
22174 \begin_inset LatexCommand index
22175 name "Notes ! Footnotes"
22180 \begin_inset LatexCommand index
22188 \begin_layout Standard
22189 Footnotes can be inserted using the toolbar button
22190 \begin_inset Graphics
22191 filename ../images/footnote-insert.xpm
22193 scaleBeforeRotation
22199 Insert\SpecialChar \menuseparator
22211 then the following footnote-box:
22212 \begin_inset Graphics
22213 filename clipart/footnoteQt4.png
22215 scaleBeforeRotation
22223 where you can enter the footnote text.
22224 If you want to turn existing text into a footnote, mark it and click on
22240 \begin_layout Standard
22241 Here is an example footnote:
22249 \begin_layout Standard
22250 \begin_inset LatexCommand label
22251 name "foot:This-is-an"
22255 This is an example footnote.
22268 \begin_layout Standard
22272 newcounter{MyRepeatFoot}
22275 \begin_layout Standard
22279 setcounter{MyRepeatFoot}{
22289 \begin_layout Standard
22290 The footnote will appear in the output as a superscript number at the text
22291 position where the footnote box is placed.
22292 The footnote text is placed at the bottom of the current page.
22293 The footnote number is calculated by LaTeX, the numbers are consecutive.
22294 It depends on your document-class, if the footnote number is reset for
22298 \begin_layout Standard
22299 Footnotes can be referenced like floats: Insert a label into the footnote
22300 and cross-reference this label in the text as described in section\InsetSpace ~
22302 \begin_inset LatexCommand ref
22303 reference "sec:Referencing-Floats"
22309 This is a cross-reference of Footnote\InsetSpace ~
22311 \begin_inset LatexCommand ref
22312 reference "foot:This-is-an"
22319 \begin_layout Standard
22320 \begin_inset VSpace defskip
22323 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
22325 \begin_inset LatexCommand ref
22326 reference "sec:Minipages"
22331 Footnotes within longtables are described in section\InsetSpace ~
22333 \begin_inset LatexCommand ref
22334 reference "sub:Footnotes-in-Longtables"
22341 \begin_layout Standard
22342 \begin_inset VSpace defskip
22345 To create only a mark for a footnote, use the command
22349 footnotemark[number]
22352 This is used when you have the same annotation several times in a text
22353 but doesn't want to print the footnote text every time.
22356 the number of the repeating footnote while you are writing the text, you
22357 have to store its number.
22358 For the following footnote mark example, these commands were inserted in
22359 ERT behind Footnote\InsetSpace ~
22361 \begin_inset LatexCommand ref
22362 reference "foot:This-is-an"
22366 to store the footnote number:
22369 \begin_layout Standard
22374 newcounter{MyRepeatFoot}
22378 setcounter{MyRepeatFoot}{
22383 \begin_layout Standard
22384 The footnote mark was then created with this command:
22387 \begin_layout Standard
22397 \begin_layout Standard
22398 Here is an example footnote mark:
22406 \begin_layout Standard
22420 \begin_layout Subsection
22422 \begin_inset LatexCommand label
22423 name "sub:Footnote-Numbering"
22428 \begin_inset LatexCommand index
22429 name "Footnotes ! Numbering"
22436 \begin_layout Standard
22437 To reset the footnote number back to 1 after each section
22439 , add this command to your document preamble:
22442 \begin_layout Standard
22447 @addtoreset{footnote}{section}
22450 \begin_layout Standard
22451 \begin_inset VSpace bigskip
22454 The following preamble command changes the footnote numbering style to small
22458 \begin_layout Standard
22470 \begin_layout Standard
22474 \begin_layout Standard
22487 This is a footnote with roman numbering:
22491 \begin_layout Standard
22492 This is an example footnote with roman numbering.
22500 \begin_layout Standard
22501 To change the numbering style to capital roman numerals replace in the command
22516 \begin_inset Quotes eld
22520 \begin_inset Quotes erd
22523 footnotes with capital or small Latin letters use
22537 \begin_inset Quotes eld
22541 \begin_inset Quotes erd
22544 footnotes with symbols use
22553 \begin_layout Standard
22554 \begin_inset Note Greyedout
22557 \begin_layout Standard
22562 You can only number 26 footnotes with Latin letters, because this numbering
22563 is limited to single letters.
22571 \begin_inset Note Greyedout
22574 \begin_layout Standard
22579 You can only number 9 footnotes with symbols.
22587 \begin_layout Standard
22588 To return to the default numbering style when you changed to another one,
22601 in the command above.
22605 \begin_layout Standard
22621 \begin_layout Standard
22622 \begin_inset VSpace bigskip
22628 \begin_layout Standard
22629 If you want to have footnotes numbered in the scheme
22630 \begin_inset Quotes eld
22634 \begin_inset Quotes erd
22637 , add the following command to your document preamble:
22640 \begin_layout Standard
22645 numberwithin{footnote}{chapter}
22648 \begin_layout Standard
22649 To be able to use the command
22660 in the document settings the option
22670 \begin_layout Standard
22674 \begin_layout Standard
22678 numberwithin{footnote}{chapter}
22683 This is another example footnote:
22689 \begin_layout Standard
22690 This is a footnote numbered in the scheme
22691 \begin_inset Quotes eld
22695 \begin_inset Quotes erd
22709 \begin_layout Standard
22725 \begin_layout Standard
22726 \begin_inset Note Greyedout
22729 \begin_layout Standard
22740 always prints out the footnote number as arabic number; previous redefinitions
22741 to get non-arabic numbers are overwritten.
22749 \begin_layout Standard
22750 So to get for example the scheme
22751 \begin_inset Quotes eld
22757 \begin_inset Quotes erd
22760 , use this command instead of
22769 \begin_layout Standard
22783 \begin_layout Subsection
22785 \begin_inset LatexCommand index
22786 name "Footnotes ! Placement"
22793 \begin_layout Standard
22794 If you have several footnotes in one page, they appear without vertical
22795 space between them at the bottom of the page.
22796 To make them better readable you can e.\InsetSpace \thinspace{}
22798 add 1.5\InsetSpace \thinspace{}
22799 mm space with the following
22803 \begin_layout Standard
22825 \begin_layout Standard
22826 \begin_inset VSpace bigskip
22829 In a two-column document the footnotes appear at the bottom of every column,
22830 see Figure\InsetSpace ~
22832 \begin_inset LatexCommand ref
22833 reference "fig:Standard-footnote-placement"
22838 If the footnotes should only appear at the bottom of the right column,
22839 as in Figure\InsetSpace ~
22841 \begin_inset LatexCommand ref
22842 reference "fig:Footnote-placement-in"
22846 , use the LaTeX-package
22851 \begin_inset LatexCommand index
22852 name "LaTeX-packages ! ftnright"
22856 with this command in the document preamble:
22859 \begin_layout Standard
22864 usepackage{ftnright}
22867 \begin_layout Standard
22868 \begin_inset Float figure
22874 \begin_layout Standard
22878 \begin_layout Standard
22888 \begin_inset Graphics
22889 filename clipart/without_fntright.pdf
22891 scaleBeforeRotation
22899 \begin_layout Standard
22909 \begin_layout Standard
22910 \begin_inset Caption
22912 \begin_layout Standard
22913 \begin_inset LatexCommand label
22914 name "fig:Standard-footnote-placement"
22918 Standard footnote placement in two-column documents.
22931 \begin_layout Standard
22932 \begin_inset Float figure
22938 \begin_layout Standard
22942 \begin_layout Standard
22952 \begin_inset Graphics
22953 filename clipart/with_fntright.pdf
22955 scaleBeforeRotation
22963 \begin_layout Standard
22973 \begin_layout Standard
22974 \begin_inset Caption
22976 \begin_layout Standard
22977 \begin_inset LatexCommand label
22978 name "fig:Footnote-placement-in"
22982 Footnote placement in two-column documents when the LaTeX-package
22999 \begin_layout Standard
23000 \begin_inset VSpace bigskip
23003 In some scientific literature it is usual to collect the footnotes and print
23004 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
23006 \begin_inset LatexCommand ref
23007 reference "fig:Endnotes----footnotes"
23012 They are then so called
23013 \begin_inset Quotes eld
23017 \begin_inset Quotes erd
23021 To use endnotes instead of footnotes in your document, load the LaTeX-package
23027 \begin_inset LatexCommand index
23028 name "LaTeX-packages ! endnotes"
23032 with the document preamble lines
23035 \begin_layout Standard
23040 usepackage{endnotes}
23051 \begin_layout Standard
23052 To insert the collected footnotes, insert the command
23055 \begin_layout Standard
23063 \begin_layout Standard
23064 in ERT at the the end of a section or chapter.
23067 \begin_layout Standard
23068 \begin_inset Float figure
23073 \begin_layout Standard
23078 \begin_layout Standard
23088 \begin_inset Graphics
23089 filename clipart/endnotes.pdf
23090 scaleBeforeRotation
23098 \begin_layout Standard
23108 \begin_layout Standard
23109 \begin_inset Caption
23111 \begin_layout Standard
23112 \begin_inset LatexCommand label
23113 name "fig:Endnotes----footnotes"
23117 Endnotes -- footnotes are printed in a separate paragraph at the end of
23118 sections or chapters.
23131 \begin_layout Standard
23132 \begin_inset VSpace medskip
23135 The paragraph heading for the endnotes isn't automatically translated into
23136 the document language, this must be done manually.
23137 The following preamble command translate the default English name
23138 \begin_inset Quotes eld
23142 \begin_inset Quotes erd
23145 to the German translation
23146 \begin_inset Quotes eld
23150 \begin_inset Quotes erd
23156 \begin_layout Standard
23163 notesname}{Anmerkungen}
23166 \begin_layout Standard
23167 \begin_inset VSpace medskip
23170 The numbering of endnotes can be changed like the footnote numbering as
23171 described in section\InsetSpace ~
23173 \begin_inset LatexCommand ref
23174 reference "sub:Footnote-Numbering"
23178 ; just replace the command
23191 To reset the endnote number use the command
23197 as described in section\InsetSpace ~
23199 \begin_inset LatexCommand ref
23200 reference "sub:Footnote-Numbering"
23204 and replace the command parameter
23215 \begin_layout Standard
23216 To create only a mark for an endnote, use the command
23220 endnotemark[number]
23222 similar to the command
23228 , described in section\InsetSpace ~
23230 \begin_inset LatexCommand ref
23231 reference "sec:Footnotes"
23238 \begin_layout Standard
23239 \begin_inset VSpace bigskip
23242 Footnotes can also be placed in the page margin and the footnote text alignment
23243 can be changed, see the LaTeX-package
23248 \begin_inset LatexCommand index
23249 name "LaTeX-packages ! footmisc"
23254 \begin_inset LatexCommand cite
23259 for more information about this.
23262 \begin_layout Standard
23263 For various further footnote formatting issues have a look at LaTeX-books,
23265 \begin_inset LatexCommand cite
23266 key "latexcompanion,latexguide,latexbook"
23273 \begin_layout Section
23275 \begin_inset LatexCommand index
23276 name "Notes ! Margin Notes"
23283 \begin_layout Standard
23284 Margin notes look and behave in LyX like footnotes.
23285 They are inserted via the menu
23287 Insert\SpecialChar \menuseparator
23288 Marginal\InsetSpace ~
23291 or the toolbar button
23292 \begin_inset Graphics
23293 filename ../images/marginalnote-insert.xpm
23295 scaleBeforeRotation
23310 \begin_inset Quotes eld
23314 \begin_inset Quotes erd
23317 appears where you can enter the text of the margin note.
23320 \begin_layout Standard
23321 At the side is an example margin note.
23325 \begin_inset Marginal
23328 \begin_layout Standard
23329 This is a margin note.
23337 \begin_layout Standard
23338 Margin notes appear at the right side in single-sided documents.
23339 In double-sided documents they appear in the outer margin -- left on even
23340 pages, right on odd pages.
23341 The text of margin notes is aligned opposite to the outer margin -- right-align
23342 ed when the note appears in the left margin.
23343 The first line of the margin note is placed at the position of the text
23344 line where it is inserted in the document.
23347 \begin_layout Standard
23348 \begin_inset VSpace bigskip
23351 To place the margin note in the inner margin, add the command
23354 \begin_layout Standard
23362 \begin_layout Standard
23363 in ERT before a margin note.
23364 The new placement is valid for all following margin notes.
23368 \begin_layout Standard
23378 \begin_inset Marginal
23381 \begin_layout Standard
23382 This is a margin note in the inner margin.
23394 \begin_inset Note Greyedout
23397 \begin_layout Standard
23402 There is often not enough space in the inner margin so that the notes are
23403 not correctly displayed in the output.
23411 \begin_layout Standard
23412 To return to the default placement insert the command
23415 \begin_layout Standard
23423 \begin_layout Standard
23428 \begin_layout Standard
23438 \begin_inset Note Greyedout
23441 \begin_layout Standard
23446 The command is ignored when it is within a paragraph where also the command
23461 \begin_layout Standard
23462 \begin_inset VSpace bigskip
23469 \begin_inset Marginal
23472 \begin_layout Standard
23473 AVeryLongMarginParWord that isn't hyphenated.
23481 Similar to the case described in section\InsetSpace ~
23483 \begin_inset LatexCommand ref
23484 reference "sub:Multiple-Lines-in"
23488 , long words cannot be hyphenated when they are the first word in a margin
23490 To avoid this, insert the command
23493 \begin_layout Standard
23501 \begin_layout Standard
23502 in ERT before the word
23506 \begin_inset Marginal
23509 \begin_layout Standard
23513 \begin_layout Standard
23522 AVeryLongMarginParWord that is hyphenated.
23530 \begin_layout Standard
23531 \begin_inset VSpace bigskip
23537 \begin_layout Standard
23538 \begin_inset Note Greyedout
23541 \begin_layout Standard
23546 Margin notes can normally not be used inside tables, floats, and footnotes.
23554 \begin_layout Standard
23555 \begin_inset VSpace bigskip
23561 \begin_layout Standard
23565 \begin_layout Standard
23575 \begin_inset Note Note
23578 \begin_layout Standard
23579 The following section will only be displayed when you have the LaTeX-package
23592 \begin_layout Standard
23593 This restriction can be evaded by using the LaTeX-package
23598 \begin_inset LatexCommand index
23599 name "LaTeX-packages ! marginnote"
23604 By adding these two lines to your document preamble, the command used by
23605 LyX for margin notes is redefined to use the command provided by the
23612 \begin_layout Standard
23617 usepackage{marginnote}
23628 \begin_layout Standard
23629 This is also used in this document because
23633 has another useful feature: You can set a vertical offset for the note.
23634 This is often needed when too many margin notes are too close together
23635 or for a better page layout.
23636 The offset is set in LyX as ERT directly behind the margin note in the
23640 \begin_layout Standard
23646 \begin_layout Standard
23647 where the offset is a length with one of the units listed in Table\InsetSpace ~
23649 \begin_inset LatexCommand ref
23650 reference "tab:Units"
23655 A negative value shifts the note up, a positive value shifts it down.
23659 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23662 \begin_inset Quotes eld
23672 \begin_inset Quotes erd
23676 \begin_inset Marginal
23679 \begin_layout Standard
23680 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23681 cm from its original position.
23693 \begin_layout Standard
23703 \begin_layout Standard
23704 \begin_inset VSpace medskip
23711 you can also change the alignment of the text in the margin note.
23712 For example the commands
23715 \begin_layout Standard
23722 raggedleftmarginnote}{
23730 raggedrightmarginnote}{
23735 \begin_layout Standard
23736 set the alignment to centered.
23741 raggedleftmarginnote
23743 denotes margin notes that appear at the left side.
23750 \begin_layout Standard
23756 raggedleftmarginnote}{
23761 \begin_layout Standard
23767 raggedrightmarginnote}{
23775 \begin_inset Marginal
23778 \begin_layout Standard
23779 The text of this margin note is centered.
23790 \begin_layout Standard
23797 raggedleftmarginnote}{
23805 raggedrightmarginnote}{
23814 \begin_layout Standard
23820 raggedleftmarginnote}{
23825 \begin_layout Standard
23831 raggedrightmarginnote}{
23841 \begin_layout Standard
23842 \begin_inset VSpace medskip
23845 For the other features of
23849 we refer to its documentation
23850 \begin_inset LatexCommand cite
23858 \begin_layout Standard
23859 \begin_inset VSpace bigskip
23862 You can adjust the layout of margin notes by changing its definition.
23863 To create for example a header for all margin notes with the underlined,
23864 sans-serif, and bold header text
23865 \begin_inset Quotes eld
23877 \begin_inset Quotes erd
23880 , add this to your document preamble:
23883 \begin_layout Standard
23906 \begin_layout Standard
23923 underbar{Attention!}}}%
23929 \begin_layout Standard
23947 \begin_layout Standard
23954 \begin_layout Standard
23965 \begin_layout Standard
23976 \begin_layout Standard
23984 underbar{Attention!}}}%
23987 \begin_layout Standard
24001 \begin_inset Marginal
24004 \begin_layout Standard
24005 This is a margin note with a defined heading.
24017 \begin_layout Standard
24031 \begin_layout Standard
24048 \begin_inset Note Note
24051 \begin_layout Standard
24052 The margin note format is changed only for this example.
24060 \begin_layout Standard
24064 \begin_layout Standard
24074 \begin_inset Note Note
24077 \begin_layout Standard
24078 The following will be displayed when the LaTeX-package
24090 \begin_layout Standard
24091 You need to install the LaTeX-package
24095 to see the following part of this section in the output.
24098 \begin_layout Standard
24102 \begin_layout Standard
24114 \begin_layout Chapter
24118 \begin_layout Section
24120 \begin_inset LatexCommand index
24121 name "Boxes ! Introduction"
24128 \begin_layout Standard
24129 Boxes are used to format a block of text.
24130 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
24132 \begin_inset LatexCommand ref
24133 reference "sec:Minipages"
24137 , to frame texts, see section\InsetSpace ~
24139 \begin_inset LatexCommand ref
24140 reference "sec:Framed-Boxes"
24144 , to prevent words to be hyphenated, see section\InsetSpace ~
24146 \begin_inset LatexCommand ref
24147 reference "sec:Prevent-Hyphenation"
24151 , to align text, see section\InsetSpace ~
24153 \begin_inset LatexCommand ref
24154 reference "sub:Vertical-Alignment"
24158 , or to set the background color of texts, see section\InsetSpace ~
24160 \begin_inset LatexCommand ref
24161 reference "sec:Colored-Boxes"
24168 \begin_layout Standard
24169 Boxes can be inserted with the menu
24171 Insert\SpecialChar \menuseparator
24175 A grey box with the label
24180 \begin_inset Graphics
24181 filename clipart/BoxInsetDefaultQt4.png
24183 scaleBeforeRotation
24187 , will be inserted.
24188 The box type can be specified by right-clicking on the box.
24189 The appearing box dialog offers the
24207 is the default for new boxes and is explained in section\InsetSpace ~
24209 \begin_inset LatexCommand ref
24210 reference "sec:Minipages"
24218 is described in section\InsetSpace ~
24220 \begin_inset LatexCommand ref
24221 reference "sec:Parboxes"
24228 \begin_layout Standard
24229 Boxes aren't numbered and can therefore not be referenced like floats or
24233 \begin_layout Standard
24234 \begin_inset Note Greyedout
24237 \begin_layout Standard
24242 Due to a bug in LyX you have to insert a protected space behind a box when
24243 you want to separate in a line the box from the following text with a space.
24251 \begin_layout Standard
24252 \begin_inset Note Greyedout
24255 \begin_layout Standard
24260 Boxes must not be the item in an
24276 \begin_layout Standard
24277 \begin_inset Note Greyedout
24280 \begin_layout Standard
24285 For an unknown reason you can only set the
24294 when you use a framed box.
24300 type and without frames are explained in section\InsetSpace ~
24302 \begin_inset LatexCommand ref
24303 reference "sec:Prevent-Hyphenation"
24315 \begin_layout Section
24317 \begin_inset LatexCommand label
24318 name "sec:Box-Dialog"
24323 \begin_inset LatexCommand index
24324 name "Boxes ! Box Dialog"
24329 \begin_inset LatexCommand index
24330 name "Boxes ! Alignment"
24337 \begin_layout Standard
24338 In the box dialog you can adjust the box geometry in the fields
24347 The available units for the geometry are explained in Table\InsetSpace ~
24349 \begin_inset LatexCommand ref
24350 reference "tab:Units"
24359 offers the following additional sizes:
24362 \begin_layout Description
24363 Depth This is the plain text
24364 \begin_inset Quotes eld
24368 \begin_inset Quotes erd
24372 It ignores the total depth when there are multiple text lines in the box:
24379 \begin_inset Box Boxed
24388 height_special "depth"
24391 \begin_layout Standard
24393 Box height set to 1\InsetSpace \thinspace{}
24406 \begin_layout Description
24407 Height This is the heigth of the text that is inside the box.
24408 A value of e.\InsetSpace \thinspace{}
24410 2 for this size will set the box heigth to 2 times the text
24412 \begin_inset Box Boxed
24421 height_special "height"
24424 \begin_layout Standard
24426 Box height set to 2\InsetSpace \thinspace{}
24435 \begin_layout Description
24437 Height This is the Height\InsetSpace \thinspace{}
24438 +\InsetSpace \thinspace{}
24440 \begin_inset Box Boxed
24449 height_special "totalheight"
24452 \begin_layout Standard
24454 Box height set to 1\InsetSpace \thinspace{}
24464 \begin_layout Description
24465 Width This set the width of the box as heigth:
24466 \begin_inset Box Boxed
24475 height_special "width"
24478 \begin_layout Standard
24480 Box height set to 1\InsetSpace \thinspace{}
24489 \begin_layout Standard
24490 \begin_inset VSpace bigskip
24493 When you have chosen an
24498 , the vertical box alignment can be:
24501 \begin_layout Description
24502 Top This is an example text line.
24504 \begin_inset Box Boxed
24513 height_special "totalheight"
24516 \begin_layout Standard
24518 This box is top-aligned.
24524 This is an example text line.
24527 \begin_layout Description
24528 Middle This is an example text line.
24530 \begin_inset Box Boxed
24539 height_special "totalheight"
24542 \begin_layout Standard
24544 This box is middle-aligned.
24550 This is an example text line.
24553 \begin_layout Description
24554 Bottom This is an example text line.
24556 \begin_inset Box Boxed
24565 height_special "totalheight"
24568 \begin_layout Standard
24570 This box is bottom-aligned.
24576 This is an example text line.
24579 \begin_layout Standard
24580 The horizontal box alignment can be set via LyX's paragraph dialog when
24581 you set the box into its own paragraph.
24584 \begin_layout Standard
24585 \begin_inset VSpace bigskip
24588 When you have chosen an
24593 , the box content can be vertical aligned to:
24596 \begin_layout Description
24597 top This is an example text line.
24599 \begin_inset Box Boxed
24608 height_special "totalheight"
24611 \begin_layout Standard
24613 This box text is top-aligned.
24619 This is an example text line.
24622 \begin_layout Description
24623 middle This is an example text line.
24625 \begin_inset Box Boxed
24634 height_special "totalheight"
24637 \begin_layout Standard
24639 This box text is middle-aligned.
24645 This is an example text line.
24648 \begin_layout Description
24649 bottom This is an example text line.
24651 \begin_inset Box Boxed
24660 height_special "totalheight"
24663 \begin_layout Standard
24665 This box text is bottom-aligned.
24671 This is an example text line.
24674 \begin_layout Description
24675 stretch This is an example text line.
24677 \begin_inset Box Boxed
24686 height_special "totalheight"
24689 \begin_layout Standard
24694 \begin_layout Standard
24699 \begin_layout Standard
24707 This is an example text line.
24710 \begin_layout Standard
24711 To stretch the box content, it must consist of more than one paragraph.
24712 In the example above every text line is in an own paragraph.
24715 \begin_layout Standard
24716 \begin_inset VSpace bigskip
24719 To align the box content horizontally you can use LyX's paragraph dialog
24720 when you have chosen an
24728 \begin_layout Standard
24730 \begin_inset Box Boxed
24739 height_special "totalheight"
24742 \begin_layout Standard
24747 \begin_layout Standard
24752 \begin_layout Standard
24762 \begin_layout Standard
24763 If you haven't set an
24768 , you can align the box content horizontally in the box dialog.
24771 \begin_layout Standard
24773 \begin_inset Box Boxed
24782 height_special "totalheight"
24785 \begin_layout Standard
24787 This box text is horizontally stretched.
24795 \begin_layout Section
24797 \begin_inset LatexCommand label
24798 name "sec:Framed-Boxes"
24803 \begin_inset LatexCommand index
24804 name "Boxes ! Frames"
24811 \begin_layout Standard
24812 The frame style of the box can be specified in the box-dialog in the drop-down
24818 The following frame types are possible:
24821 \begin_layout Description
24822 Rectangular\InsetSpace ~
24823 box This draws a rectangle frame around the box.
24824 The frame line thickness has the size of
24832 \begin_inset Box Boxed
24841 height_special "totalheight"
24844 \begin_layout Standard
24854 \begin_layout Description
24857 thin This draws an oval frame around the box.
24858 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24861 \begin_inset Box ovalbox
24870 height_special "totalheight"
24873 \begin_layout Standard
24883 \begin_layout Description
24886 thick This draws an oval frame around the box.
24887 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24890 \begin_inset Box Ovalbox
24899 height_special "totalheight"
24902 \begin_layout Standard
24912 \begin_layout Description
24913 Shadow\InsetSpace ~
24914 box This draws a rectangle frame with a shadow around the box.
24915 The frame line thickness has the size of
24921 , the shadow has a width of 4\InsetSpace \thinspace{}
24924 \begin_inset Box Shadowbox
24933 height_special "totalheight"
24936 \begin_layout Standard
24946 \begin_layout Description
24947 Double\InsetSpace ~
24948 box This draws a double-line rectangle frame around the box.
24949 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24956 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24964 The distance between the lines is 1.5\InsetSpace \thinspace{}
24971 \InsetSpace \thinspace{}
24972 +\InsetSpace \thinspace{}
24973 0.5\InsetSpace \thinspace{}
24976 \begin_inset Box Doublebox
24985 height_special "totalheight"
24988 \begin_layout Standard
24998 \begin_layout Standard
24999 \begin_inset VSpace bigskip
25002 LyX's box label will change to the used frame style when you set a frame.
25003 To be able to use the different frame styles, the LaTeX-package
25008 \begin_inset LatexCommand index
25009 name "LaTeX-packages ! fancybox"
25016 \begin_layout Standard
25017 \begin_inset VSpace bigskip
25020 The default value for the size
25026 is 0.4\InsetSpace \thinspace{}
25028 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
25030 2\InsetSpace \thinspace{}
25034 \begin_layout Standard
25044 \begin_layout Standard
25048 \begin_layout Standard
25060 \begin_inset Box Boxed
25069 height_special "totalheight"
25072 \begin_layout Standard
25074 Rectangular box with
25080 \InsetSpace \thinspace{}
25081 =\InsetSpace \thinspace{}
25082 2\InsetSpace \thinspace{}
25092 \begin_layout Standard
25106 \begin_layout Standard
25107 \begin_inset VSpace bigskip
25110 The space between the frame and the box content is for all frame styles
25111 by default 3\InsetSpace \thinspace{}
25113 You can change it by setting the length
25120 For example the command
25123 \begin_layout Standard
25133 \begin_layout Standard
25134 sets the value to 10\InsetSpace \thinspace{}
25135 pt, like for the following box:
25138 \begin_layout Standard
25142 \begin_layout Standard
25154 \begin_inset Box Boxed
25163 height_special "totalheight"
25166 \begin_layout Standard
25168 Rectangular box with
25174 \InsetSpace \thinspace{}
25175 =\InsetSpace \thinspace{}
25176 10\InsetSpace \thinspace{}
25186 \begin_layout Standard
25200 \begin_layout Standard
25201 \begin_inset VSpace bigskip
25204 The diameter of the round corners of the oval boxes can be set with the
25215 \begin_layout Standard
25223 \begin_layout Standard
25224 sets the diameter to 1\InsetSpace \thinspace{}
25229 \begin_layout Standard
25237 \begin_layout Standard
25238 sets the diameter to
25240 num\InsetSpace \thinspace{}
25241 ×\InsetSpace \thinspace{}
25242 minimum(width and heigth of box)
25254 \begin_layout Standard
25258 \begin_layout Standard
25268 \begin_inset Box Ovalbox
25277 height_special "totalheight"
25280 \begin_layout Standard
25288 \InsetSpace \thinspace{}
25289 =\InsetSpace \thinspace{}
25290 1.5\InsetSpace \thinspace{}
25300 \begin_layout Standard
25312 \begin_layout Standard
25313 \begin_inset VSpace bigskip
25316 The size of the shadow can be adjusted by changing the length
25323 It it set to 2\InsetSpace \thinspace{}
25324 pt for the following box by this command:
25327 \begin_layout Standard
25337 \begin_layout Standard
25341 \begin_layout Standard
25353 \begin_inset Box Shadowbox
25362 height_special "totalheight"
25365 \begin_layout Standard
25373 \InsetSpace \thinspace{}
25374 =\InsetSpace \thinspace{}
25375 2\InsetSpace \thinspace{}
25385 \begin_layout Standard
25399 \begin_layout Standard
25400 \begin_inset VSpace bigskip
25403 Changed lengths and widths are valid for all boxes following the commands
25407 \begin_layout Section
25409 \begin_inset LatexCommand label
25410 name "sec:Minipages"
25415 \begin_inset LatexCommand index
25416 name "Boxes ! Minipages"
25423 \begin_layout Standard
25424 Minipages are treated by LaTeX as pages within pages and can therefore for
25425 example have their own footnotes.
25428 \begin_layout Standard
25429 Minipages are useful when you write documents with different languages.
25432 \begin_layout Standard
25433 Below are two example minipages side by side.
25434 Their width is set to 45\InsetSpace \thinspace{}
25435 col% and they are separated by a horizontal fill,
25436 that was inserted via the menu
25438 Insert\SpecialChar \menuseparator
25439 Special\InsetSpace ~
25440 Formatting\SpecialChar \menuseparator
25441 Horizontal\InsetSpace ~
25447 \begin_layout Standard
25448 \begin_inset Box Frameless
25457 height_special "totalheight"
25460 \begin_layout Standard
25463 Dies ist ein deutscher Text.
25464 Dies ist ein deutscher Text.
25465 Dies ist ein deutscher Text.
25466 Dies ist ein deutscher Text.
25467 Dies ist ein deutscher Text.
25468 Dies ist ein deutscher Text.
25469 Dies ist ein deutscher Text.
25470 Dies ist ein deutscher Text.
25471 Dies ist ein deutscher Text.
25472 Dies ist ein deutscher Text.
25473 Dies ist ein deutscher Text.
25474 Dies ist ein deutscher Text.
25475 Dies ist ein deutscher Text
25479 \begin_layout Standard
25482 Dies ist eine deutsche Fußnote.
25488 Dies ist ein deutscher Text.
25489 Dies ist ein deutscher Text.
25497 \begin_inset Box Frameless
25506 height_special "totalheight"
25509 \begin_layout Standard
25510 This is an English Text.
25511 This is an English Text.
25512 This is an English Text.
25513 This is an English Text.
25514 This is an English Text.
25515 This is an English Text.
25516 This is an English Text.
25517 This is an English Text.
25518 This is an English Text.
25519 This is an English Text.
25520 This is an English Text.
25521 This is an English Text.
25522 This is an English Text.
25523 This is an English Text.
25524 This is an English Text.
25525 This is an English Text.
25529 \begin_layout Standard
25530 This is an English footnote.
25535 This is an English Text.
25544 \begin_layout Standard
25545 \begin_inset VSpace bigskip
25548 Another application for minipages are footnotes within tables.
25549 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25550 bottom of the current page.
25551 But when you put the table with the footnote to a minipage, the footnote
25552 will appear at its bottom, numbered with Latin letters.
25553 The footnote number is reset to 1 in every minipage but not outside the
25557 \begin_layout Standard
25558 The footnote of this table doesn't appear:
25559 \begin_inset Tabular
25560 <lyxtabular version="3" rows="3" columns="4">
25562 <column alignment="center" valignment="top" leftline="true" width="0pt">
25563 <column alignment="center" valignment="top" leftline="true" width="0pt">
25564 <column alignment="center" valignment="top" leftline="true" width="0pt">
25565 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25566 <row topline="true">
25567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25570 \begin_layout Standard
25576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25579 \begin_layout Standard
25585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25588 \begin_layout Standard
25593 \begin_layout Standard
25594 This is a footnote within a table.
25604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25607 \begin_layout Standard
25614 <row topline="true">
25615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25618 \begin_layout Standard
25624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25627 \begin_layout Standard
25633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25636 \begin_layout Standard
25642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25645 \begin_layout Standard
25652 <row topline="true" bottomline="true">
25653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25656 \begin_layout Standard
25662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25665 \begin_layout Standard
25671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25674 \begin_layout Standard
25680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25683 \begin_layout Standard
25697 \begin_layout Standard
25699 \begin_inset Box Frameless
25708 height_special "totalheight"
25711 \begin_layout Standard
25713 \begin_inset Tabular
25714 <lyxtabular version="3" rows="3" columns="4">
25716 <column alignment="center" valignment="top" leftline="true" width="0pt">
25717 <column alignment="center" valignment="top" leftline="true" width="0pt">
25718 <column alignment="center" valignment="top" leftline="true" width="0pt">
25719 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25720 <row topline="true">
25721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25724 \begin_layout Standard
25730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25733 \begin_layout Standard
25739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25742 \begin_layout Standard
25747 \begin_layout Standard
25748 This is a footnote within a table.
25758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25761 \begin_layout Standard
25768 <row topline="true">
25769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25772 \begin_layout Standard
25778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25781 \begin_layout Standard
25787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25790 \begin_layout Standard
25796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25799 \begin_layout Standard
25806 <row topline="true" bottomline="true">
25807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25810 \begin_layout Standard
25816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25819 \begin_layout Standard
25825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25828 \begin_layout Standard
25834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25837 \begin_layout Standard
25856 \begin_layout Standard
25857 \begin_inset VSpace bigskip
25860 The document-wide paragraph settings are ignored within minipages.
25861 That means that there will be no space between paragraphs in minipages
25862 although you set it to e.\InsetSpace \thinspace{}
25868 in the document settings.
25871 \begin_layout Standard
25872 Minipages can also be used to set a background color for text parts, see
25873 section\InsetSpace ~
25875 \begin_inset LatexCommand ref
25876 reference "sub:Color-for-Paragraphs"
25883 \begin_layout Standard
25884 \begin_inset Note Greyedout
25887 \begin_layout Standard
25892 You cannot have floats or margin notes inside minipages but minipages can
25893 be used inside tables, floats, and other boxes.
25901 \begin_layout Section
25903 \begin_inset LatexCommand label
25904 name "sec:Parboxes"
25909 \begin_inset LatexCommand index
25910 name "Boxes ! Parboxes"
25917 \begin_layout Standard
25918 Parboxes are very similar to minipages with the difference that they cannot
25920 The main difference to minipages is that minipages are in contrary to parboxes
25921 no real boxes but LaTeX-environments.
25924 \begin_layout Standard
25926 \begin_inset Box Frameless
25935 height_special "totalheight"
25938 \begin_layout Standard
25939 This a text within a parbox.
25940 This a text within a parbox.
25943 \begin_layout Standard
25944 This footnote won't appear:
25948 \begin_layout Standard
25949 This footnote is inside a parbox and will therefore not appear.
25962 \begin_layout Section
25963 Boxes for Words and Characters
25964 \begin_inset LatexCommand index
25965 name "Boxes ! for Characters"
25972 \begin_layout Subsection
25973 Prevent Hyphenation
25974 \begin_inset LatexCommand label
25975 name "sec:Prevent-Hyphenation"
25980 \begin_inset LatexCommand index
25981 name "Boxes ! to Prevent Hyphenation"
25988 \begin_layout Standard
25989 You can use a special kind of boxes to prevent words or text to be hyphenated.
25992 e is an example text:
25995 \begin_layout Standard
25996 This line is an example to show how you can prevent the hyphenation of
25997 \begin_inset Quotes eld
26001 \begin_inset Quotes erd
26007 \begin_layout Standard
26008 To prevent the hyphenation of the word
26009 \begin_inset Quotes eld
26013 \begin_inset Quotes erd
26019 \begin_layout Standard
26027 \begin_layout Standard
26028 in ERT before the word.
26029 Behind the word insert a closing brace
26030 \begin_inset Quotes eld
26038 \begin_inset Quotes erd
26045 \begin_layout Standard
26057 \begin_layout Standard
26058 This is the result:
26061 \begin_layout Standard
26062 This line is an example to show how you can prevent the hyphenation of
26066 \begin_layout Standard
26076 \begin_inset Quotes eld
26080 \begin_inset Quotes erd
26087 \begin_layout Standard
26097 \begin_layout Standard
26098 You can alternatively set the command
26099 \begin_inset Quotes eld
26109 \begin_inset Quotes grd
26112 as ERT directly before the word:
26115 \begin_layout Standard
26116 This line is an example to show how you can prevent the hyphenation of
26117 \begin_inset Quotes eld
26124 \begin_layout Standard
26134 \begin_inset Quotes erd
26140 \begin_layout Standard
26141 Of course the word now protrudes over the side margin.
26142 To avoid this, add via the menu
26144 Insert\SpecialChar \menuseparator
26145 Special\InsetSpace ~
26146 Formatting\SpecialChar \menuseparator
26154 ) a line break before the word:
26157 \begin_layout Standard
26158 This line is an example to show how you can prevent the hyphenation of
26164 \begin_layout Standard
26174 \begin_inset Quotes eld
26178 \begin_inset Quotes erd
26185 \begin_layout Standard
26195 \begin_layout Subsection
26197 \begin_inset LatexCommand label
26198 name "sub:Vertical-Alignment"
26203 \begin_inset LatexCommand index
26204 name "Boxes ! for Vertical Alignment"
26209 \begin_inset LatexCommand index
26210 name "Boxes ! Raiseboxes"
26217 \begin_layout Standard
26218 With the help of the command
26224 you can align words, characters or other boxes vertically to the surrounding
26232 is used with the following scheme:
26235 \begin_layout Standard
26240 raisebox{lift}[height][depth]{box content}
26243 \begin_layout Standard
26244 The lift can be a positive value to raise the box or a negative value to
26248 \begin_layout Standard
26249 To align for example the word
26250 \begin_inset Quotes eld
26254 \begin_inset Quotes erd
26257 so that the bottom of the
26258 \begin_inset Quotes eld
26262 \begin_inset Quotes erd
26266 \begin_inset Quotes eld
26270 \begin_inset Quotes erd
26273 is at the baseline, insert the command
26276 \begin_layout Standard
26286 \begin_layout Standard
26287 in ERT before the word.
26288 Behind the word insert a closing brace
26289 \begin_inset Quotes eld
26297 \begin_inset Quotes erd
26302 This is the result:
26305 \begin_layout Standard
26306 This is a text line with the word
26310 \begin_layout Standard
26322 \begin_inset Quotes eld
26326 \begin_inset Quotes erd
26333 \begin_layout Standard
26343 \begin_layout Standard
26344 \begin_inset VSpace bigskip
26347 When you raise or lower characters in a line, the line distance will be
26351 \begin_layout Standard
26352 This is a text line with the word
26356 \begin_layout Standard
26368 \begin_inset Quotes eld
26372 \begin_inset Quotes erd
26379 \begin_layout Standard
26388 This is a text line with the word
26392 \begin_layout Standard
26402 \begin_inset Quotes eld
26406 \begin_inset Quotes erd
26413 \begin_layout Standard
26423 \begin_layout Standard
26424 If you want to prevent this for a certain reason, set the box height to
26429 \begin_layout Standard
26439 \begin_layout Standard
26440 This is a text line with the word
26444 \begin_layout Standard
26456 \begin_inset Quotes eld
26460 \begin_inset Quotes erd
26467 \begin_layout Standard
26476 This is a text line with the word
26480 \begin_layout Standard
26484 raisebox{0.5cm}[0pt]{
26490 \begin_inset Quotes eld
26494 \begin_inset Quotes erd
26501 \begin_layout Standard
26511 \begin_layout Section
26513 \begin_inset LatexCommand label
26514 name "sec:Colored-Boxes"
26519 \begin_inset LatexCommand index
26520 name "Boxes ! Color"
26527 \begin_layout Subsection
26529 \begin_inset LatexCommand index
26530 name "Color ! for Text"
26537 \begin_layout Standard
26538 To color the background of text the text must be put into a so called
26539 \begin_inset Quotes eld
26543 \begin_inset Quotes erd
26547 This requires that the LaTeX-package
26552 \begin_inset LatexCommand index
26553 name "LaTeX-packages ! color"
26557 is loaded in the document preamble with the command
26560 \begin_layout Standard
26565 @ifundef\SpecialChar \textcompwordmark{}
26572 \begin_layout Standard
26583 usepackage{color}}{}
26586 \begin_layout Standard
26591 will be loaded automatically by LyX when you color text
26595 \begin_layout Standard
26596 To avoid that it is loaded twice the command
26600 @ifundef\SpecialChar \textcompwordmark{}
26611 \begin_layout Standard
26612 \begin_inset VSpace medskip
26615 Colorboxes are created with the command
26622 This will be used with the following scheme:
26625 \begin_layout Standard
26630 colorbox{color}{box content}
26633 \begin_layout Standard
26634 The box content can also be a box and colorboxes can also be within other
26638 \begin_layout Standard
26639 The following colors are predefined:
26678 You can also define your own color as described in section\InsetSpace ~
26680 \begin_inset LatexCommand ref
26681 reference "sec:Colored-Tables"
26688 \begin_layout Standard
26689 To have e.\InsetSpace \thinspace{}
26691 a red background for a word, insert the command
26694 \begin_layout Standard
26702 \begin_layout Standard
26703 before the word in ERT.
26704 Behind the word insert a closing brace
26705 \begin_inset Quotes eld
26713 \begin_inset Quotes erd
26718 This is the result:
26721 \begin_layout Standard
26722 This is a line where the word
26726 \begin_layout Standard
26736 \begin_inset Quotes eld
26740 \begin_inset Quotes erd
26747 \begin_layout Standard
26754 has a red background.
26757 \begin_layout Standard
26758 \begin_inset VSpace bigskip
26761 If you would have the box frame in a different color, you can use the command
26768 with the following scheme:
26771 \begin_layout Standard
26776 fcolorbox{frame color}{box color}{box content}
26779 \begin_layout Standard
26793 The frame thickness and the space between the frame and the box content
26794 can be adjusted with the lengths
26806 , respectively, as described in section\InsetSpace ~
26808 \begin_inset LatexCommand ref
26809 reference "sec:Framed-Boxes"
26816 \begin_layout Standard
26817 For the following example the command
26820 \begin_layout Standard
26825 fcolorbox{cyan}{magenta}{
26828 \begin_layout Standard
26832 \begin_layout Standard
26833 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26840 \begin_layout Standard
26855 \begin_layout Standard
26859 fcolorbox{cyan}{magenta}{
26864 This is text within a colored, framed box.
26868 \begin_layout Standard
26878 \begin_layout Standard
26879 \begin_inset VSpace bigskip
26882 Of course you can also have colored text inside a colorbox:
26888 \begin_layout Standard
26892 fcolorbox{cyan}{magenta}{
26899 This is colored text within a colored, framed box.
26905 \begin_layout Standard
26916 \begin_layout Standard
26930 \begin_layout Standard
26933 \begin_inset VSpace medskip
26939 \begin_layout Standard
26940 \begin_inset Note Greyedout
26943 \begin_layout Standard
26948 Text in colorboxes cannot have line breaks.
26949 To color multiple text lines or paragraphs, use a box inside a colorbox
26950 as described in the following.
26958 \begin_layout Subsection
26959 Color for Paragraphs
26960 \begin_inset LatexCommand label
26961 name "sub:Color-for-Paragraphs"
26966 \begin_inset LatexCommand index
26967 name "Color ! for Paragraphs"
26974 \begin_layout Standard
26975 To set the background color for more than one text line, put the text into
26977 Before the minipage insert the
26986 \begin_layout Standard
26994 \begin_layout Standard
26996 Behind the minipage insert a closing brace
26997 \begin_inset Quotes eld
27005 \begin_inset Quotes erd
27011 \begin_layout Standard
27015 \begin_layout Standard
27019 colorbox{lightgrey}{
27025 \begin_inset Box Frameless
27034 height_special "totalheight"
27037 \begin_layout Standard
27038 This is text with background color.
27039 This is text with background color.
27042 \begin_layout Standard
27043 \begin_inset VSpace defskip
27046 The text can have footnotes
27050 \begin_layout Standard
27051 Another example footnote
27056 and can include tables and figures.
27059 \begin_layout Standard
27061 \begin_inset Tabular
27062 <lyxtabular version="3" rows="3" columns="3">
27064 <column alignment="center" valignment="top" leftline="true" width="0">
27065 <column alignment="center" valignment="top" leftline="true" width="0">
27066 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27067 <row topline="true">
27068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27071 \begin_layout Standard
27077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27080 \begin_layout Standard
27086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27089 \begin_layout Standard
27096 <row topline="true">
27097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27100 \begin_layout Standard
27106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27109 \begin_layout Standard
27111 \begin_inset Quotes erd
27119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27122 \begin_layout Standard
27129 <row topline="true" bottomline="true">
27130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27133 \begin_layout Standard
27139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27142 \begin_layout Standard
27148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27151 \begin_layout Standard
27171 \begin_layout Standard
27181 \begin_layout Section
27182 URLs (Uniform Resource Locators)
27183 \begin_inset LatexCommand index
27191 \begin_layout Standard
27192 Links to web pages or email addresses can be inserted via the menu
27194 Insert\SpecialChar \menuseparator
27198 The appearing URL dialog has two fields; the
27206 field for the URL description, which will be typeset as plain text immediately
27210 \begin_layout Standard
27211 Here is an example URL:
27212 \begin_inset LatexCommand url
27213 name "LyX's homepage"
27214 target "http://www.lyx.org"
27221 \begin_layout Standard
27224 Generate\InsetSpace ~
27227 in the URL dialog does nothing.
27228 This relict will be removed in the next LyX-version.
27231 \begin_layout Standard
27232 You cannot change the style of the link text.
27237 field will have the default text style of the document while the text of
27242 field will have the style
27243 \begin_inset Quotes eld
27251 \begin_inset Quotes erd
27257 \begin_layout Standard
27258 When you use the LaTeX-package
27263 \begin_inset LatexCommand index
27264 name "LaTeX-packages ! hyperref"
27268 to link cross-references in the output, URLs will automatically become
27269 clickable hyperlinks in DVI and PDF-output.
27272 \begin_layout Standard
27273 \begin_inset Note Greyedout
27276 \begin_layout Standard
27281 When you use the following characters: "%", "#", "^", you have to write
27282 them with a preceding backslash, e.\InsetSpace \thinspace{}
27285 \begin_inset Quotes eld
27291 \begin_inset Quotes erd
27295 URLs must not end with a backslash.
27303 \begin_layout Standard
27304 \begin_inset VSpace bigskip
27307 To create real hyperlinks without the force to write the link location to
27308 the text, you can use the command
27311 \begin_layout Standard
27316 href{link location}{link text}
27319 \begin_layout Standard
27321 To get for example a link to LyX's web page, write the command
27324 \begin_layout Standard
27329 href{http://www.lyx.org}{
27332 \begin_layout Standard
27334 Insert after the command the link text
27335 \begin_inset Quotes eld
27339 \begin_inset Quotes erd
27342 as normal text followed by a closing brace
27343 \begin_inset Quotes eld
27351 \begin_inset Quotes erd
27355 This is the result:
27359 \begin_layout Standard
27363 href{http://www.lyx.org}{
27372 \begin_layout Standard
27382 \begin_layout Standard
27383 To link to email addresses, add the prefix
27384 \begin_inset Quotes eld
27392 \begin_inset Quotes erd
27395 to the link location:
27401 \begin_layout Standard
27405 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27410 lyx-docs mailing list
27414 \begin_layout Standard
27424 \begin_layout Standard
27431 instead of LyX's URL box has the advantage that you can specify the text
27432 style of the link text like for all other text parts.
27433 You can then set hyphenation points and forced linebreaks to have long
27434 link text broken at the page margin.
27435 You are furthermore able to change the text style for all URLs in your
27436 document with an option in
27440 's load command and the restrictions mentioned above doesn't apply for
27449 \begin_layout Chapter
27451 \begin_inset LatexCommand index
27452 name "External Stuff"
27459 \begin_layout Standard
27462 Insert\SpecialChar \menuseparator
27465 you can insert external material to your document.
27469 \begin_layout Description
27471 Document Another LyX document; its content is directly inserted to your
27475 \begin_layout Description
27477 Text A text document; every of its text lines is inserted to your document
27481 \begin_layout Description
27485 Lines A text document; its text lines are inserted as they
27487 Empty text lines creates a new paragraph in your document.
27490 \begin_layout Description
27491 External\InsetSpace ~
27492 Material Files in various formats.
27495 \begin_layout Description
27497 Document LyX or LaTeX-documents.
27500 \begin_layout Section
27502 \begin_inset LatexCommand index
27503 name "External Stuff ! External Material"
27510 \begin_layout Standard
27511 The external material feature allows you to insert files to your document
27512 without converting them previously to a format that can be read by the
27513 document output format because LyX takes care of needed conversions.
27514 This is similar to images that can be inserted in various image formats
27518 \begin_layout Standard
27519 External material can be inserted via the
27523 dialog that is accessible with the menu
27525 Insert\SpecialChar \menuseparator
27526 File\SpecialChar \menuseparator
27527 External\InsetSpace ~
27531 Currently the following file types (
27538 \begin_layout Description
27539 ChessDiagram This template supports chess position diagrams made with the
27544 \begin_layout Standard
27548 href{http://en.wikipedia.org/wiki/XBoard}{
27561 \begin_layout Standard
27571 \begin_layout Description
27572 Date This inserts the date in the form
27577 This is a date inserted as external material:
27578 \begin_inset External
27586 The date is not shown within LyX, only in the output.
27587 There are two other methods of inserting a date: Via menu
27589 Insert\SpecialChar \menuseparator
27592 and with the LaTeX command
27599 The different methods are compared in Table\InsetSpace ~
27601 \begin_inset LatexCommand ref
27602 reference "tab:Comparison-of-the"
27609 \begin_layout Description
27610 LilyPond This template is used for music notation typeset with the program
27614 \begin_layout Standard
27627 \begin_layout Standard
27631 href{http://en.wikipedia.org/wiki/LilyPond}{
27644 \begin_layout Standard
27652 \begin_inset Note Note
27655 \begin_layout Standard
27662 breaks the line while the remaining text in the line is stretched to the
27671 \begin_layout Description
27672 RasterImage This can be used for bitmap images.
27673 Nearly all popular image formats are supported.
27674 The image can be treated in the
27678 dialog like the images that are usually included via the
27682 dialog as described in section\InsetSpace ~
27684 \begin_inset LatexCommand ref
27685 reference "sec:Graphics-Dialog"
27690 The difference is that only raster images are allowed, that means that
27691 PDF and EPS-images are not supported.
27694 \begin_layout Description
27695 XFig This template supports images created with the program
27699 \begin_layout Standard
27703 href{http://en.wikipedia.org/wiki/Xfig}{
27716 \begin_layout Standard
27726 \begin_layout Standard
27727 \begin_inset Float table
27733 \begin_layout Standard
27734 \begin_inset Caption
27736 \begin_layout Standard
27737 \begin_inset LatexCommand label
27738 name "tab:Comparison-of-the"
27742 Comparison of the date input methods.
27750 \begin_layout Standard
27752 \begin_inset Tabular
27753 <lyxtabular version="3" rows="4" columns="4">
27755 <column alignment="center" valignment="top" leftline="true" width="0">
27756 <column alignment="center" valignment="top" leftline="true" width="0">
27757 <column alignment="center" valignment="top" leftline="true" width="0">
27758 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27759 <row topline="true">
27760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27763 \begin_layout Standard
27769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27772 \begin_layout Standard
27775 External Material\SpecialChar \menuseparator
27781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27784 \begin_layout Standard
27787 Insert\SpecialChar \menuseparator
27793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27796 \begin_layout Standard
27807 <row topline="true">
27808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27811 \begin_layout Standard
27817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27820 \begin_layout Standard
27826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27829 \begin_layout Standard
27835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27838 \begin_layout Standard
27845 <row topline="true">
27846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27849 \begin_layout Standard
27855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27858 \begin_layout Standard
27864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27867 \begin_layout Standard
27873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27876 \begin_layout Standard
27883 <row topline="true" bottomline="true">
27884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27887 \begin_layout Standard
27893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27896 \begin_layout Standard
27902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27905 \begin_layout Standard
27911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27914 \begin_layout Standard
27933 \begin_layout Standard
27934 When you use the option
27946 dialog, only the path to the inserted file is shown in the output.
27949 material is displayed in LyX either as box like this:
27950 \begin_inset Graphics
27951 filename clipart/ExternalMaterialQt4.png
27953 scaleBeforeRotation
27957 or as image, depending on the setting in the
27969 \begin_layout Standard
27976 manual explains how you can define your own templates.
27979 \begin_layout Section
27981 \begin_inset LatexCommand label
27982 name "sec:Child-Documents"
27987 \begin_inset LatexCommand index
27988 name "External Stuff ! Child Documents"
27993 \begin_inset LatexCommand index
27994 name "Files ! Include"
28001 \begin_layout Standard
28002 Child documents are used when you have a long document consisting of several
28003 larger parts or sections.
28004 For maintenance it is often useful and sometimes even required to split
28005 the document in several files that can be revised separately.
28006 The different documents are then the so called child documents and a master
28007 document connects them to print the full document or parts of it.
28010 \begin_layout Standard
28011 Included documents are displayed in LyX as a box like this:
28012 \begin_inset Graphics
28013 filename clipart/ChildDocumentQt4.png
28015 scaleBeforeRotation
28019 To include child documents to a master document use the menu
28021 Insert\SpecialChar \menuseparator
28022 File\SpecialChar \menuseparator
28027 A dialog pops up where you can choose between four include methods:
28030 \begin_layout Description
28031 Include You can include LyX and LaTeX-documents.
28040 dialog, the included documents will be opened in LyX in a new file tab
28041 so that you can modify it.
28046 \begin_layout Standard
28047 Here is a child document inserted using
28052 \begin_inset Include \include{DummyDocument1.lyx}
28060 \begin_layout Standard
28061 The section numbering includes the sections of the included files in the
28062 order they are inserted in the master document.
28063 The included example document has for example a subsection that is numbered
28064 as subsection of this section.
28065 Labels of included documents can be referenced: Subsection\InsetSpace ~
28067 \begin_inset LatexCommand ref
28068 reference "sub:External-Subsection-1"
28075 \begin_layout Standard
28076 The preamble of the child document is ignored, only the preamble of the
28077 master document is used.
28078 Included documents are inserted starting on a new page and end with a pagebreak.
28081 \begin_layout Standard
28082 With the LaTeX-command
28088 you can specify which included child documents are processed when the output
28090 This is useful when you are perhaps only working on a certain chapter of
28091 your large document as this saves compiling time.
28098 is inserted to the master document preamble.
28099 It takes a comma-separated list of the filenames as argument, e.g.
28102 \begin_layout Standard
28107 includeonly{chapter1,chapter5}
28110 \begin_layout Standard
28111 will only process the included files named
28112 \begin_inset Quotes eld
28116 \begin_inset Quotes erd
28120 \begin_inset Quotes eld
28124 \begin_inset Quotes erd
28128 \begin_inset Quotes eld
28132 \begin_inset Quotes erd
28138 \begin_layout Standard
28139 \begin_inset Note Greyedout
28142 \begin_layout Standard
28147 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
28148 w the document in case that the child document uses another document class
28149 than the master document as this will lead to unexpected outputs.
28157 \begin_layout Description
28158 Input This method is very similar to the Include method.
28159 The differences are:
28163 \begin_layout Itemize
28164 Input files don't start with a new page and don't end with a pagebreak.
28167 \begin_layout Itemize
28168 Input files can be previewed in LyX when
28170 Instant\InsetSpace ~
28173 is enabled in LyX's preferences under
28177 feel\SpecialChar \menuseparator
28183 \begin_layout Itemize
28194 \begin_layout Standard
28195 Here is a child document inserted using
28200 \begin_inset Include \input{DummyDocument2.lyx}
28208 \begin_layout Description
28209 Verbatim With this method every text file can be included.
28210 The file is shown in the output with its source code, no command used in
28211 the text is invoked.
28212 You can use the option
28214 Mark spaces in output
28216 that displays the character
28217 \begin_inset Quotes eld
28224 \begin_layout Standard
28234 \begin_inset Quotes erd
28237 for every space character in the source code.
28238 The difference to the method via the menu
28240 Insert\SpecialChar \menuseparator
28241 File\SpecialChar \menuseparator
28245 is that the document content is not shown in LyX.
28248 \begin_layout Standard
28249 Here is a child document inserted as Verbatim:
28250 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
28256 \begin_inset VSpace bigskip
28259 Here is a child document inserted as Verbatim using the
28261 Mark spaces in output
28264 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
28272 \begin_layout Standard
28273 \begin_inset VSpace bigskip
28279 \begin_layout Standard
28280 \begin_inset Note Greyedout
28283 \begin_layout Standard
28288 As you can see in the examples above, the text of the documents included
28293 is not broken at the end of the document lines.
28301 \begin_layout Description
28302 Listings This type is described in chapter\InsetSpace ~
28304 \begin_inset LatexCommand ref
28305 reference "cha:Program-Code-Listings"
28312 \begin_layout Standard
28313 \begin_inset Note Greyedout
28316 \begin_layout Standard
28321 Including the same document twice in a document using different methods
28322 could cause LaTeX-problems.
28330 \begin_layout Chapter
28331 Program Code Listings
28332 \begin_inset LatexCommand label
28333 name "cha:Program-Code-Listings"
28338 \begin_inset LatexCommand index
28344 \begin_inset LatexCommand index
28345 name "Program Code"
28350 \begin_inset LatexCommand index
28351 name "Floats ! Listings"
28358 \begin_layout Standard
28359 To include and typeset program code you can use the
28363 inset that can be inserted via the menu
28365 Insert\SpecialChar \menuseparator
28374 \begin_inset LatexCommand index
28375 name "LaTeX-packages ! listings"
28379 provides a powerful and flexible way to insert program source code to your
28383 \begin_layout Standard
28384 When right-clicking on a listings inset a dialog pops up where you can set
28385 the listings format.
28388 \begin_layout Standard
28389 By default, a listing starts a new paragraph in the output.
28390 The placement option
28392 Inline\InsetSpace ~
28395 prints the listing inline like this:
28396 \begin_inset listings
28397 lstparams "language={C++}"
28401 \begin_layout Standard
28414 creates a listings float where you can specify the placement options
28415 \begin_inset Quotes eld
28423 \begin_inset Quotes erd
28427 \begin_inset Quotes eld
28435 \begin_inset Quotes erd
28439 \begin_inset Quotes eld
28447 \begin_inset Quotes erd
28451 \begin_inset Quotes eld
28459 \begin_inset Quotes erd
28462 corresponding to the float placement options described in section\InsetSpace ~
28464 \begin_inset LatexCommand ref
28465 reference "sec:Float-Placement"
28470 The placement options can be mixed and are inserted without any separation,
28471 e.\InsetSpace \thinspace{}
28474 \begin_inset Quotes eld
28482 \begin_inset Quotes erd
28487 \begin_inset Quotes eld
28491 \begin_inset Quotes erd
28494 has sometimes no effect, but you don't need to use the
28498 option in this case as also non-float listings can have captions and be
28502 \begin_layout Standard
28503 You can add captions to listings with the menu
28505 Insert\SpecialChar \menuseparator
28509 Listings can be referenced like floats: Listing\InsetSpace ~
28511 \begin_inset LatexCommand ref
28512 reference "lst:Example-Listing"
28519 \begin_layout Standard
28520 \begin_inset listings
28521 lstparams "language=Python"
28525 \begin_layout Standard
28527 \begin_inset Caption
28529 \begin_layout Standard
28530 \begin_inset LatexCommand label
28531 name "lst:Example-Listing"
28535 Example Listing float
28540 # Example listing float
28543 \begin_layout Standard
28548 \begin_layout Standard
28550 'this is a python function'
28553 \begin_layout Standard
28563 \begin_layout Standard
28564 When you have set a programming language in the listings dialog, the keywords
28565 of this language will be recognized and specially typeset in the output.
28566 In the example listings the Python keyword
28567 \begin_inset Quotes eld
28571 \begin_inset Quotes erd
28574 is recognized and printed bold in the output.
28577 \begin_layout Standard
28578 \begin_inset Note Greyedout
28581 \begin_layout Standard
28586 If you don't get bold keywords when using typewriter fonts, your typewriter
28587 font probably doesn't provide a bold shape.
28588 In this case select a different one in the menu
28590 Document\SpecialChar \menuseparator
28591 Settings\SpecialChar \menuseparator
28603 provide bold shapes.)
28611 \begin_layout Standard
28617 of the listings dialog you can specify the line numbering style.
28618 You can insert a number to specify which lines are numbered to the field
28624 When you insert e.g.
28626 \begin_inset Quotes eld
28630 \begin_inset Quotes erd
28633 , only every 3rd line will be numbered.
28636 \begin_layout Standard
28637 You can furthermore specify a range of lines, only these will then appear
28641 Extended\InsetSpace ~
28644 should be used when you use national characters like the German umlauts
28647 Here is an example listing with left line numbering, step
28649 \begin_inset Quotes eld
28653 \begin_inset Quotes erd
28657 \begin_inset Quotes eld
28661 \begin_inset Quotes erd
28665 \begin_inset Quotes eld
28668 Extended\InsetSpace ~
28670 \begin_inset Quotes erd
28674 \begin_inset Quotes eld
28680 \begin_inset Quotes erd
28683 , range lines 3\InsetSpace \thinspace{}
28684 -\InsetSpace \thinspace{}
28688 \begin_layout Standard
28689 \begin_inset listings
28690 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28694 \begin_layout Standard
28699 \begin_layout Standard
28701 'this is a python function'
28704 \begin_layout Standard
28709 \begin_layout Standard
28714 \begin_layout Standard
28716 'This is a German word: Tschüß'
28719 \begin_layout Standard
28724 \begin_layout Standard
28729 \begin_layout Standard
28731 'this is a python function'
28734 \begin_layout Standard
28744 \begin_layout Standard
28745 \begin_inset Note Greyedout
28748 \begin_layout Standard
28753 Due to a bug in the
28757 package the line numbering is shifted by a line by every previous listing.
28758 That's the reason why the lines 2 and 5 are numbered in the above listing
28759 and not the lines 3 and 6.
28767 \begin_layout Standard
28768 \begin_inset VSpace bigskip
28774 \begin_layout Standard
28775 It is also possible to print lines from a file as listing.
28776 To do this, use the menu
28778 Insert\SpecialChar \menuseparator
28779 File\SpecialChar \menuseparator
28782 and choose the type
28790 \begin_layout Standard
28791 The other child document types are described in section\InsetSpace ~
28793 \begin_inset LatexCommand ref
28794 reference "sec:Child-Documents"
28803 In the child document dialog you can specify the listing parameters in
28805 To show a list of all available parameters, type in a question mark
28806 \begin_inset Quotes eld
28810 \begin_inset Quotes erd
28816 \begin_layout Standard
28817 To reference child document listings, write a label text into the corresponding
28818 field of the child document dialog.
28819 The label can then be referenced using the menu
28821 Insert\SpecialChar \menuseparator
28827 \begin_layout Standard
28828 Listing\InsetSpace ~
28830 \begin_inset LatexCommand ref
28831 reference "lst:file-listing"
28835 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28836 -\InsetSpace \thinspace{}
28841 \begin_layout Standard
28842 \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]
28850 \begin_layout Standard
28851 \begin_inset VSpace bigskip
28857 \begin_layout Standard
28858 Global listings settings can be set in the
28860 Document\SpecialChar \menuseparator
28861 Settings\SpecialChar \menuseparator
28865 To get there a list of available options, type in a question mark
28866 \begin_inset Quotes eld
28870 \begin_inset Quotes erd
28875 Listings\InsetSpace ~
28881 \begin_layout Standard
28882 For more information about the
28886 package, we refer to its documentation
28887 \begin_inset LatexCommand cite
28895 \begin_layout Standard
28901 \begin_layout Chapter
28903 Units available in LyX
28904 \begin_inset LatexCommand index
28910 \begin_inset LatexCommand label
28911 name "cha:Units-available-in"
28918 \begin_layout Standard
28919 To understand the units described in this documentation, Table\InsetSpace ~
28921 \begin_inset LatexCommand ref
28922 reference "tab:Units"
28926 explains all units available in LyX.
28929 \begin_layout Standard
28930 \begin_inset Float table
28936 \begin_layout Standard
28937 \begin_inset Caption
28939 \begin_layout Standard
28940 \begin_inset LatexCommand label
28953 \begin_layout Standard
28954 \begin_inset VSpace medskip
28960 \begin_layout Standard
28962 \begin_inset Tabular
28963 <lyxtabular version="3" rows="20" columns="2">
28965 <column alignment="center" valignment="top" leftline="true" width="0">
28966 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28967 <row topline="true" bottomline="true">
28968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28971 \begin_layout Standard
28977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28980 \begin_layout Standard
28987 <row topline="true">
28988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28991 \begin_layout Standard
28997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29000 \begin_layout Standard
29007 <row topline="true">
29008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29011 \begin_layout Standard
29017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29020 \begin_layout Standard
29027 <row topline="true">
29028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29031 \begin_layout Standard
29037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29040 \begin_layout Standard
29047 <row topline="true">
29048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29051 \begin_layout Standard
29057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29060 \begin_layout Standard
29061 point (72.27\InsetSpace \thinspace{}
29062 pt = 1\InsetSpace \thinspace{}
29069 <row topline="true">
29070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29073 \begin_layout Standard
29079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29082 \begin_layout Standard
29083 pica (1\InsetSpace \thinspace{}
29084 pc = 12\InsetSpace \thinspace{}
29091 <row topline="true">
29092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29095 \begin_layout Standard
29101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29104 \begin_layout Standard
29105 scaled point (65536\InsetSpace \thinspace{}
29106 sp = 1\InsetSpace \thinspace{}
29113 <row topline="true">
29114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29117 \begin_layout Standard
29123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29126 \begin_layout Standard
29127 big point (72\InsetSpace \thinspace{}
29128 bp = 1\InsetSpace \thinspace{}
29135 <row topline="true">
29136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29139 \begin_layout Standard
29145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29148 \begin_layout Standard
29149 didot (1\InsetSpace \thinspace{}
29151 \begin_inset Formula $\approx$
29154 0.376\InsetSpace \thinspace{}
29161 <row topline="true">
29162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29165 \begin_layout Standard
29171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29174 \begin_layout Standard
29175 cicero (1\InsetSpace \thinspace{}
29176 cc = 12\InsetSpace \thinspace{}
29183 <row topline="true">
29184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29187 \begin_layout Standard
29193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29196 \begin_layout Standard
29197 % of original image width
29203 <row topline="true">
29204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29207 \begin_layout Standard
29213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29216 \begin_layout Standard
29223 <row topline="true">
29224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29227 \begin_layout Standard
29233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29236 \begin_layout Standard
29243 <row topline="true">
29244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29247 \begin_layout Standard
29253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29256 \begin_layout Standard
29263 <row topline="true">
29264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29267 \begin_layout Standard
29273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29276 \begin_layout Standard
29283 <row topline="true">
29284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29287 \begin_layout Standard
29293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29296 \begin_layout Standard
29303 <row topline="true">
29304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29307 \begin_layout Standard
29313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29316 \begin_layout Standard
29323 <row topline="true">
29324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29327 \begin_layout Standard
29333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29336 \begin_layout Standard
29347 <row topline="true">
29348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29351 \begin_layout Standard
29357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29360 \begin_layout Standard
29371 <row topline="true" bottomline="true">
29372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29375 \begin_layout Standard
29381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29384 \begin_layout Standard
29385 math unit (1\InsetSpace \thinspace{}
29386 mu = 1/18\InsetSpace \thinspace{}
29405 \begin_layout Chapter
29406 Output File Formats with Graphics
29407 \begin_inset LatexCommand label
29408 name "cha:Output-File-Formats"
29415 \begin_layout Section
29417 \begin_inset LatexCommand index
29418 name "File Formats ! DVI"
29423 \begin_inset LatexCommand index
29424 name "DVI|see{File Formats}"
29431 \begin_layout Standard
29432 This file type has the extension
29433 \begin_inset Quotes eld
29441 \begin_inset Quotes erd
29446 \begin_inset Quotes eld
29450 \begin_inset Quotes erd
29453 (DVI), because it is completely portable; you can move them from one machine
29454 to another without needing to do any sort of conversion.
29455 At the time when this file-format was developed, this was no matter of
29457 DVIs are used for quick previews and as pre-stage for other output formats,
29461 \begin_layout Standard
29462 \begin_inset Note Greyedout
29465 \begin_layout Standard
29470 DVI-files doesn't contain images, they will only be a linked.
29475 So don't forget this, if you move your
29479 file to another computer.
29480 This property can also slow down your computer when you view the DVI.
29481 Because the DVI-viewer has to convert the image in the background to make
29482 it visible when you scroll in the DVI.
29483 So we recommend to use PDF for files with many images.
29486 \begin_layout Standard
29487 You can export your document to DVI by using the menu
29489 File\SpecialChar \menuseparator
29490 Export\SpecialChar \menuseparator
29494 You can view your document as DVI via the
29498 menu or by using the toolbar button
29499 \begin_inset Graphics
29500 filename ../images/buffer-view_dvi.xpm
29502 scaleBeforeRotation
29509 \begin_layout Section
29511 \begin_inset LatexCommand label
29512 name "sec:PostScript"
29517 \begin_inset LatexCommand index
29518 name "File Formats ! PostScript"
29523 \begin_inset LatexCommand index
29524 name "PostScript|see{File Formats}"
29531 \begin_layout Standard
29532 This file type has the extension
29533 \begin_inset Quotes eld
29541 \begin_inset Quotes erd
29545 PostScript was developed by the company
29549 as printer language.
29550 The file contains therefore commands that the printer uses to print the
29552 PostScript can be seen as
29553 \begin_inset Quotes eld
29556 programming language
29557 \begin_inset Quotes erd
29560 ; you can calculate with it and draw diagrams and images
29564 \begin_layout Standard
29565 If you are interested to learn more about this, have a look at the LaTeX-package
29571 \begin_inset LatexCommand cite
29582 Due to this ability, the files are often bigger than PDFs.
29585 \begin_layout Standard
29586 PostScript can only contain images in the format
29587 \begin_inset Quotes eld
29590 Encapsulated PostScript
29591 \begin_inset Quotes erd
29594 (EPS, file extension
29595 \begin_inset Quotes eld
29603 \begin_inset Quotes erd
29607 As LyX allows you to use any known image format in your document, it has
29608 to convert images in the background to EPS.
29609 If you have e.g 50 images in your document, LyX has to do 50 conversions
29610 whenever you view or export your document.
29611 This will slow down your work flow with LyX drastically.
29612 So if you plan to use PostScript, you can insert your images directly as
29613 EPS to avoid this problem.
29616 \begin_layout Standard
29617 You can export your document to PostScript using the menu
29619 File\SpecialChar \menuseparator
29620 Export\SpecialChar \menuseparator
29624 You can view your document as PostScript via the
29628 menu or by using the toolbar button
29629 \begin_inset Graphics
29630 filename ../images/buffer-view_ps.xpm
29632 scaleBeforeRotation
29639 \begin_layout Section
29641 \begin_inset LatexCommand label
29647 \begin_inset LatexCommand index
29648 name "File Formats ! PDF"
29653 \begin_inset LatexCommand index
29661 \begin_layout Standard
29662 This file type has the extension
29663 \begin_inset Quotes eld
29671 \begin_inset Quotes erd
29676 \begin_inset Quotes eld
29679 Portable Document Format
29680 \begin_inset Quotes erd
29683 (PDF) is developed by
29687 as derivative from PostScript.
29688 It is more compressed and it uses much less commands than PostScript.
29690 \begin_inset Quotes eld
29694 \begin_inset Quotes erd
29697 implies, it can be processed at any computer system and the printed output
29698 looks exactly the same.
29701 \begin_layout Standard
29702 PDF can contain images in its own PDF format, in the format
29703 \begin_inset Quotes eld
29706 Joint Photographic Experts Group
29707 \begin_inset Quotes erd
29710 (JPG, file extension
29711 \begin_inset Quotes eld
29719 \begin_inset Quotes erd
29723 \begin_inset Quotes eld
29731 \begin_inset Quotes erd
29734 ), and in the format
29735 \begin_inset Quotes eld
29738 Portable Network Graphics
29739 \begin_inset Quotes erd
29742 (PNG, file extension
29743 \begin_inset Quotes eld
29751 \begin_inset Quotes erd
29755 Nevertheless you can use any other image format, because LyX converts them
29756 in the background to one of these formats.
29757 But as described in the section about PostScript, the image conversion
29758 will slow down your work flow.
29759 So it is recommended to use images in one of the three mentioned formats.
29762 \begin_layout Standard
29763 You can export your document to PDF via the menu
29765 File\SpecialChar \menuseparator
29768 in three different ways:
29771 \begin_layout Description
29773 (ps2pdf) This uses the program
29777 that creates a PDF from a PostScript-version of your file.
29778 The PostScript-version is produced by the program
29782 which uses a DVI-version as intermediate step.
29783 So this export variant consist of three conversions.
29786 \begin_layout Description
29788 (dvipdfm) This uses the program
29792 that converts your file in the background to DVI and in a second step to
29796 \begin_layout Description
29798 (pdflatex) This uses the program
29802 that converts your file directly to PDF.
29805 \begin_layout Standard
29806 It is recommended to use
29815 supports all features of actual PDF-versions, is quick and works stable
29821 is not under development and therefore a bit outdated.
29824 \begin_layout Standard
29825 You can view your document as PDF via the
29829 menu or by using the toolbar button
29830 \begin_inset Graphics
29831 filename ../images/buffer-view_pdf2.xpm
29833 scaleBeforeRotation
29849 \begin_layout Chapter
29850 Explanation of Equation\InsetSpace ~
29852 \begin_inset LatexCommand eqref
29858 \begin_inset LatexCommand label
29859 name "cha:Explanation-of-Equation"
29866 \begin_layout Standard
29872 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29875 can be calculated to
29878 \begin_layout Standard
29879 \begin_inset Formula \begin{equation}
29880 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}
29887 \begin_layout Standard
29889 \begin_inset Formula $W_{g\, n}$
29892 is the given width of all cells.
29899 is the LaTeX-length between the cell text and the cell border, its default
29900 value is 6\InsetSpace \thinspace{}
29908 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29912 \begin_layout Standard
29913 Following equation\InsetSpace ~
29915 \begin_inset LatexCommand eqref
29916 reference "eq:Wtot_n"
29920 , the total width of a multicolumn
29921 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29927 \begin_layout Standard
29928 \begin_inset Formula \begin{equation}
29929 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29936 \begin_layout Standard
29937 By setting equation\InsetSpace ~
29939 \begin_inset LatexCommand eqref
29940 reference "eq:Wtot_n"
29945 \begin_inset LatexCommand eqref
29946 reference "eq:Wtot_mult"
29950 equal we can calculate the needed given width
29951 \begin_inset Formula $W_{g\, n}$
29958 columns are spanned, so that each column has a total width of
29959 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29965 \begin_layout Standard
29966 \begin_inset Formula \begin{equation}
29967 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29974 \begin_layout Bibliography
29975 \begin_inset LatexCommand bibitem
29976 key "latexcompanion"
29980 Frank Mittelbach and Michel Goossens:
29982 The LaTeX Companion Second Edition.
29985 Addison-Wesley, 2004
29988 \begin_layout Bibliography
29989 \begin_inset LatexCommand bibitem
29994 Helmut Kopka and Patrick W.
29997 A Guide to LaTeX Fourth Edition.
30000 Addison-Wesley, 2003
30003 \begin_layout Bibliography
30004 \begin_inset LatexCommand bibitem
30011 LaTeX: A Document Preparation System.
30014 Addison-Wesley, second edition, 1994
30017 \begin_layout Bibliography
30018 \begin_inset LatexCommand bibitem
30027 \begin_layout Standard
30031 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
30041 \begin_layout Standard
30048 of the LaTeX-package
30053 \begin_inset LatexCommand index
30054 name "LaTeX-packages ! booktabs"
30061 \begin_layout Bibliography
30062 \begin_inset LatexCommand bibitem
30071 \begin_layout Standard
30075 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
30084 \begin_layout Standard
30091 of the LaTeX-package
30096 \begin_inset LatexCommand index
30097 name "LaTeX-packages ! caption"
30104 \begin_layout Bibliography
30105 \begin_inset LatexCommand bibitem
30114 \begin_layout Standard
30118 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
30128 \begin_layout Standard
30135 of the LaTeX-package
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/endfloat/endfloat.pdf}
30164 \begin_layout Standard
30171 of the LaTeX-package
30173 endf\SpecialChar \textcompwordmark{}
30177 \begin_inset LatexCommand index
30178 name "LaTeX-packages ! endfloat"
30185 \begin_layout Bibliography
30186 \begin_inset LatexCommand bibitem
30195 \begin_layout Standard
30199 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
30209 \begin_layout Standard
30216 of the LaTeX-package
30218 f\SpecialChar \textcompwordmark{}
30219 loatf\SpecialChar \textcompwordmark{}
30223 \begin_inset LatexCommand index
30224 name "LaTeX-packages ! floatflt"
30231 \begin_layout Bibliography
30232 \begin_inset LatexCommand bibitem
30241 \begin_layout Standard
30245 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
30255 \begin_layout Standard
30262 of the LaTeX-package
30267 \begin_inset LatexCommand index
30268 name "LaTeX-packages ! footmisc"
30275 \begin_layout Bibliography
30276 \begin_inset LatexCommand bibitem
30285 \begin_layout Standard
30289 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
30298 \begin_layout Standard
30305 of the LaTeX-package
30310 \begin_inset LatexCommand index
30311 name "LaTeX-packages ! hyperref"
30318 \begin_layout Bibliography
30319 \begin_inset LatexCommand bibitem
30328 \begin_layout Standard
30332 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
30342 \begin_layout Standard
30349 of the LaTeX-package
30354 \begin_inset LatexCommand index
30355 name "LaTeX-packages ! hyperref"
30362 \begin_layout Bibliography
30363 \begin_inset LatexCommand bibitem
30372 \begin_layout Standard
30376 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30386 \begin_layout Standard
30393 of the LaTeX-package
30398 \begin_inset LatexCommand index
30399 name "LaTeX-packages ! koma-script"
30406 \begin_layout Bibliography
30407 \begin_inset LatexCommand bibitem
30408 key "koma-script-de"
30416 \begin_layout Standard
30420 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30430 \begin_layout Standard
30437 of the LaTeX-package
30442 \begin_inset LatexCommand index
30443 name "LaTeX-packages ! koma-script"
30450 \begin_layout Bibliography
30451 \begin_inset LatexCommand bibitem
30460 \begin_layout Standard
30464 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30474 \begin_layout Standard
30481 of the LaTeX-package
30486 \begin_inset LatexCommand index
30487 name "LaTeX-packages ! listings"
30494 \begin_layout Bibliography
30495 \begin_inset LatexCommand bibitem
30504 \begin_layout Standard
30508 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30518 \begin_layout Standard
30525 of the LaTeX-package
30530 \begin_inset LatexCommand index
30531 name "LaTeX-packages ! marginnote"
30538 \begin_layout Bibliography
30539 \begin_inset LatexCommand bibitem
30548 \begin_layout Standard
30552 href{http://tug.org/PSTricks/main.cgi/}{
30561 \begin_layout Standard
30568 of the LaTeX-package
30573 \begin_inset LatexCommand index
30574 name "LaTeX-packages ! PSTricks"
30581 \begin_layout Bibliography
30582 \begin_inset LatexCommand bibitem
30591 \begin_layout Standard
30595 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30604 \begin_layout Standard
30611 of the LaTeX-package
30616 \begin_inset LatexCommand index
30617 name "LaTeX-packages ! sidecap"
30624 \begin_layout Bibliography
30625 \begin_inset LatexCommand bibitem
30634 \begin_layout Standard
30638 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30647 \begin_layout Standard
30654 about new LyX-features planned for the release
30661 \begin_layout Standard
30662 \begin_inset LatexCommand printindex
30669 \begin_layout Standard
30670 \begin_inset FloatList figure
30677 \begin_layout Standard
30678 \begin_inset FloatList table