1 #LyX 1.5.0svn 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 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
175 \font_typewriter default
176 \font_default_family default
190 \paperorientation portrait
193 \paragraph_separation skip
195 \quotes_language english
198 \paperpagestyle default
202 \tracking_changes false
203 \output_changes false
211 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
220 \begin_layout Standard
222 If you have comments or error corrections, please send them to the LyX Documenta
229 \begin_layout Standard
233 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
238 lyx-docs@lists.lyx.org
242 \begin_layout Standard
255 \begin_inset Note Note
258 \begin_layout Standard
259 original author: Uwe Stöhr
275 \begin_layout Standard
276 \begin_inset LatexCommand tableofcontents
283 \begin_layout Standard
284 \begin_inset Note Note
287 \begin_layout Standard
288 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
298 If they are not installed you can export the document anyway but the sections
299 where the packages are required won't appear in the output.
302 \begin_layout Standard
303 The latest PDF-version of this document can be found here:
307 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
315 \begin_layout Chapter
317 \begin_inset LatexCommand label
323 \begin_inset LatexCommand index
329 \begin_inset LatexCommand index
330 name "Graphics|see{Figures}"
337 \begin_layout Section
339 \begin_inset LatexCommand index
340 name "Figures ! Graphics Dialog"
345 \begin_inset LatexCommand label
346 name "sec:Graphics-Dialog"
353 \begin_layout Standard
354 To insert an image into your document, place the cursor at the text position
355 you want and click on the toolbar icon
356 \begin_inset Graphics
357 filename ../images/dialog-show-new-inset_graphics.xpm
365 Insert\SpecialChar \menuseparator
369 Then a dialog will appear to choose the file to load.
370 The image will appear in the output exactly at the position where it is
374 \begin_layout Standard
375 The graphics dialog can be called at any time by right-clicking on an image.
376 This dialog has three tabs:
379 \begin_layout Description
384 Here you can choose an image file and adjust its appearance in the output.
385 The available units for the image size are explained in appendix\InsetSpace ~
387 \begin_inset LatexCommand ref
388 reference "cha:Units-available-in"
394 You can rotate images counter-clockwise by setting a rotation angle and
396 The image will also be rotated inside LyX.
398 Images can be scaled by using
399 a percentage value or by setting the width and height explicitly.
400 If you set only the width or only the height, the other size will be determined
402 If you set both, then the image will be transformed to the given size,
403 possibly distorting it.
404 To prevent the image from distortion, use the option
406 Maintain aspect ratio
409 The image will then be scaled so that its width and height don't exceed
410 the specified dimensions.
412 Images can be opened in a program of your choice
418 The program can be set for every image format in the file format settings
419 in LyX's preferences.
422 \begin_layout Description
427 Alternatively to the usage of scaling units it is possible to set image
428 coordinates to adjust the height and width of the image in the output.
429 The coordinates can also be calculated automatically by pressing the button
441 bounding\InsetSpace ~
444 will only print the image region within the given coordinates.
445 Normally you don't need to take care about image coordinates and can ignore
449 \begin_layout Description
455 In this tab you can modify the appearance of the image within LyX and set
456 the image to be a subfigure of a figure float with an own caption.
457 Subfigures are explained in section\InsetSpace ~
459 \begin_inset LatexCommand ref
460 reference "sec:Figure-Floats"
466 LaTeX experts can also specify on this tab additional LaTeX options.
474 makes the image appear in the output only as a frame with the size of the
484 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
491 When the option is used the images will not be unzipped on export, since
492 LaTeX can handle them as they are.
494 Zipped EPS-graphics are useful to save
495 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
497 \begin_inset LatexCommand ref
498 reference "sec:PostScript"
503 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
514 zgrep %%Bounding x.eps.gz > x.eps.bb
518 The second command creates the bounding box file
519 \begin_inset Quotes eld
523 \begin_inset Quotes erd
526 that is needed by LaTeX for zipped graphics.
529 \begin_layout Standard
530 \begin_inset VSpace bigskip
536 \begin_layout Standard
537 This is an example image in EPS format
541 \begin_layout Standard
542 Image formats are explained in section\InsetSpace ~
544 \begin_inset LatexCommand ref
545 reference "sec:Image-Formats"
554 within a separate, horizontally centered paragraph:
557 \begin_layout Standard
559 \begin_inset Graphics
560 filename clipart/mobius.eps
571 \begin_layout Standard
572 This is the same image like the one above but in draft mode:
575 \begin_layout Standard
577 \begin_inset Graphics
578 filename clipart/mobius.eps
590 \begin_layout Section
592 \begin_inset LatexCommand label
593 name "sec:Figure-Floats"
598 \begin_inset LatexCommand index
599 name "Floats ! Figures"
604 \begin_inset LatexCommand index
605 name "Figures ! Floats"
612 \begin_layout Standard
613 For general explanations about floats, have a look at section\InsetSpace ~
615 \begin_inset LatexCommand ref
616 reference "sec:FloatIntroduction"
623 \begin_layout Standard
625 \begin_inset Graphics
626 filename ../images/float-insert_figure.xpm
634 Insert\SpecialChar \menuseparator
635 Float\SpecialChar \menuseparator
638 inserts a float with a caption that has the label
639 \begin_inset Quotes eld
644 \begin_inset Quotes erd
647 (# is the actual number).
648 You can insert the image above the caption, like in Figure\InsetSpace ~
650 \begin_inset LatexCommand ref
651 reference "fig:kill-plat"
655 or below the caption, like in Figure\InsetSpace ~
657 \begin_inset LatexCommand ref
658 reference "fig:escher"
663 More about the caption placement is described in section\InsetSpace ~
665 \begin_inset LatexCommand ref
666 reference "sec:Caption-Placement"
673 \begin_layout Standard
674 \begin_inset Float figure
679 \begin_layout Standard
681 \begin_inset Graphics
682 filename clipart/platypus.eps
693 \begin_layout Standard
696 \begin_layout Standard
697 \begin_inset LatexCommand label
702 A severely distorted platypus in a float.
715 \begin_layout Standard
716 \begin_inset Float figure
721 \begin_layout Standard
724 \begin_layout Standard
725 \begin_inset LatexCommand label
739 \begin_layout Standard
741 \begin_inset Graphics
742 filename clipart/escher-lsd.eps
758 \begin_layout Standard
759 \begin_inset LatexCommand index
760 name "References ! to Figures"
766 \begin_inset LatexCommand ref
767 reference "fig:kill-plat"
772 \begin_inset LatexCommand ref
773 reference "fig:escher"
777 are examples of referenced figures.
778 Figures can be referenced in the text by referencing their label.
779 To do this insert a label in the caption using the menu
781 Insert\SpecialChar \menuseparator
784 or the toolbar button
785 \begin_inset Graphics
786 filename ../images/label-insert.xpm
793 You can now refer to the label using the menu
795 Insert\SpecialChar \menuseparator
799 or the toolbar button
800 \begin_inset Graphics
801 filename ../images/dialog-show-new-inset_ref.xpm
808 It is important to use references to floats, rather than using vague references
810 \begin_inset Quotes eld
814 \begin_inset Quotes erd
817 , because as LaTeX will reposition the floats in the final document, it
819 \begin_inset Quotes eld
823 \begin_inset Quotes erd
828 Referencing is explained in detail in section\InsetSpace ~
830 \begin_inset LatexCommand ref
831 reference "sec:Referencing-Floats"
838 \begin_layout Standard
839 Normally only one image is inserted to a figure float, but sometimes you
840 might want to use two images with separate subcaptions.
841 This can be set in the tab
846 of the graphics dialog.
847 Choose there the option
851 and enter the subcaption for the image in the caption field.
852 Note that only the main caption of the float is added to the List of Figures.
855 erencing subfigures is explained in section\InsetSpace ~
857 \begin_inset LatexCommand ref
858 reference "sub:Referencing-Subfigures"
865 \begin_layout Standard
868 \begin_inset LatexCommand ref
869 reference "fig:Two-distorted-images"
873 is an example of a figure float with two images set side by side.
874 You can also set the images one below the other.
877 \begin_layout Standard
878 \begin_inset Float figure
883 \begin_layout Standard
887 \begin_inset Graphics
888 filename clipart/escher-lsd.eps
892 subcaptionText "Undefinable structure"
899 \begin_inset Graphics
900 filename clipart/platypus.eps
905 subcaptionText "\label{fig:Platypus} Platypus"
914 \begin_layout Standard
917 \begin_layout Standard
918 \begin_inset LatexCommand label
919 name "fig:Two-distorted-images"
923 Two distorted images.
936 \begin_layout Section
938 \begin_inset LatexCommand label
939 name "sec:Image-Formats"
944 \begin_inset LatexCommand index
950 \begin_inset LatexCommand index
951 name "Figures ! Image Formats"
958 \begin_layout Standard
959 You can insert images in any known file format.
960 But as explained in appendix\InsetSpace ~
962 \begin_inset LatexCommand ref
963 reference "cha:Output-File-Formats"
967 , every output document format allows only a few image formats.
968 LyX uses therefore the program
972 in the background to convert the images to the right format.
973 To increase your work flow by avoiding these conversions in the background,
974 you can use only the image formats that can directly be embedded in the
976 The output file formats are explained in appendix\InsetSpace ~
978 \begin_inset LatexCommand ref
979 reference "cha:Output-File-Formats"
986 \begin_layout Standard
987 Similar to fonts there are two types of image formats:
990 \begin_layout Description
992 images consist of pixel values, often in a compressed form.
993 They are therefore not fully scalable and look pixeled in large zooms.
994 Well-known bitmap image formats are
995 \begin_inset Quotes eld
998 Graphics Interchange Format
999 \begin_inset Quotes erd
1002 (GIF, file extension
1003 \begin_inset Quotes eld
1011 \begin_inset Quotes erd
1015 \begin_inset LatexCommand index
1016 name "GIF|see{Image formats}"
1021 \begin_inset Quotes eld
1024 Portable Network Graphics
1025 \begin_inset Quotes erd
1028 (PNG, file extension
1029 \begin_inset Quotes eld
1037 \begin_inset Quotes erd
1041 \begin_inset LatexCommand index
1042 name "PNG|see{Image formats}"
1047 \begin_inset Quotes eld
1050 Joint Photographic Experts Group
1051 \begin_inset Quotes erd
1054 (JPG, file extension
1055 \begin_inset Quotes eld
1063 \begin_inset Quotes erd
1067 \begin_inset Quotes eld
1075 \begin_inset Quotes erd
1079 \begin_inset LatexCommand index
1080 name "JPG|see{Image formats}"
1087 \begin_layout Description
1089 images consist of vectors and can therefore be scaled to any size
1091 The scaling ability is necessary if you want to create presentations, because
1092 presentations are always scaled by the video projector.
1093 Scaling is also useful for online documents to let the user zoom into diagrams.
1096 ell-known scalable image formats are
1097 \begin_inset Quotes eld
1100 Scalable Vector Graphics
1101 \begin_inset Quotes erd
1104 (SVG, file extension
1105 \begin_inset Quotes eld
1113 \begin_inset Quotes erd
1117 \begin_inset LatexCommand index
1118 name "SVG|see{Image formats}"
1123 \begin_inset Quotes eld
1126 Encapsulated PostScript
1127 \begin_inset Quotes erd
1130 (EPS, file extension
1131 \begin_inset Quotes eld
1139 \begin_inset Quotes erd
1143 \begin_inset LatexCommand index
1144 name "EPS|see{Image formats}"
1149 \begin_inset Quotes eld
1152 Portable Document Format
1153 \begin_inset Quotes erd
1156 (PDF, file extension
1157 \begin_inset Quotes eld
1165 \begin_inset Quotes erd
1169 \begin_inset LatexCommand index
1175 \begin_inset Quotes eld
1179 \begin_inset Quotes erd
1182 (WMF, file extension
1183 \begin_inset Quotes eld
1191 \begin_inset Quotes erd
1195 \begin_inset LatexCommand index
1196 name "SVG|see{Image formats}"
1202 \begin_inset Quotes eld
1206 \begin_inset Quotes erd
1209 , because you can convert any bitmap image to a PDF or EPS-image and the
1210 result will still be a bitmap image.
1211 In this cases only a header with the image properties is added to the original
1216 \begin_layout Standard
1217 In the case of PDF, the original image is additionally compressed.
1223 The PDF-files generated by
1227 are for example bitmap images.
1230 \begin_layout Standard
1231 Normally it is not possible to convert a bitmap image into a scalable one,
1233 Only the image formats PDF and EPS can directly be embedded to PDF and
1234 PostScript output files, respectively.
1235 SVG and WMF-images are recalculated to bitmaps when the output file is
1236 generated because there is currently no adequate WMF/SVG
1237 \begin_inset Formula $\to$
1240 PDF/EPS converter available.
1243 \begin_layout Chapter
1245 \begin_inset LatexCommand label
1251 \begin_inset LatexCommand index
1259 \begin_layout Section
1261 \begin_inset LatexCommand index
1262 name "Table ! Introduction"
1269 \begin_layout Standard
1270 You can insert a table using either the toolbar button
1271 \begin_inset Graphics
1272 filename ../images/tabular-insert.xpm
1280 Insert\SpecialChar \menuseparator
1284 The toolbar button offers you a graphical selection: Move the mouse to
1285 set the column/row number of the table that should be created and then
1286 press a mouse button.
1287 When you use the menu to create a table, a dialog will appear, asking you
1288 for the number of rows and columns.
1290 The default table has lines around any
1291 cell and the first row appears separated from the rest of the table.
1292 This separation occurs due to a double line: The cells of the first row
1293 have a line below them and the cells of the second row have a line above
1295 Here is an example table:
1298 \begin_layout Standard
1300 \begin_inset Tabular
1301 <lyxtabular version="3" rows="4" columns="4">
1303 <column alignment="center" valignment="top" leftline="true" width="0">
1304 <column alignment="center" valignment="top" leftline="true" width="0">
1305 <column alignment="center" valignment="top" leftline="true" width="0">
1306 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1307 <row topline="true" bottomline="true">
1308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1311 \begin_layout Standard
1317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1320 \begin_layout Standard
1335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1338 \begin_layout Standard
1344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1347 \begin_layout Standard
1354 <row topline="true">
1355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1358 \begin_layout Standard
1373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1376 \begin_layout Standard
1382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1385 \begin_layout Standard
1391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1394 \begin_layout Standard
1401 <row topline="true">
1402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1405 \begin_layout Standard
1420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1423 \begin_layout Standard
1429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1432 \begin_layout Standard
1438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1441 \begin_layout Standard
1448 <row topline="true" bottomline="true">
1449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1452 \begin_layout Standard
1467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1470 \begin_layout Standard
1476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1479 \begin_layout Standard
1485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1488 \begin_layout Standard
1502 \begin_layout Section
1504 \begin_inset LatexCommand index
1505 name "Table ! Dialog"
1512 \begin_layout Standard
1513 You can alter a table by clicking on it with the right mouse button, which
1514 brings up the table dialog.
1515 Here you can adjust the settings of that cell and row/column respectively
1516 where the cursor is currently placed.
1517 Most of the dialog options also work on selections.
1518 This means if you select more cells, columns or rows, the action is done
1519 for the whole selection.
1520 Note that there is a difference between selecting the
1524 of the cell, and the cell itself.
1525 You can alter tables with the following tabs of the table dialog:
1528 \begin_layout Description
1534 Here you can set the horizontal alignment and the width of the current
1536 When you have set a width you can also adjust the vertical alignment of
1538 A given width will allow the cell to have line breaks and multiple paragraphs
1539 of text, see section\InsetSpace ~
1541 \begin_inset LatexCommand ref
1542 reference "sub:Multiple-Lines-in"
1547 If you set no width, the column is as wide as their widest cell content
1550 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1551 cell, see section\InsetSpace ~
1553 \begin_inset LatexCommand ref
1554 reference "sub:Multicolumns"
1560 The rotate check boxes rotates the current cell, a selection, or the whole
1561 table counter-clockwise by 90°.
1562 The rotation is not shown within LyX, only in the output.
1565 \begin_inset Note Greyedout
1568 \begin_layout Standard
1573 Not all DVI-viewers are able to display rotations.
1580 It is also possible to enter a LaTeX-argument which is needed for special
1581 table formattings, see section\InsetSpace ~
1583 \begin_inset LatexCommand ref
1584 reference "sub:Multicolumn-Calculations"
1589 \begin_inset LatexCommand ref
1590 reference "sec:Colored-Tables"
1597 \begin_layout Description
1602 In this tab you can add and delete border lines for the current row/column.
1609 will convert the table to a formal table as described in section\InsetSpace ~
1611 \begin_inset LatexCommand ref
1612 reference "sec:Formal-Tables"
1618 You can also add here space to table rows as decribed in section\InsetSpace ~
1620 \begin_inset LatexCommand ref
1621 reference "sub:Row-Spacing"
1628 \begin_layout Description
1633 This tab is to make a table a so called
1634 \begin_inset Quotes eld
1642 \begin_inset Quotes erd
1645 that can run over several pages.
1646 Section\InsetSpace ~
1648 \begin_inset LatexCommand ref
1649 reference "sec:Longtables"
1654 \begin_inset LatexCommand ref
1655 reference "sec:Special-Longtable-Issues"
1659 describe the longtable features in detail.
1662 \begin_layout Standard
1663 When the table toolbar is opened, you can move the cursor with the arrow
1664 keys from cell to cell and the property of the current cell will immediately
1665 be displayed in the dialog.
1668 \begin_layout Section
1670 \begin_inset LatexCommand index
1671 name "Table ! Toolbar"
1678 \begin_layout Standard
1679 The table toolbar is an alternative to the table dialog to be able to alter
1681 It should normally appear at the bottom of LyX's main window when the cursor
1683 You can alternatively switch it on to appear always, by right-clicking
1684 in LyX's main menu bar.
1687 \begin_layout Standard
1688 The toolbar has the following icons:
1691 \begin_layout Labeling
1692 \labelwidthstring 00.00.0000
1693 \begin_inset Graphics
1694 filename ../images/tabular-feature_append-row.xpm
1699 adds a row below the current cell or selection
1702 \begin_layout Labeling
1703 \labelwidthstring 00.00.0000
1704 \begin_inset Graphics
1705 filename ../images/tabular-feature_append-column.xpm
1710 adds a column right beside the current cell or selection
1713 \begin_layout Labeling
1714 \labelwidthstring 00.00.0000
1715 \begin_inset Graphics
1716 filename ../images/tabular-feature_delete-row.xpm
1721 deletes the current row or selection
1724 \begin_layout Labeling
1725 \labelwidthstring 00.00.0000
1726 \begin_inset Graphics
1727 filename ../images/tabular-feature_delete-column.xpm
1732 deletes the current column or selection
1735 \begin_layout Labeling
1736 \labelwidthstring 00.00.0000
1737 \begin_inset Graphics
1738 filename ../images/tabular-feature_toggle-line-top.xpm
1743 adds a line at the top of the current cell / row or of a selection
1746 \begin_layout Labeling
1747 \labelwidthstring 00.00.0000
1748 \begin_inset Graphics
1749 filename ../images/tabular-feature_toggle-line-bottom.xpm
1754 adds a line at the bottom of the current cell / row or of a selection
1757 \begin_layout Labeling
1758 \labelwidthstring 00.00.0000
1759 \begin_inset Graphics
1760 filename ../images/tabular-feature_toggle-line-left.xpm
1765 adds a line at the left side of the current cell / row or of a selection
1768 \begin_layout Labeling
1769 \labelwidthstring 00.00.0000
1770 \begin_inset Graphics
1771 filename ../images/tabular-feature_toggle-line-right.xpm
1776 adds a line at the right side of the current cell / row or of a selection
1779 \begin_layout Labeling
1780 \labelwidthstring 00.00.0000
1781 \begin_inset Graphics
1782 filename ../images/tabular-feature_set-all-lines.xpm
1787 adds lines around the current or selected cells - if the current cell no
1788 multicolumn this also affects the current row and column
1791 \begin_layout Labeling
1792 \labelwidthstring 00.00.0000
1793 \begin_inset Graphics
1794 filename ../images/tabular-feature_unset-all-lines.xpm
1799 deletes all lines of the current or selected cells - if the current cell
1800 no multicolumn this also affects the current row and column
1803 \begin_layout Labeling
1804 \labelwidthstring 00.00.0000
1805 \begin_inset Graphics
1806 filename ../images/tabular-feature_align-left.xpm
1811 left-aligns the content of the current cell / column
1814 \begin_layout Labeling
1815 \labelwidthstring 00.00.0000
1816 \begin_inset Graphics
1817 filename ../images/tabular-feature_align-center.xpm
1822 centers the content of the current cell / column horizontally
1825 \begin_layout Labeling
1826 \labelwidthstring 00.00.0000
1827 \begin_inset Graphics
1828 filename ../images/tabular-feature_align-right.xpm
1833 right-aligns the content of the current cell / column
1836 \begin_layout Labeling
1837 \labelwidthstring 00.00.0000
1838 \begin_inset Graphics
1839 filename ../images/tabular-feature_valign-top.xpm
1844 aligns the content of the current cell vertically to the top
1847 \begin_layout Labeling
1848 \labelwidthstring 00.00.0000
1849 \begin_inset Graphics
1850 filename ../images/tabular-feature_valign-middle.xpm
1855 centers the content of the current cell vertically
1858 \begin_layout Labeling
1859 \labelwidthstring 00.00.0000
1860 \begin_inset Graphics
1861 filename ../images/tabular-feature_valign-bottom.xpm
1866 aligns the content of the current cell vertically to the bottom
1869 \begin_layout Labeling
1870 \labelwidthstring 00.00.0000
1871 \begin_inset Graphics
1872 filename ../images/tabular-feature_set-rotate-cell.xpm
1877 rotates the current cell or selection counter-clockwise by 90°
1880 \begin_layout Labeling
1881 \labelwidthstring 00.00.0000
1882 \begin_inset Graphics
1883 filename ../images/tabular-feature_set-rotate-tabular.xpm
1888 rotates the whole table counter-clockwise by 90°
1891 \begin_layout Labeling
1892 \labelwidthstring 00.00.0000
1893 \begin_inset Graphics
1894 filename ../images/tabular-feature_multicolumn.xpm
1899 sets the current cell or selection as a multicolumn
1902 \begin_layout Standard
1903 \begin_inset Note Greyedout
1906 \begin_layout Standard
1911 For the output the vertical alignment of the first cell in a row is used
1912 for all following cells in the row.
1920 \begin_layout Section
1922 \begin_inset LatexCommand index
1923 name "Table ! Edit Menu"
1930 \begin_layout Standard
1931 Additionally to the table dialog and toolbar, the menu
1933 Edit\SpecialChar \menuseparator
1936 allows you to add and delete border lines for the current row/column and
1937 to set the current selection as multicolumn.
1938 The menu is only available when the cursor is inside a table.
1941 \begin_layout Section
1943 \begin_inset LatexCommand label
1944 name "sec:Table-Floats"
1949 \begin_inset LatexCommand index
1950 name "Floats ! Tables"
1955 \begin_inset LatexCommand index
1956 name "Table ! Floats"
1963 \begin_layout Standard
1964 For general explanations about floats, have a look at section\InsetSpace ~
1966 \begin_inset LatexCommand ref
1967 reference "sec:FloatIntroduction"
1974 \begin_layout Standard
1975 \begin_inset Float table
1981 \begin_layout Standard
1982 \begin_inset Caption
1984 \begin_layout Standard
1985 \begin_inset LatexCommand label
1986 name "tab:a table float"
1998 \begin_layout Standard
2000 \begin_inset Tabular
2001 <lyxtabular version="3" rows="3" columns="3">
2003 <column alignment="center" valignment="top" leftline="true" width="0pt">
2004 <column alignment="center" valignment="top" leftline="true" width="0pt">
2005 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2006 <row topline="true" bottomline="true">
2007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2010 \begin_layout Standard
2025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2028 \begin_layout Standard
2043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2046 \begin_layout Standard
2062 <row topline="true">
2063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2066 \begin_layout Standard
2081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2084 \begin_layout Standard
2099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2102 \begin_layout Standard
2118 <row topline="true" bottomline="true">
2119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2122 \begin_layout Standard
2132 \begin_inset Formula $\int x^{2}dx$
2140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2143 \begin_layout Standard
2153 \begin_inset Formula $\left[\begin{array}{cc}
2155 c & d\end{array}\right]$
2163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2166 \begin_layout Standard
2176 \begin_inset Formula $1+1=2$
2197 \begin_layout Standard
2198 Table floats can be inserted using the menu
2200 Insert\SpecialChar \menuseparator
2201 Float\SpecialChar \menuseparator
2204 or the toolbar button
2205 \begin_inset Graphics
2206 filename ../images/float-insert_table.xpm
2215 \begin_layout Standard
2216 The float appears as a collapsible box with a caption that has the label
2218 \begin_inset Quotes eld
2223 \begin_inset Quotes erd
2226 (# is the actual table number).
2227 You can insert tables to the float above or below the caption.
2230 \begin_layout Standard
2233 \begin_inset LatexCommand ref
2234 reference "tab:a table float"
2238 is an example table within a table float.
2241 \begin_layout Standard
2242 Having the caption above the table is the common rule that is unfortunately
2243 not supported in LaTeX's standard classes.
2244 That means if you are using the document classes
2260 there will be no space between the caption and the table.
2261 To insert the needed space, add the following option to the load command
2262 of the LaTeX-package
2267 \begin_inset LatexCommand index
2268 name "LaTeX-packages ! caption"
2272 in your document preamble
2276 \begin_layout Standard
2277 For more information have a look at section\InsetSpace ~
2279 \begin_inset LatexCommand ref
2280 reference "sec:Caption-Placement"
2292 \begin_layout Standard
2298 \begin_layout Standard
2303 , which is described in section\InsetSpace ~
2305 \begin_inset LatexCommand ref
2306 reference "sec:Caption-Formatting"
2310 , is used to adjust the caption format.
2313 \begin_layout Standard
2314 \begin_inset LatexCommand index
2315 name "References ! to Tables"
2319 Tables can be cross-referenced in the text by referencing their label.
2320 To do this insert a label in the caption using the menu
2322 Insert\SpecialChar \menuseparator
2325 or the toolbar button
2326 \begin_inset Graphics
2327 filename ../images/label-insert.xpm
2334 You can now refer to the label using the menu
2336 Insert\SpecialChar \menuseparator
2340 or the toolbar button
2341 \begin_inset Graphics
2342 filename ../images/dialog-show-new-inset_ref.xpm
2350 Referencing is explained in detail in section\InsetSpace ~
2352 \begin_inset LatexCommand ref
2353 reference "sec:Referencing-Floats"
2360 \begin_layout Section
2362 \begin_inset LatexCommand label
2363 name "sec:Longtables"
2368 \begin_inset LatexCommand index
2374 \begin_inset LatexCommand index
2375 name "Table ! Longtables"
2382 \begin_layout Standard
2383 If the table is too long to fit on one page, you can use the option
2393 of the table dialog to split the table automatically over more pages.
2394 Doing this enables some check boxes and you can now define:
2397 \begin_layout Description
2402 : The current row and all rows above, that don't have any special options
2403 defined, are defined to be the header rows of all pages of the longtable;
2404 except for the first page, if
2410 This therefore called the main header.
2413 \begin_layout Description
2419 : The current row and all rows above, that don't have any special options
2420 defined, are defined to be the header rows of the first page of the longtable.
2423 \begin_layout Description
2428 : The current row and all rows below, that don't have any special options
2429 defined, are defined to be the footer rows of all pages of the longtable;
2430 except for the last page, if
2438 \begin_layout Description
2444 : The current row and all rows below, that don't have any special options
2445 defined, are defined to be the footer rows of the last page of the longtable.
2448 \begin_layout Standard
2449 You can also specify a row where the table is splitted.
2450 If you set more than one option in the same table row, you should be aware
2451 of the fact that only the first one is used in the given table row.
2452 The others will then be defined as
2457 In this context, first means first in this order:
2464 header, Footer, Last\InsetSpace ~
2468 See the following longtable to see how it works:
2471 \begin_layout Standard
2473 \begin_inset Tabular
2474 <lyxtabular version="3" rows="69" columns="3">
2475 <features islongtable="true">
2476 <column alignment="left" valignment="top" leftline="true" width="0cm">
2477 <column alignment="left" valignment="top" width="0pt">
2478 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2479 <row topline="true" bottomline="true" endfirsthead="true">
2480 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2483 \begin_layout Standard
2486 Example Phone List (ignore the names)
2491 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2494 \begin_layout Standard
2500 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2503 \begin_layout Standard
2510 <row topline="true" bottomline="true" endfirsthead="true">
2511 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2514 \begin_layout Standard
2522 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2525 \begin_layout Standard
2531 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2534 \begin_layout Standard
2543 <row topline="true" bottomline="true" endhead="true">
2544 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2547 \begin_layout Standard
2555 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2558 \begin_layout Standard
2564 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2567 \begin_layout Standard
2574 <row topline="true" bottomline="true" endhead="true">
2575 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2578 \begin_layout Standard
2586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2589 \begin_layout Standard
2595 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2598 \begin_layout Standard
2607 <row topline="true" bottomline="true" endfoot="true">
2608 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2611 \begin_layout Standard
2612 continued on next page
2617 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2620 \begin_layout Standard
2626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2629 \begin_layout Standard
2637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2640 \begin_layout Standard
2648 <cell alignment="center" valignment="top" topline="true" usebox="none">
2651 \begin_layout Standard
2657 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2660 \begin_layout Standard
2668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2671 \begin_layout Standard
2679 <cell alignment="center" valignment="top" topline="true" usebox="none">
2682 \begin_layout Standard
2688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2691 \begin_layout Standard
2699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2702 \begin_layout Standard
2710 <cell alignment="center" valignment="top" topline="true" usebox="none">
2713 \begin_layout Standard
2719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2722 \begin_layout Standard
2730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2733 \begin_layout Standard
2741 <cell alignment="center" valignment="top" topline="true" usebox="none">
2744 \begin_layout Standard
2750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2753 \begin_layout Standard
2761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2764 \begin_layout Standard
2772 <cell alignment="center" valignment="top" topline="true" usebox="none">
2775 \begin_layout Standard
2781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2784 \begin_layout Standard
2792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2795 \begin_layout Standard
2803 <cell alignment="center" valignment="top" topline="true" usebox="none">
2806 \begin_layout Standard
2812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2815 \begin_layout Standard
2823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2826 \begin_layout Standard
2834 <cell alignment="center" valignment="top" topline="true" usebox="none">
2837 \begin_layout Standard
2843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2846 \begin_layout Standard
2854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2857 \begin_layout Standard
2865 <cell alignment="center" valignment="top" topline="true" usebox="none">
2868 \begin_layout Standard
2874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2877 \begin_layout Standard
2885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2888 \begin_layout Standard
2896 <cell alignment="center" valignment="top" topline="true" usebox="none">
2899 \begin_layout Standard
2905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2908 \begin_layout Standard
2916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2919 \begin_layout Standard
2927 <cell alignment="center" valignment="top" topline="true" usebox="none">
2930 \begin_layout Standard
2936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2939 \begin_layout Standard
2947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2950 \begin_layout Standard
2958 <cell alignment="center" valignment="top" topline="true" usebox="none">
2961 \begin_layout Standard
2967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2970 \begin_layout Standard
2978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2981 \begin_layout Standard
2989 <cell alignment="center" valignment="top" topline="true" usebox="none">
2992 \begin_layout Standard
2998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3001 \begin_layout Standard
3009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3012 \begin_layout Standard
3020 <cell alignment="center" valignment="top" topline="true" usebox="none">
3023 \begin_layout Standard
3029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3032 \begin_layout Standard
3040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3043 \begin_layout Standard
3051 <cell alignment="center" valignment="top" topline="true" usebox="none">
3054 \begin_layout Standard
3060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3063 \begin_layout Standard
3071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3074 \begin_layout Standard
3082 <cell alignment="center" valignment="top" topline="true" usebox="none">
3085 \begin_layout Standard
3091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3094 \begin_layout Standard
3102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3105 \begin_layout Standard
3113 <cell alignment="center" valignment="top" topline="true" usebox="none">
3116 \begin_layout Standard
3122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3125 \begin_layout Standard
3133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3136 \begin_layout Standard
3144 <cell alignment="center" valignment="top" topline="true" usebox="none">
3147 \begin_layout Standard
3153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3156 \begin_layout Standard
3164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3167 \begin_layout Standard
3175 <cell alignment="center" valignment="top" topline="true" usebox="none">
3178 \begin_layout Standard
3184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3187 \begin_layout Standard
3195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3198 \begin_layout Standard
3206 <cell alignment="center" valignment="top" topline="true" usebox="none">
3209 \begin_layout Standard
3215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3218 \begin_layout Standard
3226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3229 \begin_layout Standard
3237 <cell alignment="center" valignment="top" topline="true" usebox="none">
3240 \begin_layout Standard
3246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3249 \begin_layout Standard
3257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3260 \begin_layout Standard
3268 <cell alignment="center" valignment="top" topline="true" usebox="none">
3271 \begin_layout Standard
3277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3280 \begin_layout Standard
3288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3291 \begin_layout Standard
3299 <cell alignment="center" valignment="top" topline="true" usebox="none">
3302 \begin_layout Standard
3308 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3311 \begin_layout Standard
3319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3322 \begin_layout Standard
3330 <cell alignment="center" valignment="top" topline="true" usebox="none">
3333 \begin_layout Standard
3339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3342 \begin_layout Standard
3350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3353 \begin_layout Standard
3361 <cell alignment="center" valignment="top" topline="true" usebox="none">
3364 \begin_layout Standard
3370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3373 \begin_layout Standard
3381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3384 \begin_layout Standard
3392 <cell alignment="center" valignment="top" topline="true" usebox="none">
3395 \begin_layout Standard
3401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3404 \begin_layout Standard
3412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3415 \begin_layout Standard
3423 <cell alignment="center" valignment="top" topline="true" usebox="none">
3426 \begin_layout Standard
3432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3435 \begin_layout Standard
3443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3446 \begin_layout Standard
3454 <cell alignment="center" valignment="top" topline="true" usebox="none">
3457 \begin_layout Standard
3463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3466 \begin_layout Standard
3474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3477 \begin_layout Standard
3485 <cell alignment="center" valignment="top" topline="true" usebox="none">
3488 \begin_layout Standard
3494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3497 \begin_layout Standard
3505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3508 \begin_layout Standard
3516 <cell alignment="center" valignment="top" topline="true" usebox="none">
3519 \begin_layout Standard
3525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3528 \begin_layout Standard
3536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3539 \begin_layout Standard
3547 <cell alignment="center" valignment="top" topline="true" usebox="none">
3550 \begin_layout Standard
3556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3559 \begin_layout Standard
3566 <row bottomline="true">
3567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3570 \begin_layout Standard
3578 <cell alignment="center" valignment="top" topline="true" usebox="none">
3581 \begin_layout Standard
3587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3590 \begin_layout Standard
3597 <row bottomline="true">
3598 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3601 \begin_layout Standard
3607 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3610 \begin_layout Standard
3616 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3619 \begin_layout Standard
3627 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3630 \begin_layout Standard
3638 <cell alignment="center" valignment="top" topline="true" usebox="none">
3641 \begin_layout Standard
3647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3650 \begin_layout Standard
3658 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3661 \begin_layout Standard
3669 <cell alignment="center" valignment="top" topline="true" usebox="none">
3672 \begin_layout Standard
3678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3681 \begin_layout Standard
3689 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3692 \begin_layout Standard
3700 <cell alignment="center" valignment="top" topline="true" usebox="none">
3703 \begin_layout Standard
3709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3712 \begin_layout Standard
3720 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3723 \begin_layout Standard
3731 <cell alignment="center" valignment="top" topline="true" usebox="none">
3734 \begin_layout Standard
3740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3743 \begin_layout Standard
3751 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3754 \begin_layout Standard
3762 <cell alignment="center" valignment="top" topline="true" usebox="none">
3765 \begin_layout Standard
3771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3774 \begin_layout Standard
3782 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3785 \begin_layout Standard
3793 <cell alignment="center" valignment="top" topline="true" usebox="none">
3796 \begin_layout Standard
3802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3805 \begin_layout Standard
3813 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3816 \begin_layout Standard
3824 <cell alignment="center" valignment="top" topline="true" usebox="none">
3827 \begin_layout Standard
3833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3836 \begin_layout Standard
3844 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3847 \begin_layout Standard
3855 <cell alignment="center" valignment="top" topline="true" usebox="none">
3858 \begin_layout Standard
3864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3867 \begin_layout Standard
3875 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3878 \begin_layout Standard
3886 <cell alignment="center" valignment="top" topline="true" usebox="none">
3889 \begin_layout Standard
3895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3898 \begin_layout Standard
3906 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3909 \begin_layout Standard
3917 <cell alignment="center" valignment="top" topline="true" usebox="none">
3920 \begin_layout Standard
3926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3929 \begin_layout Standard
3937 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3940 \begin_layout Standard
3948 <cell alignment="center" valignment="top" topline="true" usebox="none">
3951 \begin_layout Standard
3957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3960 \begin_layout Standard
3968 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3971 \begin_layout Standard
3979 <cell alignment="center" valignment="top" topline="true" usebox="none">
3982 \begin_layout Standard
3988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3991 \begin_layout Standard
3999 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4002 \begin_layout Standard
4010 <cell alignment="center" valignment="top" topline="true" usebox="none">
4013 \begin_layout Standard
4019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4022 \begin_layout Standard
4030 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4033 \begin_layout Standard
4041 <cell alignment="center" valignment="top" topline="true" usebox="none">
4044 \begin_layout Standard
4050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4053 \begin_layout Standard
4061 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4064 \begin_layout Standard
4072 <cell alignment="center" valignment="top" topline="true" usebox="none">
4075 \begin_layout Standard
4081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4084 \begin_layout Standard
4092 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4095 \begin_layout Standard
4103 <cell alignment="center" valignment="top" topline="true" usebox="none">
4106 \begin_layout Standard
4112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4115 \begin_layout Standard
4123 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4126 \begin_layout Standard
4134 <cell alignment="center" valignment="top" topline="true" usebox="none">
4137 \begin_layout Standard
4143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4146 \begin_layout Standard
4154 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4157 \begin_layout Standard
4165 <cell alignment="center" valignment="top" topline="true" usebox="none">
4168 \begin_layout Standard
4174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Standard
4185 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4188 \begin_layout Standard
4196 <cell alignment="center" valignment="top" topline="true" usebox="none">
4199 \begin_layout Standard
4205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4208 \begin_layout Standard
4216 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4219 \begin_layout Standard
4227 <cell alignment="center" valignment="top" topline="true" usebox="none">
4230 \begin_layout Standard
4236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4239 \begin_layout Standard
4247 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4250 \begin_layout Standard
4258 <cell alignment="center" valignment="top" topline="true" usebox="none">
4261 \begin_layout Standard
4267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4270 \begin_layout Standard
4278 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4281 \begin_layout Standard
4289 <cell alignment="center" valignment="top" topline="true" usebox="none">
4292 \begin_layout Standard
4298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4301 \begin_layout Standard
4309 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4312 \begin_layout Standard
4320 <cell alignment="center" valignment="top" topline="true" usebox="none">
4323 \begin_layout Standard
4329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4332 \begin_layout Standard
4340 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4343 \begin_layout Standard
4351 <cell alignment="center" valignment="top" topline="true" usebox="none">
4354 \begin_layout Standard
4360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4363 \begin_layout Standard
4371 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4374 \begin_layout Standard
4382 <cell alignment="center" valignment="top" topline="true" usebox="none">
4385 \begin_layout Standard
4391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4394 \begin_layout Standard
4402 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4405 \begin_layout Standard
4413 <cell alignment="center" valignment="top" topline="true" usebox="none">
4416 \begin_layout Standard
4422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4425 \begin_layout Standard
4433 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4436 \begin_layout Standard
4444 <cell alignment="center" valignment="top" topline="true" usebox="none">
4447 \begin_layout Standard
4453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4456 \begin_layout Standard
4464 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4467 \begin_layout Standard
4475 <cell alignment="center" valignment="top" topline="true" usebox="none">
4478 \begin_layout Standard
4484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4487 \begin_layout Standard
4495 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4498 \begin_layout Standard
4506 <cell alignment="center" valignment="top" topline="true" usebox="none">
4509 \begin_layout Standard
4515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4518 \begin_layout Standard
4526 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4529 \begin_layout Standard
4537 <cell alignment="center" valignment="top" topline="true" usebox="none">
4540 \begin_layout Standard
4546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4549 \begin_layout Standard
4556 <row bottomline="true">
4557 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4560 \begin_layout Standard
4568 <cell alignment="center" valignment="top" topline="true" usebox="none">
4571 \begin_layout Standard
4577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4580 \begin_layout Standard
4587 <row bottomline="true" endlastfoot="true">
4588 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4591 \begin_layout Standard
4597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4600 \begin_layout Standard
4606 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4609 \begin_layout Standard
4624 \begin_layout Standard
4628 addtocounter{table}{-1}
4634 \begin_inset Note Note
4637 \begin_layout Standard
4638 See greyed-out note in section\InsetSpace ~
4640 \begin_inset LatexCommand ref
4641 reference "sub:Longtable-Captions"
4645 for an explanation of this command.
4653 \begin_layout Subsection
4654 Footnotes in Longtables
4655 \begin_inset LatexCommand label
4656 name "sub:Footnotes-in-Longtables"
4661 \begin_inset LatexCommand index
4662 name "Longtables ! Footnotes"
4669 \begin_layout Standard
4670 Footnotes can be inserted to every longtable cell.
4671 They appear at the bottom of the page where the table cell with the footnote
4675 \begin_inset LatexCommand ref
4676 reference "tab:DiffCaptions"
4680 has for example a footnote.
4683 \begin_layout Subsection
4685 \begin_inset LatexCommand index
4686 name "Longtables ! Captions"
4691 \begin_inset LatexCommand label
4692 name "sub:Longtable-Captions"
4699 \begin_layout Standard
4700 A longtable cannot be put into a table float because floats can only be
4701 on one page but the caption environment of floats can also be used for
4705 \begin_layout Standard
4706 As LyX does not yet fully support captions in longtables, a hack is needed
4710 \begin_layout Enumerate
4716 \begin_layout Enumerate
4717 Mark the first row and disable its upper line.
4720 \begin_layout Enumerate
4721 Insert a caption via the menu
4723 Insert\SpecialChar \menuseparator
4726 into the first table cell.
4728 You can also add a short title for the caption.
4731 \begin_layout Enumerate
4733 \begin_inset Quotes eld
4745 \begin_inset Quotes erd
4748 as ERT behind the caption.
4751 \begin_layout Standard
4752 A short title that will appear in the LOT instead of the full title.
4761 behind the caption omits the vertical lines between the following cells
4763 The first table row is now only a dummy row for the caption, the actual
4764 table starts with the second row.
4767 \begin_layout Standard
4768 Here is a short longtable to see how it works:
4771 \begin_layout Standard
4772 \begin_inset Tabular
4773 <lyxtabular version="3" rows="6" columns="5">
4774 <features islongtable="true">
4775 <column alignment="center" valignment="top" leftline="true" width="0">
4776 <column alignment="center" valignment="top" leftline="true" width="0">
4777 <column alignment="center" valignment="top" leftline="true" width="0">
4778 <column alignment="center" valignment="top" leftline="true" width="0">
4779 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4784 \begin_layout Standard
4785 \begin_inset Caption
4787 \begin_layout Standard
4788 Longtable with caption
4792 \begin_layout Standard
4807 \begin_layout Standard
4823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4826 \begin_layout Standard
4832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4835 \begin_layout Standard
4841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4844 \begin_layout Standard
4850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4853 \begin_layout Standard
4860 <row topline="true">
4861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4864 \begin_layout Standard
4870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4873 \begin_layout Standard
4879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4882 \begin_layout Standard
4888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4891 \begin_layout Standard
4897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4900 \begin_layout Standard
4907 <row topline="true">
4908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4911 \begin_layout Standard
4917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4920 \begin_layout Standard
4926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4929 \begin_layout Standard
4935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4938 \begin_layout Standard
4944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4947 \begin_layout Standard
4954 <row topline="true">
4955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4958 \begin_layout Standard
4964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4967 \begin_layout Standard
4973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4976 \begin_layout Standard
4982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4985 \begin_layout Standard
4991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4994 \begin_layout Standard
5001 <row topline="true">
5002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5005 \begin_layout Standard
5011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5014 \begin_layout Standard
5020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5023 \begin_layout Standard
5029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5032 \begin_layout Standard
5038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5041 \begin_layout Standard
5048 <row topline="true" bottomline="true">
5049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5052 \begin_layout Standard
5058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5061 \begin_layout Standard
5067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5070 \begin_layout Standard
5076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5079 \begin_layout Standard
5085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5088 \begin_layout Standard
5102 \begin_layout Standard
5103 \begin_inset VSpace medskip
5107 \begin_inset Note Greyedout
5110 \begin_layout Standard
5115 The table number is increased for every longtable, also if you didn't set
5117 For this reason you could have the case that e.g.
5119 2.4 follows on Table\InsetSpace ~
5120 2.1 in the list of tables if there are two longtables
5122 To avoid this you can add the following command in ERT behind every longtable
5126 \begin_layout Standard
5131 addtocounter{table}{-1}
5139 \begin_layout Standard
5140 \begin_inset Note Greyedout
5143 \begin_layout Standard
5148 If you are using the LaTeX-package
5153 \begin_inset LatexCommand index
5154 name "LaTeX-packages ! hyperref"
5158 to link cross-references, the link to a longtable caption will always point
5159 to the beginning of the document.
5167 \begin_layout Subsubsection
5168 References to Longtables
5169 \begin_inset LatexCommand index
5170 name "Longtables ! References"
5177 \begin_layout Standard
5178 \begin_inset Tabular
5179 <lyxtabular version="3" rows="6" columns="5">
5180 <features islongtable="true">
5181 <column alignment="center" valignment="top" leftline="true" width="0">
5182 <column alignment="center" valignment="top" leftline="true" width="0">
5183 <column alignment="center" valignment="top" leftline="true" width="0">
5184 <column alignment="center" valignment="top" leftline="true" width="0">
5185 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5190 \begin_layout Standard
5191 \begin_inset Caption
5193 \begin_layout Standard
5194 Referenced longtable
5195 \begin_inset LatexCommand label
5196 name "tab:RefExample"
5209 \begin_layout Standard
5225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5228 \begin_layout Standard
5234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5237 \begin_layout Standard
5243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5246 \begin_layout Standard
5252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5255 \begin_layout Standard
5262 <row topline="true">
5263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5266 \begin_layout Standard
5272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5275 \begin_layout Standard
5281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5284 \begin_layout Standard
5290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5293 \begin_layout Standard
5299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5302 \begin_layout Standard
5309 <row topline="true">
5310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5313 \begin_layout Standard
5319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5322 \begin_layout Standard
5328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5331 \begin_layout Standard
5337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5340 \begin_layout Standard
5346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5349 \begin_layout Standard
5356 <row topline="true">
5357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5360 \begin_layout Standard
5366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5369 \begin_layout Standard
5375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5378 \begin_layout Standard
5384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5387 \begin_layout Standard
5393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5396 \begin_layout Standard
5403 <row topline="true">
5404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5407 \begin_layout Standard
5413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5416 \begin_layout Standard
5422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5425 \begin_layout Standard
5431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5434 \begin_layout Standard
5440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5443 \begin_layout Standard
5450 <row topline="true" bottomline="true">
5451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5454 \begin_layout Standard
5460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5463 \begin_layout Standard
5469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5472 \begin_layout Standard
5478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5481 \begin_layout Standard
5487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5490 \begin_layout Standard
5504 \begin_layout Standard
5505 To reference a longtable, insert a label into the caption.
5506 Note that you have to add the label prefix
5507 \begin_inset Quotes eld
5515 \begin_inset Quotes eld
5518 manually in the label field.
5521 \begin_layout Standard
5522 This is a reference to Table\InsetSpace ~
5524 \begin_inset LatexCommand ref
5525 reference "tab:RefExample"
5532 \begin_layout Standard
5533 The caption layout can be set together with all other caption of your document
5534 using the LaTeX-package
5539 \begin_inset LatexCommand index
5540 name "LaTeX-packages ! caption"
5544 , see section\InsetSpace ~
5546 \begin_inset LatexCommand ref
5547 reference "sec:Caption-Formatting"
5554 \begin_layout Subsubsection
5556 \begin_inset LatexCommand index
5557 name "Longtables ! Caption Width"
5564 \begin_layout Standard
5565 The maximal width of of caption lines is defined by the length
5572 Its default value is 4\InsetSpace \thinspace{}
5574 To change it add the following command to your document preamble or as
5575 ERT into your document before the longtable that should be affected
5578 \begin_layout Standard
5588 \begin_layout Standard
5589 where the width could have one of the units listed in appendix\InsetSpace ~
5591 \begin_inset LatexCommand ref
5592 reference "cha:Units-available-in"
5599 \begin_layout Standard
5600 The following tables show the difference:
5603 \begin_layout Standard
5604 \begin_inset Tabular
5605 <lyxtabular version="3" rows="6" columns="5">
5606 <features islongtable="true">
5607 <column alignment="center" valignment="top" leftline="true" width="0">
5608 <column alignment="center" valignment="top" leftline="true" width="0">
5609 <column alignment="center" valignment="top" leftline="true" width="0">
5610 <column alignment="center" valignment="top" leftline="true" width="0">
5611 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5616 \begin_layout Standard
5617 \begin_inset Caption
5619 \begin_layout Standard
5620 long full title with default width long full title with default width long
5621 full title with default width
5625 \begin_layout Standard
5626 caption with default width
5640 \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
5683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5686 \begin_layout Standard
5693 <row topline="true">
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" usebox="none">
5724 \begin_layout Standard
5730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5733 \begin_layout Standard
5740 <row topline="true">
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" usebox="none">
5771 \begin_layout Standard
5777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5780 \begin_layout Standard
5787 <row topline="true">
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" usebox="none">
5818 \begin_layout Standard
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5827 \begin_layout Standard
5834 <row topline="true">
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" usebox="none">
5865 \begin_layout Standard
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5874 \begin_layout Standard
5881 <row topline="true" bottomline="true">
5882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5885 \begin_layout Standard
5891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5894 \begin_layout Standard
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Standard
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Standard
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5921 \begin_layout Standard
5935 \begin_layout Standard
5939 \begin_layout Standard
5951 \begin_inset Tabular
5952 <lyxtabular version="3" rows="6" columns="5">
5953 <features islongtable="true">
5954 <column alignment="center" valignment="top" leftline="true" width="0">
5955 <column alignment="center" valignment="top" leftline="true" width="0">
5956 <column alignment="center" valignment="top" leftline="true" width="0">
5957 <column alignment="center" valignment="top" leftline="true" width="0">
5958 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5963 \begin_layout Standard
5964 \begin_inset Caption
5966 \begin_layout Standard
5967 long full title with width set to 5\InsetSpace \thinspace{}
5968 cm long full title with width set to
5969 5\InsetSpace \thinspace{}
5970 cm long full title with width set to 5\InsetSpace \thinspace{}
5975 \begin_layout Standard
5976 caption with width\InsetSpace \thinspace{}
5977 =\InsetSpace \thinspace{}
5978 5\InsetSpace \thinspace{}
5993 \begin_layout Standard
6009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6012 \begin_layout Standard
6018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6021 \begin_layout Standard
6027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6030 \begin_layout Standard
6036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6039 \begin_layout Standard
6046 <row topline="true">
6047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6050 \begin_layout Standard
6056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6059 \begin_layout Standard
6065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6068 \begin_layout Standard
6074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6077 \begin_layout Standard
6083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6086 \begin_layout Standard
6093 <row topline="true">
6094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6097 \begin_layout Standard
6103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6106 \begin_layout Standard
6112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6115 \begin_layout Standard
6121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6124 \begin_layout Standard
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6133 \begin_layout Standard
6140 <row topline="true">
6141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6144 \begin_layout Standard
6150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6153 \begin_layout Standard
6159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6162 \begin_layout Standard
6168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6171 \begin_layout Standard
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6180 \begin_layout Standard
6187 <row topline="true">
6188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6191 \begin_layout Standard
6197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6200 \begin_layout Standard
6206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6209 \begin_layout Standard
6215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6218 \begin_layout Standard
6224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6227 \begin_layout Standard
6234 <row topline="true" bottomline="true">
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6238 \begin_layout Standard
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Standard
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6256 \begin_layout Standard
6262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6265 \begin_layout Standard
6271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6274 \begin_layout Standard
6288 \begin_layout Standard
6292 \begin_layout Standard
6306 \begin_layout Standard
6307 \begin_inset Note Greyedout
6310 \begin_layout Standard
6315 When the LaTeX-package
6320 \begin_inset LatexCommand index
6321 name "LaTeX-packages ! caption"
6325 is used, as in this document, the full page width is used for the caption
6326 when you use the default value of 4\InsetSpace \thinspace{}
6334 To get in this case exactly a 4\InsetSpace \thinspace{}
6335 in wide caption, you can either use a value
6336 slightly different from 4.0\InsetSpace \thinspace{}
6338 3.99\InsetSpace \thinspace{}
6339 in, or the LaTeX-command
6343 captionsetup{width=value}
6345 that is provided by the
6357 \begin_layout Subsubsection
6358 Different Captions for Table Pages
6359 \begin_inset LatexCommand index
6360 name "Longtables ! Different Captions for Pages"
6367 \begin_layout Standard
6368 When the other captions should differ from the one of the first table page,
6369 insert a caption with a non-empty short title in a dummy caption row marked
6371 The caption used for the other table pages is inserted as caption without
6372 a short title in a dummy caption row that is marked as main header.
6373 When this caption shouldn't include the table number, use the command
6376 \begin_layout Standard
6381 caption*{caption text}
6384 \begin_layout Standard
6385 instead of LyX's caption box.
6386 The label to reference the table is inserted into the caption of the first
6390 \begin_inset LatexCommand ref
6391 reference "tab:DiffCaptions"
6395 is an example for a longtable with different heading where the second caption
6396 doesn't include the table number.
6399 \begin_layout Standard
6401 \begin_inset Tabular
6402 <lyxtabular version="3" rows="60" columns="3">
6403 <features islongtable="true">
6404 <column alignment="left" valignment="top" leftline="true" width="0cm">
6405 <column alignment="left" valignment="top" rightline="true" width="0pt">
6406 <column alignment="right" valignment="top" rightline="true" width="0pt">
6407 <row endfirsthead="true">
6408 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6411 \begin_layout Standard
6412 \begin_inset Caption
6414 \begin_layout Standard
6416 \begin_inset LatexCommand label
6417 name "tab:DiffCaptions"
6425 \begin_layout Standard
6440 \begin_layout Standard
6456 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6459 \begin_layout Standard
6465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6468 \begin_layout Standard
6475 <row topline="true" bottomline="true" endfirsthead="true">
6476 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6479 \begin_layout Standard
6482 Example Phone List (ignore the names)
6487 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6490 \begin_layout Standard
6496 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6499 \begin_layout Standard
6506 <row topline="true" bottomline="true" endfirsthead="true">
6507 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6510 \begin_layout Standard
6518 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6521 \begin_layout Standard
6527 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6530 \begin_layout Standard
6539 <row bottomline="true" endhead="true">
6540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6543 \begin_layout Standard
6547 \begin_layout Standard
6551 caption*{Continued Example Phone List}
6565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6568 \begin_layout Standard
6574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6577 \begin_layout Standard
6584 <row topline="true" bottomline="true" endhead="true">
6585 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6588 \begin_layout Standard
6596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6599 \begin_layout Standard
6605 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6608 \begin_layout Standard
6615 <row topline="true" bottomline="true" endhead="true">
6616 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6619 \begin_layout Standard
6627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6630 \begin_layout Standard
6636 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6639 \begin_layout Standard
6648 <row topline="true" bottomline="true" endfoot="true">
6649 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6652 \begin_layout Standard
6653 continued on next page
6658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6661 \begin_layout Standard
6667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6670 \begin_layout Standard
6678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6681 \begin_layout Standard
6689 <cell alignment="center" valignment="top" topline="true" usebox="none">
6692 \begin_layout Standard
6698 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6701 \begin_layout Standard
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Standard
6720 <cell alignment="center" valignment="top" topline="true" usebox="none">
6723 \begin_layout Standard
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6732 \begin_layout Standard
6740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6743 \begin_layout Standard
6751 <cell alignment="center" valignment="top" topline="true" usebox="none">
6754 \begin_layout Standard
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6763 \begin_layout Standard
6771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6774 \begin_layout Standard
6782 <cell alignment="center" valignment="top" topline="true" usebox="none">
6785 \begin_layout Standard
6791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6794 \begin_layout Standard
6802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6805 \begin_layout Standard
6813 <cell alignment="center" valignment="top" topline="true" usebox="none">
6816 \begin_layout Standard
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6825 \begin_layout Standard
6833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6836 \begin_layout Standard
6844 <cell alignment="center" valignment="top" topline="true" usebox="none">
6847 \begin_layout Standard
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6856 \begin_layout Standard
6864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6867 \begin_layout Standard
6875 <cell alignment="center" valignment="top" topline="true" usebox="none">
6878 \begin_layout Standard
6884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6887 \begin_layout Standard
6895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6898 \begin_layout Standard
6906 <cell alignment="center" valignment="top" topline="true" usebox="none">
6909 \begin_layout Standard
6915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6918 \begin_layout Standard
6926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6929 \begin_layout Standard
6937 <cell alignment="center" valignment="top" topline="true" usebox="none">
6940 \begin_layout Standard
6946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6949 \begin_layout Standard
6957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6960 \begin_layout Standard
6968 <cell alignment="center" valignment="top" topline="true" usebox="none">
6971 \begin_layout Standard
6977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6980 \begin_layout Standard
6988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6991 \begin_layout Standard
6999 <cell alignment="center" valignment="top" topline="true" usebox="none">
7002 \begin_layout Standard
7008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7011 \begin_layout Standard
7019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7022 \begin_layout Standard
7030 <cell alignment="center" valignment="top" topline="true" usebox="none">
7033 \begin_layout Standard
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7042 \begin_layout Standard
7050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7053 \begin_layout Standard
7061 <cell alignment="center" valignment="top" topline="true" usebox="none">
7064 \begin_layout Standard
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7073 \begin_layout Standard
7081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7084 \begin_layout Standard
7092 <cell alignment="center" valignment="top" topline="true" usebox="none">
7095 \begin_layout Standard
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7104 \begin_layout Standard
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Standard
7124 \begin_layout Standard
7135 <cell alignment="center" valignment="top" topline="true" usebox="none">
7138 \begin_layout Standard
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7147 \begin_layout Standard
7155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7158 \begin_layout Standard
7166 <cell alignment="center" valignment="top" topline="true" usebox="none">
7169 \begin_layout Standard
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7178 \begin_layout Standard
7186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7189 \begin_layout Standard
7197 <cell alignment="center" valignment="top" topline="true" usebox="none">
7200 \begin_layout Standard
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7209 \begin_layout Standard
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7220 \begin_layout Standard
7228 <cell alignment="center" valignment="top" topline="true" usebox="none">
7231 \begin_layout Standard
7237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7240 \begin_layout Standard
7248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7251 \begin_layout Standard
7259 <cell alignment="center" valignment="top" topline="true" usebox="none">
7262 \begin_layout Standard
7268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7271 \begin_layout Standard
7279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7282 \begin_layout Standard
7290 <cell alignment="center" valignment="top" topline="true" usebox="none">
7293 \begin_layout Standard
7299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7302 \begin_layout Standard
7310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7313 \begin_layout Standard
7321 <cell alignment="center" valignment="top" topline="true" usebox="none">
7324 \begin_layout Standard
7330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7333 \begin_layout Standard
7341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7344 \begin_layout Standard
7352 <cell alignment="center" valignment="top" topline="true" usebox="none">
7355 \begin_layout Standard
7361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7364 \begin_layout Standard
7372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7375 \begin_layout Standard
7383 <cell alignment="center" valignment="top" topline="true" usebox="none">
7386 \begin_layout Standard
7392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7395 \begin_layout Standard
7403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7406 \begin_layout Standard
7414 <cell alignment="center" valignment="top" topline="true" usebox="none">
7417 \begin_layout Standard
7423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7426 \begin_layout Standard
7434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7437 \begin_layout Standard
7445 <cell alignment="center" valignment="top" topline="true" usebox="none">
7448 \begin_layout Standard
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7457 \begin_layout Standard
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7468 \begin_layout Standard
7476 <cell alignment="center" valignment="top" topline="true" usebox="none">
7479 \begin_layout Standard
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7488 \begin_layout Standard
7496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7499 \begin_layout Standard
7507 <cell alignment="center" valignment="top" topline="true" usebox="none">
7510 \begin_layout Standard
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7519 \begin_layout Standard
7527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7530 \begin_layout Standard
7538 <cell alignment="center" valignment="top" topline="true" usebox="none">
7541 \begin_layout Standard
7547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7550 \begin_layout Standard
7558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7561 \begin_layout Standard
7569 <cell alignment="center" valignment="top" topline="true" usebox="none">
7572 \begin_layout Standard
7578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7581 \begin_layout Standard
7589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7592 \begin_layout Standard
7600 <cell alignment="center" valignment="top" topline="true" usebox="none">
7603 \begin_layout Standard
7609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Standard
7619 <row bottomline="true">
7620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7623 \begin_layout Standard
7631 <cell alignment="center" valignment="top" topline="true" usebox="none">
7634 \begin_layout Standard
7640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7643 \begin_layout Standard
7650 <row bottomline="true">
7651 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7654 \begin_layout Standard
7660 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7663 \begin_layout Standard
7669 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7672 \begin_layout Standard
7680 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7683 \begin_layout Standard
7691 <cell alignment="center" valignment="top" topline="true" usebox="none">
7694 \begin_layout Standard
7700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7703 \begin_layout Standard
7711 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7714 \begin_layout Standard
7722 <cell alignment="center" valignment="top" topline="true" usebox="none">
7725 \begin_layout Standard
7731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7734 \begin_layout Standard
7742 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7745 \begin_layout Standard
7753 <cell alignment="center" valignment="top" topline="true" usebox="none">
7756 \begin_layout Standard
7762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7765 \begin_layout Standard
7773 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7776 \begin_layout Standard
7784 <cell alignment="center" valignment="top" topline="true" usebox="none">
7787 \begin_layout Standard
7793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7796 \begin_layout Standard
7804 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7807 \begin_layout Standard
7815 <cell alignment="center" valignment="top" topline="true" usebox="none">
7818 \begin_layout Standard
7824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7827 \begin_layout Standard
7835 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7838 \begin_layout Standard
7846 <cell alignment="center" valignment="top" topline="true" usebox="none">
7849 \begin_layout Standard
7855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7858 \begin_layout Standard
7866 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7869 \begin_layout Standard
7877 <cell alignment="center" valignment="top" topline="true" usebox="none">
7880 \begin_layout Standard
7886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7889 \begin_layout Standard
7897 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7900 \begin_layout Standard
7908 <cell alignment="center" valignment="top" topline="true" usebox="none">
7911 \begin_layout Standard
7917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7920 \begin_layout Standard
7928 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7931 \begin_layout Standard
7939 <cell alignment="center" valignment="top" topline="true" usebox="none">
7942 \begin_layout Standard
7948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7951 \begin_layout Standard
7959 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7962 \begin_layout Standard
7970 <cell alignment="center" valignment="top" topline="true" usebox="none">
7973 \begin_layout Standard
7979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7982 \begin_layout Standard
7990 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7993 \begin_layout Standard
8001 <cell alignment="center" valignment="top" topline="true" usebox="none">
8004 \begin_layout Standard
8010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8013 \begin_layout Standard
8021 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8024 \begin_layout Standard
8032 <cell alignment="center" valignment="top" topline="true" usebox="none">
8035 \begin_layout Standard
8041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8044 \begin_layout Standard
8052 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8055 \begin_layout Standard
8063 <cell alignment="center" valignment="top" topline="true" usebox="none">
8066 \begin_layout Standard
8072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8075 \begin_layout Standard
8083 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8086 \begin_layout Standard
8094 <cell alignment="center" valignment="top" topline="true" usebox="none">
8097 \begin_layout Standard
8103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8106 \begin_layout Standard
8114 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8117 \begin_layout Standard
8125 <cell alignment="center" valignment="top" topline="true" usebox="none">
8128 \begin_layout Standard
8134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8137 \begin_layout Standard
8145 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8148 \begin_layout Standard
8156 <cell alignment="center" valignment="top" topline="true" usebox="none">
8159 \begin_layout Standard
8165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8168 \begin_layout Standard
8176 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8179 \begin_layout Standard
8187 <cell alignment="center" valignment="top" topline="true" usebox="none">
8190 \begin_layout Standard
8196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8199 \begin_layout Standard
8207 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8210 \begin_layout Standard
8218 <cell alignment="center" valignment="top" topline="true" usebox="none">
8221 \begin_layout Standard
8227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8230 \begin_layout Standard
8238 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8241 \begin_layout Standard
8249 <cell alignment="center" valignment="top" topline="true" usebox="none">
8252 \begin_layout Standard
8258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8261 \begin_layout Standard
8268 <row bottomline="true">
8269 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8272 \begin_layout Standard
8280 <cell alignment="center" valignment="top" topline="true" usebox="none">
8283 \begin_layout Standard
8289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8292 \begin_layout Standard
8299 <row bottomline="true" endlastfoot="true">
8300 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8303 \begin_layout Standard
8309 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8312 \begin_layout Standard
8318 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8321 \begin_layout Standard
8335 \begin_layout Section
8336 Special Longtable Issues
8337 \begin_inset LatexCommand label
8338 name "sec:Special-Longtable-Issues"
8345 \begin_layout Subsection
8346 Longtable Calculation
8347 \begin_inset LatexCommand index
8348 name "Longtables ! Calculation"
8355 \begin_layout Standard
8356 LaTeX calculates the height of table pages and their page breaks using so
8358 Chunks are pieces of the tables that are at once in LaTeX's memory.
8359 The default value is historically set to only 20 table rows.
8360 If you are using longtables with many pages this may slow down the creation
8362 You can safely increase the chunk size to values of 100-1000 by adding
8363 this command line to your document preamble:
8366 \begin_layout Standard
8371 setcounter{LTchunksize}{100}
8374 \begin_layout Subsection
8375 Floats and Longtables
8376 \begin_inset LatexCommand index
8377 name "Longtables ! Floats"
8384 \begin_layout Standard
8385 There might be problems when a float appears on the same page where a longtable
8387 To avoid such situation, add the command
8393 as ERT before your longtable.
8396 \begin_layout Subsection
8398 \begin_inset LatexCommand index
8399 name "Longtables ! Forced Page Breaks"
8406 \begin_layout Standard
8407 By default tables are only broken between rows.
8408 If you have a cell with multiples lines and want to have a page break within
8409 the cell, insert the new line command
8410 \begin_inset Quotes eld
8422 \begin_inset Quotes erd
8425 as ERT at this point of the cell where it should be broken.
8434 command you have to insert in ERT so many
8435 \begin_inset Quotes eld
8443 \begin_inset Quotes erd
8446 characters like the number of the following table columns.
8451 is the character to separate table cells.
8452 Write in ERT after each
8456 the content of the corresponding following cell and delete the content
8467 command, insert so many
8471 characters like the number of table columns before the current column.
8472 In Table\InsetSpace ~
8474 \begin_inset LatexCommand ref
8475 reference "tab:ForcedPagebreak"
8479 the cell that should be broken is in the second column followed by another
8481 Therefore the following command was inserted in the cell as ERT behind
8483 \begin_inset Quotes eld
8491 \begin_inset Quotes erd
8497 \begin_layout Standard
8509 \begin_layout Standard
8511 \begin_inset Quotes eld
8515 \begin_inset Quotes erd
8518 in the third columns of the row was deleted.
8519 If your footer row of the longtable has for a certain reason no upper line
8520 but you would have a horizontal line where the cell is broken, use this
8524 \begin_layout Standard
8538 \begin_layout Standard
8539 When the cell to be broken is in the last column, the command
8542 \begin_layout Standard
8549 parf\SpecialChar \textcompwordmark{}
8553 \begin_layout Standard
8554 must be inserted as ERT at the beginning of the cell.
8555 This assures that the part of the cell that will be displayed on the new
8556 page appears with the full width.
8559 \begin_layout Standard
8561 \begin_inset Tabular
8562 <lyxtabular version="3" rows="39" columns="3">
8563 <features islongtable="true">
8564 <column alignment="left" valignment="top" leftline="true" width="0cm">
8565 <column alignment="left" valignment="top" rightline="true" width="3cm">
8566 <column alignment="right" valignment="top" rightline="true" width="0pt">
8567 <row endfirsthead="true">
8568 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8571 \begin_layout Standard
8572 \begin_inset Caption
8574 \begin_layout Standard
8575 Table with forced page break in table cell
8576 \begin_inset LatexCommand label
8577 name "tab:ForcedPagebreak"
8585 \begin_layout Standard
8586 Table with forced page break in table cell
8600 \begin_layout Standard
8616 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8619 \begin_layout Standard
8625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8628 \begin_layout Standard
8635 <row topline="true" bottomline="true" endfirsthead="true">
8636 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8639 \begin_layout Standard
8642 Example Phone List (ignore the names)
8647 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8650 \begin_layout Standard
8656 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8659 \begin_layout Standard
8666 <row topline="true" bottomline="true" endfirsthead="true">
8667 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8670 \begin_layout Standard
8678 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8681 \begin_layout Standard
8687 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8690 \begin_layout Standard
8699 <row bottomline="true" endhead="true">
8700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8703 \begin_layout Standard
8707 \begin_layout Standard
8711 caption*{Continued table with forced page break in table cell}
8725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8728 \begin_layout Standard
8734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8737 \begin_layout Standard
8744 <row topline="true" bottomline="true" endhead="true">
8745 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8748 \begin_layout Standard
8756 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8759 \begin_layout Standard
8765 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8768 \begin_layout Standard
8775 <row topline="true" bottomline="true" endhead="true">
8776 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8779 \begin_layout Standard
8787 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8790 \begin_layout Standard
8796 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8799 \begin_layout Standard
8808 <row topline="true" bottomline="true" endfoot="true">
8809 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8812 \begin_layout Standard
8813 continued on next page
8818 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8821 \begin_layout Standard
8827 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8830 \begin_layout Standard
8838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8841 \begin_layout Standard
8849 <cell alignment="center" valignment="top" topline="true" usebox="none">
8852 \begin_layout Standard
8858 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8861 \begin_layout Standard
8869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8872 \begin_layout Standard
8880 <cell alignment="center" valignment="top" topline="true" usebox="none">
8883 \begin_layout Standard
8889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8892 \begin_layout Standard
8900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8903 \begin_layout Standard
8911 <cell alignment="center" valignment="top" topline="true" usebox="none">
8914 \begin_layout Standard
8920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8923 \begin_layout Standard
8931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8934 \begin_layout Standard
8942 <cell alignment="center" valignment="top" topline="true" usebox="none">
8945 \begin_layout Standard
8951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8954 \begin_layout Standard
8962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8965 \begin_layout Standard
8973 <cell alignment="center" valignment="top" topline="true" usebox="none">
8976 \begin_layout Standard
8982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8985 \begin_layout Standard
8993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8996 \begin_layout Standard
9004 <cell alignment="center" valignment="top" topline="true" usebox="none">
9007 \begin_layout Standard
9013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9016 \begin_layout Standard
9024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9027 \begin_layout Standard
9035 <cell alignment="center" valignment="top" topline="true" usebox="none">
9038 \begin_layout Standard
9044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9047 \begin_layout Standard
9055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9058 \begin_layout Standard
9066 <cell alignment="center" valignment="top" topline="true" usebox="none">
9069 \begin_layout Standard
9075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9078 \begin_layout Standard
9086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9089 \begin_layout Standard
9097 <cell alignment="center" valignment="top" topline="true" usebox="none">
9100 \begin_layout Standard
9106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9109 \begin_layout Standard
9117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9120 \begin_layout Standard
9128 <cell alignment="center" valignment="top" topline="true" usebox="none">
9131 \begin_layout Standard
9137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9140 \begin_layout Standard
9148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9151 \begin_layout Standard
9159 <cell alignment="center" valignment="top" topline="true" usebox="none">
9162 \begin_layout Standard
9168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9171 \begin_layout Standard
9179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9182 \begin_layout Standard
9190 <cell alignment="center" valignment="top" topline="true" usebox="none">
9193 \begin_layout Standard
9199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9202 \begin_layout Standard
9210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9213 \begin_layout Standard
9221 <cell alignment="center" valignment="top" topline="true" usebox="none">
9224 \begin_layout Standard
9230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9233 \begin_layout Standard
9241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9244 \begin_layout Standard
9252 <cell alignment="center" valignment="top" topline="true" usebox="none">
9255 \begin_layout Standard
9261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9264 \begin_layout Standard
9272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9275 \begin_layout Standard
9283 <cell alignment="center" valignment="top" topline="true" usebox="none">
9286 \begin_layout Standard
9292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9295 \begin_layout Standard
9303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9306 \begin_layout Standard
9314 <cell alignment="center" valignment="top" topline="true" usebox="none">
9317 \begin_layout Standard
9323 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9326 \begin_layout Standard
9334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9337 \begin_layout Standard
9345 <cell alignment="center" valignment="top" topline="true" usebox="none">
9348 \begin_layout Standard
9354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9357 \begin_layout Standard
9365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9368 \begin_layout Standard
9376 <cell alignment="center" valignment="top" topline="true" usebox="none">
9379 \begin_layout Standard
9385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9388 \begin_layout Standard
9396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9399 \begin_layout Standard
9407 <cell alignment="center" valignment="top" topline="true" usebox="none">
9410 \begin_layout Standard
9416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9419 \begin_layout Standard
9427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9430 \begin_layout Standard
9438 <cell alignment="center" valignment="top" topline="true" usebox="none">
9441 \begin_layout Standard
9447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9450 \begin_layout Standard
9458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9461 \begin_layout Standard
9469 <cell alignment="center" valignment="top" topline="true" usebox="none">
9472 \begin_layout Standard
9478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9481 \begin_layout Standard
9489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9492 \begin_layout Standard
9500 <cell alignment="center" valignment="top" topline="true" usebox="none">
9503 \begin_layout Standard
9509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9512 \begin_layout Standard
9520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9523 \begin_layout Standard
9531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9534 \begin_layout Standard
9536 Fürst von Montecompatri, 11.
9537 Fürst von Sulmona und Vivaro, 10.
9538 Fürst von Rossano, 5.
9539 Herzog von Canemorte, 11.
9540 Herzog von Palombara, 5.
9541 Herzog von Castelchiodato,
9545 \begin_layout Standard
9554 \begin_layout Standard
9562 Herzog von Poggionativo, 11.
9563 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9564 Graf von Valinfreda, 11.
9565 Baron von Cropalati, 11.
9566 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9574 \begin_layout Standard
9582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9585 \begin_layout Standard
9593 <cell alignment="center" valignment="top" topline="true" usebox="none">
9596 \begin_layout Standard
9602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9605 \begin_layout Standard
9613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9616 \begin_layout Standard
9624 <cell alignment="center" valignment="top" topline="true" usebox="none">
9627 \begin_layout Standard
9633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9636 \begin_layout Standard
9644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9647 \begin_layout Standard
9655 <cell alignment="center" valignment="top" topline="true" usebox="none">
9658 \begin_layout Standard
9664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9667 \begin_layout Standard
9675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9678 \begin_layout Standard
9686 <cell alignment="center" valignment="top" topline="true" usebox="none">
9689 \begin_layout Standard
9695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9698 \begin_layout Standard
9706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9709 \begin_layout Standard
9717 <cell alignment="center" valignment="top" topline="true" usebox="none">
9720 \begin_layout Standard
9726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9729 \begin_layout Standard
9737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9740 \begin_layout Standard
9748 <cell alignment="center" valignment="top" topline="true" usebox="none">
9751 \begin_layout Standard
9757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9760 \begin_layout Standard
9768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9771 \begin_layout Standard
9779 <cell alignment="center" valignment="top" topline="true" usebox="none">
9782 \begin_layout Standard
9788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9791 \begin_layout Standard
9798 <row bottomline="true">
9799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9802 \begin_layout Standard
9810 <cell alignment="center" valignment="top" topline="true" usebox="none">
9813 \begin_layout Standard
9819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9822 \begin_layout Standard
9829 <row endlastfoot="true">
9830 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9833 \begin_layout Standard
9839 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9842 \begin_layout Standard
9848 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9851 \begin_layout Standard
9865 \begin_layout Section
9866 Multiple Lines Columns and Rows
9869 \begin_layout Subsection
9870 Multiple Lines in Table Cells
9871 \begin_inset LatexCommand label
9872 name "sub:Multiple-Lines-in"
9877 \begin_inset LatexCommand index
9878 name "Multiple Lines in Table Cells"
9883 \begin_inset LatexCommand index
9884 name "Table ! Linebreaks"
9891 \begin_layout Standard
9893 \begin_inset Float table
9899 \begin_layout Standard
9900 \begin_inset Caption
9902 \begin_layout Standard
9903 \begin_inset LatexCommand label
9904 name "tab:Table-with-multiple"
9908 Table with multiple lines in cells
9916 \begin_layout Standard
9918 \begin_inset Tabular
9919 <lyxtabular version="3" rows="3" columns="3">
9921 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9922 <column alignment="center" valignment="middle" leftline="true" width="0">
9923 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9924 <row topline="true">
9925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9928 \begin_layout Standard
9933 \begin_layout Standard
9947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9950 \begin_layout Standard
9956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9959 \begin_layout Standard
9966 <row topline="true">
9967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9970 \begin_layout Standard
9976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9979 \begin_layout Standard
9985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9988 \begin_layout Standard
9995 <row topline="true" bottomline="true">
9996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9999 \begin_layout Standard
10005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10008 \begin_layout Standard
10014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10017 \begin_layout Standard
10036 \begin_layout Standard
10037 Adjusting a fixed width for a column, enables to enter text as a paragraph
10038 with multiple lines and hyphenations.
10041 \begin_layout Standard
10042 To produce Table\InsetSpace ~
10044 \begin_inset LatexCommand ref
10045 reference "tab:Table-with-multiple"
10049 , create a 3×3 table, mark the first cell and right-click on it.
10050 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10051 cm and choose centered
10052 for the vertical and horizontal alignment.
10053 The vertical alignment is used for all cells of the row.
10054 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10055 cm, only one line will appear.
10056 To get two lines, we add a line break with the command
10059 \begin_layout Standard
10067 \begin_layout Standard
10069 If the text is wider than the set cell width it will automatically be broken
10073 \begin_layout Standard
10074 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10075 by LaTeX if it is the first entry.
10076 Therefore you need to insert something, to make the word not being the
10077 first entry: Add the command
10080 \begin_layout Standard
10088 \begin_layout Standard
10089 in ERT before the word.
10090 As the space is zero, it doesn't change the output.
10093 \begin_inset LatexCommand ref
10094 reference "tab:Table-with-and"
10101 \begin_layout Standard
10102 \begin_inset Float table
10108 \begin_layout Standard
10109 \begin_inset Caption
10111 \begin_layout Standard
10112 \begin_inset LatexCommand label
10113 name "tab:Table-with-and"
10117 Table with and without hyphenation
10125 \begin_layout Standard
10129 \begin_inset Tabular
10130 <lyxtabular version="3" rows="3" columns="3">
10132 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10133 <column alignment="center" valignment="middle" leftline="true" width="0">
10134 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10135 <row topline="true">
10136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10139 \begin_layout Standard
10140 verylongtablecellword
10145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10148 \begin_layout Standard
10154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10157 \begin_layout Standard
10164 <row topline="true">
10165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10168 \begin_layout Standard
10174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10177 \begin_layout Standard
10183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10186 \begin_layout Standard
10193 <row topline="true" bottomline="true">
10194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10197 \begin_layout Standard
10203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10206 \begin_layout Standard
10212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10215 \begin_layout Standard
10229 \begin_inset Tabular
10230 <lyxtabular version="3" rows="3" columns="3">
10232 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10233 <column alignment="center" valignment="middle" leftline="true" width="0">
10234 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10235 <row topline="true">
10236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10239 \begin_layout Standard
10243 \begin_layout Standard
10252 verylongtablecellword
10257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10260 \begin_layout Standard
10266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10269 \begin_layout Standard
10276 <row topline="true">
10277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10280 \begin_layout Standard
10286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10289 \begin_layout Standard
10295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10298 \begin_layout Standard
10305 <row topline="true" bottomline="true">
10306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10309 \begin_layout Standard
10315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10318 \begin_layout Standard
10324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10327 \begin_layout Standard
10348 \begin_layout Standard
10354 \begin_layout Subsection
10356 \begin_inset LatexCommand label
10357 name "sub:Multicolumns"
10362 \begin_inset LatexCommand index
10363 name "Multicolumns"
10368 \begin_inset LatexCommand index
10369 name "Table ! Multicolumns"
10376 \begin_layout Subsubsection
10380 \begin_layout Standard
10381 To span a cell over multiple columns, mark as much cells within a line that
10382 should be one spanned cell and use either the table-toolbar button
10383 \begin_inset Graphics
10384 filename ../images/tabular-feature_multicolumn.xpm
10386 scaleBeforeRotation
10392 Edit\SpecialChar \menuseparator
10393 Table\SpecialChar \menuseparator
10396 , or right click on the marked cells and choose multicolumn in the appearing
10397 table dialog under the tab
10404 \begin_layout Standard
10405 Multicolumns have there own cell settings.
10406 That means changing cell borders, cell alignment, and the width only affects
10408 Here is an example table with a multicolumn cell in the first row and one
10409 in the last row without the upper border:
10412 \begin_layout Standard
10414 \begin_inset Tabular
10415 <lyxtabular version="3" rows="3" columns="4">
10416 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10417 <column alignment="center" valignment="top" leftline="true" width="0pt">
10418 <column alignment="center" valignment="middle" leftline="true" width="0">
10419 <column alignment="center" valignment="top" leftline="true" width="0in">
10420 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10421 <row topline="true" bottomline="true">
10422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10425 \begin_layout Standard
10431 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10434 \begin_layout Standard
10440 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10443 \begin_layout Standard
10449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10452 \begin_layout Standard
10459 <row topline="true">
10460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10463 \begin_layout Standard
10478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10481 \begin_layout Standard
10487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10490 \begin_layout Standard
10496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10499 \begin_layout Standard
10506 <row topline="true" bottomline="true">
10507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10510 \begin_layout Standard
10516 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10519 \begin_layout Standard
10525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10528 \begin_layout Standard
10534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10537 \begin_layout Standard
10551 \begin_layout Subsubsection
10552 Multicolumn Calculations
10553 \begin_inset LatexCommand label
10554 name "sub:Multicolumn-Calculations"
10559 \begin_inset LatexCommand index
10560 name "Multicolumns ! Calculations"
10567 \begin_layout Standard
10568 LyX supports multicolumns directly, but we have to take notice of the cell
10569 width of the columns spanned by the multicolumn cell.
10572 \begin_layout Standard
10573 \begin_inset Float table
10578 \begin_layout Standard
10579 \begin_inset Caption
10581 \begin_layout Standard
10582 \begin_inset LatexCommand label
10583 name "tab:Table-with-centered"
10587 Table with centered multicolumn text above two columns that have exactly
10588 half the width of the multicolumn cell
10589 \begin_inset OptArg
10592 \begin_layout Standard
10593 Perfect multicolumn table
10606 \begin_layout Standard
10608 \begin_inset Tabular
10609 <lyxtabular version="3" rows="3" columns="3">
10611 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10612 <column alignment="center" valignment="middle" leftline="true" width="0">
10613 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10614 <row topline="true">
10615 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10618 \begin_layout Standard
10619 multiple lines multicolumn
10624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10627 \begin_layout Standard
10633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10636 \begin_layout Standard
10643 <row topline="true">
10644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10647 \begin_layout Standard
10653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10656 \begin_layout Standard
10662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10665 \begin_layout Standard
10672 <row topline="true" bottomline="true">
10673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10676 \begin_layout Standard
10682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10685 \begin_layout Standard
10691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10694 \begin_layout Standard
10713 \begin_layout Standard
10714 To create for example Table\InsetSpace ~
10716 \begin_inset LatexCommand ref
10717 reference "tab:Table-with-centered"
10721 , mark the first two cells in the first row of a 3×3 table and right-click
10723 Now choose for this cell
10731 and a width of 2.5\InsetSpace \thinspace{}
10732 cm in the table dialog.
10733 The spanned columns should have exactly half the width of the multicolumn
10734 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10735 cm for the first column.
10736 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10738 width - width of first column).
10739 This was done for Table\InsetSpace ~
10741 \begin_inset LatexCommand ref
10742 reference "tab:Table-without-half"
10749 \begin_layout Standard
10750 \begin_inset Float table
10755 \begin_layout Standard
10756 \begin_inset Caption
10758 \begin_layout Standard
10759 \begin_inset LatexCommand label
10760 name "tab:Table-without-half"
10764 Table where the spanned table columns have not exactly half the width of
10765 the multicolumn cell
10766 \begin_inset OptArg
10769 \begin_layout Standard
10770 Imperfect multicolumn table
10783 \begin_layout Standard
10785 \begin_inset Tabular
10786 <lyxtabular version="3" rows="3" columns="3">
10788 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10789 <column alignment="center" valignment="top" leftline="true" width="0">
10790 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10791 <row topline="true" bottomline="true">
10792 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10795 \begin_layout Standard
10796 multiple lines multicolumn
10801 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10804 \begin_layout Standard
10810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10813 \begin_layout Standard
10820 <row topline="true">
10821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10824 \begin_layout Standard
10830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10833 \begin_layout Standard
10839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10842 \begin_layout Standard
10849 <row topline="true" bottomline="true">
10850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10853 \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" rightline="true" usebox="none">
10871 \begin_layout Standard
10890 \begin_layout Standard
10891 You can see that the first column has not the half width of the multicolumn
10892 cell, it is a bit bigger.
10893 The reason is that the given width of a cell
10894 \begin_inset Formula $W_{g}$
10897 is not its total width
10898 \begin_inset Formula $W_{\mathrm{tot}}$
10901 because a cell is always a bit larger than its given width.
10902 Appendix\InsetSpace ~
10904 \begin_inset LatexCommand eqref
10905 reference "cha:Explanation-of-Equation"
10909 explains it in detail.
10912 \begin_layout Standard
10913 The needed given width
10914 \begin_inset Formula $W_{g\, n}$
10921 columns are spanned can be calculated, so that each column has a total
10923 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10927 \begin_inset Formula \begin{equation}
10928 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10935 \begin_layout Standard
10936 In our case we have
10937 \begin_inset Formula $n=2$
10941 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10944 cm and the default values for the lengths, so that equation
10945 \begin_inset LatexCommand ref
10951 \begin_inset Formula \begin{equation}
10952 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10959 \begin_layout Standard
10960 To enable calculations in LaTeX, the LaTeX-package
10964 must be loaded with the document preamble line
10965 \begin_inset LatexCommand index
10966 name "LaTeX-packages ! calc"
10973 \begin_layout Standard
10981 \begin_layout Standard
10982 LyX does not allow to calculate lengths in the width-field of the table
10984 Therefore you have to format the column by inserting a LaTeX-argument in
10986 Here is an overview about the arguments:
10989 \begin_layout Itemize
10994 creates cell with a fixed width, its text is vertically top-aligned
10997 \begin_layout Itemize
11002 creates cell with a fixed width, its text is vertically centered
11005 \begin_layout Itemize
11010 creates cell with a fixed width, its text is vertically bottom-aligned
11013 \begin_layout Standard
11014 By entering a LaTeX-argument, all cell settings set in the table dialog
11018 \begin_layout Standard
11019 \begin_inset Note Greyedout
11022 \begin_layout Standard
11027 Due to a bug, LyX shows the overwritten settings anyway.
11035 \begin_layout Standard
11036 As the text should be horizontally centered, the command
11043 You can now enter the following LaTeX-argument for the first spanned column:
11046 \begin_layout Standard
11051 centering}m{1.25cm-6.2pt}
11054 \begin_layout Standard
11059 means, that the commands inside the braces are applied before the cell
11063 \begin_layout Standard
11064 Although we have chosen centered alignment for the text of the multicolumn
11065 cell, it is still left aligned.
11066 This is because LyX only applies the alignment to single columns.
11067 So we have to use for the multicolumn the LaTeX-argument
11070 \begin_layout Standard
11078 \begin_layout Subsection
11080 \begin_inset LatexCommand index
11086 \begin_inset LatexCommand index
11087 name "Table ! Multirows"
11092 \begin_inset LatexCommand index
11093 name "LaTeX-packages ! multirow"
11100 \begin_layout Standard
11101 In contrary to multicolumns multirows are not yet supported by LyX so a
11102 bit of ERT needs to be used.
11103 To use multirows load the LaTeX-package
11107 in your document preamble with the command
11110 \begin_layout Standard
11115 usepackage{multirow}
11118 \begin_layout Standard
11119 Multirows are created with the command
11122 \begin_layout Standard
11127 multirow{number of rows}{cell width}{cell entry}
11130 \begin_layout Standard
11131 To create the following table:
11134 \begin_layout Standard
11139 \begin_layout Standard
11153 \begin_inset Tabular
11154 <lyxtabular version="3" rows="3" columns="3">
11156 <column alignment="center" valignment="top" leftline="true" width="0">
11157 <column alignment="center" valignment="top" leftline="true" width="0">
11158 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11159 <row topline="true">
11160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11163 \begin_layout Standard
11169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11172 \begin_layout Standard
11178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11181 \begin_layout Standard
11188 <row topline="true">
11189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11192 \begin_layout Standard
11196 \begin_layout Standard
11200 multirow{2}{2.5cm}{
11209 \begin_layout Standard
11221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11224 \begin_layout Standard
11230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11233 \begin_layout Standard
11240 <row topline="true" bottomline="true">
11241 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11244 \begin_layout Standard
11250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11253 \begin_layout Standard
11259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11262 \begin_layout Standard
11277 \begin_layout Standard
11293 \begin_layout Standard
11294 create a 3×3 table.
11295 To get rid of the line above the last cell in the first column, the cell
11296 is marked as multicolumn and the upper border is unset.
11297 The multirow is now created in the second row of the first column by inserting
11301 \begin_layout Standard
11306 multirow{2}{2.5cm}{
11309 \begin_layout Standard
11311 According to the command parameters the multirow spans now two rows and
11312 has a width of 2.5\InsetSpace \thinspace{}
11314 The content of the multirow cell follows outside the ERT box and the command
11315 is finished with a right brace
11319 in another ERT-box behind the text.
11322 \begin_layout Standard
11329 left-aligns its content by default.
11330 To override the default, renew the command
11339 \begin_layout Standard
11351 \begin_layout Standard
11352 in ERT in the document preamble.
11353 Then all entries of multirow cells in the document are centered.
11354 If centering is only needed for several tables, you can renew the command
11355 in an ERT box just before the table instead of the preamble.
11356 If the text should be right-aligned, replace
11369 To return to left-alignment
11378 \begin_layout Section
11380 \begin_inset LatexCommand label
11381 name "sec:Formal-Tables"
11386 \begin_inset LatexCommand index
11387 name "Table ! Formal"
11394 \begin_layout Standard
11395 Tables are often typeset in books similar to Table\InsetSpace ~
11397 \begin_inset LatexCommand ref
11398 reference "tab:Example-booktabs-table"
11403 This kind of tables is called
11404 \begin_inset Quotes eld
11412 \begin_inset Quotes erd
11416 To make a table a formal table use the option
11424 tab of the table dialog.
11427 \begin_layout Standard
11428 \begin_inset Float table
11434 \begin_layout Standard
11435 \begin_inset Caption
11437 \begin_layout Standard
11438 \begin_inset LatexCommand label
11439 name "tab:Example-booktabs-table"
11443 Example booktabs-table
11451 \begin_layout Standard
11453 \begin_inset Tabular
11454 <lyxtabular version="3" rows="8" columns="4">
11455 <features booktabs="true">
11456 <column alignment="center" valignment="top" rightline="true" width="0">
11457 <column alignment="center" valignment="top" width="0">
11458 <column alignment="center" valignment="top" width="0">
11459 <column alignment="center" valignment="top" width="0">
11460 <row topline="true">
11461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11464 \begin_layout Standard
11470 <cell alignment="center" valignment="top" topline="true" usebox="none">
11473 \begin_layout Standard
11475 \begin_inset Formula $\,$
11483 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11486 \begin_layout Standard
11488 \begin_inset Formula $\,$
11496 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11499 \begin_layout Standard
11507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11510 \begin_layout Standard
11514 \begin_layout Standard
11527 \begin_layout Standard
11536 Detector thickness [µm]
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
11579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11582 \begin_layout Standard
11588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11591 \begin_layout Standard
11597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11600 \begin_layout Standard
11607 <row topspace="default">
11608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11611 \begin_layout Standard
11612 Spatial resolution [µm]
11617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11620 \begin_layout Standard
11626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11629 \begin_layout Standard
11635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11638 \begin_layout Standard
11645 <row topspace="default">
11646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11649 \begin_layout Standard
11651 \begin_inset Formula $f_{\mathrm{max}}$
11659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11662 \begin_layout Standard
11668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11671 \begin_layout Standard
11677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11680 \begin_layout Standard
11687 <row topspace="default">
11688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11691 \begin_layout Standard
11695 \begin_layout Standard
11699 cmidrule(l{10pt}){1-1}
11704 LSF-spatial resolution
11709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11712 \begin_layout Standard
11718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11721 \begin_layout Standard
11727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11730 \begin_layout Standard
11738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11741 \begin_layout Standard
11747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11750 \begin_layout Standard
11756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11759 \begin_layout Standard
11765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11768 \begin_layout Standard
11775 <row bottomline="true">
11776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11779 \begin_layout Standard
11785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11788 \begin_layout Standard
11794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11797 \begin_layout Standard
11803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11806 \begin_layout Standard
11825 \begin_layout Standard
11826 Spaces to table rows can be added using the
11830 tab of the table dialog as described in section\InsetSpace ~
11832 \begin_inset LatexCommand ref
11833 reference "sub:Row-Spacing"
11840 \begin_layout Standard
11841 In contrary to normal tables, formal tables have no vertical table lines.
11842 The horizontal table lines can be set like for normal tables but they appear
11843 with different width in the output:
11845 The first and the last table line have
11846 a default width of 0.08\InsetSpace \thinspace{}
11847 em while the other lines have a default width of
11848 0.05\InsetSpace \thinspace{}
11852 \begin_layout Standard
11853 The default widths can be changed with the following preamble lines
11856 \begin_layout Standard
11876 \begin_layout Standard
11877 This example is for the first line, the so called
11882 If you want to change the width for the last line, replace
11891 To change the width for the other lines replace
11900 You can use all units listed in appendix\InsetSpace ~
11902 \begin_inset LatexCommand ref
11903 reference "cha:Units-available-in"
11910 \begin_layout Standard
11911 Lines that don't span over all table columns can be created by setting a
11912 table line for multicolumn cells.
11913 LyX will then internally use the command
11919 to create this line.
11923 \begin_layout Standard
11928 cmidrule[width](trim){startcol-endcol}
11931 \begin_layout Standard
11938 are are currently not supported by LyX so you have to use ERT to be able
11946 s can manually be created by inserting the command as ERT as first cell
11947 entry of the first cell of a row.
11948 The line is then drawn in the output above the current row.
11951 \begin_layout Standard
11952 The default for the width is 0.03\InsetSpace \thinspace{}
11954 Startcol is the number of the column where the line starts and endcol the
11955 column number where the line ends.
11956 The endcol always needs to be specified, also when the line should span
11958 The optional parameter trim could be either
11966 where the trimwidth is also optional.
11967 Using for example the parameter
11971 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11973 If you don't specify the trimwidth the lines are trimmed by the default
11974 of 0.5\InsetSpace \thinspace{}
11978 \begin_layout Standard
11979 \begin_inset VSpace bigskip
11984 \begin_inset LatexCommand ref
11985 reference "tab:Example-booktabs-table"
11989 was created using the commands
11992 \begin_layout Standard
12002 \begin_layout Standard
12003 at the beginning of the in the second row and
12006 \begin_layout Standard
12011 cmidrule(l{10pt}){1-1}
12014 \begin_layout Standard
12018 \begin_layout Standard
12019 \begin_inset VSpace bigskip
12025 \begin_layout Standard
12026 You might want to have overlapping
12032 s like in Table\InsetSpace ~
12034 \begin_inset LatexCommand ref
12035 reference "tab:Special-booktabs-table"
12040 This can be achieved with the ERT command
12043 \begin_layout Standard
12051 \begin_layout Standard
12052 The command that was used for the second row of Table\InsetSpace ~
12054 \begin_inset LatexCommand ref
12055 reference "tab:Special-booktabs-table"
12062 \begin_layout Standard
12076 \begin_layout Standard
12077 The command for the sixth row is
12080 \begin_layout Standard
12092 \begin_layout Standard
12093 \begin_inset VSpace bigskip
12099 \begin_layout Standard
12100 If you are anyway not satisfied with the border line spacing, you can use
12101 the following command to produce lines that span over all table columns
12106 \begin_layout Standard
12111 specialrule{width}{space above}{space below}
12114 \begin_layout Standard
12115 For more informations about these specialties, we refer to the manual of
12121 \begin_inset LatexCommand cite
12127 \begin_inset LatexCommand index
12128 name "LaTeX-packages ! booktabs"
12135 \begin_layout Standard
12136 \begin_inset Float table
12142 \begin_layout Standard
12143 \begin_inset Caption
12145 \begin_layout Standard
12146 \begin_inset LatexCommand label
12147 name "tab:Special-booktabs-table"
12151 Special booktabs-table
12159 \begin_layout Standard
12161 \begin_inset Tabular
12162 <lyxtabular version="3" rows="8" columns="4">
12163 <features booktabs="true">
12164 <column alignment="center" valignment="top" width="0">
12165 <column alignment="center" valignment="top" width="0">
12166 <column alignment="center" valignment="top" width="0">
12167 <column alignment="center" valignment="top" width="0">
12168 <row topline="true">
12169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12172 \begin_layout Standard
12178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12181 \begin_layout Standard
12182 Medipix\InsetSpace \thinspace{}
12188 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12191 \begin_layout Standard
12192 Medipix\InsetSpace \thinspace{}
12198 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12201 \begin_layout Standard
12209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12212 \begin_layout Standard
12216 \begin_layout Standard
12229 \begin_layout Standard
12242 \begin_layout Standard
12255 \begin_layout Standard
12264 Detector thickness [µm]
12269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12272 \begin_layout Standard
12278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12281 \begin_layout Standard
12287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12290 \begin_layout Standard
12297 <row topline="true">
12298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12301 \begin_layout Standard
12307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12310 \begin_layout Standard
12316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12319 \begin_layout Standard
12325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12328 \begin_layout Standard
12335 <row topspace="default">
12336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12339 \begin_layout Standard
12340 Spatial resolution [µm]
12345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12348 \begin_layout Standard
12354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12357 \begin_layout Standard
12363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12366 \begin_layout Standard
12373 <row topspace="default">
12374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12377 \begin_layout Standard
12379 \begin_inset Formula $f_{\mathrm{max}}$
12387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12390 \begin_layout Standard
12396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12399 \begin_layout Standard
12405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12408 \begin_layout Standard
12415 <row topline="true">
12416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12419 \begin_layout Standard
12423 \begin_layout Standard
12436 \begin_layout Standard
12445 LSF-spatial resolution
12450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12453 \begin_layout Standard
12459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12462 \begin_layout Standard
12468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12471 \begin_layout Standard
12479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12482 \begin_layout Standard
12488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12491 \begin_layout Standard
12497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12500 \begin_layout Standard
12506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12509 \begin_layout Standard
12516 <row bottomline="true">
12517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12520 \begin_layout Standard
12526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12529 \begin_layout Standard
12535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12538 \begin_layout Standard
12544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12547 \begin_layout Standard
12566 \begin_layout Section
12567 Vertical Table Alignment
12568 \begin_inset LatexCommand index
12569 name "Table ! Alignment"
12576 \begin_layout Standard
12577 To align tables vertically in a text line the table must be inside a box.
12578 The box can then be vertically aligned as described in section\InsetSpace ~
12580 \begin_inset LatexCommand ref
12581 reference "sec:Box-Dialog"
12588 \begin_layout Standard
12589 In the following example the tables are inside a minipage
12593 \begin_layout Standard
12594 Minipages are described in section\InsetSpace ~
12596 \begin_inset LatexCommand ref
12597 reference "sec:Minipages"
12606 box that has a width of 15\InsetSpace \thinspace{}
12610 \begin_layout Itemize
12612 \begin_inset Box Frameless
12621 height_special "totalheight"
12624 \begin_layout Standard
12625 \begin_inset Tabular
12626 <lyxtabular version="3" rows="3" columns="3">
12628 <column alignment="center" valignment="top" leftline="true" width="0">
12629 <column alignment="center" valignment="top" leftline="true" width="0">
12630 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12631 <row topline="true">
12632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12635 \begin_layout Standard
12641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12644 \begin_layout Standard
12650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12653 \begin_layout Standard
12660 <row topline="true">
12661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12664 \begin_layout Standard
12670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12673 \begin_layout Standard
12679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12682 \begin_layout Standard
12689 <row topline="true" bottomline="true">
12690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12693 \begin_layout Standard
12699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12702 \begin_layout Standard
12708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12711 \begin_layout Standard
12731 \begin_layout Standard
12743 \begin_inset Box Frameless
12752 height_special "totalheight"
12755 \begin_layout Standard
12756 \begin_inset Tabular
12757 <lyxtabular version="3" rows="3" columns="3">
12759 <column alignment="center" valignment="top" leftline="true" width="0">
12760 <column alignment="center" valignment="top" leftline="true" width="0">
12761 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12762 <row topline="true">
12763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12766 \begin_layout Standard
12772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12775 \begin_layout Standard
12781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12784 \begin_layout Standard
12791 <row topline="true">
12792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12795 \begin_layout Standard
12801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12804 \begin_layout Standard
12810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12813 \begin_layout Standard
12820 <row topline="true" bottomline="true">
12821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12824 \begin_layout Standard
12830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12833 \begin_layout Standard
12839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12842 \begin_layout Standard
12862 \begin_layout Standard
12872 \begin_layout Itemize
12874 \begin_inset Box Frameless
12883 height_special "totalheight"
12886 \begin_layout Standard
12887 \begin_inset Tabular
12888 <lyxtabular version="3" rows="3" columns="3">
12890 <column alignment="center" valignment="top" leftline="true" width="0">
12891 <column alignment="center" valignment="top" leftline="true" width="0">
12892 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12893 <row topline="true">
12894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12897 \begin_layout Standard
12903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12906 \begin_layout Standard
12912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12915 \begin_layout Standard
12922 <row topline="true">
12923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12926 \begin_layout Standard
12932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12935 \begin_layout Standard
12941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12944 \begin_layout Standard
12951 <row topline="true" bottomline="true">
12952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12955 \begin_layout Standard
12961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12964 \begin_layout Standard
12970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12973 \begin_layout Standard
12992 \begin_layout Itemize
12994 \begin_inset Box Frameless
13003 height_special "totalheight"
13006 \begin_layout Standard
13007 \begin_inset Tabular
13008 <lyxtabular version="3" rows="3" columns="3">
13010 <column alignment="center" valignment="top" leftline="true" width="0">
13011 <column alignment="center" valignment="top" leftline="true" width="0">
13012 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13013 <row topline="true">
13014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13017 \begin_layout Standard
13023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13026 \begin_layout Standard
13032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13035 \begin_layout Standard
13042 <row topline="true">
13043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13046 \begin_layout Standard
13052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13055 \begin_layout Standard
13061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13064 \begin_layout Standard
13071 <row topline="true" bottomline="true">
13072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13075 \begin_layout Standard
13081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13084 \begin_layout Standard
13090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13093 \begin_layout Standard
13113 \begin_layout Standard
13125 \begin_inset Box Frameless
13134 height_special "totalheight"
13137 \begin_layout Standard
13138 \begin_inset Tabular
13139 <lyxtabular version="3" rows="3" columns="3">
13141 <column alignment="center" valignment="top" leftline="true" width="0">
13142 <column alignment="center" valignment="top" leftline="true" width="0">
13143 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13144 <row topline="true">
13145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13148 \begin_layout Standard
13154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13157 \begin_layout Standard
13163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13166 \begin_layout Standard
13173 <row topline="true">
13174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13177 \begin_layout Standard
13183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13186 \begin_layout Standard
13192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13195 \begin_layout Standard
13202 <row topline="true" bottomline="true">
13203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13206 \begin_layout Standard
13212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13215 \begin_layout Standard
13221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13224 \begin_layout Standard
13244 \begin_layout Standard
13254 \begin_layout Standard
13255 As you can see, the content of the first and last table row is not correctly
13256 aligned with the text line where the table is in.
13257 To get this alignment, the minipage box must be set into a raisebox
13261 \begin_layout Standard
13262 Raiseboxes are described in section\InsetSpace ~
13264 \begin_inset LatexCommand ref
13265 reference "sub:Vertical-Alignment"
13275 In the example above the second table in the first item is aligned using
13279 \begin_layout Standard
13289 \begin_layout Standard
13291 Behind the box the closing brace
13295 is inserted as ERT.
13296 For the second table in the last item the command
13299 \begin_layout Standard
13309 \begin_layout Standard
13313 \begin_layout Standard
13314 \begin_inset Note Greyedout
13317 \begin_layout Standard
13322 The alignment of the table row content to the surrounding text line is
13324 The needed factor of the
13330 command for this alignment depends on the document font, the font size,
13331 and the table line thickness.
13339 \begin_layout Section
13341 \begin_inset LatexCommand label
13342 name "sec:Colored-Tables"
13347 \begin_inset LatexCommand index
13348 name "Table ! Color"
13355 \begin_layout Subsection
13357 \begin_inset LatexCommand index
13358 name "Table Color ! for Cells"
13363 \begin_inset LatexCommand index
13364 name "Color ! for Table Cells"
13371 \begin_layout Standard
13372 \begin_inset Float table
13378 \begin_layout Standard
13379 \begin_inset Caption
13381 \begin_layout Standard
13382 \begin_inset LatexCommand label
13383 name "tab:Table-colored-without"
13387 Table colored without using the package
13392 \begin_inset OptArg
13395 \begin_layout Standard
13396 Table without colortbl
13409 \begin_layout Standard
13411 \begin_inset Tabular
13412 <lyxtabular version="3" rows="3" columns="3">
13414 <column alignment="center" valignment="top" leftline="true" width="0">
13415 <column alignment="center" valignment="top" leftline="true" width="0">
13416 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13417 <row topline="true">
13418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13421 \begin_layout Standard
13429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13432 \begin_layout Standard
13440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13443 \begin_layout Standard
13452 <row topline="true">
13453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13456 \begin_layout Standard
13464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13467 \begin_layout Standard
13475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13478 \begin_layout Standard
13487 <row topline="true" bottomline="true">
13488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13491 \begin_layout Standard
13499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13502 \begin_layout Standard
13510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13513 \begin_layout Standard
13534 \begin_layout Standard
13535 If you only need colored text, mark the cells and choose a color in the
13538 Edit\SpecialChar \menuseparator
13543 This was used to create Table\InsetSpace ~
13545 \begin_inset LatexCommand ref
13546 reference "tab:Table-colored-without"
13551 In any other case you have to use the LaTeX-package
13556 \begin_inset LatexCommand index
13557 name "LaTeX-packages ! colortbl"
13564 \begin_layout Standard
13565 To create colored tables,
13569 must be loaded in the preamble with the line
13572 \begin_layout Standard
13577 usepackage{colortbl}
13580 \begin_layout Standard
13581 The color of a column is adjusted with the command
13584 \begin_layout Standard
13589 columncolor{name of color}
13592 \begin_layout Standard
13598 More about the command
13602 is described in section\InsetSpace ~
13604 \begin_inset LatexCommand ref
13605 reference "sub:Multicolumn-Calculations"
13612 \begin_layout Standard
13613 The following color names are predefined:
13616 \begin_layout Standard
13650 \begin_layout Standard
13651 \begin_inset VSpace medskip
13657 \begin_layout Standard
13658 You can also define your own color with the command
13661 \begin_layout Standard
13666 def\SpecialChar \textcompwordmark{}
13667 inecolor{color name}{color model}{color values}
13670 \begin_layout Standard
13671 The color model can be
13674 \begin_layout Labeling
13675 \labelwidthstring 00.00.0000
13676 cmyk: cyan, magenta, yellow, black
13679 \begin_layout Labeling
13680 \labelwidthstring 00.00.0000
13681 rgb: red, green blue
13684 \begin_layout Labeling
13685 \labelwidthstring 00.00.0000
13689 \begin_layout Standard
13690 and the color values are comma separated numbers between 0 and 1 describing
13691 the factor for the corresponding color of the color model.
13694 \begin_layout Standard
13695 You can e.\InsetSpace \thinspace{}
13701 " in the preamble with
13704 \begin_layout Standard
13709 def\SpecialChar \textcompwordmark{}
13710 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13713 \begin_layout Standard
13721 \begin_layout Standard
13726 def\SpecialChar \textcompwordmark{}
13727 inecolor{lightgray}{gray}{0.8}
13730 \begin_layout Standard
13731 \begin_inset VSpace medskip
13737 \begin_layout Standard
13738 Lines are colored with the command
13741 \begin_layout Standard
13746 rowcolor{name of color}
13749 \begin_layout Standard
13750 and cells are colored with the command
13753 \begin_layout Standard
13758 cellcolor{name of color}
13761 \begin_layout Standard
13762 Both commands are inserted at the beginning of a cell as ERT.
13765 \begin_layout Standard
13766 To color characters in the table, mark the cells and use the LyX menu
13768 Edit\SpecialChar \menuseparator
13773 If a cell contains ERT mark only the characters, otherwise the colored
13774 ERT will cause LaTeX-errors.
13777 \begin_layout Standard
13778 \begin_inset Note Greyedout
13781 \begin_layout Standard
13786 Not all DVI-viewers are able to display self-defined colors.
13794 \begin_layout Standard
13795 \begin_inset VSpace bigskip
13801 \begin_layout Standard
13802 To create Table\InsetSpace ~
13804 \begin_inset LatexCommand ref
13805 reference "tab:Table-colored-using"
13809 do the following: The color of the first column should be
13817 \begin_layout Standard
13822 columncolor{darkgreen}
13827 \begin_layout Standard
13828 as LaTeX-argument for this column.
13829 The first row should be blue, therefore the ERT command
13832 \begin_layout Standard
13840 \begin_layout Standard
13841 is inserted to the first cell of this row.
13842 Note that this overwrites the column color for the first cell.
13843 The last cell of the last row is colored magenta by inserting the ERT command
13846 \begin_layout Standard
13854 \begin_layout Standard
13855 The characters could now be colored using the menu
13857 Edit\SpecialChar \menuseparator
13864 \begin_layout Standard
13865 \begin_inset Float table
13871 \begin_layout Standard
13872 \begin_inset Caption
13874 \begin_layout Standard
13875 \begin_inset LatexCommand label
13876 name "tab:Table-colored-using"
13880 Table colored using the package
13885 \begin_inset OptArg
13888 \begin_layout Standard
13889 Table with colortbl
13902 \begin_layout Standard
13904 \begin_inset Tabular
13905 <lyxtabular version="3" rows="3" columns="3">
13907 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13908 <column alignment="center" valignment="top" width="0">
13909 <column alignment="center" valignment="top" width="0">
13911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13914 \begin_layout Standard
13918 \begin_layout Standard
13934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13937 \begin_layout Standard
13945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13948 \begin_layout Standard
13958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13961 \begin_layout Standard
13969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13972 \begin_layout Standard
13980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13983 \begin_layout Standard
13993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13996 \begin_layout Standard
14004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14007 \begin_layout Standard
14015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14018 \begin_layout Standard
14022 \begin_layout Standard
14051 \begin_layout Subsection
14053 \begin_inset LatexCommand index
14054 name "Table Color ! for Lines"
14059 \begin_inset LatexCommand index
14060 name "Color ! for Table Lines"
14067 \begin_layout Standard
14068 As described in section\InsetSpace ~
14070 \begin_inset LatexCommand ref
14071 reference "sub:Line-Thickness"
14075 , the line thickness for all lines in a table can be adjusted with the length
14083 It is set to 1.5\InsetSpace \thinspace{}
14084 pt for all tables of this section.
14088 \begin_layout Standard
14094 arrayrulewidth}{1.5pt}
14102 \begin_layout Standard
14103 To color vertical lines for example with green, create the following column
14104 format in the document preamble, according to the description in section\InsetSpace ~
14106 \begin_inset LatexCommand ref
14107 reference "sub:Customized-Format"
14114 \begin_layout Standard
14119 newcolumntype{W}{!{
14126 \begin_layout Standard
14127 For Table\InsetSpace ~
14129 \begin_inset LatexCommand ref
14130 reference "tab:Table-with-vertical-colored"
14138 was used for the last column and
14142 for the other columns.
14145 \begin_layout Standard
14146 If you want to have several colors, define more column formats.
14149 \begin_layout Standard
14150 \begin_inset Float table
14155 \begin_layout Standard
14156 \begin_inset Caption
14158 \begin_layout Standard
14159 \begin_inset LatexCommand label
14160 name "tab:Table-with-vertical-colored"
14164 Table with colored vertical lines
14172 \begin_layout Standard
14174 \begin_inset Tabular
14175 <lyxtabular version="3" rows="3" columns="3">
14177 <column alignment="center" valignment="top" width="0" special="Wc">
14178 <column alignment="center" valignment="top" width="0" special="Wc">
14179 <column alignment="center" valignment="top" width="0" special="WcW">
14180 <row topline="true">
14181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14184 \begin_layout Standard
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14193 \begin_layout Standard
14199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14202 \begin_layout Standard
14209 <row topline="true">
14210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14213 \begin_layout Standard
14219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14222 \begin_layout Standard
14228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14231 \begin_layout Standard
14238 <row topline="true" bottomline="true">
14239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14242 \begin_layout Standard
14248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14251 \begin_layout Standard
14257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14260 \begin_layout Standard
14279 \begin_layout Standard
14280 \begin_inset VSpace bigskip
14283 To color horizontal lines for example with red, like in Table\InsetSpace ~
14285 \begin_inset LatexCommand ref
14286 reference "tab:Table-with-horizontal-colored"
14290 , insert these commands in ERT before the table or table float:
14293 \begin_layout Standard
14314 \begin_layout Standard
14325 arrayrulecolor{red}
14329 arrayrulecolor{black}}
14332 \begin_layout Standard
14336 \begin_layout Standard
14347 \begin_layout Standard
14356 \begin_layout Standard
14360 arrayrulecolor{red}
14364 arrayrulecolor{black}}
14370 \begin_inset Float table
14375 \begin_layout Standard
14376 \begin_inset Caption
14378 \begin_layout Standard
14379 \begin_inset LatexCommand label
14380 name "tab:Table-with-horizontal-colored"
14384 Table with colored horizontal lines
14392 \begin_layout Standard
14394 \begin_inset Tabular
14395 <lyxtabular version="3" rows="3" columns="3">
14397 <column alignment="center" valignment="top" leftline="true" width="0">
14398 <column alignment="center" valignment="top" leftline="true" width="0">
14399 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14400 <row topline="true">
14401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14404 \begin_layout Standard
14410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14413 \begin_layout Standard
14419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14422 \begin_layout Standard
14429 <row topline="true">
14430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14433 \begin_layout Standard
14439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14442 \begin_layout Standard
14448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14451 \begin_layout Standard
14458 <row topline="true" bottomline="true">
14459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14462 \begin_layout Standard
14468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14471 \begin_layout Standard
14477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14480 \begin_layout Standard
14499 \begin_layout Standard
14503 \begin_layout Standard
14515 \begin_layout Standard
14516 To return to the default line color black, insert this command in ERT behind
14517 the table or table float:
14520 \begin_layout Standard
14532 \begin_layout Standard
14535 \begin_inset LatexCommand ref
14536 reference "tab:Table-with-colored"
14540 is an example with colored vertical and horizontal lines.
14543 \begin_layout Standard
14544 \begin_inset Float table
14550 \begin_layout Standard
14551 \begin_inset Caption
14553 \begin_layout Standard
14554 \begin_inset LatexCommand label
14555 name "tab:Table-with-colored"
14559 Table with colored lines
14567 \begin_layout Standard
14569 \begin_inset Tabular
14570 <lyxtabular version="3" rows="3" columns="3">
14572 <column alignment="center" valignment="top" width="0" special="Wc">
14573 <column alignment="center" valignment="top" width="0" special="Wc">
14574 <column alignment="center" valignment="top" width="0" special="WcW">
14575 <row topline="true">
14576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14579 \begin_layout Standard
14585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14588 \begin_layout Standard
14594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14597 \begin_layout Standard
14604 <row topline="true">
14605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14608 \begin_layout Standard
14614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14617 \begin_layout Standard
14623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14626 \begin_layout Standard
14633 <row topline="true" bottomline="true" topspace="default">
14634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14637 \begin_layout Standard
14643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14646 \begin_layout Standard
14652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14655 \begin_layout Standard
14674 \begin_layout Standard
14678 \begin_layout Standard
14694 \begin_layout Standard
14698 \begin_layout Standard
14704 arrayrulewidth}{0.4pt}
14712 \begin_layout Section
14713 Table Customization
14714 \begin_inset LatexCommand index
14715 name "Table Customization"
14720 \begin_inset LatexCommand index
14721 name "Table ! Customization"
14728 \begin_layout Subsection
14730 \begin_inset LatexCommand label
14731 name "sub:Row-Spacing"
14736 \begin_inset LatexCommand index
14737 name "Table Customization ! Row Spacing"
14744 \begin_layout Standard
14745 You can add vertical space to table rows in the
14749 tab of the table dialog.
14750 You find there three possibilities:
14753 \begin_layout Description
14756 row will add space above the characters of the table row.
14757 If the table is a formal table
14761 \begin_layout Standard
14762 Formal tables are explained in section\InsetSpace ~
14764 \begin_inset LatexCommand ref
14765 reference "sec:Formal-Tables"
14774 LyX will insert as default 0.5\InsetSpace \thinspace{}
14776 For normal tables the inserted space will unfortunately destroy the vertical
14777 table lines as in the following table:
14778 \begin_inset VSpace medskip
14787 \begin_layout Standard
14799 \begin_inset Tabular
14800 <lyxtabular version="3" rows="3" columns="1">
14802 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14803 <row topline="true">
14804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14807 \begin_layout Standard
14814 <row topline="true" topspace="3mm">
14815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14818 \begin_layout Standard
14819 3\InsetSpace \thinspace{}
14820 mm space top of row
14826 <row topline="true" bottomline="true">
14827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14830 \begin_layout Standard
14847 \begin_layout Standard
14857 \begin_inset VSpace medskip
14862 So inserting space to the top of row for normal tables is only useful when
14863 you don't have vertical lines.
14866 \begin_layout Description
14867 Bottom\InsetSpace ~
14869 row will add space below the characters of the table row.
14870 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14872 normal tables the default size is 2\InsetSpace \thinspace{}
14876 \begin_layout Description
14877 Between\InsetSpace ~
14878 rows adds space between the current and the following row.
14879 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14881 For normal tables the inserted space will unfortunately destroy the vertical
14882 table lines as in the following table:
14883 \begin_inset VSpace medskip
14892 \begin_layout Standard
14904 \begin_inset Tabular
14905 <lyxtabular version="3" rows="3" columns="1">
14907 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14908 <row topline="true">
14909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14912 \begin_layout Standard
14919 <row topline="true" interlinespace="3mm">
14920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14923 \begin_layout Standard
14924 \begin_inset Formula $\downarrow$
14927 3\InsetSpace \thinspace{}
14928 mm space between row
14929 \begin_inset Formula $\downarrow$
14938 <row topline="true" bottomline="true">
14939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14942 \begin_layout Standard
14943 \begin_inset Formula $\uparrow$
14946 3\InsetSpace \thinspace{}
14947 mm space between row
14948 \begin_inset Formula $\uparrow$
14967 \begin_layout Standard
14977 \begin_inset VSpace medskip
14982 So inserting space between rows for normal tables is only useful when you
14983 don't have vertical lines.
14986 \begin_layout Standard
14987 \begin_inset VSpace bigskip
14990 When you want to add extra height to all cells of all tables, you can do
14991 this with the following preamble lines:
14994 \begin_layout Standard
14999 @ifundef\SpecialChar \textcompwordmark{}
15000 ined{extrarowheight}
15006 \begin_layout Standard
15017 usepackage{array}}{}
15023 extrarowheight}{height}
15026 \begin_layout Standard
15027 But this has the disadvantage that the cell texts are no longer exactly
15028 vertically centered.
15033 will be loaded automatically by LyX when you use self defined table formats.
15034 To avoid that it is loaded twice the command
15038 @ifundef\SpecialChar \textcompwordmark{}
15041 is used in the above command.)
15044 \begin_layout Subsection
15045 Special Cell Alignment
15046 \begin_inset LatexCommand index
15047 name "Table Customization ! Special Cell Alignment"
15054 \begin_layout Standard
15055 Sometimes it looks better when the cell entries of a column are aligned
15056 with a special character, e.\InsetSpace \thinspace{}
15058 with the decimal separator as in Table\InsetSpace ~
15060 \begin_inset LatexCommand ref
15061 reference "tab:Table-cells-of"
15068 \begin_layout Standard
15069 \begin_inset Float table
15075 \begin_layout Standard
15076 \begin_inset Caption
15078 \begin_layout Standard
15079 \begin_inset LatexCommand label
15080 name "tab:Table-cells-of"
15084 Table cells of a column aligned with the decimal separator.
15092 \begin_layout Standard
15094 \begin_inset Tabular
15095 <lyxtabular version="3" rows="4" columns="2">
15097 <column alignment="right" valignment="top" width="0">
15098 <column alignment="left" valignment="top" width="0" special="@{}l">
15099 <row bottomline="true">
15100 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15103 \begin_layout Standard
15109 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15112 \begin_layout Standard
15120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15123 \begin_layout Standard
15129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15132 \begin_layout Standard
15140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15143 \begin_layout Standard
15149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15152 \begin_layout Standard
15160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15163 \begin_layout Standard
15169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15172 \begin_layout Standard
15191 \begin_layout Standard
15192 This table was created with a 4×2 table.
15193 The heading is a centered multicolumn.
15194 The first column is right-aligned and contains the digits before the decimal
15195 point and the decimal point.
15196 The second column is left aligned and contains the digits after the decimal
15198 To omit the space that is normally between two table columns, use the following
15199 LaTeX-argument for the second column:
15202 \begin_layout Standard
15208 \begin_layout Standard
15211 \begin_inset LatexCommand ref
15212 reference "tab:Several-table-cell"
15216 shows some example alignments.
15217 For the alignment with the relation sign, you must add the second smallest
15218 math-space at the beginning of the last column to get the correct space
15219 surrounding the relation sign.
15222 \begin_layout Standard
15223 \begin_inset Float table
15228 \begin_layout Standard
15229 \begin_inset Caption
15231 \begin_layout Standard
15232 \begin_inset LatexCommand label
15233 name "tab:Several-table-cell"
15237 Several table cell alignments.
15245 \begin_layout Standard
15247 \begin_inset Tabular
15248 <lyxtabular version="3" rows="4" columns="6">
15250 <column alignment="right" valignment="top" width="0">
15251 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15252 <column alignment="right" valignment="top" width="0">
15253 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15254 <column alignment="right" valignment="top" width="0">
15255 <column alignment="left" valignment="top" width="0" special="@{}l">
15256 <row bottomline="true">
15257 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15260 \begin_layout Standard
15266 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15269 \begin_layout Standard
15275 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15278 \begin_layout Standard
15284 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15287 \begin_layout Standard
15293 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15296 \begin_layout Standard
15302 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15305 \begin_layout Standard
15313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15316 \begin_layout Standard
15322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15325 \begin_layout Standard
15326 24\InsetSpace \thinspace{}
15332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15335 \begin_layout Standard
15336 \begin_inset Formula $10\cdot$
15344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15347 \begin_layout Standard
15348 \begin_inset Formula $10^{\mbox{-}17}$
15356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15359 \begin_layout Standard
15360 \begin_inset Formula $\Gamma(t)\propto$
15368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15371 \begin_layout Standard
15372 \begin_inset Formula $\:\Upsilon(t)$
15382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15385 \begin_layout Standard
15391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15394 \begin_layout Standard
15395 768\InsetSpace \thinspace{}
15401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15404 \begin_layout Standard
15405 \begin_inset Formula $5.78\cdot$
15413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15416 \begin_layout Standard
15417 \begin_inset Formula $10^{7}$
15425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15428 \begin_layout Standard
15429 \begin_inset Formula $A\ne$
15437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15440 \begin_layout Standard
15441 \begin_inset Formula $\: B_{\mathrm{red}}$
15451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15454 \begin_layout Standard
15460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15463 \begin_layout Standard
15464 6\InsetSpace \thinspace{}
15470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15473 \begin_layout Standard
15475 \begin_inset Formula $33.5\cdot$
15483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15486 \begin_layout Standard
15487 \begin_inset Formula $10^{4}$
15495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15498 \begin_layout Standard
15499 \begin_inset Formula $\sin(\alpha)\ge$
15507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15510 \begin_layout Standard
15511 \begin_inset Formula $\:\sin(\beta)$
15532 \begin_layout Standard
15533 \begin_inset VSpace bigskip
15536 There is also the LaTeX-package
15541 \begin_inset LatexCommand index
15542 name "LaTeX-packages ! dcolumn"
15546 that provides table cell alignments.
15547 But this unfortunately treats the cell entries as math and doesn't allow
15548 formulas in table cells: The first column of Table\InsetSpace ~
15550 \begin_inset LatexCommand ref
15551 reference "tab:Several-table-cell"
15559 like the first column in Table\InsetSpace ~
15561 \begin_inset LatexCommand ref
15562 reference "tab:Alignments-when"
15566 and only with some tricks like the expected.
15567 The alignment of the second and third column of Table\InsetSpace ~
15569 \begin_inset LatexCommand ref
15570 reference "tab:Several-table-cell"
15574 is not possible with
15581 \begin_layout Standard
15582 \begin_inset Float table
15588 \begin_layout Standard
15589 \begin_inset Caption
15591 \begin_layout Standard
15592 \begin_inset LatexCommand label
15593 name "tab:Alignments-when"
15597 Alignments when LaTeX-package dcolumn is used.
15598 For all column alignments tricks have to be used to get the output.
15606 \begin_layout Standard
15608 \begin_inset Tabular
15609 <lyxtabular version="3" rows="4" columns="3">
15611 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15612 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15613 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15614 <row bottomline="true">
15615 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15618 \begin_layout Standard
15624 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15627 \begin_layout Standard
15633 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15636 \begin_layout Standard
15644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15647 \begin_layout Standard
15648 12x24\InsetSpace \thinspace{}
15654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15657 \begin_layout Standard
15658 12x24\InsetSpace \thinspace{}
15660 \begin_inset Formula $\mbox{bottles}$
15668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15671 \begin_layout Standard
15676 \begin_layout Standard
15686 \begin_inset Formula $\mbox{bottles}$
15696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15699 \begin_layout Standard
15700 1024x768\InsetSpace \thinspace{}
15706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15709 \begin_layout Standard
15710 1024x768\InsetSpace \thinspace{}
15712 \begin_inset Formula $\mbox{Pixels}$
15720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15723 \begin_layout Standard
15728 \begin_layout Standard
15738 \begin_inset Formula $\mbox{Pixels}$
15748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15751 \begin_layout Standard
15752 32x6\InsetSpace \thinspace{}
15758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15761 \begin_layout Standard
15762 32x6\InsetSpace \thinspace{}
15764 \begin_inset Formula $\mbox{cm}$
15772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15775 \begin_layout Standard
15780 \begin_layout Standard
15790 \begin_inset Formula $\mbox{cm}$
15811 \begin_layout Subsection
15812 Customized Cell/Column Format
15813 \begin_inset LatexCommand label
15814 name "sub:Customized-Format"
15819 \begin_inset LatexCommand index
15820 name "Table Customization ! Cell/Column Format"
15827 \begin_layout Standard
15828 Calculating the needed width for spanned columns like in section\InsetSpace ~
15830 \begin_inset LatexCommand ref
15831 reference "sub:Multicolumn-Calculations"
15835 is very annoying if you have several tables with multicolumn cells.
15836 To make life easier, you can define a cell/column format in the preamble,
15837 so that it can be used in all tables of the document.
15838 The format is defined with the command
15841 \begin_layout Standard
15846 newcolumntype{name of format}[number of arguments]{commands}
15849 \begin_layout Standard
15850 The format name may only consist of one letter.
15875 are predefined and cannot be used.
15876 But all letters are allowed as capitals.
15879 \begin_layout Standard
15880 \begin_inset VSpace medskip
15886 \begin_layout Standard
15887 For vertically and horizontally centered multicolumn cells with a fixed
15888 width you can define the cell format
15891 \begin_layout Standard
15896 newcolumntype{M}[1]{>{
15903 \begin_layout Standard
15910 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15912 \begin_inset LatexCommand ref
15913 reference "sub:Multiple-Lines-in"
15918 Now you can simply enter
15921 \begin_layout Standard
15927 \begin_layout Standard
15928 as LaTeX-argument in the table dialog to create a multicolumn.
15931 \begin_layout Standard
15932 \begin_inset VSpace bigskip
15938 \begin_layout Standard
15939 For cells spanned by a multicolumn cell, you can define the format
15942 \begin_layout Standard
15947 newcolumntype{S}[2]{>{
15957 \begin_layout Standard
15968 newcolumntype{S}[2]
15972 \begin_layout Standard
15983 arrayrulewidth)*(1-#2))/#2}}
15986 \begin_layout Standard
15987 This format uses equation
15988 \begin_inset LatexCommand eqref
15993 to calculate the needed width so that each spanned cell has the same width.
15996 \begin_layout Standard
16000 \begin_layout Standard
16003 S{width of multicolumn cell}{number of spanned columns}
16006 \begin_layout Standard
16007 as LaTeX-argument of the column.
16010 \begin_layout Standard
16011 \begin_inset VSpace bigskip
16017 \begin_layout Standard
16018 For colored columns, you can define
16021 \begin_layout Standard
16026 newcolumntype{K}[1]{>{
16033 \begin_layout Standard
16035 \begin_inset Quotes eld
16039 \begin_inset Quotes erd
16042 at the end creates a column with a flexible width whose text is horizontally
16047 \begin_layout Standard
16053 \begin_layout Standard
16057 \begin_layout Standard
16058 \begin_inset VSpace bigskip
16064 \begin_layout Standard
16065 To create Table\InsetSpace ~
16067 \begin_inset LatexCommand ref
16068 reference "tab:Table-using-user-defined"
16072 use the LaTeX-arguments
16075 \begin_layout Standard
16081 \begin_layout Standard
16082 for the first column and the multicolumn,
16085 \begin_layout Standard
16091 \begin_layout Standard
16092 for the the last column, and
16095 \begin_layout Standard
16101 \begin_layout Standard
16102 for the cells in the second column.
16105 \begin_layout Standard
16106 \begin_inset Float table
16112 \begin_layout Standard
16113 \begin_inset Caption
16115 \begin_layout Standard
16116 \begin_inset LatexCommand label
16117 name "tab:Table-using-user-defined"
16121 Table using user-defined table formats
16129 \begin_layout Standard
16131 \begin_inset Tabular
16132 <lyxtabular version="3" rows="3" columns="4">
16134 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16135 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16136 <column alignment="center" valignment="middle" leftline="true" width="0">
16137 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16138 <row topline="true">
16139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16142 \begin_layout Standard
16143 verylongtablecellword
16148 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16151 \begin_layout Standard
16152 multiple lines multicolumn
16157 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16160 \begin_layout Standard
16166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16169 \begin_layout Standard
16176 <row topline="true">
16177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16180 \begin_layout Standard
16186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16189 \begin_layout Standard
16195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16198 \begin_layout Standard
16204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16207 \begin_layout Standard
16214 <row topline="true" bottomline="true">
16215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16218 \begin_layout Standard
16224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16227 \begin_layout Standard
16233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16236 \begin_layout Standard
16242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16245 \begin_layout Standard
16264 \begin_layout Subsection
16266 \begin_inset LatexCommand label
16267 name "sub:Line-Thickness"
16272 \begin_inset LatexCommand index
16273 name "Table Customization ! Line Thickness"
16280 \begin_layout Standard
16281 The line thickness for all lines in a table can be adjusted with the length
16289 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16290 pt, like in Table\InsetSpace ~
16292 \begin_inset LatexCommand ref
16293 reference "tab:Table-with-1.5"
16297 , insert the command
16300 \begin_layout Standard
16307 arrayrulewidth}{1.5pt}
16310 \begin_layout Standard
16311 in ERT before the table or table float.
16312 The changed thickness is valid for all following tables.
16313 To use the default value again, set
16319 to 0.4\InsetSpace \thinspace{}
16320 pt in ERT behind the table or table float.
16323 \begin_layout Standard
16327 \begin_layout Standard
16333 arrayrulewidth}{1.5pt}
16339 \begin_inset Float table
16344 \begin_layout Standard
16345 \begin_inset Caption
16347 \begin_layout Standard
16348 \begin_inset LatexCommand label
16349 name "tab:Table-with-1.5"
16353 Table with 1.5\InsetSpace \thinspace{}
16362 \begin_layout Standard
16364 \begin_inset Tabular
16365 <lyxtabular version="3" rows="3" columns="3">
16367 <column alignment="center" valignment="top" leftline="true" width="0">
16368 <column alignment="center" valignment="top" leftline="true" width="0">
16369 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16370 <row topline="true">
16371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16374 \begin_layout Standard
16380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16383 \begin_layout Standard
16389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16392 \begin_layout Standard
16399 <row topline="true">
16400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16403 \begin_layout Standard
16409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16412 \begin_layout Standard
16418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16421 \begin_layout Standard
16428 <row topline="true" bottomline="true">
16429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16432 \begin_layout Standard
16438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16441 \begin_layout Standard
16447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16450 \begin_layout Standard
16470 \begin_layout Standard
16476 arrayrulewidth}{0.4pt}
16484 \begin_layout Standard
16485 \begin_inset VSpace bigskip
16488 To set the line thickness to 1.5\InsetSpace \thinspace{}
16489 pt only for horizontal lines, like in Table\InsetSpace ~
16491 \begin_inset LatexCommand ref
16492 reference "tab:Table-with-horizontal"
16496 , insert these commands in ERT before the table or table float:
16499 \begin_layout Standard
16522 arrayrulewidth 1.5pt}
16532 arrayrulewidth 0.4pt}}
16535 \begin_layout Standard
16536 To return to the default line thickness, insert this command in ERT behind
16537 the table or table float:
16540 \begin_layout Standard
16552 \begin_layout Standard
16556 \begin_layout Standard
16567 \begin_layout Standard
16576 \begin_layout Standard
16584 arrayrulewidth 1.5pt}
16587 \begin_layout Standard
16597 arrayrulewidth 0.4pt}}
16603 \begin_inset Float table
16608 \begin_layout Standard
16609 \begin_inset Caption
16611 \begin_layout Standard
16612 \begin_inset LatexCommand label
16613 name "tab:Table-with-horizontal"
16617 Table with 1.5\InsetSpace \thinspace{}
16618 pt thick horizontal lines
16626 \begin_layout Standard
16628 \begin_inset Tabular
16629 <lyxtabular version="3" rows="3" columns="3">
16631 <column alignment="center" valignment="top" leftline="true" width="0">
16632 <column alignment="center" valignment="top" leftline="true" width="0">
16633 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16634 <row topline="true">
16635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16638 \begin_layout Standard
16644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16647 \begin_layout Standard
16653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16656 \begin_layout Standard
16663 <row topline="true">
16664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16667 \begin_layout Standard
16673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16676 \begin_layout Standard
16682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16685 \begin_layout Standard
16692 <row topline="true" bottomline="true">
16693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16696 \begin_layout Standard
16702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16705 \begin_layout Standard
16711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16714 \begin_layout Standard
16734 \begin_layout Standard
16750 \begin_layout Standard
16751 \begin_inset VSpace bigskip
16754 To set the line thickness to 1.5\InsetSpace \thinspace{}
16755 pt only for vertical lines, create the following
16756 column format in the document preamble, according to the description in
16757 section\InsetSpace ~
16759 \begin_inset LatexCommand ref
16760 reference "sub:Customized-Format"
16767 \begin_layout Standard
16772 newcolumntype{V}{!{
16774 vrule width 1.5pt}}
16777 \begin_layout Standard
16778 For Table\InsetSpace ~
16780 \begin_inset LatexCommand ref
16781 reference "tab:Table-with-vertical"
16788 \begin_layout Standard
16794 \begin_layout Standard
16795 was used for the last column and
16798 \begin_layout Standard
16804 \begin_layout Standard
16805 for the other columns.
16808 \begin_layout Standard
16809 \begin_inset Float table
16814 \begin_layout Standard
16815 \begin_inset Caption
16817 \begin_layout Standard
16818 \begin_inset LatexCommand label
16819 name "tab:Table-with-vertical"
16823 Table with 1.5\InsetSpace \thinspace{}
16824 pt thick vertical lines
16832 \begin_layout Standard
16834 \begin_inset Tabular
16835 <lyxtabular version="3" rows="3" columns="3">
16837 <column alignment="center" valignment="top" width="0" special="Vc">
16838 <column alignment="center" valignment="top" width="0" special="Vc">
16839 <column alignment="center" valignment="top" width="0" special="VcV">
16840 <row topline="true">
16841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16844 \begin_layout Standard
16850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16853 \begin_layout Standard
16859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16862 \begin_layout Standard
16869 <row topline="true">
16870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16873 \begin_layout Standard
16879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16882 \begin_layout Standard
16888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16891 \begin_layout Standard
16898 <row topline="true" bottomline="true">
16899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16902 \begin_layout Standard
16908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16911 \begin_layout Standard
16917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16920 \begin_layout Standard
16939 \begin_layout Subsection
16941 \begin_inset LatexCommand index
16942 name "Table Customization ! Dashed Lines"
16949 \begin_layout Standard
16953 \begin_layout Standard
16963 \begin_inset Note Note
16966 \begin_layout Standard
16967 The following section will only be displayed when you have the LaTeX-package
16980 \begin_layout Standard
16981 \begin_inset Float table
16987 \begin_layout Standard
16988 \begin_inset Caption
16990 \begin_layout Standard
16991 \begin_inset LatexCommand label
16992 name "tab:Table-with-dashed"
16996 Table with dashed lines
17004 \begin_layout Standard
17006 \begin_inset Tabular
17007 <lyxtabular version="3" rows="5" columns="5">
17009 <column alignment="center" valignment="top" leftline="true" width="0">
17010 <column alignment="center" valignment="top" leftline="true" width="0">
17011 <column alignment="center" valignment="top" width="0" special=":c">
17012 <column alignment="center" valignment="top" leftline="true" width="0">
17013 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17014 <row topline="true" bottomline="true">
17015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17018 \begin_layout Standard
17024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17027 \begin_layout Standard
17033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17036 \begin_layout Standard
17042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17045 \begin_layout Standard
17051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17054 \begin_layout Standard
17061 <row topline="true">
17062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17065 \begin_layout Standard
17071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17074 \begin_layout Standard
17080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17083 \begin_layout Standard
17089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17092 \begin_layout Standard
17098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17101 \begin_layout Standard
17109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17112 \begin_layout Standard
17116 \begin_layout Standard
17130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17133 \begin_layout Standard
17139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17142 \begin_layout Standard
17148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17151 \begin_layout Standard
17157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17160 \begin_layout Standard
17167 <row topline="true">
17168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17171 \begin_layout Standard
17175 \begin_layout Standard
17189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17192 \begin_layout Standard
17198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17201 \begin_layout Standard
17207 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17210 \begin_layout Standard
17216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17219 \begin_layout Standard
17226 <row topline="true" bottomline="true">
17227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17230 \begin_layout Standard
17236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17239 \begin_layout Standard
17245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17248 \begin_layout Standard
17254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17257 \begin_layout Standard
17263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17266 \begin_layout Standard
17285 \begin_layout Standard
17286 LyX doesn't natively support dashed lines, so you have to use ERT.
17287 As prerequisite the LaTeX-package
17292 \begin_inset LatexCommand index
17293 name "LaTeX-packages ! arydshln"
17297 must be loaded in the document preamble with the command
17300 \begin_layout Standard
17305 usepackage{arydshln}
17308 \begin_layout Standard
17309 To make a vertical line dashed, enter the colon
17310 \begin_inset Quotes eld
17314 \begin_inset Quotes erd
17317 together with the character for the horizontal alignment as LaTeX-argument
17318 in the table cell dialog.
17321 \begin_layout Standard
17322 For a horizontal dashed line add the command
17325 \begin_layout Standard
17333 \begin_layout Standard
17334 in ERT as first element of the first cell in the table row.
17337 \begin_layout Standard
17338 For dashed multicolumn lines use the command
17341 \begin_layout Standard
17346 cdashline{line number
17351 \begin_layout Standard
17352 in ERT as first element of the first cell in the table row.
17353 If you have for example a multicolumn spanning over columns 2 to 4 and
17354 you want to have a dashed line above, add the command
17357 \begin_layout Standard
17365 \begin_layout Standard
17366 as first element of the first cell in the row of the multicolumn.
17369 \begin_layout Standard
17370 \begin_inset VSpace bigskip
17376 \begin_layout Standard
17379 \begin_inset LatexCommand ref
17380 reference "tab:Table-with-dashed"
17385 \begin_inset Quotes eld
17393 \begin_inset Quotes erd
17396 as LaTeX-argument of the third column.
17403 was inserted to the first cell of the third row and the the ERT command
17412 was inserted to the first cell of the fourth row.
17415 \begin_layout Standard
17416 \begin_inset Note Greyedout
17419 \begin_layout Standard
17424 The used LaTeX-package
17428 is apparently not compatible with the LaTeX-package
17433 \begin_inset LatexCommand index
17434 name "LaTeX-packages ! colortbl"
17438 that is used for colored tables in section\InsetSpace ~
17440 \begin_inset LatexCommand ref
17441 reference "sec:Colored-Tables"
17446 That means colored tables cannot have dashed lines.
17454 \begin_layout Standard
17458 \begin_layout Standard
17468 \begin_inset Note Note
17471 \begin_layout Standard
17472 The following will be displayed when the LaTeX-package
17484 \begin_layout Standard
17485 You need to install the package
17489 to see the contents of this section in the output.
17492 \begin_layout Standard
17496 \begin_layout Standard
17508 \begin_layout Chapter
17510 \begin_inset LatexCommand index
17516 \begin_inset LatexCommand label
17524 \begin_layout Section
17526 \begin_inset LatexCommand label
17527 name "sec:FloatIntroduction"
17532 \begin_inset LatexCommand index
17533 name "Floats ! Introduction"
17540 \begin_layout Standard
17541 A float is a block of text associated with some sort of label, which doesn't
17542 have a fixed location.
17544 \begin_inset Quotes eld
17548 \begin_inset Quotes erd
17551 forward or backward a page or two, to wherever it fits best.
17558 Margin\InsetSpace ~
17561 are also floats, because they can float to the next page when there are
17562 too many notes at the page.
17565 \begin_layout Standard
17566 Floats allow a high quality layout.
17567 Images and tables can evenly be spread to the pages to avoid white space
17568 and pages without text.
17569 As the floating often destroys the context between the text and the image/table
17570 , every float can be referenced in the text.
17571 Floats are therefore numbered.
17572 Referencing is described in section\InsetSpace ~
17574 \begin_inset LatexCommand ref
17575 reference "sec:Referencing-Floats"
17582 \begin_layout Standard
17583 To insert a float, use the menu
17585 Insert\SpecialChar \menuseparator
17593 inset, a box with a label.
17594 The label will automatically be translated to the document language in
17596 Behind the label you can insert the caption text.
17597 The image or table is inserted above or below the caption in a separate
17598 paragraph within the float.
17599 More about the caption placement is described in section\InsetSpace ~
17601 \begin_inset LatexCommand ref
17602 reference "sec:Caption-Placement"
17607 To keep your LyX-document readable, you can open and close the float box
17608 by left-clicking on the box label.
17609 A closed float box looks like this:
17610 \begin_inset Graphics
17611 filename clipart/floatQt4.png
17613 scaleBeforeRotation
17617 -- a gray button with a red label.
17620 \begin_layout Standard
17621 It is recommended to insert floats as a separate paragraph to avoid possible
17622 LaTeX-errors that can occur when the surrounding text is specially formatted.
17625 \begin_layout Standard
17626 Existing figures or tables can be put into a float by marking them and then
17627 pressing the corresponding toolbar button for a new float.
17630 \begin_layout Section
17634 \begin_layout Standard
17635 Besides figure and table floats that are described in section\InsetSpace ~
17637 \begin_inset LatexCommand ref
17638 reference "sec:Figure-Floats"
17643 \begin_inset LatexCommand ref
17644 reference "sec:Table-Floats"
17648 , respectively, LyX offers the float types
17661 \begin_layout Subsection
17663 \begin_inset LatexCommand index
17664 name "Floats ! Algorithms"
17671 \begin_layout Standard
17672 \begin_inset Float algorithm
17678 \begin_layout Standard
17679 \begin_inset Caption
17681 \begin_layout Standard
17682 \begin_inset LatexCommand label
17683 name "alg:Example-Algorithm-float"
17687 Example Algorithm float
17695 \begin_layout LyX-Code
17698 Sum:= Sum + A(I); /*comment*/
17701 \begin_inset VSpace -4mm
17712 \begin_layout Standard
17713 This float type is inserted with the menu
17715 Insert\SpecialChar \menuseparator
17716 Floats\SpecialChar \menuseparator
17720 It is used for program codes and descriptions of algorithms.
17721 A possible environment for algorithms is the
17725 , described in LyX's
17730 Algorithm\InsetSpace ~
17732 \begin_inset LatexCommand ref
17733 reference "alg:Example-Algorithm-float"
17737 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17738 mm vertical space was added
17739 at the end of the float to have the bottom rule exactly below the last
17743 \begin_layout Standard
17744 The float label is not automatically translated into the document language.
17745 If your document is not in English, you have to do this manually by adding
17746 the following line to the document preamble
17751 \begin_layout Standard
17756 floatname{algorithm}{your\InsetSpace ~
17760 \begin_layout Standard
17767 \begin_inset Quotes eld
17775 \begin_inset Quotes erd
17781 \begin_layout Description
17786 When the LaTeX-package
17791 \begin_inset LatexCommand index
17792 name "LaTeX-packages ! hyperref"
17796 is used to link cross-references to floats in the PDF-output, it must be
17797 loaded in the document preamble before the definition of floats to be able
17798 to reference floats.
17799 As LyX sets the float definition for algorithm floats automatically before
17800 the user editable part of the document preamble, you need to insert the
17801 following preamble lines
17805 the loading command of
17812 \begin_inset VSpace defskip
17819 newfloat{Xalgorithm}{tbp}{loa}
17823 floatname{Xalgorithm}{your\InsetSpace ~
17836 renewenvironment{algorithm}[1][tbp]
17842 \begin_layout Standard
17853 begin{Xalgorithm}[#1]}{
17856 \begin_inset VSpace defskip
17862 \begin_layout Standard
17863 Algorithm floats are not by default numbered in the scheme
17864 \begin_inset Quotes eld
17868 \begin_inset Quotes erd
17871 like it is the case for table and figure floats in many document-classes.
17872 To number algorithm floats in the same scheme, add this command to your
17876 \begin_layout Standard
17881 numberwithin{algorithm}{chapter}
17884 \begin_layout Standard
17885 If you use the LaTeX-package
17889 , add this line instead
17897 (the commands from above) to the preamble:
17900 \begin_layout Standard
17905 numberwithin{Xalgorithm}{chapter}
17908 \begin_layout Standard
17909 To be able to use the command
17920 in the document settings the option
17930 \begin_layout Subsection
17932 \begin_inset LatexCommand index
17933 name "Floats ! Text Wrap Floats"
17938 \begin_inset LatexCommand label
17939 name "sub:floatflt-wrap-float"
17946 \begin_layout Standard
17947 This float type is used if you want to
17948 \begin_inset Quotes eld
17952 \begin_inset Quotes erd
17955 text around a figure so that it only occupies some fraction of the column
17957 It can be inserted using the menu
17958 \begin_inset Wrap figure
17963 \begin_layout Standard
17964 \begin_inset Graphics
17965 filename clipart/mobius.eps
17968 scaleBeforeRotation
17969 rotateOrigin center
17976 \begin_layout Standard
17977 \begin_inset Caption
17979 \begin_layout Standard
17980 \begin_inset LatexCommand label
17981 name "fig:This-is-a"
17985 This is a wrapped figure, and this is the brilliant caption that describes
17987 \begin_inset VSpace medskip
18002 Insert\SpecialChar \menuseparator
18003 Floats\SpecialChar \menuseparator
18008 if the LaTeX-package
18010 f\SpecialChar \textcompwordmark{}
18011 loatf\SpecialChar \textcompwordmark{}
18015 \begin_inset LatexCommand index
18016 name "LaTeX-packages ! floatflt"
18024 \begin_layout Standard
18025 Installing a LaTeX-package is explained it in the
18035 The width and placement of the float is adjusted by right-clicking on the
18037 Figure\InsetSpace ~
18039 \begin_inset LatexCommand ref
18040 reference "fig:This-is-a"
18044 is an example text wrap float with a width of 40
18045 \begin_inset Formula $\,$
18052 \begin_layout Standard
18053 Available units are explained in
18054 \begin_inset LatexCommand ref
18055 reference "cha:Units-available-in"
18064 Some space was added under the caption to separate it better from the surroundi
18068 \begin_layout Standard
18071 f\SpecialChar \textcompwordmark{}
18072 loatf\SpecialChar \textcompwordmark{}
18075 also supports table wrap floats, but they are not yet supported by LyX.
18076 If you need this, read the documentation of
18078 f\SpecialChar \textcompwordmark{}
18079 loatf\SpecialChar \textcompwordmark{}
18083 \begin_inset LatexCommand cite
18091 \begin_layout Standard
18092 \begin_inset Note Greyedout
18095 \begin_layout Standard
18101 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18103 having a figure too close to the bottom
18104 of the page can mess things up in the way that the float doesn't appear
18105 in the output or that it is placed over some other text.
18109 \begin_layout Standard
18110 The better solution is to use the LaTeX-package
18112 wrapf\SpecialChar \textcompwordmark{}
18116 \begin_inset LatexCommand index
18117 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18123 f\SpecialChar \textcompwordmark{}
18124 loatf\SpecialChar \textcompwordmark{}
18127 , but it is currently not supported by LyX.
18140 \begin_layout Standard
18144 \begin_layout Itemize
18145 Wrap floats should not be placed in paragraphs that run over a page break.
18146 That means that wrap floats should better be inserted to the exact place
18147 when the document is nearly finished and you are able to estimate where
18148 page breaks will appear.
18151 \begin_layout Itemize
18152 Wrap floats should either be placed in an own paragraph before the paragraph
18153 where they should wrap into or within a paragraph.
18156 \begin_layout Itemize
18157 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18158 there is a text paragraph between them as separator.
18161 \begin_layout Itemize
18162 Wrap floats are not allowed in section headings or tables.
18165 \begin_layout Section
18167 \begin_inset LatexCommand label
18168 name "sec:Float-Numbering"
18173 \begin_inset LatexCommand index
18174 name "Floats ! Numbering"
18181 \begin_layout Standard
18182 Floats are usually numbered either independent from the sections the floats
18183 are in, or in the scheme
18184 \begin_inset Quotes eld
18188 \begin_inset Quotes erd
18192 \begin_inset Quotes eld
18196 \begin_inset Quotes erd
18200 This depends on the used document class.
18203 \begin_layout Standard
18204 To change the section independent numbering, you can use this command in
18205 the document preamble:
18208 \begin_layout Standard
18220 \begin_layout Standard
18227 is the command that prints the table number, for figure floats, the command
18241 prints in the command above the table number as small roman number.
18244 \begin_layout Standard
18245 To change the numbering scheme for example to
18246 \begin_inset Quotes eld
18250 \begin_inset Quotes erd
18253 , use this command in the preamble:
18256 \begin_layout Standard
18261 numberwithin{table}{subsection}
18264 \begin_layout Standard
18265 To be able to use the command
18276 in the document settings the option
18286 \begin_layout Standard
18287 Please also have a look at section\InsetSpace ~
18289 \begin_inset LatexCommand ref
18290 reference "sub:Footnote-Numbering"
18294 for the details and important notes about the numbering commands.
18297 \begin_layout Section
18299 \begin_inset LatexCommand label
18300 name "sec:Referencing-Floats"
18305 \begin_inset LatexCommand index
18306 name "Floats ! References"
18311 \begin_inset LatexCommand index
18319 \begin_layout Standard
18320 To reference a float, insert a label into its caption using the menu
18322 Insert\SpecialChar \menuseparator
18325 or the toolbar button
18326 \begin_inset Graphics
18327 filename ../images/label-insert.xpm
18329 scaleBeforeRotation
18334 A grey label box like this one:
18335 \begin_inset Graphics
18336 filename clipart/labelQt4.png
18338 scaleBeforeRotation
18342 will be inserted and the label window pops up asking for the label text.
18343 LyX offers as text the first words of the caption with a prefix.
18344 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18346 for figure floats the prefix will
18354 \begin_layout Standard
18355 The label is used as anchor and name for the reference.
18356 You can refer to the label using the menu
18358 Insert\SpecialChar \menuseparator
18361 or the toolbar button
18362 \begin_inset Graphics
18363 filename ../images/dialog-show-new-inset_ref.xpm
18365 scaleBeforeRotation
18370 A grey cross-reference box like this one:
18371 \begin_inset Graphics
18372 filename clipart/referenceQt4.png
18374 scaleBeforeRotation
18378 will be inserted and the cross-reference window appear showing all labels
18380 If you have multiple LyX-documents opened, choose the one you are working
18381 on from the drop-list at the top of the dialog.
18382 You can now sort the labels alphabetically and then choose one.
18383 At the position of the cross-reference box the float number will appear
18387 \begin_layout Standard
18388 It is recommended to use a protected space between the cross-reference name
18389 and its number to avoid line breaks between them.
18390 If a cross-reference refers to a non-existing label, you will see two question
18391 marks in the output instead of the reference.
18394 \begin_layout Standard
18395 You can change labels at any time by clicking on the label box.
18396 References to the changed label will automatically change its link to the
18397 new label text, so that you don't need to take care about this.
18400 \begin_layout Standard
18407 in the cross-reference window sets the cursor before the referred label.
18408 The button text changes then to Go\InsetSpace ~
18409 Back and you can use it to set the cursor
18410 back to the cross-reference.
18411 Right-clicking on a cross-reference box also sets the cursor before the
18412 referenced label but without a possibility to go back.
18415 \begin_layout Subsection
18416 Cross-Reference Formats
18417 \begin_inset LatexCommand label
18418 name "sub:Cross-Reference-Formats"
18423 \begin_inset LatexCommand index
18424 name "References ! Formats"
18431 \begin_layout Standard
18432 There are six varieties of cross-references:
18435 \begin_layout Description
18436 <reference>: prints the float number, this is the default:
18437 \begin_inset LatexCommand ref
18438 reference "fig:Two-distorted-images"
18445 \begin_layout Description
18446 (<reference>): prints the float number within two parentheses, this is the
18447 style normally used to reference formulas, especially when the reference
18449 \begin_inset Quotes eld
18453 \begin_inset Quotes erd
18457 \begin_inset LatexCommand eqref
18465 \begin_layout Description
18466 <page>: prints the page number: Page\InsetSpace ~
18468 \begin_inset LatexCommand pageref
18469 reference "fig:Two-distorted-images"
18476 \begin_layout Description
18479 <page>: prints the text "on page" and the page number:
18480 \begin_inset LatexCommand vpageref
18481 reference "fig:Two-distorted-images"
18488 \begin_layout Description
18489 <reference>\InsetSpace ~
18492 <page>: prints the float number, the text "on page", and
18494 \begin_inset LatexCommand vref
18495 reference "fig:Two-distorted-images"
18502 \begin_layout Description
18503 Formatted\InsetSpace ~
18504 reference: prints a self defined cross-reference format.
18506 \begin_inset Note Greyedout
18509 \begin_layout Standard
18514 This feature is only available when you have the LaTeX-package
18526 \begin_layout Standard
18527 Note that the style <page> won't print the page number if the label is on
18528 the previous, the same, or the next page.
18529 You will e.\InsetSpace \thinspace{}
18532 \begin_inset Quotes eld
18540 \begin_inset Quotes erd
18546 \begin_layout Standard
18547 The number and current page of the referred document part in the output,
18548 is automatically calculated by LaTeX.
18549 The varieties are adjusted in the field
18553 of the cross-reference window, that appear when you click on the cross-referenc
18557 \begin_layout Subsection
18558 Referencing Subfigures
18559 \begin_inset LatexCommand label
18560 name "sub:Referencing-Subfigures"
18565 \begin_inset LatexCommand index
18566 name "References ! to Subfigures"
18573 \begin_layout Standard
18574 Currently referencing subfigures is not supported by LyX, so you have to
18575 use LaTeX-commands.
18576 The label is the created with the command
18579 \begin_layout Standard
18584 label{fig:YourLabelName}
18587 \begin_layout Standard
18588 that is directly inserted into the subfigure caption field.
18589 To reference the label add this command in ERT
18592 \begin_layout Standard
18597 ref{fig:YourLabelName}
18600 \begin_layout Standard
18601 to the position in your document where the reference should be placed.
18602 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18607 \begin_layout Standard
18619 \begin_layout Subsection
18620 Automatic Reference Naming
18621 \begin_inset LatexCommand index
18622 name "References ! Automatic Reference Naming"
18629 \begin_layout Standard
18634 provides a very useful feature that cross-references automatically include
18635 the name of the referenced floats (or text parts like sections).
18636 You save to write e.\InsetSpace \thinspace{}
18639 \begin_inset Quotes eld
18643 \begin_inset Quotes erd
18646 before every reference box.
18647 To get this automatic reference naming, you have to load the LaTeX-package
18653 \begin_inset LatexCommand index
18654 name "LaTeX-packages ! hyperref"
18658 in the document preamble with
18661 \begin_layout Standard
18666 usepackage[pdfborder={0 0 0}]{hyperref}
18681 \begin_layout Standard
18686 is used to link cross-references in the DVI- and PDF-output, this means
18687 that the reader of your document will be able to click on a table of content
18688 (TOC) entry or on a reference and he will be shown the referenced document
18694 also creates PDF-bookmarks for every section of your document to make it
18695 easier for readers to navigate through the document.
18696 This is also used in this document but when you have a look in the document
18697 preamble you will find various options in the load command of
18702 To learn more about the
18706 package, we refer to its documentation
18707 \begin_inset LatexCommand cite
18715 \begin_layout Standard
18716 \begin_inset Note Greyedout
18719 \begin_layout Standard
18724 Automatic reference naming cannot be used when you use cross-references
18727 Formatted\InsetSpace ~
18730 style, described in section\InsetSpace ~
18732 \begin_inset LatexCommand ref
18733 reference "sub:Cross-Reference-Formats"
18745 \begin_layout Subsection
18747 \begin_inset LatexCommand label
18748 name "sub:Reference-Position"
18753 \begin_inset LatexCommand index
18754 name "References ! Reference Position"
18761 \begin_layout Standard
18767 \begin_inset LatexCommand index
18768 name "LaTeX-packages ! hyperref"
18772 to link cross-references in the output, you will see that clicking on an
18773 image float reference jumps to the image label.
18774 The caption will be the first text part on the screen, so that you cannot
18775 see the image without scrolling.
18776 This is because the reference link anchor is placed at the position of
18778 With the use of the package
18783 \begin_inset LatexCommand index
18784 name "LaTeX-packages ! hypcap"
18788 , which is part of the LaTeX-package
18793 \begin_inset LatexCommand index
18794 name "LaTeX-packages ! oberdiek"
18798 , the link anchor is placed at the beginning of a float.
18799 To use this feature for figure floats, load
18803 in the document preamble with the line
18806 \begin_layout Standard
18811 usepackage[f\SpecialChar \textcompwordmark{}
18815 \begin_layout Standard
18820 for all floats but this isn't recommended for stability reasons.
18821 For more informations, have a look at
18826 \begin_inset LatexCommand cite
18834 \begin_layout Standard
18835 \begin_inset Note Greyedout
18838 \begin_layout Standard
18847 must be loaded after
18851 in the document preamble.
18859 \begin_layout Standard
18860 \begin_inset Note Greyedout
18863 \begin_layout Standard
18872 has no effect for references to subfigures.
18880 \begin_layout Section
18882 \begin_inset LatexCommand label
18883 name "sec:Float-Placement"
18888 \begin_inset LatexCommand index
18889 name "Floats ! Placement"
18896 \begin_layout Standard
18897 Right-clicking on a float-box opens a dialog where you can alter the placement
18898 options that LaTeX uses for positioning the float.
18905 is only useful for two-column documents: If you select it, the float will
18906 span across both columns on the page instead of being confined to just
18911 Rotate\InsetSpace ~
18914 is used to rotate floats, see section
18915 \begin_inset LatexCommand ref
18916 reference "sec:Rotated-Floats"
18923 \begin_layout Standard
18924 You can use one ore more of the following options in the float dialog to
18925 set the placement for a particular float when you uncheck the option
18928 default\InsetSpace ~
18934 \begin_layout Description
18937 possible try to place the float on the position where it is inserted
18940 \begin_layout Description
18943 page try to place the float on the top of the current page
18946 \begin_layout Description
18947 Bottom\InsetSpace ~
18949 page try to place the float on the bottom of the current page
18952 \begin_layout Description
18955 floats try to place the float on an own page
18958 \begin_layout Standard
18959 The order of the above option is
18964 That means, if you use the default placement, LaTeX will first try out
18977 , and then the others.
18978 If you don't use the default, LaTeX will try only the checked options but
18980 If none of the 4 placements are possible the procedure is internally repeated
18981 but it is tried to put the float on the following page.
18984 \begin_layout Standard
18985 By default, each option has its own rules:
18988 \begin_layout Labeling
18989 \labelwidthstring 00.00.0000
18996 only floats occupying less than 70\InsetSpace \thinspace{}
18997 % of the page can be placed at the top
19007 \begin_layout Labeling
19008 \labelwidthstring 00.00.0000
19011 Bottom\InsetSpace ~
19015 : only floats occupying less than 30\InsetSpace \thinspace{}
19016 % of the page can be placed at the bottom
19027 \begin_layout Labeling
19028 \labelwidthstring 00.00.0000
19035 : only if more than 50\InsetSpace \thinspace{}
19036 % of the page are occupied by floats, several floats
19037 can be set together on a page.
19042 f\SpecialChar \textcompwordmark{}
19048 \begin_layout Standard
19049 If you don't like these rules, you can ignore them by using the additional
19052 Ignore\InsetSpace ~
19058 You can also redefine the rules with LaTeX-commands that are given in parenthese
19059 s behind the rules description above.
19060 To increase for example the often too small default of the bottom-rule
19061 to 50\InsetSpace \thinspace{}
19062 % of the page, add this line to your document preamble:
19065 \begin_layout Standard
19072 bottomfraction}{0.5}
19075 \begin_layout Standard
19076 Sometimes you might need, under all circumstances, a float to be placed
19077 exactly at the position where it is inserted.
19078 For this case you can use the option
19084 Use this option very rarely and only if the document is nearly ready to
19086 Because the float is then no longer able to
19087 \begin_inset Quotes eld
19091 \begin_inset Quotes erd
19094 when you change your document and this will often destroy the page layout.
19097 \begin_layout Standard
19098 There are no placement options for text wrap floats, because they are always
19099 surrounded by the text of a certain paragraph.
19100 \begin_inset VSpace bigskip
19106 \begin_layout Standard
19107 Sometimes you have the problem that a float is placed at the top of a page
19108 while its corresponding section starts at the middle of the page, so that
19109 the reader could think the float is part of the previous section.
19110 To avoid this the LaTeX-command
19114 suppressf\SpecialChar \textcompwordmark{}
19118 It suppresses a given float placement for the page where it is inserted
19119 and can therefore be used to avoid that floats could be set before a section
19121 To get this, add these commands to your document preamble:
19124 \begin_layout Standard
19141 suppressf\SpecialChar \textcompwordmark{}
19147 \begin_layout Standard
19148 You can define the same for all section headings, like chapters and subsections.
19149 This definition is not recommended to be used for small text parts like
19150 subsubsections because LaTeX may then have problems to find a suitable
19154 \begin_layout Standard
19155 \begin_inset VSpace bigskip
19158 In some cases it is required to have all figures/tables at the end of the
19160 For this purpose the LaTeX-package
19162 endf\SpecialChar \textcompwordmark{}
19166 \begin_inset LatexCommand index
19167 name "LaTeX-packages ! endfloat"
19172 It puts all figure and table floats at the end of the document into own
19174 At the original float position a text hint like
19175 \begin_inset Quotes eld
19180 [Figure\InsetSpace ~
19184 \begin_inset Quotes erd
19188 The endfloat-package is loaded in the preamble with the line
19191 \begin_layout Standard
19196 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19200 \begin_layout Standard
19201 There are various package options to format the created figure/table sections.
19202 For more information we refer to the
19204 endf\SpecialChar \textcompwordmark{}
19208 \begin_inset LatexCommand cite
19216 \begin_inset Note Greyedout
19219 \begin_layout Standard
19222 Note: endf\SpecialChar \textcompwordmark{}
19225 doesn't provide an automatic translation for the text hint, you have to
19226 do this manually, see section\InsetSpace ~
19228 \begin_inset LatexCommand cite
19241 \begin_inset Note Greyedout
19244 \begin_layout Standard
19249 There is currently a bug in
19251 endf\SpecialChar \textcompwordmark{}
19254 when the caption contains a German
19255 \begin_inset Quotes eld
19259 \begin_inset Quotes erd
19263 Use in this case the command
19264 \begin_inset Quotes eld
19274 \begin_inset Quotes erd
19278 \begin_inset Quotes eld
19282 \begin_inset Quotes erd
19293 \begin_layout Standard
19294 \begin_inset VSpace bigskip
19297 For more details about float placements, have a look at LaTeX books,
19298 \begin_inset LatexCommand cite
19299 key "latexcompanion,latexguide,latexbook"
19306 \begin_layout Section
19308 \begin_inset LatexCommand label
19309 name "sec:Rotated-Floats"
19314 \begin_inset LatexCommand index
19315 name "Floats ! Rotating"
19322 \begin_layout Standard
19323 Especially for wide tables you might have floats rotated.
19324 To rotate a whole float including the caption, right-click on the float-box
19327 Rotate\InsetSpace ~
19333 \begin_layout Standard
19334 Rotated floats are always placed on its own page (or column, when you have
19335 a two-column document).
19336 They are normally rotated so that you can read them from the outside margin
19337 -- to the left on even pages, to the right on odd pages.
19338 To force a certain rotation direction for all pages, you can add either
19341 f\SpecialChar \textcompwordmark{}
19346 f\SpecialChar \textcompwordmark{}
19349 to the document class options.
19352 \begin_layout Standard
19353 Referencing rotated floats is the same like for normal floats, the caption
19354 format is also the same: Table\InsetSpace ~
19356 \begin_inset LatexCommand ref
19357 reference "tab:Rotated-table"
19361 is an example of a rotated table float.
19364 \begin_layout Standard
19365 \begin_inset Note Greyedout
19368 \begin_layout Standard
19373 Not all DVI-viewers are able to display rotated floats.
19381 \begin_layout Standard
19382 \begin_inset Float table
19387 \begin_layout Standard
19388 \begin_inset Caption
19390 \begin_layout Standard
19391 \begin_inset LatexCommand label
19392 name "tab:Rotated-table"
19404 \begin_layout Standard
19406 \begin_inset Tabular
19407 <lyxtabular version="3" rows="1" columns="5">
19409 <column alignment="center" valignment="top" leftline="true" width="0">
19410 <column alignment="center" valignment="top" leftline="true" width="0">
19411 <column alignment="center" valignment="top" leftline="true" width="0">
19412 <column alignment="center" valignment="top" leftline="true" width="0">
19413 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19414 <row topline="true" bottomline="true">
19415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19418 \begin_layout Standard
19424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19427 \begin_layout Standard
19433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19436 \begin_layout Standard
19442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19445 \begin_layout Standard
19451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19454 \begin_layout Standard
19473 \begin_layout Section
19475 \begin_inset LatexCommand index
19476 name "Caption ! Formatting"
19481 \begin_inset LatexCommand index
19482 name "Floats ! Caption Formatting"
19487 \begin_inset LatexCommand index
19488 name "LaTeX-packages ! caption"
19493 \begin_inset LatexCommand label
19494 name "sec:Caption-Formatting"
19501 \begin_layout Standard
19506 environment is the default paragraph environment for
19511 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19514 \begin_inset Quotes eld
19522 \begin_inset Quotes erd
19525 followed by the caption text.
19527 \begin_inset Quotes eld
19531 \begin_inset Quotes erd
19534 is the actual reference number.
19535 By default the label and the number are in the same font as the caption
19536 text and a colon follows the number to divide the label from the text.
19537 This caption format is not suitable for all document formats.
19541 \begin_layout Standard
19542 To change the default caption format, load the LaTeX-package
19547 \begin_inset LatexCommand index
19548 name "LaTeX-packages ! caption"
19552 in the document preamble with this line:
19555 \begin_layout Standard
19560 usepackage[format definition]{caption}
19563 \begin_layout Standard
19564 To have for example the label and the number in sans-serif bold font and
19565 the table captions always above the table like in this document, use the
19569 \begin_layout Standard
19574 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19577 \begin_layout Standard
19578 You can also define different caption formats for the different float types.
19579 In this case load the
19583 package without format specific options and define the different formats
19584 with the help of the command
19587 \begin_layout Standard
19592 captionsetup[float type]{format definition}
19595 \begin_layout Standard
19596 in the document preamble.
19597 For example the caption formats of Figure\InsetSpace ~
19599 \begin_inset LatexCommand ref
19600 reference "fig:This-is-an-fig"
19604 and Table\InsetSpace ~
19606 \begin_inset LatexCommand ref
19607 reference "tab:This-is-an-tab"
19611 can be created using these commands in the document preamble:
19614 \begin_layout Standard
19619 usepackage[tableposition=top]{caption}
19627 captionsetup[f\SpecialChar \textcompwordmark{}
19628 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19634 \begin_layout Standard
19642 captionsetup[figure]
19653 captionsetup[table]{labelfont={bf,sf}}
19656 \begin_layout Standard
19657 \begin_inset Note Greyedout
19660 \begin_layout Standard
19669 has no effect when a
19674 \begin_inset LatexCommand index
19675 name "LaTeX-packages ! koma-script"
19679 document class is used.
19680 In this case the document class option
19692 \begin_layout Standard
19693 For more information about the package
19697 we refer to its documentation
19698 \begin_inset LatexCommand cite
19699 key "caption,caption-de"
19706 \begin_layout Standard
19707 To change the label name from e.g.
19709 \begin_inset Quotes eld
19713 \begin_inset Quotes erd
19717 \begin_inset Quotes eld
19721 \begin_inset Quotes erd
19724 use this preamble command:
19727 \begin_layout Standard
19734 fnum@figure}{Image~
19739 \begin_layout Standard
19746 inserts the figure number and
19749 \begin_inset Quotes eld
19755 \begin_inset Quotes erd
19758 creates a protected space.
19761 \begin_layout Standard
19762 \begin_inset VSpace bigskip
19770 \begin_inset LatexCommand index
19771 name "LaTeX-packages ! koma-script"
19777 article (koma-script)
19785 letter (koma-script)
19789 report (koma-script)
19791 \InsetSpace \thinspace{}
19792 ), you can alternatively to the
19800 's built-in command
19807 For example, to have the caption label in bold, add this command to your
19811 \begin_layout Standard
19816 setkomafont{captionlabel}{
19821 \begin_layout Standard
19822 For more information about
19833 \begin_inset LatexCommand cite
19834 key "koma-script,koma-script-de"
19841 \begin_layout Standard
19845 \begin_layout Standard
19849 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19856 \begin_inset Note Note
19859 \begin_layout Standard
19860 The caption format is changed only for this example.
19868 \begin_layout Standard
19869 \begin_inset Float figure
19875 \begin_layout Standard
19877 \begin_inset Graphics
19878 filename clipart/mobius.eps
19881 scaleBeforeRotation
19888 \begin_layout Standard
19889 \begin_inset Caption
19891 \begin_layout Standard
19892 \begin_inset LatexCommand label
19893 name "fig:This-is-an-fig"
19897 This is an example figure caption that is longer than one line to show the
19898 different caption format.
19899 Here a self-defined caption format is used.
19912 \begin_layout Standard
19916 \begin_layout Standard
19920 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19929 \begin_layout Standard
19930 \begin_inset Float table
19936 \begin_layout Standard
19937 \begin_inset Caption
19939 \begin_layout Standard
19940 \begin_inset LatexCommand label
19941 name "tab:This-is-an-tab"
19945 This is an example table caption that is longer than one line to show the
19946 different caption format.
19947 Here the standard caption format for tables in this document is used.
19955 \begin_layout Standard
19957 \begin_inset Tabular
19958 <lyxtabular version="3" rows="1" columns="5">
19960 <column alignment="center" valignment="top" leftline="true" width="0">
19961 <column alignment="center" valignment="top" leftline="true" width="0">
19962 <column alignment="center" valignment="top" leftline="true" width="0">
19963 <column alignment="center" valignment="top" leftline="true" width="0">
19964 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19965 <row topline="true" bottomline="true">
19966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19969 \begin_layout Standard
19975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19978 \begin_layout Standard
19984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19987 \begin_layout Standard
19993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19996 \begin_layout Standard
20002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20005 \begin_layout Standard
20024 \begin_layout Section
20026 \begin_inset LatexCommand index
20027 name "Caption ! Placement"
20032 \begin_inset LatexCommand index
20033 name "Floats ! Caption Placement"
20038 \begin_inset LatexCommand label
20039 name "sec:Caption-Placement"
20046 \begin_layout Standard
20047 The common caption placement rule is:
20050 \begin_layout Description
20051 Figure: Caption is set below the figure
20054 \begin_layout Description
20055 Table: Caption is set above the table
20058 \begin_layout Standard
20059 Having the caption above the table is unfortunately not supported in LaTeX's
20061 That means if you are using the document classes
20077 there will be no space between the caption and the table.
20078 To insert the needed space, add the following option to the load command
20079 of the LaTeX-package
20083 in your document preamble
20087 \begin_layout Standard
20088 See section\InsetSpace ~
20090 \begin_inset LatexCommand ref
20091 reference "sec:Caption-Formatting"
20095 for more information of the package
20107 \begin_layout Standard
20113 \begin_layout Standard
20119 \begin_inset LatexCommand index
20120 name "LaTeX-packages ! koma-script"
20126 article (koma-script)
20134 letter (koma-script)
20138 report (koma-script)
20140 \InsetSpace \thinspace{}
20141 ), you can alternatively to the
20145 package set the document class option
20152 \begin_layout Standard
20153 \begin_inset VSpace bigskip
20156 It is also possible to set the caption beside a figure or table.
20157 To get this the LaTeX-package
20162 \begin_inset LatexCommand index
20163 name "LaTeX-packages ! sidecap"
20167 has to be loaded in the document preamble with the line
20170 \begin_layout Standard
20175 usepackage[option]{sidecap}
20178 \begin_layout Standard
20179 If you set no option, the caption is placed on the side of the outer page
20180 margin -- to the right on odd pages, to the left on even pages.
20181 You can change the placement to inner margin with the option
20186 To force the placement always to the right or left, use the option
20197 \begin_layout Standard
20198 To place in LyX the caption of a float on the side, it is necessary to add
20199 these commands to the document preamble:
20202 \begin_layout Standard
20208 \begin_layout Standard
20221 \begin_layout Standard
20242 \begin_layout Standard
20263 \begin_layout Standard
20274 renewenvironment{table}{
20281 \begin_layout Standard
20294 \begin_layout Standard
20315 \begin_layout Standard
20333 \begin_layout Standard
20346 \begin_layout Standard
20361 f\SpecialChar \textcompwordmark{}
20368 \begin_layout Standard
20381 MyEndf\SpecialChar \textcompwordmark{}
20384 endf\SpecialChar \textcompwordmark{}
20391 \begin_layout Standard
20402 renewenvironment{f\SpecialChar \textcompwordmark{}
20405 begin{SCf\SpecialChar \textcompwordmark{}
20408 end{SCf\SpecialChar \textcompwordmark{}
20412 \begin_layout Standard
20425 \begin_layout Standard
20438 f\SpecialChar \textcompwordmark{}
20447 \begin_layout Standard
20460 endf\SpecialChar \textcompwordmark{}
20463 MyEndf\SpecialChar \textcompwordmark{}
20467 \begin_layout Standard
20473 \begin_layout Standard
20474 The commands allow you to redefine the floats so that the caption is set
20476 For figure floats use the command
20479 \begin_layout Standard
20487 \begin_layout Standard
20488 in ERT before the float.
20489 Behind the float insert the command
20492 \begin_layout Standard
20500 \begin_layout Standard
20501 in ERT to get back to the original float definition.
20504 \begin_layout Standard
20505 For table floats use the corresponding commands
20508 \begin_layout Standard
20522 \begin_layout Standard
20523 Figure\InsetSpace ~
20525 \begin_inset LatexCommand ref
20526 reference "fig:cap-beside-fig"
20530 and Table\InsetSpace ~
20532 \begin_inset LatexCommand ref
20533 reference "tab:cap-beside-tab"
20537 are examples where the caption is set beside.
20540 \begin_layout Standard
20541 You can see in the examples that the caption text appears at the top of
20542 the floats for table floats and at the bottom for figure floats.
20543 To change this, you can use the command
20546 \begin_layout Standard
20551 sidecaptionvpos{float type}{placement}
20554 \begin_layout Standard
20555 in the document preamble or in ERT before the float.
20556 The float type is either
20564 , the placement can be
20565 \begin_inset Quotes eld
20573 \begin_inset Quotes erd
20577 \begin_inset Quotes eld
20585 \begin_inset Quotes erd
20589 \begin_inset Quotes eld
20597 \begin_inset Quotes erd
20601 To have for example the caption of figure floats vertically centered, use
20605 \begin_layout Standard
20610 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20614 \begin_layout Standard
20615 This was used for Figure\InsetSpace ~
20617 \begin_inset LatexCommand ref
20618 reference "fig:cap-beside-fig-2"
20625 \begin_layout Standard
20626 \begin_inset VSpace medskip
20629 For more information about the package
20633 we refer to its documentation
20634 \begin_inset LatexCommand cite
20642 \begin_layout Standard
20643 \begin_inset Note Greyedout
20646 \begin_layout Standard
20656 \begin_inset LatexCommand index
20657 name "LaTeX-packages ! hypcap"
20661 , described in section\InsetSpace ~
20663 \begin_inset LatexCommand ref
20664 reference "sub:Reference-Position"
20668 , has no effect on floats with the caption set beside.
20676 \begin_layout Standard
20680 \begin_layout Standard
20692 \begin_layout Standard
20693 \begin_inset Float figure
20698 \begin_layout Standard
20699 \begin_inset Graphics
20700 filename clipart/escher-lsd.eps
20702 scaleBeforeRotation
20709 \begin_layout Standard
20710 \begin_inset Caption
20712 \begin_layout Standard
20713 \begin_inset LatexCommand label
20714 name "fig:cap-beside-fig"
20718 This is a caption beside a figure.
20731 \begin_layout Standard
20735 \begin_layout Standard
20747 \begin_layout Standard
20748 \begin_inset Float table
20753 \begin_layout Standard
20754 \begin_inset Caption
20756 \begin_layout Standard
20757 \begin_inset LatexCommand label
20758 name "tab:cap-beside-tab"
20762 This is a caption beside a table.
20770 \begin_layout Standard
20771 \begin_inset Tabular
20772 <lyxtabular version="3" rows="4" columns="5">
20774 <column alignment="center" valignment="top" leftline="true" width="0">
20775 <column alignment="center" valignment="top" leftline="true" width="0">
20776 <column alignment="center" valignment="top" leftline="true" width="0">
20777 <column alignment="center" valignment="top" leftline="true" width="0">
20778 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20779 <row topline="true">
20780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20783 \begin_layout Standard
20789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20792 \begin_layout Standard
20798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20801 \begin_layout Standard
20807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20810 \begin_layout Standard
20816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20819 \begin_layout Standard
20826 <row topline="true">
20827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20830 \begin_layout Standard
20836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20839 \begin_layout Standard
20845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20848 \begin_layout Standard
20854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20857 \begin_layout Standard
20863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20866 \begin_layout Standard
20873 <row topline="true">
20874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20877 \begin_layout Standard
20883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20886 \begin_layout Standard
20892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20895 \begin_layout Standard
20901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20904 \begin_layout Standard
20910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20913 \begin_layout Standard
20920 <row topline="true" bottomline="true">
20921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20924 \begin_layout Standard
20930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20933 \begin_layout Standard
20939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20942 \begin_layout Standard
20948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20951 \begin_layout Standard
20957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20960 \begin_layout Standard
20979 \begin_layout Standard
20983 \begin_layout Standard
20995 \begin_layout Standard
20999 \begin_layout Standard
21003 sidecaptionvpos{figure}{c}
21009 \begin_inset Float figure
21014 \begin_layout Standard
21015 \begin_inset Graphics
21016 filename clipart/escher-lsd.eps
21018 scaleBeforeRotation
21025 \begin_layout Standard
21026 \begin_inset Caption
21028 \begin_layout Standard
21029 \begin_inset LatexCommand label
21030 name "fig:cap-beside-fig-2"
21034 This is a vertically centered caption beside a figure.
21047 \begin_layout Standard
21051 \begin_layout Standard
21063 \begin_layout Section
21065 \begin_inset LatexCommand label
21066 name "sec:Listings-of-Floats"
21071 \begin_inset LatexCommand index
21072 name "Floats ! Float Lists"
21079 \begin_layout Standard
21080 Similar to the the table of contents where the sections of the document
21081 are listed, there are listings for all float types, like the figures of
21083 You can insert them via the
21085 Insert\SpecialChar \menuseparator
21093 \begin_layout Standard
21094 The list entries are the float captions or its short title, the float number,
21095 and the page number where they appear in the document.
21098 \begin_layout Standard
21099 You can find the list of figures and tables at the end of this document.
21102 \begin_layout Chapter
21106 \begin_layout Section
21110 \begin_layout Standard
21123 \begin_layout Standard
21131 \begin_inset LatexCommand label
21132 name "sec:LyX-Notes"
21137 \begin_inset LatexCommand index
21138 name "Notes ! LyX Notes"
21143 \begin_inset Note Note
21146 \begin_layout Standard
21149 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21150 are displayed wrongly in PDF-bookmarks.
21151 For more information about this, have a look at
21152 \begin_inset LatexCommand cite
21165 \begin_layout Standard
21166 Notes are inserted with the toolbar button
21167 \begin_inset Graphics
21168 filename ../images/note-insert.xpm
21170 scaleBeforeRotation
21176 Insert\SpecialChar \menuseparator
21180 There are five types of notes:
21183 \begin_layout Description
21185 Note This note type is for internal notes that won't appear in the output.
21186 Its note-box looks like this:
21191 \begin_inset Graphics
21192 filename clipart/LyXNoteImageQt4.png
21195 scaleBeforeRotation
21200 \begin_inset Note Note
21203 \begin_layout Standard
21204 This is text in a note box that doesn't appear in the output.
21212 \begin_layout Description
21213 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21214 ent, when you export the document to LaTeX via the menu
21216 File\SpecialChar \menuseparator
21217 Export\SpecialChar \menuseparator
21218 LaTeX (pdflatex) / LaTeX (plain)
21221 Its note-box looks like this:
21226 \begin_inset Graphics
21227 filename clipart/CommentNoteImageQt4.png
21230 scaleBeforeRotation
21235 \begin_inset Note Comment
21238 \begin_layout Standard
21239 This is text in a note box that only appears as comment in LaTeX-files.
21247 \begin_layout Description
21248 Greyed\InsetSpace ~
21249 Out This note will appear in the output as grey text.
21250 Its note-box looks like this:
21255 \begin_inset Graphics
21256 filename clipart/GreyedOutNoteImageQt4.png
21259 scaleBeforeRotation
21269 \begin_layout Standard
21273 renewenvironment{lyxgreyedout}
21276 \begin_layout Standard
21280 textcolor[gray]{0.8}
21290 \begin_inset Note Greyedout
21293 \begin_layout Standard
21298 \begin_layout Standard
21299 This is an example footnote within a greyed out note.
21304 of a comment that appears in the output as grey text.
21313 \begin_layout Standard
21317 renewenvironment{lyxgreyedout}
21320 \begin_layout Standard
21334 \begin_inset Note Note
21337 \begin_layout Standard
21338 The greyed out note is here redefined to show it with the original LyX definitio
21339 n because greyed out notes are redefined in the preamble of this document,
21340 as described below, to have blue text.
21349 As you can see in the example, the first line of greyed out notes is a bit
21350 indented and greyed out notes can have footnotes.
21353 \begin_layout Description
21354 Framed This note will appear in the output as framed text.
21355 Its note-box looks like this:
21360 \begin_inset Graphics
21361 filename clipart/FramedNoteImageQt4.png
21364 scaleBeforeRotation
21369 \begin_inset Note Framed
21372 \begin_layout Standard
21373 This is text in a note box that appears framed in the output.
21378 In contrary to framed boxes
21382 \begin_layout Standard
21383 Framed boxes are described in section\InsetSpace ~
21385 \begin_inset LatexCommand ref
21386 reference "sec:Framed-Boxes"
21395 the frame uses always the whole text width and the note is set into its
21399 \begin_layout Description
21400 Shaded This note will appear in the output with red background color.
21401 Its note box looks like this:
21406 \begin_inset Graphics
21407 filename clipart/ShadedNoteImageQt4.png
21410 scaleBeforeRotation
21415 \begin_inset Note Shaded
21418 \begin_layout Standard
21419 This text in a note box appears in the output with red background.
21424 In contrary to colored boxes
21428 \begin_layout Standard
21429 Colored boxes are described in section\InsetSpace ~
21431 \begin_inset LatexCommand ref
21432 reference "sec:Colored-Boxes"
21441 the note uses always the whole text width and the note is set into its
21445 \begin_layout Standard
21446 \begin_inset VSpace bigskip
21449 When you use the toolbar button
21450 \begin_inset Graphics
21451 filename ../images/note-insert.xpm
21453 scaleBeforeRotation
21463 You can switch between the five note types by right-clicking on the note-box.
21468 If you want to turn existing text into a note, mark it and click on the
21484 \begin_layout Standard
21485 \begin_inset VSpace bigskip
21488 You can change the text color of the greyed out notes in the preamble with
21489 the following command:
21492 \begin_layout Standard
21497 renewenvironment{lyxgreyedout}
21503 \begin_layout Standard
21521 \begin_layout Standard
21522 The available colors and the method to define own colors is explained in
21523 section\InsetSpace ~
21525 \begin_inset LatexCommand ref
21526 reference "sec:Colored-Tables"
21533 \begin_layout Standard
21534 Notes that appear in blue in this document are set using greyed out notes
21538 \begin_layout Standard
21539 \begin_inset VSpace bigskip
21545 \begin_layout Standard
21554 notes can be set in the
21561 \begin_layout Standard
21562 The default frame width for
21566 notes is 0.4\InsetSpace \thinspace{}
21567 pt; it can be changed by changing the size
21574 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21576 be changed by changing the size
21583 For example the frame appearance of the following
21587 note is set with the ERT commands
21590 \begin_layout Standard
21600 \begin_layout Standard
21604 \begin_layout Standard
21616 \begin_inset Note Framed
21619 \begin_layout Standard
21633 \begin_layout Standard
21647 \begin_layout Standard
21648 \begin_inset VSpace bigskip
21654 \begin_layout Standard
21659 notes the default space between the note content and the note border is
21660 3\InsetSpace \thinspace{}
21661 pt; it can be changed by changing the size
21669 The default background color red can be changed with the command
21673 def\SpecialChar \textcompwordmark{}
21681 def\SpecialChar \textcompwordmark{}
21684 command is explained in section\InsetSpace ~
21686 \begin_inset LatexCommand ref
21687 reference "sec:Colored-Tables"
21695 \begin_layout Standard
21702 \SpecialChar \textcompwordmark{}
21707 requires the LaTeX-package
21711 in the preamble, see section\InsetSpace ~
21713 \begin_inset LatexCommand ref
21714 reference "sec:Colored-Boxes"
21726 \begin_layout Standard
21727 For example the appearance of the following
21731 note is set with the ERT commands
21734 \begin_layout Standard
21747 def\SpecialChar \textcompwordmark{}
21748 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21751 \begin_layout Standard
21755 \begin_layout Standard
21768 \begin_layout Standard
21772 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21778 \begin_inset Note Shaded
21781 \begin_layout Standard
21784 This is yellow text in a
21794 note with darkgreen background.
21803 \begin_layout Standard
21816 \begin_layout Standard
21820 definecolor{shadecolor}{rgb}{1,0,0}
21828 \begin_layout Section
21830 \begin_inset LatexCommand label
21831 name "sec:Footnotes"
21836 \begin_inset LatexCommand index
21837 name "Notes ! Footnotes"
21842 \begin_inset LatexCommand index
21850 \begin_layout Standard
21851 Footnotes can be inserted using the toolbar button
21852 \begin_inset Graphics
21853 filename ../images/footnote-insert.xpm
21855 scaleBeforeRotation
21861 Insert\SpecialChar \menuseparator
21873 then the following footnote-box:
21874 \begin_inset Graphics
21875 filename clipart/footnoteQt4.png
21877 scaleBeforeRotation
21885 where you can enter the footnote text.
21886 If you want to turn existing text into a footnote, mark it and click on
21902 \begin_layout Standard
21903 Here is an example footnote:
21911 \begin_layout Standard
21912 \begin_inset LatexCommand label
21913 name "foot:This-is-an"
21917 This is an example footnote.
21930 \begin_layout Standard
21934 newcounter{MyRepeatFoot}
21937 \begin_layout Standard
21941 setcounter{MyRepeatFoot}{
21951 \begin_layout Standard
21952 The footnote will appear in the output as a superscript number at the text
21953 position where the footnote box is placed.
21954 The footnote text is placed at the bottom of the current page.
21955 The footnote number is calculated by LaTeX, the numbers are consecutive.
21956 It depends on your document-class, if the footnote number is reset for
21960 \begin_layout Standard
21961 Footnotes can be referenced like floats: Insert a label into the footnote
21962 and cross-reference this label in the text as described in section\InsetSpace ~
21964 \begin_inset LatexCommand ref
21965 reference "sec:Referencing-Floats"
21971 This is a cross-reference of Footnote\InsetSpace ~
21973 \begin_inset LatexCommand ref
21974 reference "foot:This-is-an"
21981 \begin_layout Standard
21982 \begin_inset VSpace defskip
21985 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21987 \begin_inset LatexCommand ref
21988 reference "sec:Minipages"
21993 Footnotes within longtables are described in section\InsetSpace ~
21995 \begin_inset LatexCommand ref
21996 reference "sub:Footnotes-in-Longtables"
22003 \begin_layout Standard
22004 \begin_inset VSpace defskip
22007 To create only a mark for a footnote, use the command
22011 footnotemark[number]
22014 This is used when you have the same annotation several times in a text
22015 but doesn't want to print the footnote text every time.
22018 the number of the repeating footnote while you are writing the text, you
22019 have to store its number.
22020 For the following footnote mark example, these commands were inserted in
22021 ERT behind Footnote\InsetSpace ~
22023 \begin_inset LatexCommand ref
22024 reference "foot:This-is-an"
22028 to store the footnote number:
22031 \begin_layout Standard
22036 newcounter{MyRepeatFoot}
22040 setcounter{MyRepeatFoot}{
22045 \begin_layout Standard
22046 The footnote mark was then created with this command:
22049 \begin_layout Standard
22059 \begin_layout Standard
22060 Here is an example footnote mark:
22068 \begin_layout Standard
22082 \begin_layout Subsection
22084 \begin_inset LatexCommand label
22085 name "sub:Footnote-Numbering"
22090 \begin_inset LatexCommand index
22091 name "Footnotes ! Numbering"
22098 \begin_layout Standard
22099 To reset the footnote number back to 1 after each section
22101 , add this command to your document preamble:
22104 \begin_layout Standard
22109 @addtoreset{footnote}{section}
22112 \begin_layout Standard
22113 \begin_inset VSpace bigskip
22116 The following preamble command changes the footnote numbering style to small
22120 \begin_layout Standard
22132 \begin_layout Standard
22136 \begin_layout Standard
22149 This is a footnote with roman numbering:
22153 \begin_layout Standard
22154 This is an example footnote with roman numbering.
22162 \begin_layout Standard
22163 To change the numbering style to capital roman numerals replace in the command
22178 \begin_inset Quotes eld
22182 \begin_inset Quotes erd
22185 footnotes with capital or small Latin letters use
22199 \begin_inset Quotes eld
22203 \begin_inset Quotes erd
22206 footnotes with symbols use
22215 \begin_layout Standard
22216 \begin_inset Note Greyedout
22219 \begin_layout Standard
22224 You can only number 26 footnotes with Latin letters, because this numbering
22225 is limited to single letters.
22233 \begin_inset Note Greyedout
22236 \begin_layout Standard
22241 You can only number 9 footnotes with symbols.
22249 \begin_layout Standard
22250 To return to the default numbering style when you changed to another one,
22263 in the command above.
22267 \begin_layout Standard
22283 \begin_layout Standard
22284 \begin_inset VSpace bigskip
22290 \begin_layout Standard
22291 If you want to have footnotes numbered in the scheme
22292 \begin_inset Quotes eld
22296 \begin_inset Quotes erd
22299 , add the following command to your document preamble:
22302 \begin_layout Standard
22307 numberwithin{footnote}{chapter}
22310 \begin_layout Standard
22311 To be able to use the command
22322 in the document settings the option
22332 \begin_layout Standard
22336 \begin_layout Standard
22340 numberwithin{footnote}{chapter}
22345 This is another example footnote:
22351 \begin_layout Standard
22352 This is a footnote numbered in the scheme
22353 \begin_inset Quotes eld
22357 \begin_inset Quotes erd
22371 \begin_layout Standard
22387 \begin_layout Standard
22388 \begin_inset Note Greyedout
22391 \begin_layout Standard
22402 always prints out the footnote number as arabic number; previous redefinitions
22403 to get non-arabic numbers are overwritten.
22411 \begin_layout Standard
22412 So to get for example the scheme
22413 \begin_inset Quotes eld
22419 \begin_inset Quotes erd
22422 , use this command instead of
22431 \begin_layout Standard
22445 \begin_layout Subsection
22447 \begin_inset LatexCommand index
22448 name "Footnotes ! Placement"
22455 \begin_layout Standard
22456 If you have several footnotes in one page, they appear without vertical
22457 space between them at the bottom of the page.
22458 To make them better readable you can e.\InsetSpace \thinspace{}
22460 add 1.5\InsetSpace \thinspace{}
22461 mm space with the following
22465 \begin_layout Standard
22487 \begin_layout Standard
22488 \begin_inset VSpace bigskip
22491 In a two-column document the footnotes appear at the bottom of every column,
22492 see Figure\InsetSpace ~
22494 \begin_inset LatexCommand ref
22495 reference "fig:Standard-footnote-placement"
22500 If the footnotes should only appear at the bottom of the right column,
22501 as in Figure\InsetSpace ~
22503 \begin_inset LatexCommand ref
22504 reference "fig:Footnote-placement-in"
22508 , use the LaTeX-package
22513 \begin_inset LatexCommand index
22514 name "LaTeX-packages ! ftnright"
22518 with this command in the document preamble:
22521 \begin_layout Standard
22526 usepackage{ftnright}
22529 \begin_layout Standard
22530 \begin_inset Float figure
22536 \begin_layout Standard
22540 \begin_layout Standard
22550 \begin_inset Graphics
22551 filename clipart/without_fntright.pdf
22553 scaleBeforeRotation
22561 \begin_layout Standard
22571 \begin_layout Standard
22572 \begin_inset Caption
22574 \begin_layout Standard
22575 \begin_inset LatexCommand label
22576 name "fig:Standard-footnote-placement"
22580 Standard footnote placement in two-column documents.
22593 \begin_layout Standard
22594 \begin_inset Float figure
22600 \begin_layout Standard
22604 \begin_layout Standard
22614 \begin_inset Graphics
22615 filename clipart/with_fntright.pdf
22617 scaleBeforeRotation
22625 \begin_layout Standard
22635 \begin_layout Standard
22636 \begin_inset Caption
22638 \begin_layout Standard
22639 \begin_inset LatexCommand label
22640 name "fig:Footnote-placement-in"
22644 Footnote placement in two-column documents when the LaTeX-package
22661 \begin_layout Standard
22662 \begin_inset VSpace bigskip
22665 In some scientific literature it is usual to collect the footnotes and print
22666 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22668 \begin_inset LatexCommand ref
22669 reference "fig:Endnotes----footnotes"
22674 They are then so called
22675 \begin_inset Quotes eld
22679 \begin_inset Quotes erd
22683 To use endnotes instead of footnotes in your document, load the LaTeX-package
22689 \begin_inset LatexCommand index
22690 name "LaTeX-packages ! endnotes"
22694 with the document preamble lines
22697 \begin_layout Standard
22702 usepackage{endnotes}
22713 \begin_layout Standard
22714 To insert the collected footnotes, insert the command
22717 \begin_layout Standard
22725 \begin_layout Standard
22726 in ERT at the the end of a section or chapter.
22729 \begin_layout Standard
22730 \begin_inset Float figure
22735 \begin_layout Standard
22740 \begin_layout Standard
22750 \begin_inset Graphics
22751 filename clipart/endnotes.pdf
22752 scaleBeforeRotation
22760 \begin_layout Standard
22770 \begin_layout Standard
22771 \begin_inset Caption
22773 \begin_layout Standard
22774 \begin_inset LatexCommand label
22775 name "fig:Endnotes----footnotes"
22779 Endnotes -- footnotes are printed in a separate paragraph at the end of
22780 sections or chapters.
22793 \begin_layout Standard
22794 \begin_inset VSpace medskip
22797 The paragraph heading for the endnotes isn't automatically translated into
22798 the document language, this must be done manually.
22799 The following preamble command translate the default English name
22800 \begin_inset Quotes eld
22804 \begin_inset Quotes erd
22807 to the German translation
22808 \begin_inset Quotes eld
22812 \begin_inset Quotes erd
22818 \begin_layout Standard
22825 notesname}{Anmerkungen}
22828 \begin_layout Standard
22829 \begin_inset VSpace medskip
22832 The numbering of endnotes can be changed like the footnote numbering as
22833 described in section\InsetSpace ~
22835 \begin_inset LatexCommand ref
22836 reference "sub:Footnote-Numbering"
22840 ; just replace the command
22853 To reset the endnote number use the command
22859 as described in section\InsetSpace ~
22861 \begin_inset LatexCommand ref
22862 reference "sub:Footnote-Numbering"
22866 and replace the command parameter
22877 \begin_layout Standard
22878 To create only a mark for an endnote, use the command
22882 endnotemark[number]
22884 similar to the command
22890 , described in section\InsetSpace ~
22892 \begin_inset LatexCommand ref
22893 reference "sec:Footnotes"
22900 \begin_layout Standard
22901 \begin_inset VSpace bigskip
22904 Footnotes can also be placed in the page margin and the footnote text alignment
22905 can be changed, see the LaTeX-package
22910 \begin_inset LatexCommand index
22911 name "LaTeX-packages ! footmisc"
22916 \begin_inset LatexCommand cite
22921 for more information about this.
22924 \begin_layout Standard
22925 For various further footnote formatting issues have a look at LaTeX-books,
22927 \begin_inset LatexCommand cite
22928 key "latexcompanion,latexguide,latexbook"
22935 \begin_layout Section
22937 \begin_inset LatexCommand index
22938 name "Notes ! Margin Notes"
22945 \begin_layout Standard
22946 Margin notes look and behave in LyX like footnotes.
22947 They are inserted via the menu
22949 Insert\SpecialChar \menuseparator
22950 Marginal\InsetSpace ~
22953 or the toolbar button
22954 \begin_inset Graphics
22955 filename ../images/marginalnote-insert.xpm
22957 scaleBeforeRotation
22972 \begin_inset Quotes eld
22976 \begin_inset Quotes erd
22979 appears where you can enter the text of the margin note.
22982 \begin_layout Standard
22983 At the side is an example margin note.
22987 \begin_inset Marginal
22990 \begin_layout Standard
22991 This is a margin note.
22999 \begin_layout Standard
23000 Margin notes appear at the right side in single-sided documents.
23001 In double-sided documents they appear in the outer margin -- left on even
23002 pages, right on odd pages.
23003 The text of margin notes is aligned opposite to the outer margin -- right-align
23004 ed when the note appears in the left margin.
23005 The first line of the margin note is placed at the position of the text
23006 line where it is inserted in the document.
23009 \begin_layout Standard
23010 \begin_inset VSpace bigskip
23013 To place the margin note in the inner margin, add the command
23016 \begin_layout Standard
23024 \begin_layout Standard
23025 in ERT before a margin note.
23026 The new placement is valid for all following margin notes.
23030 \begin_layout Standard
23040 \begin_inset Marginal
23043 \begin_layout Standard
23044 This is a margin note in the inner margin.
23056 \begin_inset Note Greyedout
23059 \begin_layout Standard
23064 There is often not enough space in the inner margin so that the notes are
23065 not correctly displayed in the output.
23073 \begin_layout Standard
23074 To return to the default placement insert the command
23077 \begin_layout Standard
23085 \begin_layout Standard
23090 \begin_layout Standard
23100 \begin_inset Note Greyedout
23103 \begin_layout Standard
23108 The command is ignored when it is within a paragraph where also the command
23123 \begin_layout Standard
23124 \begin_inset VSpace bigskip
23131 \begin_inset Marginal
23134 \begin_layout Standard
23135 AVeryLongMarginParWord that isn't hyphenated.
23143 Similar to the case described in section\InsetSpace ~
23145 \begin_inset LatexCommand ref
23146 reference "sub:Multiple-Lines-in"
23150 , long words cannot be hyphenated when they are the first word in a margin
23152 To avoid this, insert the command
23155 \begin_layout Standard
23163 \begin_layout Standard
23164 in ERT before the word
23168 \begin_inset Marginal
23171 \begin_layout Standard
23175 \begin_layout Standard
23184 AVeryLongMarginParWord that is hyphenated.
23192 \begin_layout Standard
23193 \begin_inset VSpace bigskip
23199 \begin_layout Standard
23200 \begin_inset Note Greyedout
23203 \begin_layout Standard
23208 Margin notes can normally not be used inside tables, floats, and footnotes.
23216 \begin_layout Standard
23217 \begin_inset VSpace bigskip
23223 \begin_layout Standard
23227 \begin_layout Standard
23237 \begin_inset Note Note
23240 \begin_layout Standard
23241 The following section will only be displayed when you have the LaTeX-package
23254 \begin_layout Standard
23255 This restriction can be evaded by using the LaTeX-package
23260 \begin_inset LatexCommand index
23261 name "LaTeX-packages ! marginnote"
23266 By adding these two lines to your document preamble, the command used by
23267 LyX for margin notes is redefined to use the command provided by the
23274 \begin_layout Standard
23279 usepackage{marginnote}
23290 \begin_layout Standard
23291 This is also used in this document because
23295 has another useful feature: You can set a vertical offset for the note.
23296 This is often needed when too many margin notes are too close together
23297 or for a better page layout.
23298 The offset is set in LyX as ERT directly behind the margin note in the
23302 \begin_layout Standard
23308 \begin_layout Standard
23309 where the offset is a length with one of the units listed in Table\InsetSpace ~
23311 \begin_inset LatexCommand ref
23312 reference "tab:Units"
23317 A negative value shifts the note up, a positive value shifts it down.
23321 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23324 \begin_inset Quotes eld
23334 \begin_inset Quotes erd
23338 \begin_inset Marginal
23341 \begin_layout Standard
23342 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23343 cm from its original position.
23355 \begin_layout Standard
23365 \begin_layout Standard
23366 \begin_inset VSpace medskip
23373 you can also change the alignment of the text in the margin note.
23374 For example the commands
23377 \begin_layout Standard
23384 raggedleftmarginnote}{
23392 raggedrightmarginnote}{
23397 \begin_layout Standard
23398 set the alignment to centered.
23403 raggedleftmarginnote
23405 denotes margin notes that appear at the left side.
23412 \begin_layout Standard
23418 raggedleftmarginnote}{
23423 \begin_layout Standard
23429 raggedrightmarginnote}{
23437 \begin_inset Marginal
23440 \begin_layout Standard
23441 The text of this margin note is centered.
23452 \begin_layout Standard
23459 raggedleftmarginnote}{
23467 raggedrightmarginnote}{
23476 \begin_layout Standard
23482 raggedleftmarginnote}{
23487 \begin_layout Standard
23493 raggedrightmarginnote}{
23503 \begin_layout Standard
23504 \begin_inset VSpace medskip
23507 For the other features of
23511 we refer to its documentation
23512 \begin_inset LatexCommand cite
23520 \begin_layout Standard
23521 \begin_inset VSpace bigskip
23524 You can adjust the layout of margin notes by changing its definition.
23525 To create for example a header for all margin notes with the underlined,
23526 sans-serif, and bold header text
23527 \begin_inset Quotes eld
23539 \begin_inset Quotes erd
23542 , add this to your document preamble:
23545 \begin_layout Standard
23568 \begin_layout Standard
23585 underbar{Attention!}}}%
23591 \begin_layout Standard
23609 \begin_layout Standard
23616 \begin_layout Standard
23627 \begin_layout Standard
23638 \begin_layout Standard
23646 underbar{Attention!}}}%
23649 \begin_layout Standard
23663 \begin_inset Marginal
23666 \begin_layout Standard
23667 This is a margin note with a defined heading.
23679 \begin_layout Standard
23693 \begin_layout Standard
23710 \begin_inset Note Note
23713 \begin_layout Standard
23714 The margin note format is changed only for this example.
23722 \begin_layout Standard
23726 \begin_layout Standard
23736 \begin_inset Note Note
23739 \begin_layout Standard
23740 The following will be displayed when the LaTeX-package
23752 \begin_layout Standard
23753 You need to install the LaTeX-package
23757 to see the following part of this section in the output.
23760 \begin_layout Standard
23764 \begin_layout Standard
23776 \begin_layout Chapter
23780 \begin_layout Section
23782 \begin_inset LatexCommand index
23783 name "Boxes ! Introduction"
23790 \begin_layout Standard
23791 Boxes are used to format a block of text.
23792 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23794 \begin_inset LatexCommand ref
23795 reference "sec:Minipages"
23799 , to frame texts, see section\InsetSpace ~
23801 \begin_inset LatexCommand ref
23802 reference "sec:Framed-Boxes"
23806 , to prevent words to be hyphenated, see section\InsetSpace ~
23808 \begin_inset LatexCommand ref
23809 reference "sec:Prevent-Hyphenation"
23813 , to align text, see section\InsetSpace ~
23815 \begin_inset LatexCommand ref
23816 reference "sub:Vertical-Alignment"
23820 , or to set the background color of texts, see section\InsetSpace ~
23822 \begin_inset LatexCommand ref
23823 reference "sec:Colored-Boxes"
23830 \begin_layout Standard
23831 Boxes can be inserted with the menu
23833 Insert\SpecialChar \menuseparator
23837 A grey box with the label
23842 \begin_inset Graphics
23843 filename clipart/BoxInsetDefaultQt4.png
23845 scaleBeforeRotation
23849 , will be inserted.
23850 The box type can be specified by right-clicking on the box.
23851 The appearing box dialog offers the
23869 is the default for new boxes and is explained in section\InsetSpace ~
23871 \begin_inset LatexCommand ref
23872 reference "sec:Minipages"
23880 is described in section\InsetSpace ~
23882 \begin_inset LatexCommand ref
23883 reference "sec:Parboxes"
23890 \begin_layout Standard
23891 Boxes aren't numbered and can therefore not be referenced like floats or
23895 \begin_layout Standard
23896 \begin_inset Note Greyedout
23899 \begin_layout Standard
23904 Due to a bug in LyX you have to insert a protected space behind a box when
23905 you want to separate in a line the box from the following text with a space.
23913 \begin_layout Standard
23914 \begin_inset Note Greyedout
23917 \begin_layout Standard
23922 Boxes must not be the item in an
23938 \begin_layout Standard
23939 \begin_inset Note Greyedout
23942 \begin_layout Standard
23947 For an unknown reason you can only set the
23956 when you use a framed box.
23962 type and without frames are explained in section\InsetSpace ~
23964 \begin_inset LatexCommand ref
23965 reference "sec:Prevent-Hyphenation"
23977 \begin_layout Section
23979 \begin_inset LatexCommand label
23980 name "sec:Box-Dialog"
23985 \begin_inset LatexCommand index
23986 name "Boxes ! Box Dialog"
23991 \begin_inset LatexCommand index
23992 name "Boxes ! Alignment"
23999 \begin_layout Standard
24000 In the box dialog you can adjust the box geometry in the fields
24009 The available units for the geometry are explained in Table\InsetSpace ~
24011 \begin_inset LatexCommand ref
24012 reference "tab:Units"
24021 offers the following additional sizes:
24024 \begin_layout Description
24025 Depth This is the plain text
24026 \begin_inset Quotes eld
24030 \begin_inset Quotes erd
24034 It ignores the total depth when there are multiple text lines in the box:
24041 \begin_inset Box Boxed
24050 height_special "depth"
24053 \begin_layout Standard
24055 Box height set to 1\InsetSpace \thinspace{}
24068 \begin_layout Description
24069 Height This is the heigth of the text that is inside the box.
24070 A value of e.\InsetSpace \thinspace{}
24072 2 for this size will set the box heigth to 2 times the text
24074 \begin_inset Box Boxed
24083 height_special "height"
24086 \begin_layout Standard
24088 Box height set to 2\InsetSpace \thinspace{}
24097 \begin_layout Description
24099 Height This is the Height\InsetSpace \thinspace{}
24100 +\InsetSpace \thinspace{}
24102 \begin_inset Box Boxed
24111 height_special "totalheight"
24114 \begin_layout Standard
24116 Box height set to 1\InsetSpace \thinspace{}
24126 \begin_layout Description
24127 Width This set the width of the box as heigth:
24128 \begin_inset Box Boxed
24137 height_special "width"
24140 \begin_layout Standard
24142 Box height set to 1\InsetSpace \thinspace{}
24151 \begin_layout Standard
24152 \begin_inset VSpace bigskip
24155 When you have chosen an
24160 , the vertical box alignment can be:
24163 \begin_layout Description
24164 Top This is an example text line.
24166 \begin_inset Box Boxed
24175 height_special "totalheight"
24178 \begin_layout Standard
24180 This box is top-aligned.
24186 This is an example text line.
24189 \begin_layout Description
24190 Middle This is an example text line.
24192 \begin_inset Box Boxed
24201 height_special "totalheight"
24204 \begin_layout Standard
24206 This box is middle-aligned.
24212 This is an example text line.
24215 \begin_layout Description
24216 Bottom This is an example text line.
24218 \begin_inset Box Boxed
24227 height_special "totalheight"
24230 \begin_layout Standard
24232 This box is bottom-aligned.
24238 This is an example text line.
24241 \begin_layout Standard
24242 The horizontal box alignment can be set via LyX's paragraph dialog when
24243 you set the box into its own paragraph.
24246 \begin_layout Standard
24247 \begin_inset VSpace bigskip
24250 When you have chosen an
24255 , the box content can be vertical aligned to:
24258 \begin_layout Description
24259 top This is an example text line.
24261 \begin_inset Box Boxed
24270 height_special "totalheight"
24273 \begin_layout Standard
24275 This box text is top-aligned.
24281 This is an example text line.
24284 \begin_layout Description
24285 middle This is an example text line.
24287 \begin_inset Box Boxed
24296 height_special "totalheight"
24299 \begin_layout Standard
24301 This box text is middle-aligned.
24307 This is an example text line.
24310 \begin_layout Description
24311 bottom This is an example text line.
24313 \begin_inset Box Boxed
24322 height_special "totalheight"
24325 \begin_layout Standard
24327 This box text is bottom-aligned.
24333 This is an example text line.
24336 \begin_layout Description
24337 stretch This is an example text line.
24339 \begin_inset Box Boxed
24348 height_special "totalheight"
24351 \begin_layout Standard
24356 \begin_layout Standard
24361 \begin_layout Standard
24369 This is an example text line.
24372 \begin_layout Standard
24373 To stretch the box content, it must consist of more than one paragraph.
24374 In the example above every text line is in an own paragraph.
24377 \begin_layout Standard
24378 \begin_inset VSpace bigskip
24381 To align the box content horizontally you can use LyX's paragraph dialog
24382 when you have chosen an
24390 \begin_layout Standard
24392 \begin_inset Box Boxed
24401 height_special "totalheight"
24404 \begin_layout Standard
24409 \begin_layout Standard
24414 \begin_layout Standard
24424 \begin_layout Standard
24425 If you haven't set an
24430 , you can align the box content horizontally in the box dialog.
24433 \begin_layout Standard
24435 \begin_inset Box Boxed
24444 height_special "totalheight"
24447 \begin_layout Standard
24449 This box text is horizontally stretched.
24457 \begin_layout Section
24459 \begin_inset LatexCommand label
24460 name "sec:Framed-Boxes"
24465 \begin_inset LatexCommand index
24466 name "Boxes ! Frames"
24473 \begin_layout Standard
24474 The frame style of the box can be specified in the box-dialog in the drop-down
24480 The following frame types are possible:
24483 \begin_layout Description
24484 Rectangular\InsetSpace ~
24485 box This draws a rectangle frame around the box.
24486 The frame line thickness has the size of
24494 \begin_inset Box Boxed
24503 height_special "totalheight"
24506 \begin_layout Standard
24516 \begin_layout Description
24519 thin This draws an oval frame around the box.
24520 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24523 \begin_inset Box ovalbox
24532 height_special "totalheight"
24535 \begin_layout Standard
24545 \begin_layout Description
24548 thick This draws an oval frame around the box.
24549 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24552 \begin_inset Box Ovalbox
24561 height_special "totalheight"
24564 \begin_layout Standard
24574 \begin_layout Description
24575 Shadow\InsetSpace ~
24576 box This draws a rectangle frame with a shadow around the box.
24577 The frame line thickness has the size of
24583 , the shadow has a width of 4\InsetSpace \thinspace{}
24586 \begin_inset Box Shadowbox
24595 height_special "totalheight"
24598 \begin_layout Standard
24608 \begin_layout Description
24609 Double\InsetSpace ~
24610 box This draws a double-line rectangle frame around the box.
24611 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24618 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24626 The distance between the lines is 1.5\InsetSpace \thinspace{}
24633 \InsetSpace \thinspace{}
24634 +\InsetSpace \thinspace{}
24635 0.5\InsetSpace \thinspace{}
24638 \begin_inset Box Doublebox
24647 height_special "totalheight"
24650 \begin_layout Standard
24660 \begin_layout Standard
24661 \begin_inset VSpace bigskip
24664 LyX's box label will change to the used frame style when you set a frame.
24665 To be able to use the different frame styles, the LaTeX-package
24670 \begin_inset LatexCommand index
24671 name "LaTeX-packages ! fancybox"
24678 \begin_layout Standard
24679 \begin_inset VSpace bigskip
24682 The default value for the size
24688 is 0.4\InsetSpace \thinspace{}
24690 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24692 2\InsetSpace \thinspace{}
24696 \begin_layout Standard
24706 \begin_layout Standard
24710 \begin_layout Standard
24722 \begin_inset Box Boxed
24731 height_special "totalheight"
24734 \begin_layout Standard
24736 Rectangular box with
24742 \InsetSpace \thinspace{}
24743 =\InsetSpace \thinspace{}
24744 2\InsetSpace \thinspace{}
24754 \begin_layout Standard
24768 \begin_layout Standard
24769 \begin_inset VSpace bigskip
24772 The space between the frame and the box content is for all frame styles
24773 by default 3\InsetSpace \thinspace{}
24775 You can change it by setting the length
24782 For example the command
24785 \begin_layout Standard
24795 \begin_layout Standard
24796 sets the value to 10\InsetSpace \thinspace{}
24797 pt, like for the following box:
24800 \begin_layout Standard
24804 \begin_layout Standard
24816 \begin_inset Box Boxed
24825 height_special "totalheight"
24828 \begin_layout Standard
24830 Rectangular box with
24836 \InsetSpace \thinspace{}
24837 =\InsetSpace \thinspace{}
24838 10\InsetSpace \thinspace{}
24848 \begin_layout Standard
24862 \begin_layout Standard
24863 \begin_inset VSpace bigskip
24866 The diameter of the round corners of the oval boxes can be set with the
24877 \begin_layout Standard
24885 \begin_layout Standard
24886 sets the diameter to 1\InsetSpace \thinspace{}
24891 \begin_layout Standard
24899 \begin_layout Standard
24900 sets the diameter to
24902 num\InsetSpace \thinspace{}
24903 ×\InsetSpace \thinspace{}
24904 minimum(width and heigth of box)
24916 \begin_layout Standard
24920 \begin_layout Standard
24930 \begin_inset Box Ovalbox
24939 height_special "totalheight"
24942 \begin_layout Standard
24950 \InsetSpace \thinspace{}
24951 =\InsetSpace \thinspace{}
24952 1.5\InsetSpace \thinspace{}
24962 \begin_layout Standard
24974 \begin_layout Standard
24975 \begin_inset VSpace bigskip
24978 The size of the shadow can be adjusted by changing the length
24985 It it set to 2\InsetSpace \thinspace{}
24986 pt for the following box by this command:
24989 \begin_layout Standard
24999 \begin_layout Standard
25003 \begin_layout Standard
25015 \begin_inset Box Shadowbox
25024 height_special "totalheight"
25027 \begin_layout Standard
25035 \InsetSpace \thinspace{}
25036 =\InsetSpace \thinspace{}
25037 2\InsetSpace \thinspace{}
25047 \begin_layout Standard
25061 \begin_layout Standard
25062 \begin_inset VSpace bigskip
25065 Changed lengths and widths are valid for all boxes following the commands
25069 \begin_layout Section
25071 \begin_inset LatexCommand label
25072 name "sec:Minipages"
25077 \begin_inset LatexCommand index
25078 name "Boxes ! Minipages"
25085 \begin_layout Standard
25086 Minipages are treated by LaTeX as pages within pages and can therefore for
25087 example have their own footnotes.
25090 \begin_layout Standard
25091 Minipages are useful when you write documents with different languages.
25094 \begin_layout Standard
25095 Below are two example minipages side by side.
25096 Their width is set to 45\InsetSpace \thinspace{}
25097 col% and they are separated by a horizontal fill,
25098 that was inserted via the menu
25100 Insert\SpecialChar \menuseparator
25101 Special\InsetSpace ~
25102 Formatting\SpecialChar \menuseparator
25103 Horizontal\InsetSpace ~
25109 \begin_layout Standard
25110 \begin_inset Box Frameless
25119 height_special "totalheight"
25122 \begin_layout Standard
25125 Dies ist ein deutscher Text.
25126 Dies ist ein deutscher Text.
25127 Dies ist ein deutscher Text.
25128 Dies ist ein deutscher Text.
25129 Dies ist ein deutscher Text.
25130 Dies ist ein deutscher Text.
25131 Dies ist ein deutscher Text.
25132 Dies ist ein deutscher Text.
25133 Dies ist ein deutscher Text.
25134 Dies ist ein deutscher Text.
25135 Dies ist ein deutscher Text.
25136 Dies ist ein deutscher Text.
25137 Dies ist ein deutscher Text
25141 \begin_layout Standard
25144 Dies ist eine deutsche Fußnote.
25150 Dies ist ein deutscher Text.
25151 Dies ist ein deutscher Text.
25159 \begin_inset Box Frameless
25168 height_special "totalheight"
25171 \begin_layout Standard
25172 This is an English Text.
25173 This is an English Text.
25174 This is an English Text.
25175 This is an English Text.
25176 This is an English Text.
25177 This is an English Text.
25178 This is an English Text.
25179 This is an English Text.
25180 This is an English Text.
25181 This is an English Text.
25182 This is an English Text.
25183 This is an English Text.
25184 This is an English Text.
25185 This is an English Text.
25186 This is an English Text.
25187 This is an English Text.
25191 \begin_layout Standard
25192 This is an English footnote.
25197 This is an English Text.
25206 \begin_layout Standard
25207 \begin_inset VSpace bigskip
25210 Another application for minipages are footnotes within tables.
25211 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25212 bottom of the current page.
25213 But when you put the table with the footnote to a minipage, the footnote
25214 will appear at its bottom, numbered with Latin letters.
25215 The footnote number is reset to 1 in every minipage but not outside the
25219 \begin_layout Standard
25220 The footnote of this table doesn't appear:
25221 \begin_inset Tabular
25222 <lyxtabular version="3" rows="3" columns="4">
25224 <column alignment="center" valignment="top" leftline="true" width="0pt">
25225 <column alignment="center" valignment="top" leftline="true" width="0pt">
25226 <column alignment="center" valignment="top" leftline="true" width="0pt">
25227 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25228 <row topline="true">
25229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25232 \begin_layout Standard
25238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25241 \begin_layout Standard
25247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25250 \begin_layout Standard
25255 \begin_layout Standard
25256 This is a footnote within a table.
25266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25269 \begin_layout Standard
25276 <row topline="true">
25277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25280 \begin_layout Standard
25286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25289 \begin_layout Standard
25295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25298 \begin_layout Standard
25304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25307 \begin_layout Standard
25314 <row topline="true" bottomline="true">
25315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25318 \begin_layout Standard
25324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25327 \begin_layout Standard
25333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25336 \begin_layout Standard
25342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25345 \begin_layout Standard
25359 \begin_layout Standard
25361 \begin_inset Box Frameless
25370 height_special "totalheight"
25373 \begin_layout Standard
25375 \begin_inset Tabular
25376 <lyxtabular version="3" rows="3" columns="4">
25378 <column alignment="center" valignment="top" leftline="true" width="0pt">
25379 <column alignment="center" valignment="top" leftline="true" width="0pt">
25380 <column alignment="center" valignment="top" leftline="true" width="0pt">
25381 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25382 <row topline="true">
25383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25386 \begin_layout Standard
25392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25395 \begin_layout Standard
25401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25404 \begin_layout Standard
25409 \begin_layout Standard
25410 This is a footnote within a table.
25420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25423 \begin_layout Standard
25430 <row topline="true">
25431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25434 \begin_layout Standard
25440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25443 \begin_layout Standard
25449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25452 \begin_layout Standard
25458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25461 \begin_layout Standard
25468 <row topline="true" bottomline="true">
25469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25472 \begin_layout Standard
25478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25481 \begin_layout Standard
25487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25490 \begin_layout Standard
25496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25499 \begin_layout Standard
25518 \begin_layout Standard
25519 \begin_inset VSpace bigskip
25522 The document-wide paragraph settings are ignored within minipages.
25523 That means that there will be no space between paragraphs in minipages
25524 although you set it to e.\InsetSpace \thinspace{}
25530 in the document settings.
25533 \begin_layout Standard
25534 Minipages can also be used to set a background color for text parts, see
25535 section\InsetSpace ~
25537 \begin_inset LatexCommand ref
25538 reference "sub:Color-for-Paragraphs"
25545 \begin_layout Standard
25546 \begin_inset Note Greyedout
25549 \begin_layout Standard
25554 You cannot have floats or margin notes inside minipages but minipages can
25555 be used inside tables, floats, and other boxes.
25563 \begin_layout Section
25565 \begin_inset LatexCommand label
25566 name "sec:Parboxes"
25571 \begin_inset LatexCommand index
25572 name "Boxes ! Parboxes"
25579 \begin_layout Standard
25580 Parboxes are very similar to minipages with the difference that they cannot
25582 The main difference to minipages is that minipages are in contrary to parboxes
25583 no real boxes but LaTeX-environments.
25586 \begin_layout Standard
25588 \begin_inset Box Frameless
25597 height_special "totalheight"
25600 \begin_layout Standard
25601 This a text within a parbox.
25602 This a text within a parbox.
25605 \begin_layout Standard
25606 This footnote won't appear:
25610 \begin_layout Standard
25611 This footnote is inside a parbox and will therefore not appear.
25624 \begin_layout Section
25625 Boxes for Words and Characters
25626 \begin_inset LatexCommand index
25627 name "Boxes ! for Characters"
25634 \begin_layout Subsection
25635 Prevent Hyphenation
25636 \begin_inset LatexCommand label
25637 name "sec:Prevent-Hyphenation"
25642 \begin_inset LatexCommand index
25643 name "Boxes ! to Prevent Hyphenation"
25650 \begin_layout Standard
25651 You can use a special kind of boxes to prevent words or text to be hyphenated.
25654 e is an example text:
25657 \begin_layout Standard
25658 This line is an example to show how you can prevent the hyphenation of
25659 \begin_inset Quotes eld
25663 \begin_inset Quotes erd
25669 \begin_layout Standard
25670 To prevent the hyphenation of the word
25671 \begin_inset Quotes eld
25675 \begin_inset Quotes erd
25681 \begin_layout Standard
25689 \begin_layout Standard
25690 in ERT before the word.
25691 Behind the word insert a closing brace
25692 \begin_inset Quotes eld
25700 \begin_inset Quotes erd
25707 \begin_layout Standard
25719 \begin_layout Standard
25720 This is the result:
25723 \begin_layout Standard
25724 This line is an example to show how you can prevent the hyphenation of
25728 \begin_layout Standard
25738 \begin_inset Quotes eld
25742 \begin_inset Quotes erd
25749 \begin_layout Standard
25759 \begin_layout Standard
25760 You can alternatively set the command
25761 \begin_inset Quotes eld
25771 \begin_inset Quotes grd
25774 as ERT directly before the word:
25777 \begin_layout Standard
25778 This line is an example to show how you can prevent the hyphenation of
25779 \begin_inset Quotes eld
25786 \begin_layout Standard
25796 \begin_inset Quotes erd
25802 \begin_layout Standard
25803 Of course the word now protrudes over the side margin.
25804 To avoid this, add via the menu
25806 Insert\SpecialChar \menuseparator
25807 Special\InsetSpace ~
25808 Formatting\SpecialChar \menuseparator
25816 ) a line break before the word:
25819 \begin_layout Standard
25820 This line is an example to show how you can prevent the hyphenation of
25826 \begin_layout Standard
25836 \begin_inset Quotes eld
25840 \begin_inset Quotes erd
25847 \begin_layout Standard
25857 \begin_layout Subsection
25859 \begin_inset LatexCommand label
25860 name "sub:Vertical-Alignment"
25865 \begin_inset LatexCommand index
25866 name "Boxes ! for Vertical Alignment"
25871 \begin_inset LatexCommand index
25872 name "Boxes ! Raiseboxes"
25879 \begin_layout Standard
25880 With the help of the command
25886 you can align words, characters or other boxes vertically to the surrounding
25894 is used with the following scheme:
25897 \begin_layout Standard
25902 raisebox{lift}[height][depth]{box content}
25905 \begin_layout Standard
25906 The lift can be a positive value to raise the box or a negative value to
25910 \begin_layout Standard
25911 To align for example the word
25912 \begin_inset Quotes eld
25916 \begin_inset Quotes erd
25919 so that the bottom of the
25920 \begin_inset Quotes eld
25924 \begin_inset Quotes erd
25928 \begin_inset Quotes eld
25932 \begin_inset Quotes erd
25935 is at the baseline, insert the command
25938 \begin_layout Standard
25948 \begin_layout Standard
25949 in ERT before the word.
25950 Behind the word insert a closing brace
25951 \begin_inset Quotes eld
25959 \begin_inset Quotes erd
25964 This is the result:
25967 \begin_layout Standard
25968 This is a text line with the word
25972 \begin_layout Standard
25984 \begin_inset Quotes eld
25988 \begin_inset Quotes erd
25995 \begin_layout Standard
26005 \begin_layout Standard
26006 \begin_inset VSpace bigskip
26009 When you raise or lower characters in a line, the line distance will be
26013 \begin_layout Standard
26014 This is a text line with the word
26018 \begin_layout Standard
26030 \begin_inset Quotes eld
26034 \begin_inset Quotes erd
26041 \begin_layout Standard
26050 This is a text line with the word
26054 \begin_layout Standard
26064 \begin_inset Quotes eld
26068 \begin_inset Quotes erd
26075 \begin_layout Standard
26085 \begin_layout Standard
26086 If you want to prevent this for a certain reason, set the box height to
26091 \begin_layout Standard
26101 \begin_layout Standard
26102 This is a text line with the word
26106 \begin_layout Standard
26118 \begin_inset Quotes eld
26122 \begin_inset Quotes erd
26129 \begin_layout Standard
26138 This is a text line with the word
26142 \begin_layout Standard
26146 raisebox{0.5cm}[0pt]{
26152 \begin_inset Quotes eld
26156 \begin_inset Quotes erd
26163 \begin_layout Standard
26173 \begin_layout Section
26175 \begin_inset LatexCommand label
26176 name "sec:Colored-Boxes"
26181 \begin_inset LatexCommand index
26182 name "Boxes ! Color"
26189 \begin_layout Subsection
26191 \begin_inset LatexCommand index
26192 name "Color ! for Text"
26199 \begin_layout Standard
26200 To color the background of text the text must be put into a so called
26201 \begin_inset Quotes eld
26205 \begin_inset Quotes erd
26209 This requires that the LaTeX-package
26214 \begin_inset LatexCommand index
26215 name "LaTeX-packages ! color"
26219 is loaded in the document preamble with the command
26222 \begin_layout Standard
26227 @ifundef\SpecialChar \textcompwordmark{}
26234 \begin_layout Standard
26245 usepackage{color}}{}
26248 \begin_layout Standard
26253 will be loaded automatically by LyX when you color text
26257 \begin_layout Standard
26258 To avoid that it is loaded twice the command
26262 @ifundef\SpecialChar \textcompwordmark{}
26273 \begin_layout Standard
26274 \begin_inset VSpace medskip
26277 Colorboxes are created with the command
26284 This will be used with the following scheme:
26287 \begin_layout Standard
26292 colorbox{color}{box content}
26295 \begin_layout Standard
26296 The box content can also be a box and colorboxes can also be within other
26300 \begin_layout Standard
26301 The following colors are predefined:
26340 You can also define your own color as described in section\InsetSpace ~
26342 \begin_inset LatexCommand ref
26343 reference "sec:Colored-Tables"
26350 \begin_layout Standard
26351 To have e.\InsetSpace \thinspace{}
26353 a red background for a word, insert the command
26356 \begin_layout Standard
26364 \begin_layout Standard
26365 before the word in ERT.
26366 Behind the word insert a closing brace
26367 \begin_inset Quotes eld
26375 \begin_inset Quotes erd
26380 This is the result:
26383 \begin_layout Standard
26384 This is a line where the word
26388 \begin_layout Standard
26398 \begin_inset Quotes eld
26402 \begin_inset Quotes erd
26409 \begin_layout Standard
26416 has a red background.
26419 \begin_layout Standard
26420 \begin_inset VSpace bigskip
26423 If you would have the box frame in a different color, you can use the command
26430 with the following scheme:
26433 \begin_layout Standard
26438 fcolorbox{frame color}{box color}{box content}
26441 \begin_layout Standard
26455 The frame thickness and the space between the frame and the box content
26456 can be adjusted with the lengths
26468 , respectively, as described in section\InsetSpace ~
26470 \begin_inset LatexCommand ref
26471 reference "sec:Framed-Boxes"
26478 \begin_layout Standard
26479 For the following example the command
26482 \begin_layout Standard
26487 fcolorbox{cyan}{magenta}{
26490 \begin_layout Standard
26494 \begin_layout Standard
26495 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26502 \begin_layout Standard
26517 \begin_layout Standard
26521 fcolorbox{cyan}{magenta}{
26526 This is text within a colored, framed box.
26530 \begin_layout Standard
26540 \begin_layout Standard
26541 \begin_inset VSpace bigskip
26544 Of course you can also have colored text inside a colorbox:
26550 \begin_layout Standard
26554 fcolorbox{cyan}{magenta}{
26561 This is colored text within a colored, framed box.
26567 \begin_layout Standard
26578 \begin_layout Standard
26592 \begin_layout Standard
26595 \begin_inset VSpace medskip
26601 \begin_layout Standard
26602 \begin_inset Note Greyedout
26605 \begin_layout Standard
26610 Text in colorboxes cannot have line breaks.
26611 To color multiple text lines or paragraphs, use a box inside a colorbox
26612 as described in the following.
26620 \begin_layout Subsection
26621 Color for Paragraphs
26622 \begin_inset LatexCommand label
26623 name "sub:Color-for-Paragraphs"
26628 \begin_inset LatexCommand index
26629 name "Color ! for Paragraphs"
26636 \begin_layout Standard
26637 To set the background color for more than one text line, put the text into
26639 Before the minipage insert the
26648 \begin_layout Standard
26656 \begin_layout Standard
26658 Behind the minipage insert a closing brace
26659 \begin_inset Quotes eld
26667 \begin_inset Quotes erd
26673 \begin_layout Standard
26677 \begin_layout Standard
26681 colorbox{lightgrey}{
26687 \begin_inset Box Frameless
26696 height_special "totalheight"
26699 \begin_layout Standard
26700 This is text with background color.
26701 This is text with background color.
26704 \begin_layout Standard
26705 \begin_inset VSpace defskip
26708 The text can have footnotes
26712 \begin_layout Standard
26713 Another example footnote
26718 and can include tables and figures.
26721 \begin_layout Standard
26723 \begin_inset Tabular
26724 <lyxtabular version="3" rows="3" columns="3">
26726 <column alignment="center" valignment="top" leftline="true" width="0">
26727 <column alignment="center" valignment="top" leftline="true" width="0">
26728 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26729 <row topline="true">
26730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26733 \begin_layout Standard
26739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26742 \begin_layout Standard
26748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26751 \begin_layout Standard
26758 <row topline="true">
26759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26762 \begin_layout Standard
26768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26771 \begin_layout Standard
26773 \begin_inset Quotes erd
26781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26784 \begin_layout Standard
26791 <row topline="true" bottomline="true">
26792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26795 \begin_layout Standard
26801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26804 \begin_layout Standard
26810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26813 \begin_layout Standard
26833 \begin_layout Standard
26843 \begin_layout Section
26844 URLs (Uniform Resource Locators)
26845 \begin_inset LatexCommand index
26853 \begin_layout Standard
26854 Links to web pages or email addresses can be inserted via the menu
26856 Insert\SpecialChar \menuseparator
26860 The appearing URL dialog has two fields; the
26868 field for the URL description, which will be typeset as plain text immediately
26872 \begin_layout Standard
26873 Here is an example URL:
26874 \begin_inset LatexCommand url
26875 name "LyX's homepage"
26876 target "http://www.lyx.org"
26883 \begin_layout Standard
26886 Generate\InsetSpace ~
26889 in the URL dialog has only an affect when you export your document to the
26891 \begin_inset Quotes eld
26899 \begin_inset Quotes erd
26905 \begin_layout Standard
26906 You cannot change the style of the link text.
26911 field will have the default text style of the document while the text of
26916 field will have the style
26917 \begin_inset Quotes eld
26925 \begin_inset Quotes erd
26931 \begin_layout Standard
26932 When you use the LaTeX-package
26937 \begin_inset LatexCommand index
26938 name "LaTeX-packages ! hyperref"
26942 to link cross-references in the output, URLs will automatically become
26943 clickable hyperlinks in DVI and PDF-output.
26946 \begin_layout Standard
26947 \begin_inset Note Greyedout
26950 \begin_layout Standard
26955 When you use the following characters: "%", "#", "^", you have to write
26956 them with a preceding backslash, e.\InsetSpace \thinspace{}
26959 \begin_inset Quotes eld
26965 \begin_inset Quotes erd
26969 URLs must not end with a backslash.
26977 \begin_layout Standard
26978 \begin_inset VSpace bigskip
26981 To create real hyperlinks without the force to write the link location to
26982 the text, you can use the command
26985 \begin_layout Standard
26990 href{link location}{link text}
26993 \begin_layout Standard
26995 To get for example a link to LyX's web page, write the command
26998 \begin_layout Standard
27003 href{http://www.lyx.org}{
27006 \begin_layout Standard
27008 Insert after the command the link text
27009 \begin_inset Quotes eld
27013 \begin_inset Quotes erd
27016 as normal text followed by a closing brace
27017 \begin_inset Quotes eld
27025 \begin_inset Quotes erd
27029 This is the result:
27033 \begin_layout Standard
27037 href{http://www.lyx.org}{
27046 \begin_layout Standard
27056 \begin_layout Standard
27057 To link to email addresses, add the prefix
27058 \begin_inset Quotes eld
27066 \begin_inset Quotes erd
27069 to the link location:
27075 \begin_layout Standard
27079 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27084 lyx-docs mailing list
27088 \begin_layout Standard
27098 \begin_layout Standard
27105 instead of LyX's URL box has the advantage that you can specify the text
27106 style of the link text like for all other text parts.
27107 You can then set hyphenation points and forced linebreaks to have long
27108 link text broken at the page margin.
27109 You are furthermore able to change the text style for all URLs in your
27110 document with an option in
27114 's load command and the restrictions mentioned above doesn't apply for
27123 \begin_layout Chapter
27125 \begin_inset LatexCommand index
27126 name "External Stuff"
27133 \begin_layout Standard
27136 Insert\SpecialChar \menuseparator
27139 you can insert external material to your document.
27143 \begin_layout Description
27145 Document Another LyX document; its content is directly inserted to your
27149 \begin_layout Description
27151 Text A text document; every of its text lines is inserted to your document
27155 \begin_layout Description
27159 Lines A text document; its text lines are inserted as they
27161 Empty text lines creates a new paragraph in your document.
27164 \begin_layout Description
27165 External\InsetSpace ~
27166 Material Files in various formats.
27169 \begin_layout Description
27171 Document LyX or LaTeX-documents.
27174 \begin_layout Section
27176 \begin_inset LatexCommand index
27177 name "External Stuff ! External Material"
27184 \begin_layout Standard
27185 The external material feature allows you to insert files to your document
27186 without converting them previously to a format that can be read by the
27187 document output format because LyX takes care of needed conversions.
27188 This is similar to images that can be inserted in various image formats
27192 \begin_layout Standard
27193 External material can be inserted via the
27197 dialog that is accessible with the menu
27199 Insert\SpecialChar \menuseparator
27200 File\SpecialChar \menuseparator
27201 External\InsetSpace ~
27205 Currently the following file types (
27212 \begin_layout Description
27213 ChessDiagram This template supports chess position diagrams made with the
27218 \begin_layout Standard
27222 href{http://en.wikipedia.org/wiki/XBoard}{
27235 \begin_layout Standard
27245 \begin_layout Description
27246 Date This inserts the date in the form
27251 This is a date inserted as external material:
27252 \begin_inset External
27260 The date is not shown within LyX, only in the output.
27261 There are two other methods of inserting a date: Via menu
27263 Insert\SpecialChar \menuseparator
27266 and with the LaTeX command
27273 The different methods are compared in Table\InsetSpace ~
27275 \begin_inset LatexCommand ref
27276 reference "tab:Comparison-of-the"
27283 \begin_layout Description
27284 LilyPond This template is used for music notation typeset with the program
27288 \begin_layout Standard
27301 \begin_layout Standard
27305 href{http://en.wikipedia.org/wiki/LilyPond}{
27318 \begin_layout Standard
27326 \begin_inset Note Note
27329 \begin_layout Standard
27336 breaks the line while the remaining text in the line is stretched to the
27345 \begin_layout Description
27346 RasterImage This can be used for bitmap images.
27347 Nearly all popular image formats are supported.
27348 The image can be treated in the
27352 dialog like the images that are usually included via the
27356 dialog as described in section\InsetSpace ~
27358 \begin_inset LatexCommand ref
27359 reference "sec:Graphics-Dialog"
27364 The difference is that only raster images are allowed, that means that
27365 PDF and EPS-images are not supported.
27368 \begin_layout Description
27369 XFig This template supports images created with the program
27373 \begin_layout Standard
27377 href{http://en.wikipedia.org/wiki/Xfig}{
27390 \begin_layout Standard
27400 \begin_layout Standard
27401 \begin_inset Float table
27407 \begin_layout Standard
27408 \begin_inset Caption
27410 \begin_layout Standard
27411 \begin_inset LatexCommand label
27412 name "tab:Comparison-of-the"
27416 Comparison of the date input methods.
27424 \begin_layout Standard
27426 \begin_inset Tabular
27427 <lyxtabular version="3" rows="4" columns="4">
27429 <column alignment="center" valignment="top" leftline="true" width="0">
27430 <column alignment="center" valignment="top" leftline="true" width="0">
27431 <column alignment="center" valignment="top" leftline="true" width="0">
27432 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27433 <row topline="true">
27434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27437 \begin_layout Standard
27443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27446 \begin_layout Standard
27449 External Material\SpecialChar \menuseparator
27455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27458 \begin_layout Standard
27461 Insert\SpecialChar \menuseparator
27467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27470 \begin_layout Standard
27481 <row topline="true">
27482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27485 \begin_layout Standard
27491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27494 \begin_layout Standard
27500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27503 \begin_layout Standard
27509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27512 \begin_layout Standard
27519 <row topline="true">
27520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27523 \begin_layout Standard
27529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27532 \begin_layout Standard
27538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27541 \begin_layout Standard
27547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27550 \begin_layout Standard
27557 <row topline="true" bottomline="true">
27558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27561 \begin_layout Standard
27567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27570 \begin_layout Standard
27576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27579 \begin_layout Standard
27585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27588 \begin_layout Standard
27607 \begin_layout Standard
27608 When you use the option
27620 dialog, only the path to the inserted file is shown in the output.
27623 material is displayed in LyX either as box like this:
27624 \begin_inset Graphics
27625 filename clipart/ExternalMaterialQt4.png
27627 scaleBeforeRotation
27631 or as image, depending on the setting in the
27643 \begin_layout Standard
27650 manual explains how you can define your own templates.
27653 \begin_layout Section
27655 \begin_inset LatexCommand label
27656 name "sec:Child-Documents"
27661 \begin_inset LatexCommand index
27662 name "External Stuff ! Child Documents"
27667 \begin_inset LatexCommand index
27668 name "Files ! Include"
27675 \begin_layout Standard
27676 Child documents are used when you have a long document consisting of several
27677 larger parts or sections.
27678 For maintenance it is often useful and sometimes even required to split
27679 the document in several files that can be revised separately.
27680 The different documents are then the so called child documents and a master
27681 document connects them to print the full document or parts of it.
27684 \begin_layout Standard
27685 Included documents are displayed in LyX as a box like this:
27686 \begin_inset Graphics
27687 filename clipart/ChildDocumentQt4.png
27689 scaleBeforeRotation
27693 To include child documents to a master document use the menu
27695 Insert\SpecialChar \menuseparator
27696 File\SpecialChar \menuseparator
27701 A dialog pops up where you can choose between four include methods:
27704 \begin_layout Description
27705 Include You can include LyX and LaTeX-documents.
27714 dialog, the included documents will be opened in LyX in a new file tab
27715 so that you can modify it.
27720 \begin_layout Standard
27721 Here is a child document inserted using
27726 \begin_inset Include \include{DummyDocument1.lyx}
27734 \begin_layout Standard
27735 The section numbering includes the sections of the included files in the
27736 order they are inserted in the master document.
27737 The included example document has for example a subsection that is numbered
27738 as subsection of this section.
27739 Labels of included documents can be referenced: Subsection\InsetSpace ~
27741 \begin_inset LatexCommand ref
27742 reference "sub:External-Subsection-1"
27749 \begin_layout Standard
27750 The preamble of the child document is ignored, only the preamble of the
27751 master document is used.
27752 Included documents are inserted starting on a new page and end with a pagebreak.
27755 \begin_layout Standard
27756 With the LaTeX-command
27762 you can specify which included child documents are processed when the output
27764 This is useful when you are perhaps only working on a certain chapter of
27765 your large document as this saves compiling time.
27772 is inserted to the master document preamble.
27773 It takes a comma-separated list of the filenames as argument, e.g.
27776 \begin_layout Standard
27781 includeonly{chapter1,chapter5}
27784 \begin_layout Standard
27785 will only process the included files named
27786 \begin_inset Quotes eld
27790 \begin_inset Quotes erd
27794 \begin_inset Quotes eld
27798 \begin_inset Quotes erd
27802 \begin_inset Quotes eld
27806 \begin_inset Quotes erd
27812 \begin_layout Standard
27813 \begin_inset Note Greyedout
27816 \begin_layout Standard
27821 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27822 w the document in case that the child document uses another document class
27823 than the master document as this will lead to unexpected outputs.
27831 \begin_layout Description
27832 Input This method is very similar to the Include method.
27833 The differences are:
27837 \begin_layout Itemize
27838 Input files don't start with a new page and don't end with a pagebreak.
27841 \begin_layout Itemize
27842 Input files can be previewed in LyX when
27844 Instant\InsetSpace ~
27847 is enabled in LyX's preferences under
27851 feel\SpecialChar \menuseparator
27857 \begin_layout Itemize
27868 \begin_layout Standard
27869 Here is a child document inserted using
27874 \begin_inset Include \input{DummyDocument2.lyx}
27882 \begin_layout Description
27883 Verbatim With this method every text file can be included.
27884 The file is shown in the output with its source code, no command used in
27885 the text is invoked.
27886 You can use the option
27888 Mark spaces in output
27890 that displays the character
27891 \begin_inset Quotes eld
27898 \begin_layout Standard
27908 \begin_inset Quotes erd
27911 for every space character in the source code.
27912 The difference to the method via the menu
27914 Insert\SpecialChar \menuseparator
27915 File\SpecialChar \menuseparator
27919 is that the document content is not shown in LyX.
27922 \begin_layout Standard
27923 Here is a child document inserted as Verbatim:
27924 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27930 \begin_inset VSpace bigskip
27933 Here is a child document inserted as Verbatim using the
27935 Mark spaces in output
27938 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27946 \begin_layout Standard
27947 \begin_inset VSpace bigskip
27953 \begin_layout Standard
27954 \begin_inset Note Greyedout
27957 \begin_layout Standard
27962 As you can see in the examples above, the text of the documents included
27967 is not broken at the end of the document lines.
27975 \begin_layout Description
27976 Listings This type is described in chapter\InsetSpace ~
27978 \begin_inset LatexCommand ref
27979 reference "cha:Program-Code-Listings"
27986 \begin_layout Standard
27987 \begin_inset Note Greyedout
27990 \begin_layout Standard
27995 Including the same document twice in a document using different methods
27996 could cause LaTeX-problems.
28004 \begin_layout Chapter
28005 Program Code Listings
28006 \begin_inset LatexCommand label
28007 name "cha:Program-Code-Listings"
28012 \begin_inset LatexCommand index
28018 \begin_inset LatexCommand index
28019 name "Program Code"
28024 \begin_inset LatexCommand index
28025 name "Floats ! Listings"
28032 \begin_layout Standard
28033 To include and typeset program code you can use the
28037 inset that can be inserted via the menu
28039 Insert\SpecialChar \menuseparator
28048 \begin_inset LatexCommand index
28049 name "LaTeX-packages ! listings"
28053 provides a powerful and flexible way to insert program source code to your
28057 \begin_layout Standard
28058 When right-clicking on a listings inset a dialog pops up where you can set
28059 the listings format.
28062 \begin_layout Standard
28063 By default, a listing starts a new paragraph in the output.
28064 The placement option
28066 Inline\InsetSpace ~
28069 prints the listing inline like this:
28070 \begin_inset listings
28071 lstparams "language={C++}"
28075 \begin_layout Standard
28088 creates a listings float where you can specify the placement options
28089 \begin_inset Quotes eld
28097 \begin_inset Quotes erd
28101 \begin_inset Quotes eld
28109 \begin_inset Quotes erd
28113 \begin_inset Quotes eld
28121 \begin_inset Quotes erd
28125 \begin_inset Quotes eld
28133 \begin_inset Quotes erd
28136 corresponding to the float placement options described in section\InsetSpace ~
28138 \begin_inset LatexCommand ref
28139 reference "sec:Float-Placement"
28144 The placement options can be mixed and are inserted without any separation,
28145 e.\InsetSpace \thinspace{}
28148 \begin_inset Quotes eld
28156 \begin_inset Quotes erd
28161 \begin_inset Quotes eld
28165 \begin_inset Quotes erd
28168 has sometimes no effect, but you don't need to use the
28172 option in this case as also non-float listings can have captions and be
28176 \begin_layout Standard
28177 You can add captions to listings with the menu
28179 Insert\SpecialChar \menuseparator
28183 Listings can be referenced like floats: Listing\InsetSpace ~
28185 \begin_inset LatexCommand ref
28186 reference "lst:Example-Listing"
28193 \begin_layout Standard
28194 \begin_inset listings
28195 lstparams "language=Python"
28199 \begin_layout Standard
28201 \begin_inset Caption
28203 \begin_layout Standard
28204 \begin_inset LatexCommand label
28205 name "lst:Example-Listing"
28209 Example Listing float
28214 # Example listing float
28217 \begin_layout Standard
28222 \begin_layout Standard
28224 'this is a python function'
28227 \begin_layout Standard
28237 \begin_layout Standard
28238 When you have set a programming language in the listings dialog, the keywords
28239 of this language will be recognized and specially typeset in the output.
28240 In the example listings the Python keyword
28241 \begin_inset Quotes eld
28245 \begin_inset Quotes erd
28248 is recognized and printed bold in the output.
28251 \begin_layout Standard
28252 \begin_inset Note Greyedout
28255 \begin_layout Standard
28260 If you don't get bold keywords when using typewriter fonts, your typewriter
28261 font probably doesn't provide a bold shape.
28262 In this case select a different one in the menu
28264 Document\SpecialChar \menuseparator
28265 Settings\SpecialChar \menuseparator
28277 provide bold shapes.)
28285 \begin_layout Standard
28291 of the listings dialog you can specify the line numbering style.
28292 You can insert a number to specify which lines are numbered to the field
28298 When you insert e.g.
28300 \begin_inset Quotes eld
28304 \begin_inset Quotes erd
28307 , only every 3rd line will be numbered.
28310 \begin_layout Standard
28311 You can furthermore specify a range of lines, only these will then appear
28315 Extended\InsetSpace ~
28318 should be used when you use national characters like the German umlauts
28321 Here is an example listing with left line numbering, step
28323 \begin_inset Quotes eld
28327 \begin_inset Quotes erd
28331 \begin_inset Quotes eld
28335 \begin_inset Quotes erd
28339 \begin_inset Quotes eld
28342 Extended\InsetSpace ~
28344 \begin_inset Quotes erd
28348 \begin_inset Quotes eld
28354 \begin_inset Quotes erd
28357 , range lines 3\InsetSpace \thinspace{}
28358 -\InsetSpace \thinspace{}
28362 \begin_layout Standard
28363 \begin_inset listings
28364 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28368 \begin_layout Standard
28373 \begin_layout Standard
28375 'this is a python function'
28378 \begin_layout Standard
28383 \begin_layout Standard
28388 \begin_layout Standard
28390 'This is a German word: Tschüß'
28393 \begin_layout Standard
28398 \begin_layout Standard
28403 \begin_layout Standard
28405 'this is a python function'
28408 \begin_layout Standard
28418 \begin_layout Standard
28419 \begin_inset Note Greyedout
28422 \begin_layout Standard
28427 Due to a bug in the
28431 package the line numbering is shifted by a line by every previous listing.
28432 That's the reason why the lines 2 and 5 are numbered in the above listing
28433 and not the lines 3 and 6.
28441 \begin_layout Standard
28442 \begin_inset VSpace bigskip
28448 \begin_layout Standard
28449 It is also possible to print lines from a file as listing.
28450 To do this, use the menu
28452 Insert\SpecialChar \menuseparator
28453 File\SpecialChar \menuseparator
28456 and choose the type
28464 \begin_layout Standard
28465 The other child document types are described in section\InsetSpace ~
28467 \begin_inset LatexCommand ref
28468 reference "sec:Child-Documents"
28477 In the child document dialog you can specify the listing parameters in
28479 To show a list of all available parameters, type in a question mark
28480 \begin_inset Quotes eld
28484 \begin_inset Quotes erd
28490 \begin_layout Standard
28491 To reference child document listings, write a label text into the corresponding
28492 field of the child document dialog.
28493 The label can then be referenced using the menu
28495 Insert\SpecialChar \menuseparator
28501 \begin_layout Standard
28502 Listing\InsetSpace ~
28504 \begin_inset LatexCommand ref
28505 reference "lst:file-listing"
28509 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28510 -\InsetSpace \thinspace{}
28515 \begin_layout Standard
28516 \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]
28524 \begin_layout Standard
28525 \begin_inset VSpace bigskip
28531 \begin_layout Standard
28532 Global listings settings can be set in the
28534 Document\SpecialChar \menuseparator
28535 Settings\SpecialChar \menuseparator
28539 To get there a list of available options, type in a question mark
28540 \begin_inset Quotes eld
28544 \begin_inset Quotes erd
28549 Listings\InsetSpace ~
28555 \begin_layout Standard
28556 For more information about the
28560 package, we refer to its documentation
28561 \begin_inset LatexCommand cite
28569 \begin_layout Standard
28575 \begin_layout Chapter
28581 \begin_layout Standard
28594 \begin_layout Standard
28602 \begin_inset LatexCommand index
28608 \begin_inset LatexCommand label
28609 name "cha:Units-available-in"
28614 \begin_inset Note Note
28617 \begin_layout Standard
28620 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28621 are displayed wrongly in PDF-bookmarks.
28622 For more information about this, have a look at
28623 \begin_inset LatexCommand cite
28636 \begin_layout Standard
28637 To understand the units described in this documentation, Table\InsetSpace ~
28639 \begin_inset LatexCommand ref
28640 reference "tab:Units"
28644 explains all units available in LyX.
28647 \begin_layout Standard
28648 \begin_inset Float table
28654 \begin_layout Standard
28655 \begin_inset Caption
28657 \begin_layout Standard
28658 \begin_inset LatexCommand label
28671 \begin_layout Standard
28672 \begin_inset VSpace medskip
28678 \begin_layout Standard
28680 \begin_inset Tabular
28681 <lyxtabular version="3" rows="20" columns="2">
28683 <column alignment="center" valignment="top" leftline="true" width="0">
28684 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28685 <row topline="true" bottomline="true">
28686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28689 \begin_layout Standard
28695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28698 \begin_layout Standard
28705 <row topline="true">
28706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28709 \begin_layout Standard
28715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28718 \begin_layout Standard
28725 <row topline="true">
28726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28729 \begin_layout Standard
28735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28738 \begin_layout Standard
28745 <row topline="true">
28746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28749 \begin_layout Standard
28755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28758 \begin_layout Standard
28765 <row topline="true">
28766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28769 \begin_layout Standard
28775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28778 \begin_layout Standard
28779 point (72.27\InsetSpace \thinspace{}
28780 pt = 1\InsetSpace \thinspace{}
28787 <row topline="true">
28788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28791 \begin_layout Standard
28797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28800 \begin_layout Standard
28801 pica (1\InsetSpace \thinspace{}
28802 pc = 12\InsetSpace \thinspace{}
28809 <row topline="true">
28810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28813 \begin_layout Standard
28819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28822 \begin_layout Standard
28823 scaled point (65536\InsetSpace \thinspace{}
28824 sp = 1\InsetSpace \thinspace{}
28831 <row topline="true">
28832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28835 \begin_layout Standard
28841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28844 \begin_layout Standard
28845 big point (72\InsetSpace \thinspace{}
28846 bp = 1\InsetSpace \thinspace{}
28853 <row topline="true">
28854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28857 \begin_layout Standard
28863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28866 \begin_layout Standard
28867 didot (1\InsetSpace \thinspace{}
28869 \begin_inset Formula $\approx$
28872 0.376\InsetSpace \thinspace{}
28879 <row topline="true">
28880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28883 \begin_layout Standard
28889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28892 \begin_layout Standard
28893 cicero (1\InsetSpace \thinspace{}
28894 cc = 12\InsetSpace \thinspace{}
28901 <row topline="true">
28902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28905 \begin_layout Standard
28911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28914 \begin_layout Standard
28915 % of original image width
28921 <row topline="true">
28922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28925 \begin_layout Standard
28931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28934 \begin_layout Standard
28941 <row topline="true">
28942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28945 \begin_layout Standard
28951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28954 \begin_layout Standard
28961 <row topline="true">
28962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28965 \begin_layout Standard
28971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28974 \begin_layout Standard
28981 <row topline="true">
28982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28985 \begin_layout Standard
28991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28994 \begin_layout Standard
29001 <row topline="true">
29002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29005 \begin_layout Standard
29011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29014 \begin_layout Standard
29021 <row topline="true">
29022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29025 \begin_layout Standard
29031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29034 \begin_layout Standard
29041 <row topline="true">
29042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29045 \begin_layout Standard
29051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29054 \begin_layout Standard
29065 <row topline="true">
29066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29069 \begin_layout Standard
29075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29078 \begin_layout Standard
29089 <row topline="true" bottomline="true">
29090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29093 \begin_layout Standard
29099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29102 \begin_layout Standard
29103 math unit (1\InsetSpace \thinspace{}
29104 mu = 1/18\InsetSpace \thinspace{}
29123 \begin_layout Chapter
29124 Output File Formats with Graphics
29125 \begin_inset LatexCommand label
29126 name "cha:Output-File-Formats"
29133 \begin_layout Section
29135 \begin_inset LatexCommand index
29136 name "File Formats ! DVI"
29141 \begin_inset LatexCommand index
29142 name "DVI|see{File Formats}"
29149 \begin_layout Standard
29150 This file type has the extension
29151 \begin_inset Quotes eld
29159 \begin_inset Quotes erd
29164 \begin_inset Quotes eld
29168 \begin_inset Quotes erd
29171 (DVI), because it is completely portable; you can move them from one machine
29172 to another without needing to do any sort of conversion.
29173 At the time when this file-format was developed, this was no matter of
29175 DVIs are used for quick previews and as pre-stage for other output formats,
29179 \begin_layout Standard
29180 \begin_inset Note Greyedout
29183 \begin_layout Standard
29188 DVI-files doesn't contain images, they will only be a linked.
29193 So don't forget this, if you move your
29197 file to another computer.
29198 This property can also slow down your computer when you view the DVI.
29199 Because the DVI-viewer has to convert the image in the background to make
29200 it visible when you scroll in the DVI.
29201 So we recommend to use PDF for files with many images.
29204 \begin_layout Standard
29205 You can export your document to DVI by using the menu
29207 File\SpecialChar \menuseparator
29208 Export\SpecialChar \menuseparator
29212 You can view your document as DVI via the
29216 menu or by using the toolbar button
29217 \begin_inset Graphics
29218 filename ../images/buffer-view_dvi.xpm
29220 scaleBeforeRotation
29227 \begin_layout Section
29229 \begin_inset LatexCommand label
29230 name "sec:PostScript"
29235 \begin_inset LatexCommand index
29236 name "File Formats ! PostScript"
29241 \begin_inset LatexCommand index
29242 name "PostScript|see{File Formats}"
29249 \begin_layout Standard
29250 This file type has the extension
29251 \begin_inset Quotes eld
29259 \begin_inset Quotes erd
29263 PostScript was developed by the company
29267 as printer language.
29268 The file contains therefore commands that the printer uses to print the
29270 PostScript can be seen as
29271 \begin_inset Quotes eld
29274 programming language
29275 \begin_inset Quotes erd
29278 ; you can calculate with it and draw diagrams and images
29282 \begin_layout Standard
29283 If you are interested to learn more about this, have a look at the LaTeX-package
29289 \begin_inset LatexCommand cite
29300 Due to this ability, the files are often bigger than PDFs.
29303 \begin_layout Standard
29304 PostScript can only contain images in the format
29305 \begin_inset Quotes eld
29308 Encapsulated PostScript
29309 \begin_inset Quotes erd
29312 (EPS, file extension
29313 \begin_inset Quotes eld
29321 \begin_inset Quotes erd
29325 As LyX allows you to use any known image format in your document, it has
29326 to convert images in the background to EPS.
29327 If you have e.g 50 images in your document, LyX has to do 50 conversions
29328 whenever you view or export your document.
29329 This will slow down your work flow with LyX drastically.
29330 So if you plan to use PostScript, you can insert your images directly as
29331 EPS to avoid this problem.
29334 \begin_layout Standard
29335 You can export your document to PostScript using the menu
29337 File\SpecialChar \menuseparator
29338 Export\SpecialChar \menuseparator
29342 You can view your document as PostScript via the
29346 menu or by using the toolbar button
29347 \begin_inset Graphics
29348 filename ../images/buffer-view_ps.xpm
29350 scaleBeforeRotation
29357 \begin_layout Section
29359 \begin_inset LatexCommand label
29365 \begin_inset LatexCommand index
29366 name "File Formats ! PDF"
29371 \begin_inset LatexCommand index
29379 \begin_layout Standard
29380 This file type has the extension
29381 \begin_inset Quotes eld
29389 \begin_inset Quotes erd
29394 \begin_inset Quotes eld
29397 Portable Document Format
29398 \begin_inset Quotes erd
29401 (PDF) is developed by
29405 as derivative from PostScript.
29406 It is more compressed and it uses much less commands than PostScript.
29408 \begin_inset Quotes eld
29412 \begin_inset Quotes erd
29415 implies, it can be processed at any computer system and the printed output
29416 looks exactly the same.
29419 \begin_layout Standard
29420 PDF can contain images in its own PDF format, in the format
29421 \begin_inset Quotes eld
29424 Joint Photographic Experts Group
29425 \begin_inset Quotes erd
29428 (JPG, file extension
29429 \begin_inset Quotes eld
29437 \begin_inset Quotes erd
29441 \begin_inset Quotes eld
29449 \begin_inset Quotes erd
29452 ), and in the format
29453 \begin_inset Quotes eld
29456 Portable Network Graphics
29457 \begin_inset Quotes erd
29460 (PNG, file extension
29461 \begin_inset Quotes eld
29469 \begin_inset Quotes erd
29473 Nevertheless you can use any other image format, because LyX converts them
29474 in the background to one of these formats.
29475 But as described in the section about PostScript, the image conversion
29476 will slow down your work flow.
29477 So it is recommended to use images in one of the three mentioned formats.
29480 \begin_layout Standard
29481 You can export your document to PDF via the menu
29483 File\SpecialChar \menuseparator
29486 in three different ways:
29489 \begin_layout Description
29491 (ps2pdf) This uses the program
29495 that creates a PDF from a PostScript-version of your file.
29496 The PostScript-version is produced by the program
29500 which uses a DVI-version as intermediate step.
29501 So this export variant consist of three conversions.
29504 \begin_layout Description
29506 (dvipdfm) This uses the program
29510 that converts your file in the background to DVI and in a second step to
29514 \begin_layout Description
29516 (pdflatex) This uses the program
29520 that converts your file directly to PDF.
29523 \begin_layout Standard
29524 It is recommended to use
29533 supports all features of actual PDF-versions, is quick and works stable
29539 is not under development and therefore a bit outdated.
29542 \begin_layout Standard
29543 You can view your document as PDF via the
29547 menu or by using the toolbar button
29548 \begin_inset Graphics
29549 filename ../images/buffer-view_pdf2.xpm
29551 scaleBeforeRotation
29567 \begin_layout Chapter
29568 Explanation of Equation\InsetSpace ~
29570 \begin_inset LatexCommand eqref
29576 \begin_inset LatexCommand label
29577 name "cha:Explanation-of-Equation"
29584 \begin_layout Standard
29590 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29593 can be calculated to
29596 \begin_layout Standard
29597 \begin_inset Formula \begin{equation}
29598 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}
29605 \begin_layout Standard
29607 \begin_inset Formula $W_{g\, n}$
29610 is the given width of all cells.
29617 is the LaTeX-length between the cell text and the cell border, its default
29618 value is 6\InsetSpace \thinspace{}
29626 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29630 \begin_layout Standard
29631 Following equation\InsetSpace ~
29633 \begin_inset LatexCommand eqref
29634 reference "eq:Wtot_n"
29638 , the total width of a multicolumn
29639 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29645 \begin_layout Standard
29646 \begin_inset Formula \begin{equation}
29647 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29654 \begin_layout Standard
29655 By setting equation\InsetSpace ~
29657 \begin_inset LatexCommand eqref
29658 reference "eq:Wtot_n"
29663 \begin_inset LatexCommand eqref
29664 reference "eq:Wtot_mult"
29668 equal we can calculate the needed given width
29669 \begin_inset Formula $W_{g\, n}$
29676 columns are spanned, so that each column has a total width of
29677 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29683 \begin_layout Standard
29684 \begin_inset Formula \begin{equation}
29685 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29692 \begin_layout Bibliography
29693 \begin_inset LatexCommand bibitem
29694 key "latexcompanion"
29698 Frank Mittelbach and Michel Goossens:
29700 The LaTeX Companion Second Edition.
29703 Addison-Wesley, 2004
29706 \begin_layout Bibliography
29707 \begin_inset LatexCommand bibitem
29712 Helmut Kopka and Patrick W.
29715 A Guide to LaTeX Fourth Edition.
29718 Addison-Wesley, 2003
29721 \begin_layout Bibliography
29722 \begin_inset LatexCommand bibitem
29729 LaTeX: A Document Preparation System.
29732 Addison-Wesley, second edition, 1994
29735 \begin_layout Bibliography
29736 \begin_inset LatexCommand bibitem
29745 \begin_layout Standard
29749 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29759 \begin_layout Standard
29766 of the LaTeX-package
29771 \begin_inset LatexCommand index
29772 name "LaTeX-packages ! booktabs"
29779 \begin_layout Bibliography
29780 \begin_inset LatexCommand bibitem
29789 \begin_layout Standard
29793 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29802 \begin_layout Standard
29809 of the LaTeX-package
29814 \begin_inset LatexCommand index
29815 name "LaTeX-packages ! caption"
29822 \begin_layout Bibliography
29823 \begin_inset LatexCommand bibitem
29832 \begin_layout Standard
29836 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29846 \begin_layout Standard
29853 of the LaTeX-package
29858 \begin_layout Bibliography
29859 \begin_inset LatexCommand bibitem
29868 \begin_layout Standard
29872 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29882 \begin_layout Standard
29889 of the LaTeX-package
29891 endf\SpecialChar \textcompwordmark{}
29895 \begin_inset LatexCommand index
29896 name "LaTeX-packages ! endfloat"
29903 \begin_layout Bibliography
29904 \begin_inset LatexCommand bibitem
29913 \begin_layout Standard
29917 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29927 \begin_layout Standard
29934 of the LaTeX-package
29936 f\SpecialChar \textcompwordmark{}
29937 loatf\SpecialChar \textcompwordmark{}
29941 \begin_inset LatexCommand index
29942 name "LaTeX-packages ! floatflt"
29949 \begin_layout Bibliography
29950 \begin_inset LatexCommand bibitem
29959 \begin_layout Standard
29963 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29973 \begin_layout Standard
29980 of the LaTeX-package
29985 \begin_inset LatexCommand index
29986 name "LaTeX-packages ! footmisc"
29993 \begin_layout Bibliography
29994 \begin_inset LatexCommand bibitem
30003 \begin_layout Standard
30007 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
30016 \begin_layout Standard
30023 of the LaTeX-package
30028 \begin_inset LatexCommand index
30029 name "LaTeX-packages ! hyperref"
30036 \begin_layout Bibliography
30037 \begin_inset LatexCommand bibitem
30046 \begin_layout Standard
30050 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
30060 \begin_layout Standard
30067 of the LaTeX-package
30072 \begin_inset LatexCommand index
30073 name "LaTeX-packages ! hyperref"
30080 \begin_layout Bibliography
30081 \begin_inset LatexCommand bibitem
30090 \begin_layout Standard
30094 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30104 \begin_layout Standard
30111 of the LaTeX-package
30116 \begin_inset LatexCommand index
30117 name "LaTeX-packages ! koma-script"
30124 \begin_layout Bibliography
30125 \begin_inset LatexCommand bibitem
30126 key "koma-script-de"
30134 \begin_layout Standard
30138 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30148 \begin_layout Standard
30155 of the LaTeX-package
30160 \begin_inset LatexCommand index
30161 name "LaTeX-packages ! koma-script"
30168 \begin_layout Bibliography
30169 \begin_inset LatexCommand bibitem
30178 \begin_layout Standard
30182 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30192 \begin_layout Standard
30199 of the LaTeX-package
30204 \begin_inset LatexCommand index
30205 name "LaTeX-packages ! listings"
30212 \begin_layout Bibliography
30213 \begin_inset LatexCommand bibitem
30222 \begin_layout Standard
30226 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30236 \begin_layout Standard
30243 of the LaTeX-package
30248 \begin_inset LatexCommand index
30249 name "LaTeX-packages ! marginnote"
30256 \begin_layout Bibliography
30257 \begin_inset LatexCommand bibitem
30266 \begin_layout Standard
30270 href{http://tug.org/PSTricks/main.cgi/}{
30279 \begin_layout Standard
30286 of the LaTeX-package
30291 \begin_inset LatexCommand index
30292 name "LaTeX-packages ! PSTricks"
30299 \begin_layout Bibliography
30300 \begin_inset LatexCommand bibitem
30309 \begin_layout Standard
30313 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30322 \begin_layout Standard
30329 of the LaTeX-package
30334 \begin_inset LatexCommand index
30335 name "LaTeX-packages ! sidecap"
30342 \begin_layout Bibliography
30343 \begin_inset LatexCommand bibitem
30352 \begin_layout Standard
30356 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30365 \begin_layout Standard
30372 about new LyX-features planned for the release
30379 \begin_layout Standard
30380 \begin_inset LatexCommand printindex
30387 \begin_layout Standard
30388 \begin_inset FloatList figure
30395 \begin_layout Standard
30396 \begin_inset FloatList table