1 #LyX 1.5.0rc2 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
214 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
223 \begin_layout Standard
225 If you have comments or error corrections, please send them to the LyX Documenta
232 \begin_layout Standard
236 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
241 lyx-docs@lists.lyx.org
245 \begin_layout Standard
258 \begin_inset Note Note
261 \begin_layout Standard
262 original author: Uwe Stöhr
278 \begin_layout Standard
279 \begin_inset LatexCommand tableofcontents
286 \begin_layout Standard
287 \begin_inset Note Note
290 \begin_layout Standard
291 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
301 If they are not installed you can export the document anyway but the sections
302 where the packages are required won't appear in the output.
305 \begin_layout Standard
306 The latest PDF-version of this document can be found here:
310 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
318 \begin_layout Chapter
320 \begin_inset LatexCommand label
326 \begin_inset LatexCommand index
332 \begin_inset LatexCommand index
333 name "Graphics|see{Figures}"
340 \begin_layout Section
342 \begin_inset LatexCommand index
343 name "Figures ! Graphics Dialog"
348 \begin_inset LatexCommand label
349 name "sec:Graphics-Dialog"
356 \begin_layout Standard
357 To insert an image into your document, place the cursor at the text position
358 you want and click on the toolbar icon
359 \begin_inset Graphics
360 filename ../images/dialog-show-new-inset_graphics.xpm
368 Insert\SpecialChar \menuseparator
372 Then a dialog will appear to choose the file to load.
373 The image will appear in the output exactly at the position where it is
377 \begin_layout Standard
378 The graphics dialog can be called at any time by right-clicking on an image.
379 This dialog has three tabs:
382 \begin_layout Description
387 Here you can choose an image file and adjust its appearance in the output.
388 The available units for the image size are explained in appendix\InsetSpace ~
390 \begin_inset LatexCommand ref
391 reference "cha:Units-available-in"
397 You can rotate images counter-clockwise by setting a rotation angle and
399 The image will also be rotated inside LyX.
401 Images can be scaled by using
402 a percentage value or by setting the width and height explicitly.
403 If you set only the width or only the height, the other size will be determined
405 If you set both, then the image will be transformed to the given size,
406 possibly distorting it.
407 To prevent the image from distortion, use the option
409 Maintain aspect ratio
412 The image will then be scaled so that its width and height don't exceed
413 the specified dimensions.
415 Images can be opened in a program of your choice
421 The program can be set for every image format in the file format settings
422 in LyX's preferences.
425 \begin_layout Description
430 Alternatively to the usage of scaling units it is possible to set image
431 coordinates to adjust the height and width of the image in the output.
432 The coordinates can also be calculated automatically by pressing the button
444 bounding\InsetSpace ~
447 will only print the image region within the given coordinates.
448 Normally you don't need to take care about image coordinates and can ignore
452 \begin_layout Description
458 In this tab you can modify the appearance of the image within LyX and set
459 the image to be a subfigure of a figure float with an own caption.
460 Subfigures are explained in section\InsetSpace ~
462 \begin_inset LatexCommand ref
463 reference "sec:Figure-Floats"
469 LaTeX experts can also specify on this tab additional LaTeX options.
477 makes the image appear in the output only as a frame with the size of the
487 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
494 When the option is used the images will not be unzipped on export, since
495 LaTeX can handle them as they are.
497 Zipped EPS-graphics are useful to save
498 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
500 \begin_inset LatexCommand ref
501 reference "sec:PostScript"
506 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
517 zgrep %%Bounding x.eps.gz > x.eps.bb
521 The second command creates the bounding box file
522 \begin_inset Quotes eld
526 \begin_inset Quotes erd
529 that is needed by LaTeX for zipped graphics.
532 \begin_layout Standard
533 \begin_inset VSpace bigskip
539 \begin_layout Standard
540 This is an example image in EPS format
544 \begin_layout Standard
545 Image formats are explained in section\InsetSpace ~
547 \begin_inset LatexCommand ref
548 reference "sec:Image-Formats"
557 within a separate, horizontally centered paragraph:
560 \begin_layout Standard
562 \begin_inset Graphics
563 filename clipart/mobius.eps
574 \begin_layout Standard
575 This is the same image like the one above but in draft mode:
578 \begin_layout Standard
580 \begin_inset Graphics
581 filename clipart/mobius.eps
593 \begin_layout Section
595 \begin_inset LatexCommand label
596 name "sec:Figure-Floats"
601 \begin_inset LatexCommand index
602 name "Floats ! Figures"
607 \begin_inset LatexCommand index
608 name "Figures ! Floats"
615 \begin_layout Standard
616 For general explanations about floats, have a look at section\InsetSpace ~
618 \begin_inset LatexCommand ref
619 reference "sec:FloatIntroduction"
626 \begin_layout Standard
628 \begin_inset Graphics
629 filename ../images/float-insert_figure.xpm
637 Insert\SpecialChar \menuseparator
638 Float\SpecialChar \menuseparator
641 inserts a float with a caption that has the label
642 \begin_inset Quotes eld
647 \begin_inset Quotes erd
650 (# is the actual number).
651 You can insert the image above the caption, like in Figure\InsetSpace ~
653 \begin_inset LatexCommand ref
654 reference "fig:kill-plat"
658 or below the caption, like in Figure\InsetSpace ~
660 \begin_inset LatexCommand ref
661 reference "fig:escher"
666 More about the caption placement is described in section\InsetSpace ~
668 \begin_inset LatexCommand ref
669 reference "sec:Caption-Placement"
676 \begin_layout Standard
677 \begin_inset Float figure
682 \begin_layout Standard
684 \begin_inset Graphics
685 filename clipart/platypus.eps
696 \begin_layout Standard
699 \begin_layout Standard
700 \begin_inset LatexCommand label
705 A severely distorted platypus in a float.
718 \begin_layout Standard
719 \begin_inset Float figure
724 \begin_layout Standard
727 \begin_layout Standard
728 \begin_inset LatexCommand label
742 \begin_layout Standard
744 \begin_inset Graphics
745 filename clipart/escher-lsd.eps
761 \begin_layout Standard
762 \begin_inset LatexCommand index
763 name "References ! to Figures"
769 \begin_inset LatexCommand ref
770 reference "fig:kill-plat"
775 \begin_inset LatexCommand ref
776 reference "fig:escher"
780 are examples of referenced figures.
781 Figures can be referenced in the text by referencing their label.
782 To do this insert a label in the caption using the menu
784 Insert\SpecialChar \menuseparator
787 or the toolbar button
788 \begin_inset Graphics
789 filename ../images/label-insert.xpm
796 You can now refer to the label using the menu
798 Insert\SpecialChar \menuseparator
802 or the toolbar button
803 \begin_inset Graphics
804 filename ../images/dialog-show-new-inset_ref.xpm
811 It is important to use references to floats, rather than using vague references
813 \begin_inset Quotes eld
817 \begin_inset Quotes erd
820 , because as LaTeX will reposition the floats in the final document, it
822 \begin_inset Quotes eld
826 \begin_inset Quotes erd
831 Referencing is explained in detail in section\InsetSpace ~
833 \begin_inset LatexCommand ref
834 reference "sec:Referencing-Floats"
841 \begin_layout Standard
842 Normally only one image is inserted to a figure float, but sometimes you
843 might want to use two images with separate subcaptions.
844 This can be set in the tab
849 of the graphics dialog.
850 Choose there the option
854 and enter the subcaption for the image in the caption field.
855 Note that only the main caption of the float is added to the List of Figures.
858 erencing subfigures is explained in section\InsetSpace ~
860 \begin_inset LatexCommand ref
861 reference "sub:Referencing-Subfigures"
868 \begin_layout Standard
871 \begin_inset LatexCommand ref
872 reference "fig:Two-distorted-images"
876 is an example of a figure float with two images set side by side.
877 You can also set the images one below the other.
880 \begin_layout Standard
881 \begin_inset Float figure
886 \begin_layout Standard
890 \begin_inset Graphics
891 filename clipart/escher-lsd.eps
895 subcaptionText "Undefinable structure"
902 \begin_inset Graphics
903 filename clipart/platypus.eps
908 subcaptionText "\label{fig:Platypus} Platypus"
917 \begin_layout Standard
920 \begin_layout Standard
921 \begin_inset LatexCommand label
922 name "fig:Two-distorted-images"
926 Two distorted images.
939 \begin_layout Section
941 \begin_inset LatexCommand label
942 name "sec:Image-Formats"
947 \begin_inset LatexCommand index
953 \begin_inset LatexCommand index
954 name "Figures ! Image Formats"
961 \begin_layout Standard
962 You can insert images in any known file format.
963 But as explained in appendix\InsetSpace ~
965 \begin_inset LatexCommand ref
966 reference "cha:Output-File-Formats"
970 , every output document format allows only a few image formats.
971 LyX uses therefore the program
975 in the background to convert the images to the right format.
976 To increase your work flow by avoiding these conversions in the background,
977 you can use only the image formats that can directly be embedded in the
979 The output file formats are explained in appendix\InsetSpace ~
981 \begin_inset LatexCommand ref
982 reference "cha:Output-File-Formats"
989 \begin_layout Standard
990 Similar to fonts there are two types of image formats:
993 \begin_layout Description
995 images consist of pixel values, often in a compressed form.
996 They are therefore not fully scalable and look pixeled in large zooms.
997 Well-known bitmap image formats are
998 \begin_inset Quotes eld
1001 Graphics Interchange Format
1002 \begin_inset Quotes erd
1005 (GIF, file extension
1006 \begin_inset Quotes eld
1014 \begin_inset Quotes erd
1018 \begin_inset LatexCommand index
1019 name "GIF|see{Image formats}"
1024 \begin_inset Quotes eld
1027 Portable Network Graphics
1028 \begin_inset Quotes erd
1031 (PNG, file extension
1032 \begin_inset Quotes eld
1040 \begin_inset Quotes erd
1044 \begin_inset LatexCommand index
1045 name "PNG|see{Image formats}"
1050 \begin_inset Quotes eld
1053 Joint Photographic Experts Group
1054 \begin_inset Quotes erd
1057 (JPG, file extension
1058 \begin_inset Quotes eld
1066 \begin_inset Quotes erd
1070 \begin_inset Quotes eld
1078 \begin_inset Quotes erd
1082 \begin_inset LatexCommand index
1083 name "JPG|see{Image formats}"
1090 \begin_layout Description
1092 images consist of vectors and can therefore be scaled to any size
1094 The scaling ability is necessary if you want to create presentations, because
1095 presentations are always scaled by the video projector.
1096 Scaling is also useful for online documents to let the user zoom into diagrams.
1099 ell-known scalable image formats are
1100 \begin_inset Quotes eld
1103 Scalable Vector Graphics
1104 \begin_inset Quotes erd
1107 (SVG, file extension
1108 \begin_inset Quotes eld
1116 \begin_inset Quotes erd
1120 \begin_inset LatexCommand index
1121 name "SVG|see{Image formats}"
1126 \begin_inset Quotes eld
1129 Encapsulated PostScript
1130 \begin_inset Quotes erd
1133 (EPS, file extension
1134 \begin_inset Quotes eld
1142 \begin_inset Quotes erd
1146 \begin_inset LatexCommand index
1147 name "EPS|see{Image formats}"
1152 \begin_inset Quotes eld
1155 Portable Document Format
1156 \begin_inset Quotes erd
1159 (PDF, file extension
1160 \begin_inset Quotes eld
1168 \begin_inset Quotes erd
1172 \begin_inset LatexCommand index
1178 \begin_inset Quotes eld
1182 \begin_inset Quotes erd
1185 (WMF, file extension
1186 \begin_inset Quotes eld
1194 \begin_inset Quotes erd
1198 \begin_inset LatexCommand index
1199 name "SVG|see{Image formats}"
1205 \begin_inset Quotes eld
1209 \begin_inset Quotes erd
1212 , because you can convert any bitmap image to a PDF or EPS-image and the
1213 result will still be a bitmap image.
1214 In this cases only a header with the image properties is added to the original
1219 \begin_layout Standard
1220 In the case of PDF, the original image is additionally compressed.
1226 The PDF-files generated by
1230 are for example bitmap images.
1233 \begin_layout Standard
1234 Normally it is not possible to convert a bitmap image into a scalable one,
1236 Only the image formats PDF and EPS can directly be embedded to PDF and
1237 PostScript output files, respectively.
1238 SVG and WMF-images are recalculated to bitmaps when the output file is
1239 generated because there is currently no adequate WMF/SVG
1240 \begin_inset Formula $\to$
1243 PDF/EPS converter available.
1246 \begin_layout Chapter
1248 \begin_inset LatexCommand label
1254 \begin_inset LatexCommand index
1262 \begin_layout Section
1264 \begin_inset LatexCommand index
1265 name "Table ! Introduction"
1272 \begin_layout Standard
1273 You can insert a table using either the toolbar button
1274 \begin_inset Graphics
1275 filename ../images/tabular-insert.xpm
1283 Insert\SpecialChar \menuseparator
1287 The toolbar button offers you a graphical selection: Move the mouse to
1288 set the column/row number of the table that should be created and then
1289 press a mouse button.
1290 When you use the menu to create a table, a dialog will appear, asking you
1291 for the number of rows and columns.
1293 The default table has lines around any
1294 cell and the first row appears separated from the rest of the table.
1295 This separation occurs due to a double line: The cells of the first row
1296 have a line below them and the cells of the second row have a line above
1298 Here is an example table:
1301 \begin_layout Standard
1303 \begin_inset Tabular
1304 <lyxtabular version="3" rows="4" columns="4">
1306 <column alignment="center" valignment="top" leftline="true" width="0">
1307 <column alignment="center" valignment="top" leftline="true" width="0">
1308 <column alignment="center" valignment="top" leftline="true" width="0">
1309 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1310 <row topline="true" bottomline="true">
1311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1314 \begin_layout Standard
1320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1323 \begin_layout Standard
1338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1341 \begin_layout Standard
1347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1350 \begin_layout Standard
1357 <row topline="true">
1358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1361 \begin_layout Standard
1376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1379 \begin_layout Standard
1385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1388 \begin_layout Standard
1394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1397 \begin_layout Standard
1404 <row topline="true">
1405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1408 \begin_layout Standard
1423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1426 \begin_layout Standard
1432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1435 \begin_layout Standard
1441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1444 \begin_layout Standard
1451 <row topline="true" bottomline="true">
1452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1455 \begin_layout Standard
1470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1473 \begin_layout Standard
1479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1482 \begin_layout Standard
1488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1491 \begin_layout Standard
1505 \begin_layout Section
1507 \begin_inset LatexCommand index
1508 name "Table ! Dialog"
1515 \begin_layout Standard
1516 You can alter a table by clicking on it with the right mouse button, which
1517 brings up the table dialog.
1518 Here you can adjust the settings of that cell and row/column respectively
1519 where the cursor is currently placed.
1520 Most of the dialog options also work on selections.
1521 This means if you select more cells, columns or rows, the action is done
1522 for the whole selection.
1523 Note that there is a difference between selecting the
1527 of the cell, and the cell itself.
1528 You can alter tables with the following tabs of the table dialog:
1531 \begin_layout Description
1537 Here you can set the horizontal alignment and the width of the current
1539 When you have set a width you can also adjust the vertical alignment of
1541 A given width will allow the cell to have line breaks and multiple paragraphs
1542 of text, see section\InsetSpace ~
1544 \begin_inset LatexCommand ref
1545 reference "sub:Multiple-Lines-in"
1550 If you set no width, the column is as wide as their widest cell content
1553 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1554 cell, see section\InsetSpace ~
1556 \begin_inset LatexCommand ref
1557 reference "sub:Multicolumns"
1563 The rotate check boxes rotates the current cell, a selection, or the whole
1564 table counter-clockwise by 90°.
1565 The rotation is not shown within LyX, only in the output.
1568 \begin_inset Note Greyedout
1571 \begin_layout Standard
1576 Not all DVI-viewers are able to display rotations.
1583 It is also possible to enter a LaTeX-argument which is needed for special
1584 table formattings, see section\InsetSpace ~
1586 \begin_inset LatexCommand ref
1587 reference "sub:Multicolumn-Calculations"
1592 \begin_inset LatexCommand ref
1593 reference "sec:Colored-Tables"
1600 \begin_layout Description
1605 In this tab you can add and delete border lines for the current row/column.
1612 will convert the table to a formal table as described in section\InsetSpace ~
1614 \begin_inset LatexCommand ref
1615 reference "sec:Formal-Tables"
1621 You can also add here space to table rows as decribed in section\InsetSpace ~
1623 \begin_inset LatexCommand ref
1624 reference "sub:Row-Spacing"
1631 \begin_layout Description
1636 This tab is to make a table a so called
1637 \begin_inset Quotes eld
1645 \begin_inset Quotes erd
1648 that can run over several pages.
1649 Section\InsetSpace ~
1651 \begin_inset LatexCommand ref
1652 reference "sec:Longtables"
1657 \begin_inset LatexCommand ref
1658 reference "sec:Special-Longtable-Issues"
1662 describe the longtable features in detail.
1665 \begin_layout Standard
1666 When the table toolbar is opened, you can move the cursor with the arrow
1667 keys from cell to cell and the property of the current cell will immediately
1668 be displayed in the dialog.
1671 \begin_layout Section
1673 \begin_inset LatexCommand index
1674 name "Table ! Toolbar"
1681 \begin_layout Standard
1682 The table toolbar is an alternative to the table dialog to be able to alter
1684 It should normally appear at the bottom of LyX's main window when the cursor
1686 You can alternatively switch it on to appear always, by right-clicking
1687 in LyX's main menu bar.
1690 \begin_layout Standard
1691 The toolbar has the following icons:
1694 \begin_layout Labeling
1695 \labelwidthstring 00.00.0000
1696 \begin_inset Graphics
1697 filename ../images/tabular-feature_append-row.xpm
1702 adds a row below the current cell or selection
1705 \begin_layout Labeling
1706 \labelwidthstring 00.00.0000
1707 \begin_inset Graphics
1708 filename ../images/tabular-feature_append-column.xpm
1713 adds a column right beside the current cell or selection
1716 \begin_layout Labeling
1717 \labelwidthstring 00.00.0000
1718 \begin_inset Graphics
1719 filename ../images/tabular-feature_delete-row.xpm
1724 deletes the current row or selection
1727 \begin_layout Labeling
1728 \labelwidthstring 00.00.0000
1729 \begin_inset Graphics
1730 filename ../images/tabular-feature_delete-column.xpm
1735 deletes the current column or selection
1738 \begin_layout Labeling
1739 \labelwidthstring 00.00.0000
1740 \begin_inset Graphics
1741 filename ../images/tabular-feature_toggle-line-top.xpm
1746 adds a line at the top of the current cell / row or of a selection
1749 \begin_layout Labeling
1750 \labelwidthstring 00.00.0000
1751 \begin_inset Graphics
1752 filename ../images/tabular-feature_toggle-line-bottom.xpm
1757 adds a line at the bottom of the current cell / row or of a selection
1760 \begin_layout Labeling
1761 \labelwidthstring 00.00.0000
1762 \begin_inset Graphics
1763 filename ../images/tabular-feature_toggle-line-left.xpm
1768 adds a line at the left side of the current cell / row or of a selection
1771 \begin_layout Labeling
1772 \labelwidthstring 00.00.0000
1773 \begin_inset Graphics
1774 filename ../images/tabular-feature_toggle-line-right.xpm
1779 adds a line at the right side of the current cell / row or of a selection
1782 \begin_layout Labeling
1783 \labelwidthstring 00.00.0000
1784 \begin_inset Graphics
1785 filename ../images/tabular-feature_set-all-lines.xpm
1790 adds lines around the current or selected cells - if the current cell no
1791 multicolumn this also affects the current row and column
1794 \begin_layout Labeling
1795 \labelwidthstring 00.00.0000
1796 \begin_inset Graphics
1797 filename ../images/tabular-feature_unset-all-lines.xpm
1802 deletes all lines of the current or selected cells - if the current cell
1803 no multicolumn this also affects the current row and column
1806 \begin_layout Labeling
1807 \labelwidthstring 00.00.0000
1808 \begin_inset Graphics
1809 filename ../images/tabular-feature_align-left.xpm
1814 left-aligns the content of the current cell / column
1817 \begin_layout Labeling
1818 \labelwidthstring 00.00.0000
1819 \begin_inset Graphics
1820 filename ../images/tabular-feature_align-center.xpm
1825 centers the content of the current cell / column horizontally
1828 \begin_layout Labeling
1829 \labelwidthstring 00.00.0000
1830 \begin_inset Graphics
1831 filename ../images/tabular-feature_align-right.xpm
1836 right-aligns the content of the current cell / column
1839 \begin_layout Labeling
1840 \labelwidthstring 00.00.0000
1841 \begin_inset Graphics
1842 filename ../images/tabular-feature_valign-top.xpm
1847 aligns the content of the current cell vertically to the top
1850 \begin_layout Labeling
1851 \labelwidthstring 00.00.0000
1852 \begin_inset Graphics
1853 filename ../images/tabular-feature_valign-middle.xpm
1858 centers the content of the current cell vertically
1861 \begin_layout Labeling
1862 \labelwidthstring 00.00.0000
1863 \begin_inset Graphics
1864 filename ../images/tabular-feature_valign-bottom.xpm
1869 aligns the content of the current cell vertically to the bottom
1872 \begin_layout Labeling
1873 \labelwidthstring 00.00.0000
1874 \begin_inset Graphics
1875 filename ../images/tabular-feature_set-rotate-cell.xpm
1880 rotates the current cell or selection counter-clockwise by 90°
1883 \begin_layout Labeling
1884 \labelwidthstring 00.00.0000
1885 \begin_inset Graphics
1886 filename ../images/tabular-feature_set-rotate-tabular.xpm
1891 rotates the whole table counter-clockwise by 90°
1894 \begin_layout Labeling
1895 \labelwidthstring 00.00.0000
1896 \begin_inset Graphics
1897 filename ../images/tabular-feature_multicolumn.xpm
1902 sets the current cell or selection as a multicolumn
1905 \begin_layout Standard
1906 \begin_inset Note Greyedout
1909 \begin_layout Standard
1914 For the output the vertical alignment of the first cell in a row is used
1915 for all following cells in the row.
1923 \begin_layout Section
1925 \begin_inset LatexCommand index
1926 name "Table ! Edit Menu"
1933 \begin_layout Standard
1934 Additionally to the table dialog and toolbar, the menu
1936 Edit\SpecialChar \menuseparator
1939 allows you to add and delete border lines for the current row/column and
1940 to set the current selection as multicolumn.
1941 The menu is only available when the cursor is inside a table.
1944 \begin_layout Section
1946 \begin_inset LatexCommand label
1947 name "sec:Table-Floats"
1952 \begin_inset LatexCommand index
1953 name "Floats ! Tables"
1958 \begin_inset LatexCommand index
1959 name "Table ! Floats"
1966 \begin_layout Standard
1967 For general explanations about floats, have a look at section\InsetSpace ~
1969 \begin_inset LatexCommand ref
1970 reference "sec:FloatIntroduction"
1977 \begin_layout Standard
1978 \begin_inset Float table
1984 \begin_layout Standard
1985 \begin_inset Caption
1987 \begin_layout Standard
1988 \begin_inset LatexCommand label
1989 name "tab:a table float"
2001 \begin_layout Standard
2003 \begin_inset Tabular
2004 <lyxtabular version="3" rows="3" columns="3">
2006 <column alignment="center" valignment="top" leftline="true" width="0pt">
2007 <column alignment="center" valignment="top" leftline="true" width="0pt">
2008 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2009 <row topline="true" bottomline="true">
2010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2013 \begin_layout Standard
2028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2031 \begin_layout Standard
2046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2049 \begin_layout Standard
2065 <row topline="true">
2066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2069 \begin_layout Standard
2084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2087 \begin_layout Standard
2102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2105 \begin_layout Standard
2121 <row topline="true" bottomline="true">
2122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2125 \begin_layout Standard
2135 \begin_inset Formula $\int x^{2}dx$
2143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2146 \begin_layout Standard
2156 \begin_inset Formula $\left[\begin{array}{cc}
2158 c & d\end{array}\right]$
2166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2169 \begin_layout Standard
2179 \begin_inset Formula $1+1=2$
2200 \begin_layout Standard
2201 Table floats can be inserted using the menu
2203 Insert\SpecialChar \menuseparator
2204 Float\SpecialChar \menuseparator
2207 or the toolbar button
2208 \begin_inset Graphics
2209 filename ../images/float-insert_table.xpm
2218 \begin_layout Standard
2219 The float appears as a collapsible box with a caption that has the label
2221 \begin_inset Quotes eld
2226 \begin_inset Quotes erd
2229 (# is the actual table number).
2230 You can insert tables to the float above or below the caption.
2233 \begin_layout Standard
2236 \begin_inset LatexCommand ref
2237 reference "tab:a table float"
2241 is an example table within a table float.
2244 \begin_layout Standard
2245 Having the caption above the table is the common rule that is unfortunately
2246 not supported in LaTeX's standard classes.
2247 That means if you are using the document classes
2263 there will be no space between the caption and the table.
2264 To insert the needed space, add the following option to the load command
2265 of the LaTeX-package
2270 \begin_inset LatexCommand index
2271 name "LaTeX-packages ! caption"
2275 in your document preamble
2279 \begin_layout Standard
2280 For more information have a look at section\InsetSpace ~
2282 \begin_inset LatexCommand ref
2283 reference "sec:Caption-Placement"
2295 \begin_layout Standard
2301 \begin_layout Standard
2306 , which is described in section\InsetSpace ~
2308 \begin_inset LatexCommand ref
2309 reference "sec:Caption-Formatting"
2313 , is used to adjust the caption format.
2316 \begin_layout Standard
2317 \begin_inset LatexCommand index
2318 name "References ! to Tables"
2322 Tables can be cross-referenced in the text by referencing their label.
2323 To do this insert a label in the caption using the menu
2325 Insert\SpecialChar \menuseparator
2328 or the toolbar button
2329 \begin_inset Graphics
2330 filename ../images/label-insert.xpm
2337 You can now refer to the label using the menu
2339 Insert\SpecialChar \menuseparator
2343 or the toolbar button
2344 \begin_inset Graphics
2345 filename ../images/dialog-show-new-inset_ref.xpm
2353 Referencing is explained in detail in section\InsetSpace ~
2355 \begin_inset LatexCommand ref
2356 reference "sec:Referencing-Floats"
2363 \begin_layout Section
2365 \begin_inset LatexCommand label
2366 name "sec:Longtables"
2371 \begin_inset LatexCommand index
2377 \begin_inset LatexCommand index
2378 name "Table ! Longtables"
2385 \begin_layout Standard
2386 If the table is too long to fit on one page, you can use the option
2396 of the table dialog to split the table automatically over more pages.
2397 Doing this enables some check boxes and you can now define:
2400 \begin_layout Description
2405 : The current row and all rows above, that don't have any special options
2406 defined, are defined to be the header rows of all pages of the longtable;
2407 except for the first page, if
2413 This therefore called the main header.
2416 \begin_layout Description
2422 : The current row and all rows above, that don't have any special options
2423 defined, are defined to be the header rows of the first page of the longtable.
2426 \begin_layout Description
2431 : The current row and all rows below, that don't have any special options
2432 defined, are defined to be the footer rows of all pages of the longtable;
2433 except for the last page, if
2441 \begin_layout Description
2447 : The current row and all rows below, that don't have any special options
2448 defined, are defined to be the footer rows of the last page of the longtable.
2451 \begin_layout Standard
2452 You can also specify a row where the table is splitted.
2453 If you set more than one option in the same table row, you should be aware
2454 of the fact that only the first one is used in the given table row.
2455 The others will then be defined as
2460 In this context, first means first in this order:
2467 header, Footer, Last\InsetSpace ~
2471 See the following longtable to see how it works:
2474 \begin_layout Standard
2476 \begin_inset Tabular
2477 <lyxtabular version="3" rows="69" columns="3">
2478 <features islongtable="true">
2479 <column alignment="left" valignment="top" leftline="true" width="0cm">
2480 <column alignment="left" valignment="top" width="0pt">
2481 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2482 <row topline="true" bottomline="true" endfirsthead="true">
2483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2486 \begin_layout Standard
2489 Example Phone List (ignore the names)
2494 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2497 \begin_layout Standard
2503 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2506 \begin_layout Standard
2513 <row topline="true" bottomline="true" endfirsthead="true">
2514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2517 \begin_layout Standard
2525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2528 \begin_layout Standard
2534 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2537 \begin_layout Standard
2546 <row topline="true" bottomline="true" endhead="true">
2547 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2550 \begin_layout Standard
2558 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2561 \begin_layout Standard
2567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2570 \begin_layout Standard
2577 <row topline="true" bottomline="true" endhead="true">
2578 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2581 \begin_layout Standard
2589 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2592 \begin_layout Standard
2598 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2601 \begin_layout Standard
2610 <row topline="true" bottomline="true" endfoot="true">
2611 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2614 \begin_layout Standard
2615 continued on next page
2620 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2623 \begin_layout Standard
2629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2632 \begin_layout Standard
2640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2643 \begin_layout Standard
2651 <cell alignment="center" valignment="top" topline="true" usebox="none">
2654 \begin_layout Standard
2660 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2663 \begin_layout Standard
2671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2674 \begin_layout Standard
2682 <cell alignment="center" valignment="top" topline="true" usebox="none">
2685 \begin_layout Standard
2691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2694 \begin_layout Standard
2702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2705 \begin_layout Standard
2713 <cell alignment="center" valignment="top" topline="true" usebox="none">
2716 \begin_layout Standard
2722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2725 \begin_layout Standard
2733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2736 \begin_layout Standard
2744 <cell alignment="center" valignment="top" topline="true" usebox="none">
2747 \begin_layout Standard
2753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2756 \begin_layout Standard
2764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2767 \begin_layout Standard
2775 <cell alignment="center" valignment="top" topline="true" usebox="none">
2778 \begin_layout Standard
2784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2787 \begin_layout Standard
2795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2798 \begin_layout Standard
2806 <cell alignment="center" valignment="top" topline="true" usebox="none">
2809 \begin_layout Standard
2815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2818 \begin_layout Standard
2826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2829 \begin_layout Standard
2837 <cell alignment="center" valignment="top" topline="true" usebox="none">
2840 \begin_layout Standard
2846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2849 \begin_layout Standard
2857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2860 \begin_layout Standard
2868 <cell alignment="center" valignment="top" topline="true" usebox="none">
2871 \begin_layout Standard
2877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2880 \begin_layout Standard
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2891 \begin_layout Standard
2899 <cell alignment="center" valignment="top" topline="true" usebox="none">
2902 \begin_layout Standard
2908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2911 \begin_layout Standard
2919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2922 \begin_layout Standard
2930 <cell alignment="center" valignment="top" topline="true" usebox="none">
2933 \begin_layout Standard
2939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2942 \begin_layout Standard
2950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2953 \begin_layout Standard
2961 <cell alignment="center" valignment="top" topline="true" usebox="none">
2964 \begin_layout Standard
2970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2973 \begin_layout Standard
2981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2984 \begin_layout Standard
2992 <cell alignment="center" valignment="top" topline="true" usebox="none">
2995 \begin_layout Standard
3001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3004 \begin_layout Standard
3012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3015 \begin_layout Standard
3023 <cell alignment="center" valignment="top" topline="true" usebox="none">
3026 \begin_layout Standard
3032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3035 \begin_layout Standard
3043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3046 \begin_layout Standard
3054 <cell alignment="center" valignment="top" topline="true" usebox="none">
3057 \begin_layout Standard
3063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3066 \begin_layout Standard
3074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3077 \begin_layout Standard
3085 <cell alignment="center" valignment="top" topline="true" usebox="none">
3088 \begin_layout Standard
3094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3097 \begin_layout Standard
3105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3108 \begin_layout Standard
3116 <cell alignment="center" valignment="top" topline="true" usebox="none">
3119 \begin_layout Standard
3125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3128 \begin_layout Standard
3136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3139 \begin_layout Standard
3147 <cell alignment="center" valignment="top" topline="true" usebox="none">
3150 \begin_layout Standard
3156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3159 \begin_layout Standard
3167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3170 \begin_layout Standard
3178 <cell alignment="center" valignment="top" topline="true" usebox="none">
3181 \begin_layout Standard
3187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3190 \begin_layout Standard
3198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3201 \begin_layout Standard
3209 <cell alignment="center" valignment="top" topline="true" usebox="none">
3212 \begin_layout Standard
3218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3221 \begin_layout Standard
3229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3232 \begin_layout Standard
3240 <cell alignment="center" valignment="top" topline="true" usebox="none">
3243 \begin_layout Standard
3249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3252 \begin_layout Standard
3260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3263 \begin_layout Standard
3271 <cell alignment="center" valignment="top" topline="true" usebox="none">
3274 \begin_layout Standard
3280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3283 \begin_layout Standard
3291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3294 \begin_layout Standard
3302 <cell alignment="center" valignment="top" topline="true" usebox="none">
3305 \begin_layout Standard
3311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3314 \begin_layout Standard
3322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3325 \begin_layout Standard
3333 <cell alignment="center" valignment="top" topline="true" usebox="none">
3336 \begin_layout Standard
3342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3345 \begin_layout Standard
3353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3356 \begin_layout Standard
3364 <cell alignment="center" valignment="top" topline="true" usebox="none">
3367 \begin_layout Standard
3373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3376 \begin_layout Standard
3384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3387 \begin_layout Standard
3395 <cell alignment="center" valignment="top" topline="true" usebox="none">
3398 \begin_layout Standard
3404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3407 \begin_layout Standard
3415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3418 \begin_layout Standard
3426 <cell alignment="center" valignment="top" topline="true" usebox="none">
3429 \begin_layout Standard
3435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Standard
3446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3449 \begin_layout Standard
3457 <cell alignment="center" valignment="top" topline="true" usebox="none">
3460 \begin_layout Standard
3466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Standard
3477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3480 \begin_layout Standard
3488 <cell alignment="center" valignment="top" topline="true" usebox="none">
3491 \begin_layout Standard
3497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3500 \begin_layout Standard
3508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3511 \begin_layout Standard
3519 <cell alignment="center" valignment="top" topline="true" usebox="none">
3522 \begin_layout Standard
3528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3531 \begin_layout Standard
3539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3542 \begin_layout Standard
3550 <cell alignment="center" valignment="top" topline="true" usebox="none">
3553 \begin_layout Standard
3559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3562 \begin_layout Standard
3569 <row bottomline="true">
3570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3573 \begin_layout Standard
3581 <cell alignment="center" valignment="top" topline="true" usebox="none">
3584 \begin_layout Standard
3590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3593 \begin_layout Standard
3600 <row bottomline="true">
3601 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Standard
3610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3613 \begin_layout Standard
3619 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3622 \begin_layout Standard
3630 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3633 \begin_layout Standard
3641 <cell alignment="center" valignment="top" topline="true" usebox="none">
3644 \begin_layout Standard
3650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3653 \begin_layout Standard
3661 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3664 \begin_layout Standard
3672 <cell alignment="center" valignment="top" topline="true" usebox="none">
3675 \begin_layout Standard
3681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3684 \begin_layout Standard
3692 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3695 \begin_layout Standard
3703 <cell alignment="center" valignment="top" topline="true" usebox="none">
3706 \begin_layout Standard
3712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3715 \begin_layout Standard
3723 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3726 \begin_layout Standard
3734 <cell alignment="center" valignment="top" topline="true" usebox="none">
3737 \begin_layout Standard
3743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3746 \begin_layout Standard
3754 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3757 \begin_layout Standard
3765 <cell alignment="center" valignment="top" topline="true" usebox="none">
3768 \begin_layout Standard
3774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3777 \begin_layout Standard
3785 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3788 \begin_layout Standard
3796 <cell alignment="center" valignment="top" topline="true" usebox="none">
3799 \begin_layout Standard
3805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3808 \begin_layout Standard
3816 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3819 \begin_layout Standard
3827 <cell alignment="center" valignment="top" topline="true" usebox="none">
3830 \begin_layout Standard
3836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3839 \begin_layout Standard
3847 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3850 \begin_layout Standard
3858 <cell alignment="center" valignment="top" topline="true" usebox="none">
3861 \begin_layout Standard
3867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3870 \begin_layout Standard
3878 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3881 \begin_layout Standard
3889 <cell alignment="center" valignment="top" topline="true" usebox="none">
3892 \begin_layout Standard
3898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3901 \begin_layout Standard
3909 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3912 \begin_layout Standard
3920 <cell alignment="center" valignment="top" topline="true" usebox="none">
3923 \begin_layout Standard
3929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3932 \begin_layout Standard
3940 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3943 \begin_layout Standard
3951 <cell alignment="center" valignment="top" topline="true" usebox="none">
3954 \begin_layout Standard
3960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3963 \begin_layout Standard
3971 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3974 \begin_layout Standard
3982 <cell alignment="center" valignment="top" topline="true" usebox="none">
3985 \begin_layout Standard
3991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3994 \begin_layout Standard
4002 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4005 \begin_layout Standard
4013 <cell alignment="center" valignment="top" topline="true" usebox="none">
4016 \begin_layout Standard
4022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4025 \begin_layout Standard
4033 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4036 \begin_layout Standard
4044 <cell alignment="center" valignment="top" topline="true" usebox="none">
4047 \begin_layout Standard
4053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4056 \begin_layout Standard
4064 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4067 \begin_layout Standard
4075 <cell alignment="center" valignment="top" topline="true" usebox="none">
4078 \begin_layout Standard
4084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4087 \begin_layout Standard
4095 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4098 \begin_layout Standard
4106 <cell alignment="center" valignment="top" topline="true" usebox="none">
4109 \begin_layout Standard
4115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4118 \begin_layout Standard
4126 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4129 \begin_layout Standard
4137 <cell alignment="center" valignment="top" topline="true" usebox="none">
4140 \begin_layout Standard
4146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4149 \begin_layout Standard
4157 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4160 \begin_layout Standard
4168 <cell alignment="center" valignment="top" topline="true" usebox="none">
4171 \begin_layout Standard
4177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4180 \begin_layout Standard
4188 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4191 \begin_layout Standard
4199 <cell alignment="center" valignment="top" topline="true" usebox="none">
4202 \begin_layout Standard
4208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4211 \begin_layout Standard
4219 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4222 \begin_layout Standard
4230 <cell alignment="center" valignment="top" topline="true" usebox="none">
4233 \begin_layout Standard
4239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4242 \begin_layout Standard
4250 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4253 \begin_layout Standard
4261 <cell alignment="center" valignment="top" topline="true" usebox="none">
4264 \begin_layout Standard
4270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4273 \begin_layout Standard
4281 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4284 \begin_layout Standard
4292 <cell alignment="center" valignment="top" topline="true" usebox="none">
4295 \begin_layout Standard
4301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4304 \begin_layout Standard
4312 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4315 \begin_layout Standard
4323 <cell alignment="center" valignment="top" topline="true" usebox="none">
4326 \begin_layout Standard
4332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4335 \begin_layout Standard
4343 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4346 \begin_layout Standard
4354 <cell alignment="center" valignment="top" topline="true" usebox="none">
4357 \begin_layout Standard
4363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4366 \begin_layout Standard
4374 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4377 \begin_layout Standard
4385 <cell alignment="center" valignment="top" topline="true" usebox="none">
4388 \begin_layout Standard
4394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4397 \begin_layout Standard
4405 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4408 \begin_layout Standard
4416 <cell alignment="center" valignment="top" topline="true" usebox="none">
4419 \begin_layout Standard
4425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4428 \begin_layout Standard
4436 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4439 \begin_layout Standard
4447 <cell alignment="center" valignment="top" topline="true" usebox="none">
4450 \begin_layout Standard
4456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Standard
4467 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4470 \begin_layout Standard
4478 <cell alignment="center" valignment="top" topline="true" usebox="none">
4481 \begin_layout Standard
4487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Standard
4498 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4501 \begin_layout Standard
4509 <cell alignment="center" valignment="top" topline="true" usebox="none">
4512 \begin_layout Standard
4518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Standard
4529 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4532 \begin_layout Standard
4540 <cell alignment="center" valignment="top" topline="true" usebox="none">
4543 \begin_layout Standard
4549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Standard
4559 <row bottomline="true">
4560 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4563 \begin_layout Standard
4571 <cell alignment="center" valignment="top" topline="true" usebox="none">
4574 \begin_layout Standard
4580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4583 \begin_layout Standard
4590 <row bottomline="true" endlastfoot="true">
4591 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4594 \begin_layout Standard
4600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4603 \begin_layout Standard
4609 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4612 \begin_layout Standard
4627 \begin_layout Standard
4631 addtocounter{table}{-1}
4637 \begin_inset Note Note
4640 \begin_layout Standard
4641 See greyed-out note in section\InsetSpace ~
4643 \begin_inset LatexCommand ref
4644 reference "sub:Longtable-Captions"
4648 for an explanation of this command.
4656 \begin_layout Subsection
4657 Footnotes in Longtables
4658 \begin_inset LatexCommand label
4659 name "sub:Footnotes-in-Longtables"
4664 \begin_inset LatexCommand index
4665 name "Longtables ! Footnotes"
4672 \begin_layout Standard
4673 Footnotes can be inserted to every longtable cell.
4674 They appear at the bottom of the page where the table cell with the footnote
4678 \begin_inset LatexCommand ref
4679 reference "tab:DiffCaptions"
4683 has for example a footnote.
4686 \begin_layout Subsection
4688 \begin_inset LatexCommand index
4689 name "Longtables ! Captions"
4694 \begin_inset LatexCommand label
4695 name "sub:Longtable-Captions"
4702 \begin_layout Standard
4703 A longtable cannot be put into a table float because floats can only be
4704 on one page but the caption environment of floats can also be used for
4708 \begin_layout Standard
4709 As LyX does not yet fully support captions in longtables, a hack is needed
4713 \begin_layout Enumerate
4719 \begin_layout Enumerate
4720 Mark the first row and disable its upper line.
4723 \begin_layout Enumerate
4724 Insert a caption via the menu
4726 Insert\SpecialChar \menuseparator
4729 into the first table cell.
4731 You can also add a short title for the caption.
4734 \begin_layout Enumerate
4736 \begin_inset Quotes eld
4748 \begin_inset Quotes erd
4751 as ERT behind the caption.
4754 \begin_layout Standard
4755 A short title that will appear in the LOT instead of the full title.
4764 behind the caption omits the vertical lines between the following cells
4766 The first table row is now only a dummy row for the caption, the actual
4767 table starts with the second row.
4770 \begin_layout Standard
4771 Here is a short longtable to see how it works:
4774 \begin_layout Standard
4775 \begin_inset Tabular
4776 <lyxtabular version="3" rows="6" columns="5">
4777 <features islongtable="true">
4778 <column alignment="center" valignment="top" leftline="true" width="0">
4779 <column alignment="center" valignment="top" leftline="true" width="0">
4780 <column alignment="center" valignment="top" leftline="true" width="0">
4781 <column alignment="center" valignment="top" leftline="true" width="0">
4782 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4787 \begin_layout Standard
4788 \begin_inset Caption
4790 \begin_layout Standard
4791 Longtable with caption
4795 \begin_layout Standard
4810 \begin_layout Standard
4826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4829 \begin_layout Standard
4835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4838 \begin_layout Standard
4844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4847 \begin_layout Standard
4853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4856 \begin_layout Standard
4863 <row topline="true">
4864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4867 \begin_layout Standard
4873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4876 \begin_layout Standard
4882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4885 \begin_layout Standard
4891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4894 \begin_layout Standard
4900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4903 \begin_layout Standard
4910 <row topline="true">
4911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4914 \begin_layout Standard
4920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4923 \begin_layout Standard
4929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4932 \begin_layout Standard
4938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4941 \begin_layout Standard
4947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4950 \begin_layout Standard
4957 <row topline="true">
4958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4961 \begin_layout Standard
4967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4970 \begin_layout Standard
4976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4979 \begin_layout Standard
4985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4988 \begin_layout Standard
4994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Standard
5004 <row topline="true">
5005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5008 \begin_layout Standard
5014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5017 \begin_layout Standard
5023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5026 \begin_layout Standard
5032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5035 \begin_layout Standard
5041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Standard
5051 <row topline="true" bottomline="true">
5052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5055 \begin_layout Standard
5061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5064 \begin_layout Standard
5070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5073 \begin_layout Standard
5079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5082 \begin_layout Standard
5088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5091 \begin_layout Standard
5105 \begin_layout Standard
5106 \begin_inset VSpace medskip
5110 \begin_inset Note Greyedout
5113 \begin_layout Standard
5118 The table number is increased for every longtable, also if you didn't set
5120 For this reason you could have the case that e.g.
5122 2.4 follows on Table\InsetSpace ~
5123 2.1 in the list of tables if there are two longtables
5125 To avoid this you can add the following command in ERT behind every longtable
5129 \begin_layout Standard
5134 addtocounter{table}{-1}
5142 \begin_layout Standard
5143 \begin_inset Note Greyedout
5146 \begin_layout Standard
5151 If you are using the LaTeX-package
5156 \begin_inset LatexCommand index
5157 name "LaTeX-packages ! hyperref"
5161 to link cross-references, the link to a longtable caption will always point
5162 to the beginning of the document.
5170 \begin_layout Subsubsection
5171 References to Longtables
5172 \begin_inset LatexCommand index
5173 name "Longtables ! References"
5180 \begin_layout Standard
5181 \begin_inset Tabular
5182 <lyxtabular version="3" rows="6" columns="5">
5183 <features islongtable="true">
5184 <column alignment="center" valignment="top" leftline="true" width="0">
5185 <column alignment="center" valignment="top" leftline="true" width="0">
5186 <column alignment="center" valignment="top" leftline="true" width="0">
5187 <column alignment="center" valignment="top" leftline="true" width="0">
5188 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5193 \begin_layout Standard
5194 \begin_inset Caption
5196 \begin_layout Standard
5197 Referenced longtable
5198 \begin_inset LatexCommand label
5199 name "tab:RefExample"
5212 \begin_layout Standard
5228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5231 \begin_layout Standard
5237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5240 \begin_layout Standard
5246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5249 \begin_layout Standard
5255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5258 \begin_layout Standard
5265 <row topline="true">
5266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5269 \begin_layout Standard
5275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5278 \begin_layout Standard
5284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5287 \begin_layout Standard
5293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5296 \begin_layout Standard
5302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5305 \begin_layout Standard
5312 <row topline="true">
5313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5316 \begin_layout Standard
5322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5325 \begin_layout Standard
5331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5334 \begin_layout Standard
5340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5343 \begin_layout Standard
5349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5352 \begin_layout Standard
5359 <row topline="true">
5360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5363 \begin_layout Standard
5369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5372 \begin_layout Standard
5378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5381 \begin_layout Standard
5387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5390 \begin_layout Standard
5396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5399 \begin_layout Standard
5406 <row topline="true">
5407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5410 \begin_layout Standard
5416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5419 \begin_layout Standard
5425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5428 \begin_layout Standard
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Standard
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5446 \begin_layout Standard
5453 <row topline="true" bottomline="true">
5454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5457 \begin_layout Standard
5463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5466 \begin_layout Standard
5472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5475 \begin_layout Standard
5481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5484 \begin_layout Standard
5490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5493 \begin_layout Standard
5507 \begin_layout Standard
5508 To reference a longtable, insert a label into the caption.
5509 Note that you have to add the label prefix
5510 \begin_inset Quotes eld
5518 \begin_inset Quotes eld
5521 manually in the label field.
5524 \begin_layout Standard
5525 This is a reference to Table\InsetSpace ~
5527 \begin_inset LatexCommand ref
5528 reference "tab:RefExample"
5535 \begin_layout Standard
5536 The caption layout can be set together with all other caption of your document
5537 using the LaTeX-package
5542 \begin_inset LatexCommand index
5543 name "LaTeX-packages ! caption"
5547 , see section\InsetSpace ~
5549 \begin_inset LatexCommand ref
5550 reference "sec:Caption-Formatting"
5557 \begin_layout Subsubsection
5559 \begin_inset LatexCommand index
5560 name "Longtables ! Caption Width"
5567 \begin_layout Standard
5568 The maximal width of of caption lines is defined by the length
5575 Its default value is 4\InsetSpace \thinspace{}
5577 To change it add the following command to your document preamble or as
5578 ERT into your document before the longtable that should be affected
5581 \begin_layout Standard
5591 \begin_layout Standard
5592 where the width could have one of the units listed in appendix\InsetSpace ~
5594 \begin_inset LatexCommand ref
5595 reference "cha:Units-available-in"
5602 \begin_layout Standard
5603 The following tables show the difference:
5606 \begin_layout Standard
5607 \begin_inset Tabular
5608 <lyxtabular version="3" rows="6" columns="5">
5609 <features islongtable="true">
5610 <column alignment="center" valignment="top" leftline="true" width="0">
5611 <column alignment="center" valignment="top" leftline="true" width="0">
5612 <column alignment="center" valignment="top" leftline="true" width="0">
5613 <column alignment="center" valignment="top" leftline="true" width="0">
5614 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Standard
5620 \begin_inset Caption
5622 \begin_layout Standard
5623 long full title with default width long full title with default width long
5624 full title with default width
5628 \begin_layout Standard
5629 caption with default width
5643 \begin_layout Standard
5659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5662 \begin_layout Standard
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5671 \begin_layout Standard
5677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5680 \begin_layout Standard
5686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5689 \begin_layout Standard
5696 <row topline="true">
5697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5700 \begin_layout Standard
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5709 \begin_layout Standard
5715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5718 \begin_layout Standard
5724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5727 \begin_layout Standard
5733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5736 \begin_layout Standard
5743 <row topline="true">
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5747 \begin_layout Standard
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5756 \begin_layout Standard
5762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5765 \begin_layout Standard
5771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5774 \begin_layout Standard
5780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5783 \begin_layout Standard
5790 <row topline="true">
5791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5794 \begin_layout Standard
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5803 \begin_layout Standard
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5812 \begin_layout Standard
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5821 \begin_layout Standard
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5830 \begin_layout Standard
5837 <row topline="true">
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5841 \begin_layout Standard
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Standard
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5859 \begin_layout Standard
5865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5868 \begin_layout Standard
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5877 \begin_layout Standard
5884 <row topline="true" bottomline="true">
5885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5888 \begin_layout Standard
5894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5897 \begin_layout Standard
5903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5906 \begin_layout Standard
5912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5915 \begin_layout Standard
5921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5924 \begin_layout Standard
5938 \begin_layout Standard
5942 \begin_layout Standard
5954 \begin_inset Tabular
5955 <lyxtabular version="3" rows="6" columns="5">
5956 <features islongtable="true">
5957 <column alignment="center" valignment="top" leftline="true" width="0">
5958 <column alignment="center" valignment="top" leftline="true" width="0">
5959 <column alignment="center" valignment="top" leftline="true" width="0">
5960 <column alignment="center" valignment="top" leftline="true" width="0">
5961 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5966 \begin_layout Standard
5967 \begin_inset Caption
5969 \begin_layout Standard
5970 long full title with width set to 5\InsetSpace \thinspace{}
5971 cm long full title with width set to
5972 5\InsetSpace \thinspace{}
5973 cm long full title with width set to 5\InsetSpace \thinspace{}
5978 \begin_layout Standard
5979 caption with width\InsetSpace \thinspace{}
5980 =\InsetSpace \thinspace{}
5981 5\InsetSpace \thinspace{}
5996 \begin_layout Standard
6012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6015 \begin_layout Standard
6021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6024 \begin_layout Standard
6030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6033 \begin_layout Standard
6039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6042 \begin_layout Standard
6049 <row topline="true">
6050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6053 \begin_layout Standard
6059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6062 \begin_layout Standard
6068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6071 \begin_layout Standard
6077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6080 \begin_layout Standard
6086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6089 \begin_layout Standard
6096 <row topline="true">
6097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6100 \begin_layout Standard
6106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6109 \begin_layout Standard
6115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6118 \begin_layout Standard
6124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6127 \begin_layout Standard
6133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6136 \begin_layout Standard
6143 <row topline="true">
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Standard
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6156 \begin_layout Standard
6162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6165 \begin_layout Standard
6171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6174 \begin_layout Standard
6180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6183 \begin_layout Standard
6190 <row topline="true">
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Standard
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6203 \begin_layout Standard
6209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6212 \begin_layout Standard
6218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6221 \begin_layout Standard
6227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6230 \begin_layout Standard
6237 <row topline="true" bottomline="true">
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Standard
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6250 \begin_layout Standard
6256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6259 \begin_layout Standard
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6268 \begin_layout Standard
6274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6277 \begin_layout Standard
6291 \begin_layout Standard
6295 \begin_layout Standard
6309 \begin_layout Standard
6310 \begin_inset Note Greyedout
6313 \begin_layout Standard
6318 When the LaTeX-package
6323 \begin_inset LatexCommand index
6324 name "LaTeX-packages ! caption"
6328 is used, as in this document, the full page width is used for the caption
6329 when you use the default value of 4\InsetSpace \thinspace{}
6337 To get in this case exactly a 4\InsetSpace \thinspace{}
6338 in wide caption, you can either use a value
6339 slightly different from 4.0\InsetSpace \thinspace{}
6341 3.99\InsetSpace \thinspace{}
6342 in, or the LaTeX-command
6346 captionsetup{width=value}
6348 that is provided by the
6360 \begin_layout Subsubsection
6361 Different Captions for Table Pages
6362 \begin_inset LatexCommand index
6363 name "Longtables ! Different Captions for Pages"
6370 \begin_layout Standard
6371 When the other captions should differ from the one of the first table page,
6372 insert a caption with a non-empty short title in a dummy caption row marked
6374 The caption used for the other table pages is inserted as caption without
6375 a short title in a dummy caption row that is marked as main header.
6376 When this caption shouldn't include the table number, use the command
6379 \begin_layout Standard
6384 caption*{caption text}
6387 \begin_layout Standard
6388 instead of LyX's caption box.
6389 The label to reference the table is inserted into the caption of the first
6393 \begin_inset LatexCommand ref
6394 reference "tab:DiffCaptions"
6398 is an example for a longtable with different heading where the second caption
6399 doesn't include the table number.
6402 \begin_layout Standard
6404 \begin_inset Tabular
6405 <lyxtabular version="3" rows="60" columns="3">
6406 <features islongtable="true">
6407 <column alignment="left" valignment="top" leftline="true" width="0cm">
6408 <column alignment="left" valignment="top" rightline="true" width="0pt">
6409 <column alignment="right" valignment="top" rightline="true" width="0pt">
6410 <row endfirsthead="true">
6411 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6414 \begin_layout Standard
6415 \begin_inset Caption
6417 \begin_layout Standard
6419 \begin_inset LatexCommand label
6420 name "tab:DiffCaptions"
6428 \begin_layout Standard
6443 \begin_layout Standard
6459 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6462 \begin_layout Standard
6468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6471 \begin_layout Standard
6478 <row topline="true" bottomline="true" endfirsthead="true">
6479 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6482 \begin_layout Standard
6485 Example Phone List (ignore the names)
6490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6493 \begin_layout Standard
6499 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6502 \begin_layout Standard
6509 <row topline="true" bottomline="true" endfirsthead="true">
6510 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6513 \begin_layout Standard
6521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6524 \begin_layout Standard
6530 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6533 \begin_layout Standard
6542 <row bottomline="true" endhead="true">
6543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6546 \begin_layout Standard
6550 \begin_layout Standard
6554 caption*{Continued Example Phone List}
6568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6571 \begin_layout Standard
6577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6580 \begin_layout Standard
6587 <row topline="true" bottomline="true" endhead="true">
6588 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6591 \begin_layout Standard
6599 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6602 \begin_layout Standard
6608 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6611 \begin_layout Standard
6618 <row topline="true" bottomline="true" endhead="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6622 \begin_layout Standard
6630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6633 \begin_layout Standard
6639 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6642 \begin_layout Standard
6651 <row topline="true" bottomline="true" endfoot="true">
6652 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6655 \begin_layout Standard
6656 continued on next page
6661 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6664 \begin_layout Standard
6670 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6673 \begin_layout Standard
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Standard
6692 <cell alignment="center" valignment="top" topline="true" usebox="none">
6695 \begin_layout Standard
6701 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6704 \begin_layout Standard
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Standard
6723 <cell alignment="center" valignment="top" topline="true" usebox="none">
6726 \begin_layout Standard
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6735 \begin_layout Standard
6743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6746 \begin_layout Standard
6754 <cell alignment="center" valignment="top" topline="true" usebox="none">
6757 \begin_layout Standard
6763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6766 \begin_layout Standard
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6777 \begin_layout Standard
6785 <cell alignment="center" valignment="top" topline="true" usebox="none">
6788 \begin_layout Standard
6794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6797 \begin_layout Standard
6805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6808 \begin_layout Standard
6816 <cell alignment="center" valignment="top" topline="true" usebox="none">
6819 \begin_layout Standard
6825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6828 \begin_layout Standard
6836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6839 \begin_layout Standard
6847 <cell alignment="center" valignment="top" topline="true" usebox="none">
6850 \begin_layout Standard
6856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6859 \begin_layout Standard
6867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6870 \begin_layout Standard
6878 <cell alignment="center" valignment="top" topline="true" usebox="none">
6881 \begin_layout Standard
6887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6890 \begin_layout Standard
6898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6901 \begin_layout Standard
6909 <cell alignment="center" valignment="top" topline="true" usebox="none">
6912 \begin_layout Standard
6918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6921 \begin_layout Standard
6929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6932 \begin_layout Standard
6940 <cell alignment="center" valignment="top" topline="true" usebox="none">
6943 \begin_layout Standard
6949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6952 \begin_layout Standard
6960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6963 \begin_layout Standard
6971 <cell alignment="center" valignment="top" topline="true" usebox="none">
6974 \begin_layout Standard
6980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6983 \begin_layout Standard
6991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6994 \begin_layout Standard
7002 <cell alignment="center" valignment="top" topline="true" usebox="none">
7005 \begin_layout Standard
7011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7014 \begin_layout Standard
7022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7025 \begin_layout Standard
7033 <cell alignment="center" valignment="top" topline="true" usebox="none">
7036 \begin_layout Standard
7042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7045 \begin_layout Standard
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7056 \begin_layout Standard
7064 <cell alignment="center" valignment="top" topline="true" usebox="none">
7067 \begin_layout Standard
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7076 \begin_layout Standard
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Standard
7095 <cell alignment="center" valignment="top" topline="true" usebox="none">
7098 \begin_layout Standard
7104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7107 \begin_layout Standard
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Standard
7127 \begin_layout Standard
7138 <cell alignment="center" valignment="top" topline="true" usebox="none">
7141 \begin_layout Standard
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7150 \begin_layout Standard
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7161 \begin_layout Standard
7169 <cell alignment="center" valignment="top" topline="true" usebox="none">
7172 \begin_layout Standard
7178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7181 \begin_layout Standard
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7192 \begin_layout Standard
7200 <cell alignment="center" valignment="top" topline="true" usebox="none">
7203 \begin_layout Standard
7209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7212 \begin_layout Standard
7220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7223 \begin_layout Standard
7231 <cell alignment="center" valignment="top" topline="true" usebox="none">
7234 \begin_layout Standard
7240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7243 \begin_layout Standard
7251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7254 \begin_layout Standard
7262 <cell alignment="center" valignment="top" topline="true" usebox="none">
7265 \begin_layout Standard
7271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7274 \begin_layout Standard
7282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7285 \begin_layout Standard
7293 <cell alignment="center" valignment="top" topline="true" usebox="none">
7296 \begin_layout Standard
7302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7305 \begin_layout Standard
7313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7316 \begin_layout Standard
7324 <cell alignment="center" valignment="top" topline="true" usebox="none">
7327 \begin_layout Standard
7333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7336 \begin_layout Standard
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7347 \begin_layout Standard
7355 <cell alignment="center" valignment="top" topline="true" usebox="none">
7358 \begin_layout Standard
7364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7367 \begin_layout Standard
7375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7378 \begin_layout Standard
7386 <cell alignment="center" valignment="top" topline="true" usebox="none">
7389 \begin_layout Standard
7395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7398 \begin_layout Standard
7406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7409 \begin_layout Standard
7417 <cell alignment="center" valignment="top" topline="true" usebox="none">
7420 \begin_layout Standard
7426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7429 \begin_layout Standard
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7440 \begin_layout Standard
7448 <cell alignment="center" valignment="top" topline="true" usebox="none">
7451 \begin_layout Standard
7457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7460 \begin_layout Standard
7468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7471 \begin_layout Standard
7479 <cell alignment="center" valignment="top" topline="true" usebox="none">
7482 \begin_layout Standard
7488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7491 \begin_layout Standard
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7502 \begin_layout Standard
7510 <cell alignment="center" valignment="top" topline="true" usebox="none">
7513 \begin_layout Standard
7519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7522 \begin_layout Standard
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7533 \begin_layout Standard
7541 <cell alignment="center" valignment="top" topline="true" usebox="none">
7544 \begin_layout Standard
7550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7553 \begin_layout Standard
7561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7564 \begin_layout Standard
7572 <cell alignment="center" valignment="top" topline="true" usebox="none">
7575 \begin_layout Standard
7581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Standard
7592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7595 \begin_layout Standard
7603 <cell alignment="center" valignment="top" topline="true" usebox="none">
7606 \begin_layout Standard
7612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Standard
7622 <row bottomline="true">
7623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7626 \begin_layout Standard
7634 <cell alignment="center" valignment="top" topline="true" usebox="none">
7637 \begin_layout Standard
7643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Standard
7653 <row bottomline="true">
7654 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7657 \begin_layout Standard
7663 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7666 \begin_layout Standard
7672 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7675 \begin_layout Standard
7683 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7686 \begin_layout Standard
7694 <cell alignment="center" valignment="top" topline="true" usebox="none">
7697 \begin_layout Standard
7703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7706 \begin_layout Standard
7714 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7717 \begin_layout Standard
7725 <cell alignment="center" valignment="top" topline="true" usebox="none">
7728 \begin_layout Standard
7734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7737 \begin_layout Standard
7745 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7748 \begin_layout Standard
7756 <cell alignment="center" valignment="top" topline="true" usebox="none">
7759 \begin_layout Standard
7765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7768 \begin_layout Standard
7776 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7779 \begin_layout Standard
7787 <cell alignment="center" valignment="top" topline="true" usebox="none">
7790 \begin_layout Standard
7796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7799 \begin_layout Standard
7807 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7810 \begin_layout Standard
7818 <cell alignment="center" valignment="top" topline="true" usebox="none">
7821 \begin_layout Standard
7827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7830 \begin_layout Standard
7838 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7841 \begin_layout Standard
7849 <cell alignment="center" valignment="top" topline="true" usebox="none">
7852 \begin_layout Standard
7858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7861 \begin_layout Standard
7869 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7872 \begin_layout Standard
7880 <cell alignment="center" valignment="top" topline="true" usebox="none">
7883 \begin_layout Standard
7889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7892 \begin_layout Standard
7900 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7903 \begin_layout Standard
7911 <cell alignment="center" valignment="top" topline="true" usebox="none">
7914 \begin_layout Standard
7920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7923 \begin_layout Standard
7931 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7934 \begin_layout Standard
7942 <cell alignment="center" valignment="top" topline="true" usebox="none">
7945 \begin_layout Standard
7951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7954 \begin_layout Standard
7962 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7965 \begin_layout Standard
7973 <cell alignment="center" valignment="top" topline="true" usebox="none">
7976 \begin_layout Standard
7982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7985 \begin_layout Standard
7993 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7996 \begin_layout Standard
8004 <cell alignment="center" valignment="top" topline="true" usebox="none">
8007 \begin_layout Standard
8013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8016 \begin_layout Standard
8024 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8027 \begin_layout Standard
8035 <cell alignment="center" valignment="top" topline="true" usebox="none">
8038 \begin_layout Standard
8044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8047 \begin_layout Standard
8055 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8058 \begin_layout Standard
8066 <cell alignment="center" valignment="top" topline="true" usebox="none">
8069 \begin_layout Standard
8075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8078 \begin_layout Standard
8086 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8089 \begin_layout Standard
8097 <cell alignment="center" valignment="top" topline="true" usebox="none">
8100 \begin_layout Standard
8106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8109 \begin_layout Standard
8117 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8120 \begin_layout Standard
8128 <cell alignment="center" valignment="top" topline="true" usebox="none">
8131 \begin_layout Standard
8137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8140 \begin_layout Standard
8148 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8151 \begin_layout Standard
8159 <cell alignment="center" valignment="top" topline="true" usebox="none">
8162 \begin_layout Standard
8168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8171 \begin_layout Standard
8179 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8182 \begin_layout Standard
8190 <cell alignment="center" valignment="top" topline="true" usebox="none">
8193 \begin_layout Standard
8199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8202 \begin_layout Standard
8210 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8213 \begin_layout Standard
8221 <cell alignment="center" valignment="top" topline="true" usebox="none">
8224 \begin_layout Standard
8230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8233 \begin_layout Standard
8241 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8244 \begin_layout Standard
8252 <cell alignment="center" valignment="top" topline="true" usebox="none">
8255 \begin_layout Standard
8261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8264 \begin_layout Standard
8271 <row bottomline="true">
8272 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8275 \begin_layout Standard
8283 <cell alignment="center" valignment="top" topline="true" usebox="none">
8286 \begin_layout Standard
8292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8295 \begin_layout Standard
8302 <row bottomline="true" endlastfoot="true">
8303 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8306 \begin_layout Standard
8312 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8315 \begin_layout Standard
8321 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8324 \begin_layout Standard
8338 \begin_layout Section
8339 Special Longtable Issues
8340 \begin_inset LatexCommand label
8341 name "sec:Special-Longtable-Issues"
8348 \begin_layout Subsection
8349 Longtable Calculation
8350 \begin_inset LatexCommand index
8351 name "Longtables ! Calculation"
8358 \begin_layout Standard
8359 LaTeX calculates the height of table pages and their page breaks using so
8361 Chunks are pieces of the tables that are at once in LaTeX's memory.
8362 The default value is historically set to only 20 table rows.
8363 If you are using longtables with many pages this may slow down the creation
8365 You can safely increase the chunk size to values of 100-1000 by adding
8366 this command line to your document preamble:
8369 \begin_layout Standard
8374 setcounter{LTchunksize}{100}
8377 \begin_layout Subsection
8378 Floats and Longtables
8379 \begin_inset LatexCommand index
8380 name "Longtables ! Floats"
8387 \begin_layout Standard
8388 There might be problems when a float appears on the same page where a longtable
8390 To avoid such situation, add the command
8396 as ERT before your longtable.
8399 \begin_layout Subsection
8401 \begin_inset LatexCommand index
8402 name "Longtables ! Forced Page Breaks"
8409 \begin_layout Standard
8410 By default tables are only broken between rows.
8411 If you have a cell with multiples lines and want to have a page break within
8412 the cell, insert the new line command
8413 \begin_inset Quotes eld
8425 \begin_inset Quotes erd
8428 as ERT at this point of the cell where it should be broken.
8437 command you have to insert in ERT so many
8438 \begin_inset Quotes eld
8446 \begin_inset Quotes erd
8449 characters like the number of the following table columns.
8454 is the character to separate table cells.
8455 Write in ERT after each
8459 the content of the corresponding following cell and delete the content
8470 command, insert so many
8474 characters like the number of table columns before the current column.
8475 In Table\InsetSpace ~
8477 \begin_inset LatexCommand ref
8478 reference "tab:ForcedPagebreak"
8482 the cell that should be broken is in the second column followed by another
8484 Therefore the following command was inserted in the cell as ERT behind
8486 \begin_inset Quotes eld
8494 \begin_inset Quotes erd
8500 \begin_layout Standard
8512 \begin_layout Standard
8514 \begin_inset Quotes eld
8518 \begin_inset Quotes erd
8521 in the third columns of the row was deleted.
8522 If your footer row of the longtable has for a certain reason no upper line
8523 but you would have a horizontal line where the cell is broken, use this
8527 \begin_layout Standard
8541 \begin_layout Standard
8542 When the cell to be broken is in the last column, the command
8545 \begin_layout Standard
8552 parf\SpecialChar \textcompwordmark{}
8556 \begin_layout Standard
8557 must be inserted as ERT at the beginning of the cell.
8558 This assures that the part of the cell that will be displayed on the new
8559 page appears with the full width.
8562 \begin_layout Standard
8564 \begin_inset Tabular
8565 <lyxtabular version="3" rows="39" columns="3">
8566 <features islongtable="true">
8567 <column alignment="left" valignment="top" leftline="true" width="0cm">
8568 <column alignment="left" valignment="top" rightline="true" width="3cm">
8569 <column alignment="right" valignment="top" rightline="true" width="0pt">
8570 <row endfirsthead="true">
8571 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8574 \begin_layout Standard
8575 \begin_inset Caption
8577 \begin_layout Standard
8578 Table with forced page break in table cell
8579 \begin_inset LatexCommand label
8580 name "tab:ForcedPagebreak"
8588 \begin_layout Standard
8589 Table with forced page break in table cell
8603 \begin_layout Standard
8619 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8622 \begin_layout Standard
8628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8631 \begin_layout Standard
8638 <row topline="true" bottomline="true" endfirsthead="true">
8639 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8642 \begin_layout Standard
8645 Example Phone List (ignore the names)
8650 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8653 \begin_layout Standard
8659 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8662 \begin_layout Standard
8669 <row topline="true" bottomline="true" endfirsthead="true">
8670 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8673 \begin_layout Standard
8681 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8684 \begin_layout Standard
8690 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8693 \begin_layout Standard
8702 <row bottomline="true" endhead="true">
8703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8706 \begin_layout Standard
8710 \begin_layout Standard
8714 caption*{Continued table with forced page break in table cell}
8728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8731 \begin_layout Standard
8737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8740 \begin_layout Standard
8747 <row topline="true" bottomline="true" endhead="true">
8748 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8751 \begin_layout Standard
8759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8762 \begin_layout Standard
8768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8771 \begin_layout Standard
8778 <row topline="true" bottomline="true" endhead="true">
8779 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8782 \begin_layout Standard
8790 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8793 \begin_layout Standard
8799 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8802 \begin_layout Standard
8811 <row topline="true" bottomline="true" endfoot="true">
8812 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8815 \begin_layout Standard
8816 continued on next page
8821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8824 \begin_layout Standard
8830 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8833 \begin_layout Standard
8841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8844 \begin_layout Standard
8852 <cell alignment="center" valignment="top" topline="true" usebox="none">
8855 \begin_layout Standard
8861 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8864 \begin_layout Standard
8872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8875 \begin_layout Standard
8883 <cell alignment="center" valignment="top" topline="true" usebox="none">
8886 \begin_layout Standard
8892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8895 \begin_layout Standard
8903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8906 \begin_layout Standard
8914 <cell alignment="center" valignment="top" topline="true" usebox="none">
8917 \begin_layout Standard
8923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8926 \begin_layout Standard
8934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8937 \begin_layout Standard
8945 <cell alignment="center" valignment="top" topline="true" usebox="none">
8948 \begin_layout Standard
8954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Standard
8965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8968 \begin_layout Standard
8976 <cell alignment="center" valignment="top" topline="true" usebox="none">
8979 \begin_layout Standard
8985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8988 \begin_layout Standard
8996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8999 \begin_layout Standard
9007 <cell alignment="center" valignment="top" topline="true" usebox="none">
9010 \begin_layout Standard
9016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9019 \begin_layout Standard
9027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9030 \begin_layout Standard
9038 <cell alignment="center" valignment="top" topline="true" usebox="none">
9041 \begin_layout Standard
9047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9050 \begin_layout Standard
9058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9061 \begin_layout Standard
9069 <cell alignment="center" valignment="top" topline="true" usebox="none">
9072 \begin_layout Standard
9078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9081 \begin_layout Standard
9089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9092 \begin_layout Standard
9100 <cell alignment="center" valignment="top" topline="true" usebox="none">
9103 \begin_layout Standard
9109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9112 \begin_layout Standard
9120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9123 \begin_layout Standard
9131 <cell alignment="center" valignment="top" topline="true" usebox="none">
9134 \begin_layout Standard
9140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9143 \begin_layout Standard
9151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9154 \begin_layout Standard
9162 <cell alignment="center" valignment="top" topline="true" usebox="none">
9165 \begin_layout Standard
9171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9174 \begin_layout Standard
9182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9185 \begin_layout Standard
9193 <cell alignment="center" valignment="top" topline="true" usebox="none">
9196 \begin_layout Standard
9202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9205 \begin_layout Standard
9213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9216 \begin_layout Standard
9224 <cell alignment="center" valignment="top" topline="true" usebox="none">
9227 \begin_layout Standard
9233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9236 \begin_layout Standard
9244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9247 \begin_layout Standard
9255 <cell alignment="center" valignment="top" topline="true" usebox="none">
9258 \begin_layout Standard
9264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9267 \begin_layout Standard
9275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9278 \begin_layout Standard
9286 <cell alignment="center" valignment="top" topline="true" usebox="none">
9289 \begin_layout Standard
9295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9298 \begin_layout Standard
9306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9309 \begin_layout Standard
9317 <cell alignment="center" valignment="top" topline="true" usebox="none">
9320 \begin_layout Standard
9326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9329 \begin_layout Standard
9337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9340 \begin_layout Standard
9348 <cell alignment="center" valignment="top" topline="true" usebox="none">
9351 \begin_layout Standard
9357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9360 \begin_layout Standard
9368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9371 \begin_layout Standard
9379 <cell alignment="center" valignment="top" topline="true" usebox="none">
9382 \begin_layout Standard
9388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9391 \begin_layout Standard
9399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9402 \begin_layout Standard
9410 <cell alignment="center" valignment="top" topline="true" usebox="none">
9413 \begin_layout Standard
9419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9422 \begin_layout Standard
9430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9433 \begin_layout Standard
9441 <cell alignment="center" valignment="top" topline="true" usebox="none">
9444 \begin_layout Standard
9450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9453 \begin_layout Standard
9461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9464 \begin_layout Standard
9472 <cell alignment="center" valignment="top" topline="true" usebox="none">
9475 \begin_layout Standard
9481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9484 \begin_layout Standard
9492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9495 \begin_layout Standard
9503 <cell alignment="center" valignment="top" topline="true" usebox="none">
9506 \begin_layout Standard
9512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9515 \begin_layout Standard
9523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9526 \begin_layout Standard
9534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9537 \begin_layout Standard
9539 Fürst von Montecompatri, 11.
9540 Fürst von Sulmona und Vivaro, 10.
9541 Fürst von Rossano, 5.
9542 Herzog von Canemorte, 11.
9543 Herzog von Palombara, 5.
9544 Herzog von Castelchiodato,
9548 \begin_layout Standard
9557 \begin_layout Standard
9565 Herzog von Poggionativo, 11.
9566 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9567 Graf von Valinfreda, 11.
9568 Baron von Cropalati, 11.
9569 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9577 \begin_layout Standard
9585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9588 \begin_layout Standard
9596 <cell alignment="center" valignment="top" topline="true" usebox="none">
9599 \begin_layout Standard
9605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9608 \begin_layout Standard
9616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9619 \begin_layout Standard
9627 <cell alignment="center" valignment="top" topline="true" usebox="none">
9630 \begin_layout Standard
9636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9639 \begin_layout Standard
9647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9650 \begin_layout Standard
9658 <cell alignment="center" valignment="top" topline="true" usebox="none">
9661 \begin_layout Standard
9667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9670 \begin_layout Standard
9678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9681 \begin_layout Standard
9689 <cell alignment="center" valignment="top" topline="true" usebox="none">
9692 \begin_layout Standard
9698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9701 \begin_layout Standard
9709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9712 \begin_layout Standard
9720 <cell alignment="center" valignment="top" topline="true" usebox="none">
9723 \begin_layout Standard
9729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9732 \begin_layout Standard
9740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9743 \begin_layout Standard
9751 <cell alignment="center" valignment="top" topline="true" usebox="none">
9754 \begin_layout Standard
9760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9763 \begin_layout Standard
9771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9774 \begin_layout Standard
9782 <cell alignment="center" valignment="top" topline="true" usebox="none">
9785 \begin_layout Standard
9791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9794 \begin_layout Standard
9801 <row bottomline="true">
9802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9805 \begin_layout Standard
9813 <cell alignment="center" valignment="top" topline="true" usebox="none">
9816 \begin_layout Standard
9822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9825 \begin_layout Standard
9832 <row endlastfoot="true">
9833 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9836 \begin_layout Standard
9842 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9845 \begin_layout Standard
9851 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9854 \begin_layout Standard
9868 \begin_layout Section
9869 Multiple Lines Columns and Rows
9872 \begin_layout Subsection
9873 Multiple Lines in Table Cells
9874 \begin_inset LatexCommand label
9875 name "sub:Multiple-Lines-in"
9880 \begin_inset LatexCommand index
9881 name "Multiple Lines in Table Cells"
9886 \begin_inset LatexCommand index
9887 name "Table ! Linebreaks"
9894 \begin_layout Standard
9896 \begin_inset Float table
9902 \begin_layout Standard
9903 \begin_inset Caption
9905 \begin_layout Standard
9906 \begin_inset LatexCommand label
9907 name "tab:Table-with-multiple"
9911 Table with multiple lines in cells
9919 \begin_layout Standard
9921 \begin_inset Tabular
9922 <lyxtabular version="3" rows="3" columns="3">
9924 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9925 <column alignment="center" valignment="middle" leftline="true" width="0">
9926 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9927 <row topline="true">
9928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9931 \begin_layout Standard
9936 \begin_layout Standard
9950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9953 \begin_layout Standard
9959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9962 \begin_layout Standard
9969 <row topline="true">
9970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9973 \begin_layout Standard
9979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9982 \begin_layout Standard
9988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9991 \begin_layout Standard
9998 <row topline="true" bottomline="true">
9999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10002 \begin_layout Standard
10008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10011 \begin_layout Standard
10017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10020 \begin_layout Standard
10039 \begin_layout Standard
10040 Adjusting a fixed width for a column, enables to enter text as a paragraph
10041 with multiple lines and hyphenations.
10044 \begin_layout Standard
10045 To produce Table\InsetSpace ~
10047 \begin_inset LatexCommand ref
10048 reference "tab:Table-with-multiple"
10052 , create a 3×3 table, mark the first cell and right-click on it.
10053 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10054 cm and choose centered
10055 for the vertical and horizontal alignment.
10056 The vertical alignment is used for all cells of the row.
10057 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10058 cm, only one line will appear.
10059 To get two lines, we add a line break with the command
10062 \begin_layout Standard
10070 \begin_layout Standard
10072 If the text is wider than the set cell width it will automatically be broken
10076 \begin_layout Standard
10077 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10078 by LaTeX if it is the first entry.
10079 Therefore you need to insert something, to make the word not being the
10080 first entry: Add the command
10083 \begin_layout Standard
10091 \begin_layout Standard
10092 in ERT before the word.
10093 As the space is zero, it doesn't change the output.
10096 \begin_inset LatexCommand ref
10097 reference "tab:Table-with-and"
10104 \begin_layout Standard
10105 \begin_inset Float table
10111 \begin_layout Standard
10112 \begin_inset Caption
10114 \begin_layout Standard
10115 \begin_inset LatexCommand label
10116 name "tab:Table-with-and"
10120 Table with and without hyphenation
10128 \begin_layout Standard
10132 \begin_inset Tabular
10133 <lyxtabular version="3" rows="3" columns="3">
10135 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10136 <column alignment="center" valignment="middle" leftline="true" width="0">
10137 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10138 <row topline="true">
10139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10142 \begin_layout Standard
10143 verylongtablecellword
10148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10151 \begin_layout Standard
10157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10160 \begin_layout Standard
10167 <row topline="true">
10168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10171 \begin_layout Standard
10177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10180 \begin_layout Standard
10186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10189 \begin_layout Standard
10196 <row topline="true" bottomline="true">
10197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10200 \begin_layout Standard
10206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10209 \begin_layout Standard
10215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10218 \begin_layout Standard
10232 \begin_inset Tabular
10233 <lyxtabular version="3" rows="3" columns="3">
10235 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10236 <column alignment="center" valignment="middle" leftline="true" width="0">
10237 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10238 <row topline="true">
10239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10242 \begin_layout Standard
10246 \begin_layout Standard
10255 verylongtablecellword
10260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10263 \begin_layout Standard
10269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10272 \begin_layout Standard
10279 <row topline="true">
10280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10283 \begin_layout Standard
10289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10292 \begin_layout Standard
10298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10301 \begin_layout Standard
10308 <row topline="true" bottomline="true">
10309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10312 \begin_layout Standard
10318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10321 \begin_layout Standard
10327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10330 \begin_layout Standard
10351 \begin_layout Standard
10357 \begin_layout Subsection
10359 \begin_inset LatexCommand label
10360 name "sub:Multicolumns"
10365 \begin_inset LatexCommand index
10366 name "Multicolumns"
10371 \begin_inset LatexCommand index
10372 name "Table ! Multicolumns"
10379 \begin_layout Subsubsection
10383 \begin_layout Standard
10384 To span a cell over multiple columns, mark as much cells within a line that
10385 should be one spanned cell and use either the table-toolbar button
10386 \begin_inset Graphics
10387 filename ../images/tabular-feature_multicolumn.xpm
10389 scaleBeforeRotation
10395 Edit\SpecialChar \menuseparator
10396 Table\SpecialChar \menuseparator
10399 , or right click on the marked cells and choose multicolumn in the appearing
10400 table dialog under the tab
10407 \begin_layout Standard
10408 Multicolumns have there own cell settings.
10409 That means changing cell borders, cell alignment, and the width only affects
10411 Here is an example table with a multicolumn cell in the first row and one
10412 in the last row without the upper border:
10415 \begin_layout Standard
10417 \begin_inset Tabular
10418 <lyxtabular version="3" rows="3" columns="4">
10419 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10420 <column alignment="center" valignment="top" leftline="true" width="0pt">
10421 <column alignment="center" valignment="middle" leftline="true" width="0">
10422 <column alignment="center" valignment="top" leftline="true" width="0in">
10423 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10424 <row topline="true" bottomline="true">
10425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10428 \begin_layout Standard
10434 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10437 \begin_layout Standard
10443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10446 \begin_layout Standard
10452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10455 \begin_layout Standard
10462 <row topline="true">
10463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10466 \begin_layout Standard
10481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10484 \begin_layout Standard
10490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10493 \begin_layout Standard
10499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10502 \begin_layout Standard
10509 <row topline="true" bottomline="true">
10510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10513 \begin_layout Standard
10519 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10522 \begin_layout Standard
10528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10531 \begin_layout Standard
10537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10540 \begin_layout Standard
10554 \begin_layout Subsubsection
10555 Multicolumn Calculations
10556 \begin_inset LatexCommand label
10557 name "sub:Multicolumn-Calculations"
10562 \begin_inset LatexCommand index
10563 name "Multicolumns ! Calculations"
10570 \begin_layout Standard
10571 LyX supports multicolumns directly, but we have to take notice of the cell
10572 width of the columns spanned by the multicolumn cell.
10575 \begin_layout Standard
10576 \begin_inset Float table
10581 \begin_layout Standard
10582 \begin_inset Caption
10584 \begin_layout Standard
10585 \begin_inset LatexCommand label
10586 name "tab:Table-with-centered"
10590 Table with centered multicolumn text above two columns that have exactly
10591 half the width of the multicolumn cell
10592 \begin_inset OptArg
10595 \begin_layout Standard
10596 Perfect multicolumn table
10609 \begin_layout Standard
10611 \begin_inset Tabular
10612 <lyxtabular version="3" rows="3" columns="3">
10614 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10615 <column alignment="center" valignment="middle" leftline="true" width="0">
10616 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10617 <row topline="true">
10618 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10621 \begin_layout Standard
10622 multiple lines multicolumn
10627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10630 \begin_layout Standard
10636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10639 \begin_layout Standard
10646 <row topline="true">
10647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10650 \begin_layout Standard
10656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10659 \begin_layout Standard
10665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10668 \begin_layout Standard
10675 <row topline="true" bottomline="true">
10676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10679 \begin_layout Standard
10685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10688 \begin_layout Standard
10694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10697 \begin_layout Standard
10716 \begin_layout Standard
10717 To create for example Table\InsetSpace ~
10719 \begin_inset LatexCommand ref
10720 reference "tab:Table-with-centered"
10724 , mark the first two cells in the first row of a 3×3 table and right-click
10726 Now choose for this cell
10734 and a width of 2.5\InsetSpace \thinspace{}
10735 cm in the table dialog.
10736 The spanned columns should have exactly half the width of the multicolumn
10737 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10738 cm for the first column.
10739 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10741 width - width of first column).
10742 This was done for Table\InsetSpace ~
10744 \begin_inset LatexCommand ref
10745 reference "tab:Table-without-half"
10752 \begin_layout Standard
10753 \begin_inset Float table
10758 \begin_layout Standard
10759 \begin_inset Caption
10761 \begin_layout Standard
10762 \begin_inset LatexCommand label
10763 name "tab:Table-without-half"
10767 Table where the spanned table columns have not exactly half the width of
10768 the multicolumn cell
10769 \begin_inset OptArg
10772 \begin_layout Standard
10773 Imperfect multicolumn table
10786 \begin_layout Standard
10788 \begin_inset Tabular
10789 <lyxtabular version="3" rows="3" columns="3">
10791 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10792 <column alignment="center" valignment="top" leftline="true" width="0">
10793 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10794 <row topline="true" bottomline="true">
10795 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10798 \begin_layout Standard
10799 multiple lines multicolumn
10804 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10807 \begin_layout Standard
10813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10816 \begin_layout Standard
10823 <row topline="true">
10824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10827 \begin_layout Standard
10833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10836 \begin_layout Standard
10842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10845 \begin_layout Standard
10852 <row topline="true" bottomline="true">
10853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10856 \begin_layout Standard
10862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10865 \begin_layout Standard
10871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10874 \begin_layout Standard
10893 \begin_layout Standard
10894 You can see that the first column has not the half width of the multicolumn
10895 cell, it is a bit bigger.
10896 The reason is that the given width of a cell
10897 \begin_inset Formula $W_{g}$
10900 is not its total width
10901 \begin_inset Formula $W_{\mathrm{tot}}$
10904 because a cell is always a bit larger than its given width.
10905 Appendix\InsetSpace ~
10907 \begin_inset LatexCommand eqref
10908 reference "cha:Explanation-of-Equation"
10912 explains it in detail.
10915 \begin_layout Standard
10916 The needed given width
10917 \begin_inset Formula $W_{g\, n}$
10924 columns are spanned can be calculated, so that each column has a total
10926 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10930 \begin_inset Formula \begin{equation}
10931 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10938 \begin_layout Standard
10939 In our case we have
10940 \begin_inset Formula $n=2$
10944 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10947 cm and the default values for the lengths, so that equation
10948 \begin_inset LatexCommand ref
10954 \begin_inset Formula \begin{equation}
10955 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10962 \begin_layout Standard
10963 To enable calculations in LaTeX, the LaTeX-package
10967 must be loaded with the document preamble line
10968 \begin_inset LatexCommand index
10969 name "LaTeX-packages ! calc"
10976 \begin_layout Standard
10984 \begin_layout Standard
10985 LyX does not allow to calculate lengths in the width-field of the table
10987 Therefore you have to format the column by inserting a LaTeX-argument in
10989 Here is an overview about the arguments:
10992 \begin_layout Itemize
10997 creates cell with a fixed width, its text is vertically top-aligned
11000 \begin_layout Itemize
11005 creates cell with a fixed width, its text is vertically centered
11008 \begin_layout Itemize
11013 creates cell with a fixed width, its text is vertically bottom-aligned
11016 \begin_layout Standard
11017 By entering a LaTeX-argument, all cell settings set in the table dialog
11021 \begin_layout Standard
11022 \begin_inset Note Greyedout
11025 \begin_layout Standard
11030 Due to a bug, LyX shows the overwritten settings anyway.
11038 \begin_layout Standard
11039 As the text should be horizontally centered, the command
11046 You can now enter the following LaTeX-argument for the first spanned column:
11049 \begin_layout Standard
11054 centering}m{1.25cm-6.2pt}
11057 \begin_layout Standard
11062 means, that the commands inside the braces are applied before the cell
11066 \begin_layout Standard
11067 Although we have chosen centered alignment for the text of the multicolumn
11068 cell, it is still left aligned.
11069 This is because LyX only applies the alignment to single columns.
11070 So we have to use for the multicolumn the LaTeX-argument
11073 \begin_layout Standard
11081 \begin_layout Subsection
11083 \begin_inset LatexCommand index
11089 \begin_inset LatexCommand index
11090 name "Table ! Multirows"
11095 \begin_inset LatexCommand index
11096 name "LaTeX-packages ! multirow"
11103 \begin_layout Standard
11104 In contrary to multicolumns multirows are not yet supported by LyX so a
11105 bit of ERT needs to be used.
11106 To use multirows load the LaTeX-package
11110 in your document preamble with the command
11113 \begin_layout Standard
11118 usepackage{multirow}
11121 \begin_layout Standard
11122 Multirows are created with the command
11125 \begin_layout Standard
11130 multirow{number of rows}{cell width}{cell entry}
11133 \begin_layout Standard
11134 To create the following table:
11137 \begin_layout Standard
11142 \begin_layout Standard
11156 \begin_inset Tabular
11157 <lyxtabular version="3" rows="3" columns="3">
11159 <column alignment="center" valignment="top" leftline="true" width="0">
11160 <column alignment="center" valignment="top" leftline="true" width="0">
11161 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11162 <row topline="true">
11163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11166 \begin_layout Standard
11172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11175 \begin_layout Standard
11181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11184 \begin_layout Standard
11191 <row topline="true">
11192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11195 \begin_layout Standard
11199 \begin_layout Standard
11203 multirow{2}{2.5cm}{
11212 \begin_layout Standard
11224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11227 \begin_layout Standard
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11236 \begin_layout Standard
11243 <row topline="true" bottomline="true">
11244 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11247 \begin_layout Standard
11253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11256 \begin_layout Standard
11262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11265 \begin_layout Standard
11280 \begin_layout Standard
11296 \begin_layout Standard
11297 create a 3×3 table.
11298 To get rid of the line above the last cell in the first column, the cell
11299 is marked as multicolumn and the upper border is unset.
11300 The multirow is now created in the second row of the first column by inserting
11304 \begin_layout Standard
11309 multirow{2}{2.5cm}{
11312 \begin_layout Standard
11314 According to the command parameters the multirow spans now two rows and
11315 has a width of 2.5\InsetSpace \thinspace{}
11317 The content of the multirow cell follows outside the ERT box and the command
11318 is finished with a right brace
11322 in another ERT-box behind the text.
11325 \begin_layout Standard
11332 left-aligns its content by default.
11333 To override the default, renew the command
11342 \begin_layout Standard
11354 \begin_layout Standard
11355 in ERT in the document preamble.
11356 Then all entries of multirow cells in the document are centered.
11357 If centering is only needed for several tables, you can renew the command
11358 in an ERT box just before the table instead of the preamble.
11359 If the text should be right-aligned, replace
11372 To return to left-alignment
11381 \begin_layout Section
11383 \begin_inset LatexCommand label
11384 name "sec:Formal-Tables"
11389 \begin_inset LatexCommand index
11390 name "Table ! Formal"
11397 \begin_layout Standard
11398 Tables are often typeset in books similar to Table\InsetSpace ~
11400 \begin_inset LatexCommand ref
11401 reference "tab:Example-booktabs-table"
11406 This kind of tables is called
11407 \begin_inset Quotes eld
11415 \begin_inset Quotes erd
11419 To make a table a formal table use the option
11427 tab of the table dialog.
11430 \begin_layout Standard
11431 \begin_inset Float table
11437 \begin_layout Standard
11438 \begin_inset Caption
11440 \begin_layout Standard
11441 \begin_inset LatexCommand label
11442 name "tab:Example-booktabs-table"
11446 Example booktabs-table
11454 \begin_layout Standard
11456 \begin_inset Tabular
11457 <lyxtabular version="3" rows="8" columns="4">
11458 <features booktabs="true">
11459 <column alignment="center" valignment="top" rightline="true" width="0">
11460 <column alignment="center" valignment="top" width="0">
11461 <column alignment="center" valignment="top" width="0">
11462 <column alignment="center" valignment="top" width="0">
11463 <row topline="true">
11464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11467 \begin_layout Standard
11473 <cell alignment="center" valignment="top" topline="true" usebox="none">
11476 \begin_layout Standard
11478 \begin_inset Formula $\,$
11486 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11489 \begin_layout Standard
11491 \begin_inset Formula $\,$
11499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11502 \begin_layout Standard
11510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11513 \begin_layout Standard
11517 \begin_layout Standard
11530 \begin_layout Standard
11539 Detector thickness [µm]
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Standard
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11556 \begin_layout Standard
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11565 \begin_layout Standard
11572 <row topline="true">
11573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11576 \begin_layout Standard
11582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11585 \begin_layout Standard
11591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11594 \begin_layout Standard
11600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11603 \begin_layout Standard
11610 <row topspace="default">
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11614 \begin_layout Standard
11615 Spatial resolution [µm]
11620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11623 \begin_layout Standard
11629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11632 \begin_layout Standard
11638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11641 \begin_layout Standard
11648 <row topspace="default">
11649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11652 \begin_layout Standard
11654 \begin_inset Formula $f_{\mathrm{max}}$
11662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11665 \begin_layout Standard
11671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11674 \begin_layout Standard
11680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11683 \begin_layout Standard
11690 <row topspace="default">
11691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11694 \begin_layout Standard
11698 \begin_layout Standard
11702 cmidrule(l{10pt}){1-1}
11707 LSF-spatial resolution
11712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11715 \begin_layout Standard
11721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11724 \begin_layout Standard
11730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11733 \begin_layout Standard
11741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11744 \begin_layout Standard
11750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11753 \begin_layout Standard
11759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11762 \begin_layout Standard
11768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11771 \begin_layout Standard
11778 <row bottomline="true">
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Standard
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11791 \begin_layout Standard
11797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11800 \begin_layout Standard
11806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11809 \begin_layout Standard
11828 \begin_layout Standard
11829 Spaces to table rows can be added using the
11833 tab of the table dialog as described in section\InsetSpace ~
11835 \begin_inset LatexCommand ref
11836 reference "sub:Row-Spacing"
11843 \begin_layout Standard
11844 In contrary to normal tables, formal tables have no vertical table lines.
11845 The horizontal table lines can be set like for normal tables but they appear
11846 with different width in the output:
11848 The first and the last table line have
11849 a default width of 0.08\InsetSpace \thinspace{}
11850 em while the other lines have a default width of
11851 0.05\InsetSpace \thinspace{}
11855 \begin_layout Standard
11856 The default widths can be changed with the following preamble lines
11859 \begin_layout Standard
11879 \begin_layout Standard
11880 This example is for the first line, the so called
11885 If you want to change the width for the last line, replace
11894 To change the width for the other lines replace
11903 You can use all units listed in appendix\InsetSpace ~
11905 \begin_inset LatexCommand ref
11906 reference "cha:Units-available-in"
11913 \begin_layout Standard
11914 Lines that don't span over all table columns can be created by setting a
11915 table line for multicolumn cells.
11916 LyX will then internally use the command
11922 to create this line.
11926 \begin_layout Standard
11931 cmidrule[width](trim){startcol-endcol}
11934 \begin_layout Standard
11941 are are currently not supported by LyX so you have to use ERT to be able
11949 s can manually be created by inserting the command as ERT as first cell
11950 entry of the first cell of a row.
11951 The line is then drawn in the output above the current row.
11954 \begin_layout Standard
11955 The default for the width is 0.03\InsetSpace \thinspace{}
11957 Startcol is the number of the column where the line starts and endcol the
11958 column number where the line ends.
11959 The endcol always needs to be specified, also when the line should span
11961 The optional parameter trim could be either
11969 where the trimwidth is also optional.
11970 Using for example the parameter
11974 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11976 If you don't specify the trimwidth the lines are trimmed by the default
11977 of 0.5\InsetSpace \thinspace{}
11981 \begin_layout Standard
11982 \begin_inset VSpace bigskip
11987 \begin_inset LatexCommand ref
11988 reference "tab:Example-booktabs-table"
11992 was created using the commands
11995 \begin_layout Standard
12005 \begin_layout Standard
12006 at the beginning of the in the second row and
12009 \begin_layout Standard
12014 cmidrule(l{10pt}){1-1}
12017 \begin_layout Standard
12021 \begin_layout Standard
12022 \begin_inset VSpace bigskip
12028 \begin_layout Standard
12029 You might want to have overlapping
12035 s like in Table\InsetSpace ~
12037 \begin_inset LatexCommand ref
12038 reference "tab:Special-booktabs-table"
12043 This can be achieved with the ERT command
12046 \begin_layout Standard
12054 \begin_layout Standard
12055 The command that was used for the second row of Table\InsetSpace ~
12057 \begin_inset LatexCommand ref
12058 reference "tab:Special-booktabs-table"
12065 \begin_layout Standard
12079 \begin_layout Standard
12080 The command for the sixth row is
12083 \begin_layout Standard
12095 \begin_layout Standard
12096 \begin_inset VSpace bigskip
12102 \begin_layout Standard
12103 If you are anyway not satisfied with the border line spacing, you can use
12104 the following command to produce lines that span over all table columns
12109 \begin_layout Standard
12114 specialrule{width}{space above}{space below}
12117 \begin_layout Standard
12118 For more informations about these specialties, we refer to the manual of
12124 \begin_inset LatexCommand cite
12130 \begin_inset LatexCommand index
12131 name "LaTeX-packages ! booktabs"
12138 \begin_layout Standard
12139 \begin_inset Float table
12145 \begin_layout Standard
12146 \begin_inset Caption
12148 \begin_layout Standard
12149 \begin_inset LatexCommand label
12150 name "tab:Special-booktabs-table"
12154 Special booktabs-table
12162 \begin_layout Standard
12164 \begin_inset Tabular
12165 <lyxtabular version="3" rows="8" columns="4">
12166 <features booktabs="true">
12167 <column alignment="center" valignment="top" width="0">
12168 <column alignment="center" valignment="top" width="0">
12169 <column alignment="center" valignment="top" width="0">
12170 <column alignment="center" valignment="top" width="0">
12171 <row topline="true">
12172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12175 \begin_layout Standard
12181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12184 \begin_layout Standard
12185 Medipix\InsetSpace \thinspace{}
12191 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12194 \begin_layout Standard
12195 Medipix\InsetSpace \thinspace{}
12201 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12204 \begin_layout Standard
12212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12215 \begin_layout Standard
12219 \begin_layout Standard
12232 \begin_layout Standard
12245 \begin_layout Standard
12258 \begin_layout Standard
12267 Detector thickness [µm]
12272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12275 \begin_layout Standard
12281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12284 \begin_layout Standard
12290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12293 \begin_layout Standard
12300 <row topline="true">
12301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12304 \begin_layout Standard
12310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12313 \begin_layout Standard
12319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12322 \begin_layout Standard
12328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12331 \begin_layout Standard
12338 <row topspace="default">
12339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12342 \begin_layout Standard
12343 Spatial resolution [µm]
12348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12351 \begin_layout Standard
12357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12360 \begin_layout Standard
12366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12369 \begin_layout Standard
12376 <row topspace="default">
12377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12380 \begin_layout Standard
12382 \begin_inset Formula $f_{\mathrm{max}}$
12390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12393 \begin_layout Standard
12399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12402 \begin_layout Standard
12408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12411 \begin_layout Standard
12418 <row topline="true">
12419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12422 \begin_layout Standard
12426 \begin_layout Standard
12439 \begin_layout Standard
12448 LSF-spatial resolution
12453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12456 \begin_layout Standard
12462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12465 \begin_layout Standard
12471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12474 \begin_layout Standard
12482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12485 \begin_layout Standard
12491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12494 \begin_layout Standard
12500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12503 \begin_layout Standard
12509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12512 \begin_layout Standard
12519 <row bottomline="true">
12520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12523 \begin_layout Standard
12529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12532 \begin_layout Standard
12538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12541 \begin_layout Standard
12547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12550 \begin_layout Standard
12569 \begin_layout Section
12570 Vertical Table Alignment
12571 \begin_inset LatexCommand index
12572 name "Table ! Alignment"
12579 \begin_layout Standard
12580 To align tables vertically in a text line the table must be inside a box.
12581 The box can then be vertically aligned as described in section\InsetSpace ~
12583 \begin_inset LatexCommand ref
12584 reference "sec:Box-Dialog"
12591 \begin_layout Standard
12592 In the following example the tables are inside a minipage
12596 \begin_layout Standard
12597 Minipages are described in section\InsetSpace ~
12599 \begin_inset LatexCommand ref
12600 reference "sec:Minipages"
12609 box that has a width of 15\InsetSpace \thinspace{}
12613 \begin_layout Itemize
12615 \begin_inset Box Frameless
12624 height_special "totalheight"
12627 \begin_layout Standard
12628 \begin_inset Tabular
12629 <lyxtabular version="3" rows="3" columns="3">
12631 <column alignment="center" valignment="top" leftline="true" width="0">
12632 <column alignment="center" valignment="top" leftline="true" width="0">
12633 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12634 <row topline="true">
12635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12638 \begin_layout Standard
12644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12647 \begin_layout Standard
12653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12656 \begin_layout Standard
12663 <row topline="true">
12664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12667 \begin_layout Standard
12673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12676 \begin_layout Standard
12682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12685 \begin_layout Standard
12692 <row topline="true" bottomline="true">
12693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12696 \begin_layout Standard
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12705 \begin_layout Standard
12711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12714 \begin_layout Standard
12734 \begin_layout Standard
12746 \begin_inset Box Frameless
12755 height_special "totalheight"
12758 \begin_layout Standard
12759 \begin_inset Tabular
12760 <lyxtabular version="3" rows="3" columns="3">
12762 <column alignment="center" valignment="top" leftline="true" width="0">
12763 <column alignment="center" valignment="top" leftline="true" width="0">
12764 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12765 <row topline="true">
12766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12769 \begin_layout Standard
12775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12778 \begin_layout Standard
12784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12787 \begin_layout Standard
12794 <row topline="true">
12795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12798 \begin_layout Standard
12804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12807 \begin_layout Standard
12813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12816 \begin_layout Standard
12823 <row topline="true" bottomline="true">
12824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12827 \begin_layout Standard
12833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12836 \begin_layout Standard
12842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12845 \begin_layout Standard
12865 \begin_layout Standard
12875 \begin_layout Itemize
12877 \begin_inset Box Frameless
12886 height_special "totalheight"
12889 \begin_layout Standard
12890 \begin_inset Tabular
12891 <lyxtabular version="3" rows="3" columns="3">
12893 <column alignment="center" valignment="top" leftline="true" width="0">
12894 <column alignment="center" valignment="top" leftline="true" width="0">
12895 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12896 <row topline="true">
12897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12900 \begin_layout Standard
12906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12909 \begin_layout Standard
12915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12918 \begin_layout Standard
12925 <row topline="true">
12926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12929 \begin_layout Standard
12935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12938 \begin_layout Standard
12944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12947 \begin_layout Standard
12954 <row topline="true" bottomline="true">
12955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12958 \begin_layout Standard
12964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12967 \begin_layout Standard
12973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12976 \begin_layout Standard
12995 \begin_layout Itemize
12997 \begin_inset Box Frameless
13006 height_special "totalheight"
13009 \begin_layout Standard
13010 \begin_inset Tabular
13011 <lyxtabular version="3" rows="3" columns="3">
13013 <column alignment="center" valignment="top" leftline="true" width="0">
13014 <column alignment="center" valignment="top" leftline="true" width="0">
13015 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13016 <row topline="true">
13017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13020 \begin_layout Standard
13026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13029 \begin_layout Standard
13035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13038 \begin_layout Standard
13045 <row topline="true">
13046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13049 \begin_layout Standard
13055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13058 \begin_layout Standard
13064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13067 \begin_layout Standard
13074 <row topline="true" bottomline="true">
13075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13078 \begin_layout Standard
13084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13087 \begin_layout Standard
13093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13096 \begin_layout Standard
13116 \begin_layout Standard
13128 \begin_inset Box Frameless
13137 height_special "totalheight"
13140 \begin_layout Standard
13141 \begin_inset Tabular
13142 <lyxtabular version="3" rows="3" columns="3">
13144 <column alignment="center" valignment="top" leftline="true" width="0">
13145 <column alignment="center" valignment="top" leftline="true" width="0">
13146 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13147 <row topline="true">
13148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13151 \begin_layout Standard
13157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13160 \begin_layout Standard
13166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13169 \begin_layout Standard
13176 <row topline="true">
13177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13180 \begin_layout Standard
13186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13189 \begin_layout Standard
13195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13198 \begin_layout Standard
13205 <row topline="true" bottomline="true">
13206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13209 \begin_layout Standard
13215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13218 \begin_layout Standard
13224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13227 \begin_layout Standard
13247 \begin_layout Standard
13257 \begin_layout Standard
13258 As you can see, the content of the first and last table row is not correctly
13259 aligned with the text line where the table is in.
13260 To get this alignment, the minipage box must be set into a raisebox
13264 \begin_layout Standard
13265 Raiseboxes are described in section\InsetSpace ~
13267 \begin_inset LatexCommand ref
13268 reference "sub:Vertical-Alignment"
13278 In the example above the second table in the first item is aligned using
13282 \begin_layout Standard
13292 \begin_layout Standard
13294 Behind the box the closing brace
13298 is inserted as ERT.
13299 For the second table in the last item the command
13302 \begin_layout Standard
13312 \begin_layout Standard
13316 \begin_layout Standard
13317 \begin_inset Note Greyedout
13320 \begin_layout Standard
13325 The alignment of the table row content to the surrounding text line is
13327 The needed factor of the
13333 command for this alignment depends on the document font, the font size,
13334 and the table line thickness.
13342 \begin_layout Section
13344 \begin_inset LatexCommand label
13345 name "sec:Colored-Tables"
13350 \begin_inset LatexCommand index
13351 name "Table ! Color"
13358 \begin_layout Subsection
13360 \begin_inset LatexCommand index
13361 name "Table Color ! for Cells"
13366 \begin_inset LatexCommand index
13367 name "Color ! for Table Cells"
13374 \begin_layout Standard
13375 \begin_inset Float table
13381 \begin_layout Standard
13382 \begin_inset Caption
13384 \begin_layout Standard
13385 \begin_inset LatexCommand label
13386 name "tab:Table-colored-without"
13390 Table colored without using the package
13395 \begin_inset OptArg
13398 \begin_layout Standard
13399 Table without colortbl
13412 \begin_layout Standard
13414 \begin_inset Tabular
13415 <lyxtabular version="3" rows="3" columns="3">
13417 <column alignment="center" valignment="top" leftline="true" width="0">
13418 <column alignment="center" valignment="top" leftline="true" width="0">
13419 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13420 <row topline="true">
13421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13424 \begin_layout Standard
13432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13435 \begin_layout Standard
13443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13446 \begin_layout Standard
13455 <row topline="true">
13456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13459 \begin_layout Standard
13467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13470 \begin_layout Standard
13478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13481 \begin_layout Standard
13490 <row topline="true" bottomline="true">
13491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13494 \begin_layout Standard
13502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13505 \begin_layout Standard
13513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13516 \begin_layout Standard
13537 \begin_layout Standard
13538 If you only need colored text, mark the cells and choose a color in the
13541 Edit\SpecialChar \menuseparator
13546 This was used to create Table\InsetSpace ~
13548 \begin_inset LatexCommand ref
13549 reference "tab:Table-colored-without"
13554 In any other case you have to use the LaTeX-package
13559 \begin_inset LatexCommand index
13560 name "LaTeX-packages ! colortbl"
13567 \begin_layout Standard
13568 To create colored tables,
13572 must be loaded in the preamble with the line
13575 \begin_layout Standard
13580 usepackage{colortbl}
13583 \begin_layout Standard
13584 The color of a column is adjusted with the command
13587 \begin_layout Standard
13592 columncolor{name of color}
13595 \begin_layout Standard
13601 More about the command
13605 is described in section\InsetSpace ~
13607 \begin_inset LatexCommand ref
13608 reference "sub:Multicolumn-Calculations"
13615 \begin_layout Standard
13616 The following color names are predefined:
13619 \begin_layout Standard
13653 \begin_layout Standard
13654 \begin_inset VSpace medskip
13660 \begin_layout Standard
13661 You can also define your own color with the command
13664 \begin_layout Standard
13669 def\SpecialChar \textcompwordmark{}
13670 inecolor{color name}{color model}{color values}
13673 \begin_layout Standard
13674 The color model can be
13677 \begin_layout Labeling
13678 \labelwidthstring 00.00.0000
13679 cmyk: cyan, magenta, yellow, black
13682 \begin_layout Labeling
13683 \labelwidthstring 00.00.0000
13684 rgb: red, green blue
13687 \begin_layout Labeling
13688 \labelwidthstring 00.00.0000
13692 \begin_layout Standard
13693 and the color values are comma separated numbers between 0 and 1 describing
13694 the factor for the corresponding color of the color model.
13697 \begin_layout Standard
13698 You can e.\InsetSpace \thinspace{}
13704 " in the preamble with
13707 \begin_layout Standard
13712 def\SpecialChar \textcompwordmark{}
13713 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13716 \begin_layout Standard
13724 \begin_layout Standard
13729 def\SpecialChar \textcompwordmark{}
13730 inecolor{lightgray}{gray}{0.8}
13733 \begin_layout Standard
13734 \begin_inset VSpace medskip
13740 \begin_layout Standard
13741 Lines are colored with the command
13744 \begin_layout Standard
13749 rowcolor{name of color}
13752 \begin_layout Standard
13753 and cells are colored with the command
13756 \begin_layout Standard
13761 cellcolor{name of color}
13764 \begin_layout Standard
13765 Both commands are inserted at the beginning of a cell as ERT.
13768 \begin_layout Standard
13769 To color characters in the table, mark the cells and use the LyX menu
13771 Edit\SpecialChar \menuseparator
13776 If a cell contains ERT mark only the characters, otherwise the colored
13777 ERT will cause LaTeX-errors.
13780 \begin_layout Standard
13781 \begin_inset Note Greyedout
13784 \begin_layout Standard
13789 Not all DVI-viewers are able to display self-defined colors.
13797 \begin_layout Standard
13798 \begin_inset VSpace bigskip
13804 \begin_layout Standard
13805 To create Table\InsetSpace ~
13807 \begin_inset LatexCommand ref
13808 reference "tab:Table-colored-using"
13812 do the following: The color of the first column should be
13820 \begin_layout Standard
13825 columncolor{darkgreen}
13830 \begin_layout Standard
13831 as LaTeX-argument for this column.
13832 The first row should be blue, therefore the ERT command
13835 \begin_layout Standard
13843 \begin_layout Standard
13844 is inserted to the first cell of this row.
13845 Note that this overwrites the column color for the first cell.
13846 The last cell of the last row is colored magenta by inserting the ERT command
13849 \begin_layout Standard
13857 \begin_layout Standard
13858 The characters could now be colored using the menu
13860 Edit\SpecialChar \menuseparator
13867 \begin_layout Standard
13868 \begin_inset Float table
13874 \begin_layout Standard
13875 \begin_inset Caption
13877 \begin_layout Standard
13878 \begin_inset LatexCommand label
13879 name "tab:Table-colored-using"
13883 Table colored using the package
13888 \begin_inset OptArg
13891 \begin_layout Standard
13892 Table with colortbl
13905 \begin_layout Standard
13907 \begin_inset Tabular
13908 <lyxtabular version="3" rows="3" columns="3">
13910 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13911 <column alignment="center" valignment="top" width="0">
13912 <column alignment="center" valignment="top" width="0">
13914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13917 \begin_layout Standard
13921 \begin_layout Standard
13937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13940 \begin_layout Standard
13948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13951 \begin_layout Standard
13961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13964 \begin_layout Standard
13972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13975 \begin_layout Standard
13983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13986 \begin_layout Standard
13996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13999 \begin_layout Standard
14007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14010 \begin_layout Standard
14018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14021 \begin_layout Standard
14025 \begin_layout Standard
14054 \begin_layout Subsection
14056 \begin_inset LatexCommand index
14057 name "Table Color ! for Lines"
14062 \begin_inset LatexCommand index
14063 name "Color ! for Table Lines"
14070 \begin_layout Standard
14071 As described in section\InsetSpace ~
14073 \begin_inset LatexCommand ref
14074 reference "sub:Line-Thickness"
14078 , the line thickness for all lines in a table can be adjusted with the length
14086 It is set to 1.5\InsetSpace \thinspace{}
14087 pt for all tables of this section.
14091 \begin_layout Standard
14097 arrayrulewidth}{1.5pt}
14105 \begin_layout Standard
14106 To color vertical lines for example with green, create the following column
14107 format in the document preamble, according to the description in section\InsetSpace ~
14109 \begin_inset LatexCommand ref
14110 reference "sub:Customized-Format"
14117 \begin_layout Standard
14122 newcolumntype{W}{!{
14129 \begin_layout Standard
14130 For Table\InsetSpace ~
14132 \begin_inset LatexCommand ref
14133 reference "tab:Table-with-vertical-colored"
14141 was used for the last column and
14145 for the other columns.
14148 \begin_layout Standard
14149 If you want to have several colors, define more column formats.
14152 \begin_layout Standard
14153 \begin_inset Float table
14158 \begin_layout Standard
14159 \begin_inset Caption
14161 \begin_layout Standard
14162 \begin_inset LatexCommand label
14163 name "tab:Table-with-vertical-colored"
14167 Table with colored vertical lines
14175 \begin_layout Standard
14177 \begin_inset Tabular
14178 <lyxtabular version="3" rows="3" columns="3">
14180 <column alignment="center" valignment="top" width="0" special="Wc">
14181 <column alignment="center" valignment="top" width="0" special="Wc">
14182 <column alignment="center" valignment="top" width="0" special="WcW">
14183 <row topline="true">
14184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14187 \begin_layout Standard
14193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14196 \begin_layout Standard
14202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14205 \begin_layout Standard
14212 <row topline="true">
14213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14216 \begin_layout Standard
14222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14225 \begin_layout Standard
14231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14234 \begin_layout Standard
14241 <row topline="true" bottomline="true">
14242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14245 \begin_layout Standard
14251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14254 \begin_layout Standard
14260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14263 \begin_layout Standard
14282 \begin_layout Standard
14283 \begin_inset VSpace bigskip
14286 To color horizontal lines for example with red, like in Table\InsetSpace ~
14288 \begin_inset LatexCommand ref
14289 reference "tab:Table-with-horizontal-colored"
14293 , insert these commands in ERT before the table or table float:
14296 \begin_layout Standard
14317 \begin_layout Standard
14328 arrayrulecolor{red}
14332 arrayrulecolor{black}}
14335 \begin_layout Standard
14339 \begin_layout Standard
14350 \begin_layout Standard
14359 \begin_layout Standard
14363 arrayrulecolor{red}
14367 arrayrulecolor{black}}
14373 \begin_inset Float table
14378 \begin_layout Standard
14379 \begin_inset Caption
14381 \begin_layout Standard
14382 \begin_inset LatexCommand label
14383 name "tab:Table-with-horizontal-colored"
14387 Table with colored horizontal lines
14395 \begin_layout Standard
14397 \begin_inset Tabular
14398 <lyxtabular version="3" rows="3" columns="3">
14400 <column alignment="center" valignment="top" leftline="true" width="0">
14401 <column alignment="center" valignment="top" leftline="true" width="0">
14402 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14403 <row topline="true">
14404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14407 \begin_layout Standard
14413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14416 \begin_layout Standard
14422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14425 \begin_layout Standard
14432 <row topline="true">
14433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14436 \begin_layout Standard
14442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14445 \begin_layout Standard
14451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14454 \begin_layout Standard
14461 <row topline="true" bottomline="true">
14462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14465 \begin_layout Standard
14471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14474 \begin_layout Standard
14480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14483 \begin_layout Standard
14502 \begin_layout Standard
14506 \begin_layout Standard
14518 \begin_layout Standard
14519 To return to the default line color black, insert this command in ERT behind
14520 the table or table float:
14523 \begin_layout Standard
14535 \begin_layout Standard
14538 \begin_inset LatexCommand ref
14539 reference "tab:Table-with-colored"
14543 is an example with colored vertical and horizontal lines.
14546 \begin_layout Standard
14547 \begin_inset Float table
14553 \begin_layout Standard
14554 \begin_inset Caption
14556 \begin_layout Standard
14557 \begin_inset LatexCommand label
14558 name "tab:Table-with-colored"
14562 Table with colored lines
14570 \begin_layout Standard
14572 \begin_inset Tabular
14573 <lyxtabular version="3" rows="3" columns="3">
14575 <column alignment="center" valignment="top" width="0" special="Wc">
14576 <column alignment="center" valignment="top" width="0" special="Wc">
14577 <column alignment="center" valignment="top" width="0" special="WcW">
14578 <row topline="true">
14579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14582 \begin_layout Standard
14588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14591 \begin_layout Standard
14597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14600 \begin_layout Standard
14607 <row topline="true">
14608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14611 \begin_layout Standard
14617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14620 \begin_layout Standard
14626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14629 \begin_layout Standard
14636 <row topline="true" bottomline="true" topspace="default">
14637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14640 \begin_layout Standard
14646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14649 \begin_layout Standard
14655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14658 \begin_layout Standard
14677 \begin_layout Standard
14681 \begin_layout Standard
14697 \begin_layout Standard
14701 \begin_layout Standard
14707 arrayrulewidth}{0.4pt}
14715 \begin_layout Section
14716 Table Customization
14717 \begin_inset LatexCommand index
14718 name "Table Customization"
14723 \begin_inset LatexCommand index
14724 name "Table ! Customization"
14731 \begin_layout Subsection
14733 \begin_inset LatexCommand label
14734 name "sub:Row-Spacing"
14739 \begin_inset LatexCommand index
14740 name "Table Customization ! Row Spacing"
14747 \begin_layout Standard
14748 You can add vertical space to table rows in the
14752 tab of the table dialog.
14753 You find there three possibilities:
14756 \begin_layout Description
14759 row will add space above the characters of the table row.
14760 If the table is a formal table
14764 \begin_layout Standard
14765 Formal tables are explained in section\InsetSpace ~
14767 \begin_inset LatexCommand ref
14768 reference "sec:Formal-Tables"
14777 LyX will insert as default 0.5\InsetSpace \thinspace{}
14779 For normal tables the inserted space will unfortunately destroy the vertical
14780 table lines as in the following table:
14781 \begin_inset VSpace medskip
14790 \begin_layout Standard
14802 \begin_inset Tabular
14803 <lyxtabular version="3" rows="3" columns="1">
14805 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14806 <row topline="true">
14807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14810 \begin_layout Standard
14817 <row topline="true" topspace="3mm">
14818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14821 \begin_layout Standard
14822 3\InsetSpace \thinspace{}
14823 mm space top of row
14829 <row topline="true" bottomline="true">
14830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14833 \begin_layout Standard
14850 \begin_layout Standard
14860 \begin_inset VSpace medskip
14865 So inserting space to the top of row for normal tables is only useful when
14866 you don't have vertical lines.
14869 \begin_layout Description
14870 Bottom\InsetSpace ~
14872 row will add space below the characters of the table row.
14873 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14875 normal tables the default size is 2\InsetSpace \thinspace{}
14879 \begin_layout Description
14880 Between\InsetSpace ~
14881 rows adds space between the current and the following row.
14882 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14884 For normal tables the inserted space will unfortunately destroy the vertical
14885 table lines as in the following table:
14886 \begin_inset VSpace medskip
14895 \begin_layout Standard
14907 \begin_inset Tabular
14908 <lyxtabular version="3" rows="3" columns="1">
14910 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14911 <row topline="true">
14912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14915 \begin_layout Standard
14922 <row topline="true" interlinespace="3mm">
14923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14926 \begin_layout Standard
14927 \begin_inset Formula $\downarrow$
14930 3\InsetSpace \thinspace{}
14931 mm space between row
14932 \begin_inset Formula $\downarrow$
14941 <row topline="true" bottomline="true">
14942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14945 \begin_layout Standard
14946 \begin_inset Formula $\uparrow$
14949 3\InsetSpace \thinspace{}
14950 mm space between row
14951 \begin_inset Formula $\uparrow$
14970 \begin_layout Standard
14980 \begin_inset VSpace medskip
14985 So inserting space between rows for normal tables is only useful when you
14986 don't have vertical lines.
14989 \begin_layout Standard
14990 \begin_inset VSpace bigskip
14993 When you want to add extra height to all cells of all tables, you can do
14994 this with the following preamble lines:
14997 \begin_layout Standard
15002 @ifundef\SpecialChar \textcompwordmark{}
15003 ined{extrarowheight}
15009 \begin_layout Standard
15020 usepackage{array}}{}
15026 extrarowheight}{height}
15029 \begin_layout Standard
15030 But this has the disadvantage that the cell texts are no longer exactly
15031 vertically centered.
15036 will be loaded automatically by LyX when you use self defined table formats.
15037 To avoid that it is loaded twice the command
15041 @ifundef\SpecialChar \textcompwordmark{}
15044 is used in the above command.)
15047 \begin_layout Subsection
15048 Special Cell Alignment
15049 \begin_inset LatexCommand index
15050 name "Table Customization ! Special Cell Alignment"
15057 \begin_layout Standard
15058 Sometimes it looks better when the cell entries of a column are aligned
15059 with a special character, e.\InsetSpace \thinspace{}
15061 with the decimal separator as in Table\InsetSpace ~
15063 \begin_inset LatexCommand ref
15064 reference "tab:Table-cells-of"
15071 \begin_layout Standard
15072 \begin_inset Float table
15078 \begin_layout Standard
15079 \begin_inset Caption
15081 \begin_layout Standard
15082 \begin_inset LatexCommand label
15083 name "tab:Table-cells-of"
15087 Table cells of a column aligned with the decimal separator.
15095 \begin_layout Standard
15097 \begin_inset Tabular
15098 <lyxtabular version="3" rows="4" columns="2">
15100 <column alignment="right" valignment="top" width="0">
15101 <column alignment="left" valignment="top" width="0" special="@{}l">
15102 <row bottomline="true">
15103 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15106 \begin_layout Standard
15112 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15115 \begin_layout Standard
15123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15126 \begin_layout Standard
15132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15135 \begin_layout Standard
15143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15146 \begin_layout Standard
15152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15155 \begin_layout Standard
15163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15166 \begin_layout Standard
15172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15175 \begin_layout Standard
15194 \begin_layout Standard
15195 This table was created with a 4×2 table.
15196 The heading is a centered multicolumn.
15197 The first column is right-aligned and contains the digits before the decimal
15198 point and the decimal point.
15199 The second column is left aligned and contains the digits after the decimal
15201 To omit the space that is normally between two table columns, use the following
15202 LaTeX-argument for the second column:
15205 \begin_layout Standard
15211 \begin_layout Standard
15214 \begin_inset LatexCommand ref
15215 reference "tab:Several-table-cell"
15219 shows some example alignments.
15220 For the alignment with the relation sign, you must add the second smallest
15221 math-space at the beginning of the last column to get the correct space
15222 surrounding the relation sign.
15225 \begin_layout Standard
15226 \begin_inset Float table
15231 \begin_layout Standard
15232 \begin_inset Caption
15234 \begin_layout Standard
15235 \begin_inset LatexCommand label
15236 name "tab:Several-table-cell"
15240 Several table cell alignments.
15248 \begin_layout Standard
15250 \begin_inset Tabular
15251 <lyxtabular version="3" rows="4" columns="6">
15253 <column alignment="right" valignment="top" width="0">
15254 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15255 <column alignment="right" valignment="top" width="0">
15256 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15257 <column alignment="right" valignment="top" width="0">
15258 <column alignment="left" valignment="top" width="0" special="@{}l">
15259 <row bottomline="true">
15260 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15263 \begin_layout Standard
15269 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15272 \begin_layout Standard
15278 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15281 \begin_layout Standard
15287 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15290 \begin_layout Standard
15296 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15299 \begin_layout Standard
15305 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15308 \begin_layout Standard
15316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15319 \begin_layout Standard
15325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15328 \begin_layout Standard
15329 24\InsetSpace \thinspace{}
15335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15338 \begin_layout Standard
15339 \begin_inset Formula $10\cdot$
15347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15350 \begin_layout Standard
15351 \begin_inset Formula $10^{\mbox{-}17}$
15359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15362 \begin_layout Standard
15363 \begin_inset Formula $\Gamma(t)\propto$
15371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15374 \begin_layout Standard
15375 \begin_inset Formula $\:\Upsilon(t)$
15385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15388 \begin_layout Standard
15394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15397 \begin_layout Standard
15398 768\InsetSpace \thinspace{}
15404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15407 \begin_layout Standard
15408 \begin_inset Formula $5.78\cdot$
15416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15419 \begin_layout Standard
15420 \begin_inset Formula $10^{7}$
15428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15431 \begin_layout Standard
15432 \begin_inset Formula $A\ne$
15440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15443 \begin_layout Standard
15444 \begin_inset Formula $\: B_{\mathrm{red}}$
15454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15457 \begin_layout Standard
15463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15466 \begin_layout Standard
15467 6\InsetSpace \thinspace{}
15473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15476 \begin_layout Standard
15478 \begin_inset Formula $33.5\cdot$
15486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15489 \begin_layout Standard
15490 \begin_inset Formula $10^{4}$
15498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15501 \begin_layout Standard
15502 \begin_inset Formula $\sin(\alpha)\ge$
15510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15513 \begin_layout Standard
15514 \begin_inset Formula $\:\sin(\beta)$
15535 \begin_layout Standard
15536 \begin_inset VSpace bigskip
15539 There is also the LaTeX-package
15544 \begin_inset LatexCommand index
15545 name "LaTeX-packages ! dcolumn"
15549 that provides table cell alignments.
15550 But this unfortunately treats the cell entries as math and doesn't allow
15551 formulas in table cells: The first column of Table\InsetSpace ~
15553 \begin_inset LatexCommand ref
15554 reference "tab:Several-table-cell"
15562 like the first column in Table\InsetSpace ~
15564 \begin_inset LatexCommand ref
15565 reference "tab:Alignments-when"
15569 and only with some tricks like the expected.
15570 The alignment of the second and third column of Table\InsetSpace ~
15572 \begin_inset LatexCommand ref
15573 reference "tab:Several-table-cell"
15577 is not possible with
15584 \begin_layout Standard
15585 \begin_inset Float table
15591 \begin_layout Standard
15592 \begin_inset Caption
15594 \begin_layout Standard
15595 \begin_inset LatexCommand label
15596 name "tab:Alignments-when"
15600 Alignments when LaTeX-package dcolumn is used.
15601 For all column alignments tricks have to be used to get the output.
15609 \begin_layout Standard
15611 \begin_inset Tabular
15612 <lyxtabular version="3" rows="4" columns="3">
15614 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15615 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15616 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15617 <row bottomline="true">
15618 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15621 \begin_layout Standard
15627 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15630 \begin_layout Standard
15636 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15639 \begin_layout Standard
15647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15650 \begin_layout Standard
15651 12x24\InsetSpace \thinspace{}
15657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15660 \begin_layout Standard
15661 12x24\InsetSpace \thinspace{}
15663 \begin_inset Formula $\mbox{bottles}$
15671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15674 \begin_layout Standard
15679 \begin_layout Standard
15689 \begin_inset Formula $\mbox{bottles}$
15699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15702 \begin_layout Standard
15703 1024x768\InsetSpace \thinspace{}
15709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15712 \begin_layout Standard
15713 1024x768\InsetSpace \thinspace{}
15715 \begin_inset Formula $\mbox{Pixels}$
15723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15726 \begin_layout Standard
15731 \begin_layout Standard
15741 \begin_inset Formula $\mbox{Pixels}$
15751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15754 \begin_layout Standard
15755 32x6\InsetSpace \thinspace{}
15761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15764 \begin_layout Standard
15765 32x6\InsetSpace \thinspace{}
15767 \begin_inset Formula $\mbox{cm}$
15775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15778 \begin_layout Standard
15783 \begin_layout Standard
15793 \begin_inset Formula $\mbox{cm}$
15814 \begin_layout Subsection
15815 Customized Cell/Column Format
15816 \begin_inset LatexCommand label
15817 name "sub:Customized-Format"
15822 \begin_inset LatexCommand index
15823 name "Table Customization ! Cell/Column Format"
15830 \begin_layout Standard
15831 Calculating the needed width for spanned columns like in section\InsetSpace ~
15833 \begin_inset LatexCommand ref
15834 reference "sub:Multicolumn-Calculations"
15838 is very annoying if you have several tables with multicolumn cells.
15839 To make life easier, you can define a cell/column format in the preamble,
15840 so that it can be used in all tables of the document.
15841 The format is defined with the command
15844 \begin_layout Standard
15849 newcolumntype{name of format}[number of arguments]{commands}
15852 \begin_layout Standard
15853 The format name may only consist of one letter.
15878 are predefined and cannot be used.
15879 But all letters are allowed as capitals.
15882 \begin_layout Standard
15883 \begin_inset VSpace medskip
15889 \begin_layout Standard
15890 For vertically and horizontally centered multicolumn cells with a fixed
15891 width you can define the cell format
15894 \begin_layout Standard
15899 newcolumntype{M}[1]{>{
15906 \begin_layout Standard
15913 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15915 \begin_inset LatexCommand ref
15916 reference "sub:Multiple-Lines-in"
15921 Now you can simply enter
15924 \begin_layout Standard
15930 \begin_layout Standard
15931 as LaTeX-argument in the table dialog to create a multicolumn.
15934 \begin_layout Standard
15935 \begin_inset VSpace bigskip
15941 \begin_layout Standard
15942 For cells spanned by a multicolumn cell, you can define the format
15945 \begin_layout Standard
15950 newcolumntype{S}[2]{>{
15960 \begin_layout Standard
15971 newcolumntype{S}[2]
15975 \begin_layout Standard
15986 arrayrulewidth)*(1-#2))/#2}}
15989 \begin_layout Standard
15990 This format uses equation
15991 \begin_inset LatexCommand eqref
15996 to calculate the needed width so that each spanned cell has the same width.
15999 \begin_layout Standard
16003 \begin_layout Standard
16006 S{width of multicolumn cell}{number of spanned columns}
16009 \begin_layout Standard
16010 as LaTeX-argument of the column.
16013 \begin_layout Standard
16014 \begin_inset VSpace bigskip
16020 \begin_layout Standard
16021 For colored columns, you can define
16024 \begin_layout Standard
16029 newcolumntype{K}[1]{>{
16036 \begin_layout Standard
16038 \begin_inset Quotes eld
16042 \begin_inset Quotes erd
16045 at the end creates a column with a flexible width whose text is horizontally
16050 \begin_layout Standard
16056 \begin_layout Standard
16060 \begin_layout Standard
16061 \begin_inset VSpace bigskip
16067 \begin_layout Standard
16068 To create Table\InsetSpace ~
16070 \begin_inset LatexCommand ref
16071 reference "tab:Table-using-user-defined"
16075 use the LaTeX-arguments
16078 \begin_layout Standard
16084 \begin_layout Standard
16085 for the first column and the multicolumn,
16088 \begin_layout Standard
16094 \begin_layout Standard
16095 for the the last column, and
16098 \begin_layout Standard
16104 \begin_layout Standard
16105 for the cells in the second column.
16108 \begin_layout Standard
16109 \begin_inset Float table
16115 \begin_layout Standard
16116 \begin_inset Caption
16118 \begin_layout Standard
16119 \begin_inset LatexCommand label
16120 name "tab:Table-using-user-defined"
16124 Table using user-defined table formats
16132 \begin_layout Standard
16134 \begin_inset Tabular
16135 <lyxtabular version="3" rows="3" columns="4">
16137 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16138 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16139 <column alignment="center" valignment="middle" leftline="true" width="0">
16140 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16141 <row topline="true">
16142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16145 \begin_layout Standard
16146 verylongtablecellword
16151 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16154 \begin_layout Standard
16155 multiple lines multicolumn
16160 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16163 \begin_layout Standard
16169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16172 \begin_layout Standard
16179 <row topline="true">
16180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16183 \begin_layout Standard
16189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16192 \begin_layout Standard
16198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16201 \begin_layout Standard
16207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16210 \begin_layout Standard
16217 <row topline="true" bottomline="true">
16218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16221 \begin_layout Standard
16227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16230 \begin_layout Standard
16236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16239 \begin_layout Standard
16245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16248 \begin_layout Standard
16267 \begin_layout Subsection
16269 \begin_inset LatexCommand label
16270 name "sub:Line-Thickness"
16275 \begin_inset LatexCommand index
16276 name "Table Customization ! Line Thickness"
16283 \begin_layout Standard
16284 The line thickness for all lines in a table can be adjusted with the length
16292 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16293 pt, like in Table\InsetSpace ~
16295 \begin_inset LatexCommand ref
16296 reference "tab:Table-with-1.5"
16300 , insert the command
16303 \begin_layout Standard
16310 arrayrulewidth}{1.5pt}
16313 \begin_layout Standard
16314 in ERT before the table or table float.
16315 The changed thickness is valid for all following tables.
16316 To use the default value again, set
16322 to 0.4\InsetSpace \thinspace{}
16323 pt in ERT behind the table or table float.
16326 \begin_layout Standard
16330 \begin_layout Standard
16336 arrayrulewidth}{1.5pt}
16342 \begin_inset Float table
16347 \begin_layout Standard
16348 \begin_inset Caption
16350 \begin_layout Standard
16351 \begin_inset LatexCommand label
16352 name "tab:Table-with-1.5"
16356 Table with 1.5\InsetSpace \thinspace{}
16365 \begin_layout Standard
16367 \begin_inset Tabular
16368 <lyxtabular version="3" rows="3" columns="3">
16370 <column alignment="center" valignment="top" leftline="true" width="0">
16371 <column alignment="center" valignment="top" leftline="true" width="0">
16372 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16373 <row topline="true">
16374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16377 \begin_layout Standard
16383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16386 \begin_layout Standard
16392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16395 \begin_layout Standard
16402 <row topline="true">
16403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16406 \begin_layout Standard
16412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16415 \begin_layout Standard
16421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16424 \begin_layout Standard
16431 <row topline="true" bottomline="true">
16432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16435 \begin_layout Standard
16441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16444 \begin_layout Standard
16450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16453 \begin_layout Standard
16473 \begin_layout Standard
16479 arrayrulewidth}{0.4pt}
16487 \begin_layout Standard
16488 \begin_inset VSpace bigskip
16491 To set the line thickness to 1.5\InsetSpace \thinspace{}
16492 pt only for horizontal lines, like in Table\InsetSpace ~
16494 \begin_inset LatexCommand ref
16495 reference "tab:Table-with-horizontal"
16499 , insert these commands in ERT before the table or table float:
16502 \begin_layout Standard
16525 arrayrulewidth 1.5pt}
16535 arrayrulewidth 0.4pt}}
16538 \begin_layout Standard
16539 To return to the default line thickness, insert this command in ERT behind
16540 the table or table float:
16543 \begin_layout Standard
16555 \begin_layout Standard
16559 \begin_layout Standard
16570 \begin_layout Standard
16579 \begin_layout Standard
16587 arrayrulewidth 1.5pt}
16590 \begin_layout Standard
16600 arrayrulewidth 0.4pt}}
16606 \begin_inset Float table
16611 \begin_layout Standard
16612 \begin_inset Caption
16614 \begin_layout Standard
16615 \begin_inset LatexCommand label
16616 name "tab:Table-with-horizontal"
16620 Table with 1.5\InsetSpace \thinspace{}
16621 pt thick horizontal lines
16629 \begin_layout Standard
16631 \begin_inset Tabular
16632 <lyxtabular version="3" rows="3" columns="3">
16634 <column alignment="center" valignment="top" leftline="true" width="0">
16635 <column alignment="center" valignment="top" leftline="true" width="0">
16636 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16637 <row topline="true">
16638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16641 \begin_layout Standard
16647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16650 \begin_layout Standard
16656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16659 \begin_layout Standard
16666 <row topline="true">
16667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16670 \begin_layout Standard
16676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16679 \begin_layout Standard
16685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16688 \begin_layout Standard
16695 <row topline="true" bottomline="true">
16696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16699 \begin_layout Standard
16705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16708 \begin_layout Standard
16714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16717 \begin_layout Standard
16737 \begin_layout Standard
16753 \begin_layout Standard
16754 \begin_inset VSpace bigskip
16757 To set the line thickness to 1.5\InsetSpace \thinspace{}
16758 pt only for vertical lines, create the following
16759 column format in the document preamble, according to the description in
16760 section\InsetSpace ~
16762 \begin_inset LatexCommand ref
16763 reference "sub:Customized-Format"
16770 \begin_layout Standard
16775 newcolumntype{V}{!{
16777 vrule width 1.5pt}}
16780 \begin_layout Standard
16781 For Table\InsetSpace ~
16783 \begin_inset LatexCommand ref
16784 reference "tab:Table-with-vertical"
16791 \begin_layout Standard
16797 \begin_layout Standard
16798 was used for the last column and
16801 \begin_layout Standard
16807 \begin_layout Standard
16808 for the other columns.
16811 \begin_layout Standard
16812 \begin_inset Float table
16817 \begin_layout Standard
16818 \begin_inset Caption
16820 \begin_layout Standard
16821 \begin_inset LatexCommand label
16822 name "tab:Table-with-vertical"
16826 Table with 1.5\InsetSpace \thinspace{}
16827 pt thick vertical lines
16835 \begin_layout Standard
16837 \begin_inset Tabular
16838 <lyxtabular version="3" rows="3" columns="3">
16840 <column alignment="center" valignment="top" width="0" special="Vc">
16841 <column alignment="center" valignment="top" width="0" special="Vc">
16842 <column alignment="center" valignment="top" width="0" special="VcV">
16843 <row topline="true">
16844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16847 \begin_layout Standard
16853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16856 \begin_layout Standard
16862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16865 \begin_layout Standard
16872 <row topline="true">
16873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16876 \begin_layout Standard
16882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16885 \begin_layout Standard
16891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16894 \begin_layout Standard
16901 <row topline="true" bottomline="true">
16902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16905 \begin_layout Standard
16911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16914 \begin_layout Standard
16920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16923 \begin_layout Standard
16942 \begin_layout Subsection
16944 \begin_inset LatexCommand index
16945 name "Table Customization ! Dashed Lines"
16952 \begin_layout Standard
16956 \begin_layout Standard
16966 \begin_inset Note Note
16969 \begin_layout Standard
16970 The following section will only be displayed when you have the LaTeX-package
16983 \begin_layout Standard
16984 \begin_inset Float table
16990 \begin_layout Standard
16991 \begin_inset Caption
16993 \begin_layout Standard
16994 \begin_inset LatexCommand label
16995 name "tab:Table-with-dashed"
16999 Table with dashed lines
17007 \begin_layout Standard
17009 \begin_inset Tabular
17010 <lyxtabular version="3" rows="5" columns="5">
17012 <column alignment="center" valignment="top" leftline="true" width="0">
17013 <column alignment="center" valignment="top" leftline="true" width="0">
17014 <column alignment="center" valignment="top" width="0" special=":c">
17015 <column alignment="center" valignment="top" leftline="true" width="0">
17016 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
17017 <row topline="true" bottomline="true">
17018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17021 \begin_layout Standard
17027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17030 \begin_layout Standard
17036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17039 \begin_layout Standard
17045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17048 \begin_layout Standard
17054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17057 \begin_layout Standard
17064 <row topline="true">
17065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17068 \begin_layout Standard
17074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17077 \begin_layout Standard
17083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17086 \begin_layout Standard
17092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17095 \begin_layout Standard
17101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17104 \begin_layout Standard
17112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17115 \begin_layout Standard
17119 \begin_layout Standard
17133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17136 \begin_layout Standard
17142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17145 \begin_layout Standard
17151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17154 \begin_layout Standard
17160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17163 \begin_layout Standard
17170 <row topline="true">
17171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17174 \begin_layout Standard
17178 \begin_layout Standard
17192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17195 \begin_layout Standard
17201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17204 \begin_layout Standard
17210 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17213 \begin_layout Standard
17219 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17222 \begin_layout Standard
17229 <row topline="true" bottomline="true">
17230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17233 \begin_layout Standard
17239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17242 \begin_layout Standard
17248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17251 \begin_layout Standard
17257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17260 \begin_layout Standard
17266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17269 \begin_layout Standard
17288 \begin_layout Standard
17289 LyX doesn't natively support dashed lines, so you have to use ERT.
17290 As prerequisite the LaTeX-package
17295 \begin_inset LatexCommand index
17296 name "LaTeX-packages ! arydshln"
17300 must be loaded in the document preamble with the command
17303 \begin_layout Standard
17308 usepackage{arydshln}
17311 \begin_layout Standard
17312 To make a vertical line dashed, enter the colon
17313 \begin_inset Quotes eld
17317 \begin_inset Quotes erd
17320 together with the character for the horizontal alignment as LaTeX-argument
17321 in the table cell dialog.
17324 \begin_layout Standard
17325 For a horizontal dashed line add the command
17328 \begin_layout Standard
17336 \begin_layout Standard
17337 in ERT as first element of the first cell in the table row.
17340 \begin_layout Standard
17341 For dashed multicolumn lines use the command
17344 \begin_layout Standard
17349 cdashline{line number
17354 \begin_layout Standard
17355 in ERT as first element of the first cell in the table row.
17356 If you have for example a multicolumn spanning over columns 2 to 4 and
17357 you want to have a dashed line above, add the command
17360 \begin_layout Standard
17368 \begin_layout Standard
17369 as first element of the first cell in the row of the multicolumn.
17372 \begin_layout Standard
17373 \begin_inset VSpace bigskip
17379 \begin_layout Standard
17382 \begin_inset LatexCommand ref
17383 reference "tab:Table-with-dashed"
17388 \begin_inset Quotes eld
17396 \begin_inset Quotes erd
17399 as LaTeX-argument of the third column.
17406 was inserted to the first cell of the third row and the the ERT command
17415 was inserted to the first cell of the fourth row.
17418 \begin_layout Standard
17419 \begin_inset Note Greyedout
17422 \begin_layout Standard
17427 The used LaTeX-package
17431 is apparently not compatible with the LaTeX-package
17436 \begin_inset LatexCommand index
17437 name "LaTeX-packages ! colortbl"
17441 that is used for colored tables in section\InsetSpace ~
17443 \begin_inset LatexCommand ref
17444 reference "sec:Colored-Tables"
17449 That means colored tables cannot have dashed lines.
17457 \begin_layout Standard
17461 \begin_layout Standard
17471 \begin_inset Note Note
17474 \begin_layout Standard
17475 The following will be displayed when the LaTeX-package
17487 \begin_layout Standard
17488 You need to install the package
17492 to see the contents of this section in the output.
17495 \begin_layout Standard
17499 \begin_layout Standard
17511 \begin_layout Chapter
17513 \begin_inset LatexCommand index
17519 \begin_inset LatexCommand label
17527 \begin_layout Section
17529 \begin_inset LatexCommand label
17530 name "sec:FloatIntroduction"
17535 \begin_inset LatexCommand index
17536 name "Floats ! Introduction"
17543 \begin_layout Standard
17544 A float is a block of text associated with some sort of label, which doesn't
17545 have a fixed location.
17547 \begin_inset Quotes eld
17551 \begin_inset Quotes erd
17554 forward or backward a page or two, to wherever it fits best.
17561 Margin\InsetSpace ~
17564 are also floats, because they can float to the next page when there are
17565 too many notes at the page.
17568 \begin_layout Standard
17569 Floats allow a high quality layout.
17570 Images and tables can evenly be spread to the pages to avoid white space
17571 and pages without text.
17572 As the floating often destroys the context between the text and the image/table
17573 , every float can be referenced in the text.
17574 Floats are therefore numbered.
17575 Referencing is described in section\InsetSpace ~
17577 \begin_inset LatexCommand ref
17578 reference "sec:Referencing-Floats"
17585 \begin_layout Standard
17586 To insert a float, use the menu
17588 Insert\SpecialChar \menuseparator
17596 inset, a box with a label.
17597 The label will automatically be translated to the document language in
17599 Behind the label you can insert the caption text.
17600 The image or table is inserted above or below the caption in a separate
17601 paragraph within the float.
17602 More about the caption placement is described in section\InsetSpace ~
17604 \begin_inset LatexCommand ref
17605 reference "sec:Caption-Placement"
17610 To keep your LyX-document readable, you can open and close the float box
17611 by left-clicking on the box label.
17612 A closed float box looks like this:
17613 \begin_inset Graphics
17614 filename clipart/floatQt4.png
17616 scaleBeforeRotation
17620 -- a gray button with a red label.
17623 \begin_layout Standard
17624 It is recommended to insert floats as a separate paragraph to avoid possible
17625 LaTeX-errors that can occur when the surrounding text is specially formatted.
17628 \begin_layout Standard
17629 Existing figures or tables can be put into a float by marking them and then
17630 pressing the corresponding toolbar button for a new float.
17633 \begin_layout Section
17637 \begin_layout Standard
17638 Besides figure and table floats that are described in section\InsetSpace ~
17640 \begin_inset LatexCommand ref
17641 reference "sec:Figure-Floats"
17646 \begin_inset LatexCommand ref
17647 reference "sec:Table-Floats"
17651 , respectively, LyX offers the float types
17664 \begin_layout Subsection
17666 \begin_inset LatexCommand index
17667 name "Floats ! Algorithms"
17674 \begin_layout Standard
17675 \begin_inset Float algorithm
17681 \begin_layout Standard
17682 \begin_inset Caption
17684 \begin_layout Standard
17685 \begin_inset LatexCommand label
17686 name "alg:Example-Algorithm-float"
17690 Example Algorithm float
17698 \begin_layout LyX-Code
17701 Sum:= Sum + A(I); /*comment*/
17704 \begin_inset VSpace -4mm
17715 \begin_layout Standard
17716 This float type is inserted with the menu
17718 Insert\SpecialChar \menuseparator
17719 Floats\SpecialChar \menuseparator
17723 It is used for program codes and descriptions of algorithms.
17724 A possible environment for algorithms is the
17728 , described in LyX's
17733 Algorithm\InsetSpace ~
17735 \begin_inset LatexCommand ref
17736 reference "alg:Example-Algorithm-float"
17740 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17741 mm vertical space was added
17742 at the end of the float to have the bottom rule exactly below the last
17746 \begin_layout Standard
17747 The float label is not automatically translated into the document language.
17748 If your document is not in English, you have to do this manually by adding
17749 the following line to the document preamble
17754 \begin_layout Standard
17759 floatname{algorithm}{your\InsetSpace ~
17763 \begin_layout Standard
17770 \begin_inset Quotes eld
17778 \begin_inset Quotes erd
17784 \begin_layout Description
17789 When the LaTeX-package
17794 \begin_inset LatexCommand index
17795 name "LaTeX-packages ! hyperref"
17799 is used to link cross-references to floats in the PDF-output, it must be
17800 loaded in the document preamble before the definition of floats to be able
17801 to reference floats.
17802 As LyX sets the float definition for algorithm floats automatically before
17803 the user editable part of the document preamble, you need to insert the
17804 following preamble lines
17808 the loading command of
17815 \begin_inset VSpace defskip
17822 newfloat{Xalgorithm}{tbp}{loa}
17826 floatname{Xalgorithm}{your\InsetSpace ~
17839 renewenvironment{algorithm}[1][tbp]
17845 \begin_layout Standard
17856 begin{Xalgorithm}[#1]}{
17859 \begin_inset VSpace defskip
17865 \begin_layout Standard
17866 Algorithm floats are not by default numbered in the scheme
17867 \begin_inset Quotes eld
17871 \begin_inset Quotes erd
17874 like it is the case for table and figure floats in many document-classes.
17875 To number algorithm floats in the same scheme, add this command to your
17879 \begin_layout Standard
17884 numberwithin{algorithm}{chapter}
17887 \begin_layout Standard
17888 If you use the LaTeX-package
17892 , add this line instead
17900 (the commands from above) to the preamble:
17903 \begin_layout Standard
17908 numberwithin{Xalgorithm}{chapter}
17911 \begin_layout Standard
17912 To be able to use the command
17923 in the document settings the option
17933 \begin_layout Subsection
17935 \begin_inset LatexCommand index
17936 name "Floats ! Text Wrap Floats"
17941 \begin_inset LatexCommand label
17942 name "sub:floatflt-wrap-float"
17949 \begin_layout Standard
17950 This float type is used if you want to
17951 \begin_inset Quotes eld
17955 \begin_inset Quotes erd
17958 text around a figure so that it only occupies some fraction of the column
17960 It can be inserted using the menu
17961 \begin_inset Wrap figure
17966 \begin_layout Standard
17967 \begin_inset Graphics
17968 filename clipart/mobius.eps
17971 scaleBeforeRotation
17972 rotateOrigin center
17979 \begin_layout Standard
17980 \begin_inset Caption
17982 \begin_layout Standard
17983 \begin_inset LatexCommand label
17984 name "fig:This-is-a"
17988 This is a wrapped figure, and this is the brilliant caption that describes
17990 \begin_inset VSpace medskip
18005 Insert\SpecialChar \menuseparator
18006 Floats\SpecialChar \menuseparator
18011 if the LaTeX-package
18013 f\SpecialChar \textcompwordmark{}
18014 loatf\SpecialChar \textcompwordmark{}
18018 \begin_inset LatexCommand index
18019 name "LaTeX-packages ! floatflt"
18027 \begin_layout Standard
18028 Installing a LaTeX-package is explained it in the
18038 The width and placement of the float is adjusted by right-clicking on the
18040 Figure\InsetSpace ~
18042 \begin_inset LatexCommand ref
18043 reference "fig:This-is-a"
18047 is an example text wrap float with a width of 40
18048 \begin_inset Formula $\,$
18055 \begin_layout Standard
18056 Available units are explained in
18057 \begin_inset LatexCommand ref
18058 reference "cha:Units-available-in"
18067 Some space was added under the caption to separate it better from the surroundi
18071 \begin_layout Standard
18074 f\SpecialChar \textcompwordmark{}
18075 loatf\SpecialChar \textcompwordmark{}
18078 also supports table wrap floats, but they are not yet supported by LyX.
18079 If you need this, read the documentation of
18081 f\SpecialChar \textcompwordmark{}
18082 loatf\SpecialChar \textcompwordmark{}
18086 \begin_inset LatexCommand cite
18094 \begin_layout Standard
18095 \begin_inset Note Greyedout
18098 \begin_layout Standard
18104 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18106 having a figure too close to the bottom
18107 of the page can mess things up in the way that the float doesn't appear
18108 in the output or that it is placed over some other text.
18112 \begin_layout Standard
18113 The better solution is to use the LaTeX-package
18115 wrapf\SpecialChar \textcompwordmark{}
18119 \begin_inset LatexCommand index
18120 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18126 f\SpecialChar \textcompwordmark{}
18127 loatf\SpecialChar \textcompwordmark{}
18130 , but it is currently not supported by LyX.
18143 \begin_layout Standard
18147 \begin_layout Itemize
18148 Wrap floats should not be placed in paragraphs that run over a page break.
18149 That means that wrap floats should better be inserted to the exact place
18150 when the document is nearly finished and you are able to estimate where
18151 page breaks will appear.
18154 \begin_layout Itemize
18155 Wrap floats should either be placed in an own paragraph before the paragraph
18156 where they should wrap into or within a paragraph.
18159 \begin_layout Itemize
18160 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18161 there is a text paragraph between them as separator.
18164 \begin_layout Itemize
18165 Wrap floats are not allowed in section headings or tables.
18168 \begin_layout Section
18170 \begin_inset LatexCommand label
18171 name "sec:Float-Numbering"
18176 \begin_inset LatexCommand index
18177 name "Floats ! Numbering"
18184 \begin_layout Standard
18185 Floats are usually numbered either independent from the sections the floats
18186 are in, or in the scheme
18187 \begin_inset Quotes eld
18191 \begin_inset Quotes erd
18195 \begin_inset Quotes eld
18199 \begin_inset Quotes erd
18203 This depends on the used document class.
18206 \begin_layout Standard
18207 To change the section independent numbering, you can use this command in
18208 the document preamble:
18211 \begin_layout Standard
18223 \begin_layout Standard
18230 is the command that prints the table number, for figure floats, the command
18244 prints in the command above the table number as small roman number.
18247 \begin_layout Standard
18248 To change the numbering scheme for example to
18249 \begin_inset Quotes eld
18253 \begin_inset Quotes erd
18256 , use this command in the preamble:
18259 \begin_layout Standard
18264 numberwithin{table}{subsection}
18267 \begin_layout Standard
18268 To be able to use the command
18279 in the document settings the option
18289 \begin_layout Standard
18290 Please also have a look at section\InsetSpace ~
18292 \begin_inset LatexCommand ref
18293 reference "sub:Footnote-Numbering"
18297 for the details and important notes about the numbering commands.
18300 \begin_layout Section
18302 \begin_inset LatexCommand label
18303 name "sec:Referencing-Floats"
18308 \begin_inset LatexCommand index
18309 name "Floats ! References"
18314 \begin_inset LatexCommand index
18322 \begin_layout Standard
18323 To reference a float, insert a label into its caption using the menu
18325 Insert\SpecialChar \menuseparator
18328 or the toolbar button
18329 \begin_inset Graphics
18330 filename ../images/label-insert.xpm
18332 scaleBeforeRotation
18337 A grey label box like this one:
18338 \begin_inset Graphics
18339 filename clipart/labelQt4.png
18341 scaleBeforeRotation
18345 will be inserted and the label window pops up asking for the label text.
18346 LyX offers as text the first words of the caption with a prefix.
18347 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18349 for figure floats the prefix will
18357 \begin_layout Standard
18358 The label is used as anchor and name for the reference.
18359 You can refer to the label using the menu
18361 Insert\SpecialChar \menuseparator
18364 or the toolbar button
18365 \begin_inset Graphics
18366 filename ../images/dialog-show-new-inset_ref.xpm
18368 scaleBeforeRotation
18373 A grey cross-reference box like this one:
18374 \begin_inset Graphics
18375 filename clipart/referenceQt4.png
18377 scaleBeforeRotation
18381 will be inserted and the cross-reference window appear showing all labels
18383 If you have multiple LyX-documents opened, choose the one you are working
18384 on from the drop-list at the top of the dialog.
18385 You can now sort the labels alphabetically and then choose one.
18386 At the position of the cross-reference box the float number will appear
18390 \begin_layout Standard
18391 It is recommended to use a protected space between the cross-reference name
18392 and its number to avoid line breaks between them.
18393 If a cross-reference refers to a non-existing label, you will see two question
18394 marks in the output instead of the reference.
18397 \begin_layout Standard
18398 You can change labels at any time by clicking on the label box.
18399 References to the changed label will automatically change its link to the
18400 new label text, so that you don't need to take care about this.
18403 \begin_layout Standard
18410 in the cross-reference window sets the cursor before the referred label.
18411 The button text changes then to Go\InsetSpace ~
18412 Back and you can use it to set the cursor
18413 back to the cross-reference.
18414 Right-clicking on a cross-reference box also sets the cursor before the
18415 referenced label but without a possibility to go back.
18418 \begin_layout Subsection
18419 Cross-Reference Formats
18420 \begin_inset LatexCommand label
18421 name "sub:Cross-Reference-Formats"
18426 \begin_inset LatexCommand index
18427 name "References ! Formats"
18434 \begin_layout Standard
18435 There are six varieties of cross-references:
18438 \begin_layout Description
18439 <reference>: prints the float number, this is the default:
18440 \begin_inset LatexCommand ref
18441 reference "fig:Two-distorted-images"
18448 \begin_layout Description
18449 (<reference>): prints the float number within two parentheses, this is the
18450 style normally used to reference formulas, especially when the reference
18452 \begin_inset Quotes eld
18456 \begin_inset Quotes erd
18460 \begin_inset LatexCommand eqref
18468 \begin_layout Description
18469 <page>: prints the page number: Page\InsetSpace ~
18471 \begin_inset LatexCommand pageref
18472 reference "fig:Two-distorted-images"
18479 \begin_layout Description
18482 <page>: prints the text "on page" and the page number:
18483 \begin_inset LatexCommand vpageref
18484 reference "fig:Two-distorted-images"
18491 \begin_layout Description
18492 <reference>\InsetSpace ~
18495 <page>: prints the float number, the text "on page", and
18497 \begin_inset LatexCommand vref
18498 reference "fig:Two-distorted-images"
18505 \begin_layout Description
18506 Formatted\InsetSpace ~
18507 reference: prints a self defined cross-reference format.
18509 \begin_inset Note Greyedout
18512 \begin_layout Standard
18517 This feature is only available when you have the LaTeX-package
18529 \begin_layout Standard
18530 Note that the style <page> won't print the page number if the label is on
18531 the previous, the same, or the next page.
18532 You will e.\InsetSpace \thinspace{}
18535 \begin_inset Quotes eld
18543 \begin_inset Quotes erd
18549 \begin_layout Standard
18550 The number and current page of the referred document part in the output,
18551 is automatically calculated by LaTeX.
18552 The varieties are adjusted in the field
18556 of the cross-reference window, that appear when you click on the cross-referenc
18560 \begin_layout Subsection
18561 Referencing Subfigures
18562 \begin_inset LatexCommand label
18563 name "sub:Referencing-Subfigures"
18568 \begin_inset LatexCommand index
18569 name "References ! to Subfigures"
18576 \begin_layout Standard
18577 Currently referencing subfigures is not supported by LyX, so you have to
18578 use LaTeX-commands.
18579 The label is the created with the command
18582 \begin_layout Standard
18587 label{fig:YourLabelName}
18590 \begin_layout Standard
18591 that is directly inserted into the subfigure caption field.
18592 To reference the label add this command in ERT
18595 \begin_layout Standard
18600 ref{fig:YourLabelName}
18603 \begin_layout Standard
18604 to the position in your document where the reference should be placed.
18605 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18610 \begin_layout Standard
18622 \begin_layout Subsection
18623 Automatic Reference Naming
18624 \begin_inset LatexCommand index
18625 name "References ! Automatic Reference Naming"
18632 \begin_layout Standard
18637 provides a very useful feature that cross-references automatically include
18638 the name of the referenced floats (or text parts like sections).
18639 You save to write e.\InsetSpace \thinspace{}
18642 \begin_inset Quotes eld
18646 \begin_inset Quotes erd
18649 before every reference box.
18650 To get this automatic reference naming, you have to load the LaTeX-package
18656 \begin_inset LatexCommand index
18657 name "LaTeX-packages ! hyperref"
18661 in the document preamble with
18664 \begin_layout Standard
18669 usepackage[pdfborder={0 0 0}]{hyperref}
18684 \begin_layout Standard
18689 is used to link cross-references in the DVI- and PDF-output, this means
18690 that the reader of your document will be able to click on a table of content
18691 (TOC) entry or on a reference and he will be shown the referenced document
18697 also creates PDF-bookmarks for every section of your document to make it
18698 easier for readers to navigate through the document.
18699 This is also used in this document but when you have a look in the document
18700 preamble you will find various options in the load command of
18705 To learn more about the
18709 package, we refer to its documentation
18710 \begin_inset LatexCommand cite
18718 \begin_layout Standard
18719 \begin_inset Note Greyedout
18722 \begin_layout Standard
18727 Automatic reference naming cannot be used when you use cross-references
18730 Formatted\InsetSpace ~
18733 style, described in section\InsetSpace ~
18735 \begin_inset LatexCommand ref
18736 reference "sub:Cross-Reference-Formats"
18748 \begin_layout Subsection
18750 \begin_inset LatexCommand label
18751 name "sub:Reference-Position"
18756 \begin_inset LatexCommand index
18757 name "References ! Reference Position"
18764 \begin_layout Standard
18770 \begin_inset LatexCommand index
18771 name "LaTeX-packages ! hyperref"
18775 to link cross-references in the output, you will see that clicking on an
18776 image float reference jumps to the image label.
18777 The caption will be the first text part on the screen, so that you cannot
18778 see the image without scrolling.
18779 This is because the reference link anchor is placed at the position of
18781 With the use of the package
18786 \begin_inset LatexCommand index
18787 name "LaTeX-packages ! hypcap"
18791 , which is part of the LaTeX-package
18796 \begin_inset LatexCommand index
18797 name "LaTeX-packages ! oberdiek"
18801 , the link anchor is placed at the beginning of a float.
18802 To use this feature for figure floats, load
18806 in the document preamble with the line
18809 \begin_layout Standard
18814 usepackage[f\SpecialChar \textcompwordmark{}
18818 \begin_layout Standard
18823 for all floats but this isn't recommended for stability reasons.
18824 For more informations, have a look at
18829 \begin_inset LatexCommand cite
18837 \begin_layout Standard
18838 \begin_inset Note Greyedout
18841 \begin_layout Standard
18850 must be loaded after
18854 in the document preamble.
18862 \begin_layout Standard
18863 \begin_inset Note Greyedout
18866 \begin_layout Standard
18875 has no effect for references to subfigures.
18883 \begin_layout Section
18885 \begin_inset LatexCommand label
18886 name "sec:Float-Placement"
18891 \begin_inset LatexCommand index
18892 name "Floats ! Placement"
18899 \begin_layout Standard
18900 Right-clicking on a float-box opens a dialog where you can alter the placement
18901 options that LaTeX uses for positioning the float.
18908 is only useful for two-column documents: If you select it, the float will
18909 span across both columns on the page instead of being confined to just
18914 Rotate\InsetSpace ~
18917 is used to rotate floats, see section
18918 \begin_inset LatexCommand ref
18919 reference "sec:Rotated-Floats"
18926 \begin_layout Standard
18927 You can use one ore more of the following options in the float dialog to
18928 set the placement for a particular float when you uncheck the option
18931 default\InsetSpace ~
18937 \begin_layout Description
18940 possible try to place the float on the position where it is inserted
18943 \begin_layout Description
18946 page try to place the float on the top of the current page
18949 \begin_layout Description
18950 Bottom\InsetSpace ~
18952 page try to place the float on the bottom of the current page
18955 \begin_layout Description
18958 floats try to place the float on an own page
18961 \begin_layout Standard
18962 The order of the above option is
18967 That means, if you use the default placement, LaTeX will first try out
18980 , and then the others.
18981 If you don't use the default, LaTeX will try only the checked options but
18983 If none of the 4 placements are possible the procedure is internally repeated
18984 but it is tried to put the float on the following page.
18987 \begin_layout Standard
18988 By default, each option has its own rules:
18991 \begin_layout Labeling
18992 \labelwidthstring 00.00.0000
18999 only floats occupying less than 70\InsetSpace \thinspace{}
19000 % of the page can be placed at the top
19010 \begin_layout Labeling
19011 \labelwidthstring 00.00.0000
19014 Bottom\InsetSpace ~
19018 : only floats occupying less than 30\InsetSpace \thinspace{}
19019 % of the page can be placed at the bottom
19030 \begin_layout Labeling
19031 \labelwidthstring 00.00.0000
19038 : only if more than 50\InsetSpace \thinspace{}
19039 % of the page are occupied by floats, several floats
19040 can be set together on a page.
19050 \begin_layout Standard
19051 If you don't like these rules, you can ignore them by using the additional
19054 Ignore\InsetSpace ~
19060 You can also redefine the rules with LaTeX-commands that are given in parenthese
19061 s behind the rules description above.
19062 To increase for example the often too small default of the bottom-rule
19063 to 50\InsetSpace \thinspace{}
19064 % of the page, add this line to your document preamble:
19067 \begin_layout Standard
19074 bottomfraction}{0.5}
19077 \begin_layout Standard
19078 Sometimes you might need, under all circumstances, a float to be placed
19079 exactly at the position where it is inserted.
19080 For this case you can use the option
19086 Use this option very rarely and only if the document is nearly ready to
19088 Because the float is then no longer able to
19089 \begin_inset Quotes eld
19093 \begin_inset Quotes erd
19096 when you change your document and this will often destroy the page layout.
19099 \begin_layout Standard
19100 There are no placement options for text wrap floats, because they are always
19101 surrounded by the text of a certain paragraph.
19102 \begin_inset VSpace bigskip
19108 \begin_layout Standard
19109 Sometimes you have the problem that a float is placed at the top of a page
19110 while its corresponding section starts at the middle of the page, so that
19111 the reader could think the float is part of the previous section.
19112 To avoid this the LaTeX-command
19116 suppressf\SpecialChar \textcompwordmark{}
19120 It suppresses a given float placement for the page where it is inserted
19121 and can therefore be used to avoid that floats could be set before a section
19123 To get this, add these commands to your document preamble:
19126 \begin_layout Standard
19143 suppressf\SpecialChar \textcompwordmark{}
19149 \begin_layout Standard
19150 You can define the same for all section headings, like chapters and subsections.
19151 This definition is not recommended to be used for small text parts like
19152 subsubsections because LaTeX may then have problems to find a suitable
19156 \begin_layout Standard
19157 \begin_inset VSpace bigskip
19160 In some cases it is required to have all figures/tables at the end of the
19162 For this purpose the LaTeX-package
19164 endf\SpecialChar \textcompwordmark{}
19168 \begin_inset LatexCommand index
19169 name "LaTeX-packages ! endfloat"
19174 It puts all figure and table floats at the end of the document into own
19176 At the original float position a text hint like
19177 \begin_inset Quotes eld
19182 [Figure\InsetSpace ~
19186 \begin_inset Quotes erd
19190 The endfloat-package is loaded in the preamble with the line
19193 \begin_layout Standard
19198 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19202 \begin_layout Standard
19203 There are various package options to format the created figure/table sections.
19204 For more information we refer to the
19206 endf\SpecialChar \textcompwordmark{}
19210 \begin_inset LatexCommand cite
19218 \begin_inset Note Greyedout
19221 \begin_layout Standard
19224 Note: endf\SpecialChar \textcompwordmark{}
19227 doesn't provide an automatic translation for the text hint, you have to
19228 do this manually, see section\InsetSpace ~
19230 \begin_inset LatexCommand cite
19243 \begin_inset Note Greyedout
19246 \begin_layout Standard
19251 There is currently a bug in
19253 endf\SpecialChar \textcompwordmark{}
19256 when the caption contains a German
19257 \begin_inset Quotes eld
19261 \begin_inset Quotes erd
19265 Use in this case the command
19266 \begin_inset Quotes eld
19276 \begin_inset Quotes erd
19280 \begin_inset Quotes eld
19284 \begin_inset Quotes erd
19295 \begin_layout Standard
19296 \begin_inset VSpace bigskip
19299 For more details about float placements, have a look at LaTeX books,
19300 \begin_inset LatexCommand cite
19301 key "latexcompanion,latexguide,latexbook"
19308 \begin_layout Section
19310 \begin_inset LatexCommand label
19311 name "sec:Rotated-Floats"
19316 \begin_inset LatexCommand index
19317 name "Floats ! Rotating"
19324 \begin_layout Standard
19325 Especially for wide tables you might have floats rotated.
19326 To rotate a whole float including the caption, right-click on the float-box
19329 Rotate\InsetSpace ~
19335 \begin_layout Standard
19336 Rotated floats are always placed on its own page (or column, when you have
19337 a two-column document).
19338 They are normally rotated so that you can read them from the outside margin
19339 -- to the left on even pages, to the right on odd pages.
19340 To force a certain rotation direction for all pages, you can add either
19343 f\SpecialChar \textcompwordmark{}
19348 f\SpecialChar \textcompwordmark{}
19351 to the document class options.
19354 \begin_layout Standard
19355 Referencing rotated floats is the same like for normal floats, the caption
19356 format is also the same: Table\InsetSpace ~
19358 \begin_inset LatexCommand ref
19359 reference "tab:Rotated-table"
19363 is an example of a rotated table float.
19366 \begin_layout Standard
19367 \begin_inset Note Greyedout
19370 \begin_layout Standard
19375 Not all DVI-viewers are able to display rotated floats.
19383 \begin_layout Standard
19384 \begin_inset Float table
19389 \begin_layout Standard
19390 \begin_inset Caption
19392 \begin_layout Standard
19393 \begin_inset LatexCommand label
19394 name "tab:Rotated-table"
19406 \begin_layout Standard
19408 \begin_inset Tabular
19409 <lyxtabular version="3" rows="1" columns="5">
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" width="0">
19414 <column alignment="center" valignment="top" leftline="true" width="0">
19415 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19416 <row topline="true" bottomline="true">
19417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19420 \begin_layout Standard
19426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19429 \begin_layout Standard
19435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19438 \begin_layout Standard
19444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19447 \begin_layout Standard
19453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19456 \begin_layout Standard
19475 \begin_layout Section
19477 \begin_inset LatexCommand index
19478 name "Caption ! Formatting"
19483 \begin_inset LatexCommand index
19484 name "Floats ! Caption Formatting"
19489 \begin_inset LatexCommand index
19490 name "LaTeX-packages ! caption"
19495 \begin_inset LatexCommand label
19496 name "sec:Caption-Formatting"
19503 \begin_layout Standard
19508 environment is the default paragraph environment for
19513 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19516 \begin_inset Quotes eld
19524 \begin_inset Quotes erd
19527 followed by the caption text.
19529 \begin_inset Quotes eld
19533 \begin_inset Quotes erd
19536 is the actual reference number.
19537 By default the label and the number are in the same font as the caption
19538 text and a colon follows the number to divide the label from the text.
19539 This caption format is not suitable for all document formats.
19543 \begin_layout Standard
19544 To change the default caption format, load the LaTeX-package
19549 \begin_inset LatexCommand index
19550 name "LaTeX-packages ! caption"
19554 in the document preamble with this line:
19557 \begin_layout Standard
19562 usepackage[format definition]{caption}
19565 \begin_layout Standard
19566 To have for example the label and the number in sans-serif bold font and
19567 the table captions always above the table like in this document, use the
19571 \begin_layout Standard
19576 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19579 \begin_layout Standard
19580 You can also define different caption formats for the different float types.
19581 In this case load the
19585 package without format specific options and define the different formats
19586 with the help of the command
19589 \begin_layout Standard
19594 captionsetup[float type]{format definition}
19597 \begin_layout Standard
19598 in the document preamble.
19599 For example the caption formats of Figure\InsetSpace ~
19601 \begin_inset LatexCommand ref
19602 reference "fig:This-is-an-fig"
19606 and Table\InsetSpace ~
19608 \begin_inset LatexCommand ref
19609 reference "tab:This-is-an-tab"
19613 can be created using these commands in the document preamble:
19616 \begin_layout Standard
19621 usepackage[tableposition=top]{caption}
19629 captionsetup[f\SpecialChar \textcompwordmark{}
19630 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19636 \begin_layout Standard
19644 captionsetup[figure]
19655 captionsetup[table]{labelfont={bf,sf}}
19658 \begin_layout Standard
19659 \begin_inset Note Greyedout
19662 \begin_layout Standard
19671 has no effect when a
19676 \begin_inset LatexCommand index
19677 name "LaTeX-packages ! koma-script"
19681 document class is used.
19682 In this case the document class option
19694 \begin_layout Standard
19695 For more information about the package
19699 we refer to its documentation
19700 \begin_inset LatexCommand cite
19701 key "caption,caption-de"
19708 \begin_layout Standard
19709 To change the label name from e.g.
19711 \begin_inset Quotes eld
19715 \begin_inset Quotes erd
19719 \begin_inset Quotes eld
19723 \begin_inset Quotes erd
19726 use this preamble command:
19729 \begin_layout Standard
19736 fnum@figure}{Image~
19741 \begin_layout Standard
19748 inserts the figure number and
19751 \begin_inset Quotes eld
19757 \begin_inset Quotes erd
19760 creates a protected space.
19763 \begin_layout Standard
19764 \begin_inset VSpace bigskip
19772 \begin_inset LatexCommand index
19773 name "LaTeX-packages ! koma-script"
19779 article (koma-script)
19787 letter (koma-script)
19791 report (koma-script)
19793 \InsetSpace \thinspace{}
19794 ), you can alternatively to the
19802 's built-in command
19809 For example, to have the caption label in bold, add this command to your
19813 \begin_layout Standard
19818 setkomafont{captionlabel}{
19823 \begin_layout Standard
19824 For more information about
19835 \begin_inset LatexCommand cite
19836 key "koma-script,koma-script-de"
19843 \begin_layout Standard
19847 \begin_layout Standard
19851 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19858 \begin_inset Note Note
19861 \begin_layout Standard
19862 The caption format is changed only for this example.
19870 \begin_layout Standard
19871 \begin_inset Float figure
19877 \begin_layout Standard
19879 \begin_inset Graphics
19880 filename clipart/mobius.eps
19883 scaleBeforeRotation
19890 \begin_layout Standard
19891 \begin_inset Caption
19893 \begin_layout Standard
19894 \begin_inset LatexCommand label
19895 name "fig:This-is-an-fig"
19899 This is an example figure caption that is longer than one line to show the
19900 different caption format.
19901 Here a self-defined caption format is used.
19914 \begin_layout Standard
19918 \begin_layout Standard
19922 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19931 \begin_layout Standard
19932 \begin_inset Float table
19938 \begin_layout Standard
19939 \begin_inset Caption
19941 \begin_layout Standard
19942 \begin_inset LatexCommand label
19943 name "tab:This-is-an-tab"
19947 This is an example table caption that is longer than one line to show the
19948 different caption format.
19949 Here the standard caption format for tables in this document is used.
19957 \begin_layout Standard
19959 \begin_inset Tabular
19960 <lyxtabular version="3" rows="1" columns="5">
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" width="0">
19965 <column alignment="center" valignment="top" leftline="true" width="0">
19966 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19967 <row topline="true" bottomline="true">
19968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19971 \begin_layout Standard
19977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19980 \begin_layout Standard
19986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19989 \begin_layout Standard
19995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19998 \begin_layout Standard
20004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20007 \begin_layout Standard
20026 \begin_layout Section
20028 \begin_inset LatexCommand index
20029 name "Caption ! Placement"
20034 \begin_inset LatexCommand index
20035 name "Floats ! Caption Placement"
20040 \begin_inset LatexCommand label
20041 name "sec:Caption-Placement"
20048 \begin_layout Standard
20049 The common caption placement rule is:
20052 \begin_layout Description
20053 Figure: Caption is set below the figure
20056 \begin_layout Description
20057 Table: Caption is set above the table
20060 \begin_layout Standard
20061 Having the caption above the table is unfortunately not supported in LaTeX's
20063 That means if you are using the document classes
20079 there will be no space between the caption and the table.
20080 To insert the needed space, add the following option to the load command
20081 of the LaTeX-package
20085 in your document preamble
20089 \begin_layout Standard
20090 See section\InsetSpace ~
20092 \begin_inset LatexCommand ref
20093 reference "sec:Caption-Formatting"
20097 for more information of the package
20109 \begin_layout Standard
20115 \begin_layout Standard
20121 \begin_inset LatexCommand index
20122 name "LaTeX-packages ! koma-script"
20128 article (koma-script)
20136 letter (koma-script)
20140 report (koma-script)
20142 \InsetSpace \thinspace{}
20143 ), you can alternatively to the
20147 package set the document class option
20154 \begin_layout Standard
20155 \begin_inset VSpace bigskip
20158 It is also possible to set the caption beside a figure or table.
20159 To get this the LaTeX-package
20164 \begin_inset LatexCommand index
20165 name "LaTeX-packages ! sidecap"
20169 has to be loaded in the document preamble with the line
20172 \begin_layout Standard
20177 usepackage[option]{sidecap}
20180 \begin_layout Standard
20181 If you set no option, the caption is placed on the side of the outer page
20182 margin -- to the right on odd pages, to the left on even pages.
20183 You can change the placement to inner margin with the option
20188 To force the placement always to the right or left, use the option
20199 \begin_layout Standard
20200 To place in LyX the caption of a float on the side, it is necessary to add
20201 these commands to the document preamble:
20204 \begin_layout Standard
20210 \begin_layout Standard
20223 \begin_layout Standard
20244 \begin_layout Standard
20265 \begin_layout Standard
20276 renewenvironment{table}{
20283 \begin_layout Standard
20296 \begin_layout Standard
20317 \begin_layout Standard
20335 \begin_layout Standard
20348 \begin_layout Standard
20363 f\SpecialChar \textcompwordmark{}
20370 \begin_layout Standard
20383 MyEndf\SpecialChar \textcompwordmark{}
20386 endf\SpecialChar \textcompwordmark{}
20393 \begin_layout Standard
20404 renewenvironment{f\SpecialChar \textcompwordmark{}
20407 begin{SCf\SpecialChar \textcompwordmark{}
20410 end{SCf\SpecialChar \textcompwordmark{}
20414 \begin_layout Standard
20427 \begin_layout Standard
20440 f\SpecialChar \textcompwordmark{}
20449 \begin_layout Standard
20462 endf\SpecialChar \textcompwordmark{}
20465 MyEndf\SpecialChar \textcompwordmark{}
20469 \begin_layout Standard
20475 \begin_layout Standard
20476 The commands allow you to redefine the floats so that the caption is set
20478 For figure floats use the command
20481 \begin_layout Standard
20489 \begin_layout Standard
20490 in ERT before the float.
20491 Behind the float insert the command
20494 \begin_layout Standard
20502 \begin_layout Standard
20503 in ERT to get back to the original float definition.
20506 \begin_layout Standard
20507 For table floats use the corresponding commands
20510 \begin_layout Standard
20524 \begin_layout Standard
20525 Figure\InsetSpace ~
20527 \begin_inset LatexCommand ref
20528 reference "fig:cap-beside-fig"
20532 and Table\InsetSpace ~
20534 \begin_inset LatexCommand ref
20535 reference "tab:cap-beside-tab"
20539 are examples where the caption is set beside.
20542 \begin_layout Standard
20543 You can see in the examples that the caption text appears at the top of
20544 the floats for table floats and at the bottom for figure floats.
20545 To change this, you can use the command
20548 \begin_layout Standard
20553 sidecaptionvpos{float type}{placement}
20556 \begin_layout Standard
20557 in the document preamble or in ERT before the float.
20558 The float type is either
20566 , the placement can be
20567 \begin_inset Quotes eld
20575 \begin_inset Quotes erd
20579 \begin_inset Quotes eld
20587 \begin_inset Quotes erd
20591 \begin_inset Quotes eld
20599 \begin_inset Quotes erd
20603 To have for example the caption of figure floats vertically centered, use
20607 \begin_layout Standard
20612 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20616 \begin_layout Standard
20617 This was used for Figure\InsetSpace ~
20619 \begin_inset LatexCommand ref
20620 reference "fig:cap-beside-fig-2"
20627 \begin_layout Standard
20628 \begin_inset VSpace medskip
20631 For more information about the package
20635 we refer to its documentation
20636 \begin_inset LatexCommand cite
20644 \begin_layout Standard
20645 \begin_inset Note Greyedout
20648 \begin_layout Standard
20658 \begin_inset LatexCommand index
20659 name "LaTeX-packages ! hypcap"
20663 , described in section\InsetSpace ~
20665 \begin_inset LatexCommand ref
20666 reference "sub:Reference-Position"
20670 , has no effect on floats with the caption set beside.
20678 \begin_layout Standard
20682 \begin_layout Standard
20694 \begin_layout Standard
20695 \begin_inset Float figure
20700 \begin_layout Standard
20701 \begin_inset Graphics
20702 filename clipart/escher-lsd.eps
20704 scaleBeforeRotation
20711 \begin_layout Standard
20712 \begin_inset Caption
20714 \begin_layout Standard
20715 \begin_inset LatexCommand label
20716 name "fig:cap-beside-fig"
20720 This is a caption beside a figure.
20733 \begin_layout Standard
20737 \begin_layout Standard
20749 \begin_layout Standard
20750 \begin_inset Float table
20755 \begin_layout Standard
20756 \begin_inset Caption
20758 \begin_layout Standard
20759 \begin_inset LatexCommand label
20760 name "tab:cap-beside-tab"
20764 This is a caption beside a table.
20772 \begin_layout Standard
20773 \begin_inset Tabular
20774 <lyxtabular version="3" rows="4" columns="5">
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" width="0">
20779 <column alignment="center" valignment="top" leftline="true" width="0">
20780 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20781 <row topline="true">
20782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20785 \begin_layout Standard
20791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20794 \begin_layout Standard
20800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20803 \begin_layout Standard
20809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20812 \begin_layout Standard
20818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20821 \begin_layout Standard
20828 <row topline="true">
20829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20832 \begin_layout Standard
20838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20841 \begin_layout Standard
20847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20850 \begin_layout Standard
20856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20859 \begin_layout Standard
20865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20868 \begin_layout Standard
20875 <row topline="true">
20876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20879 \begin_layout Standard
20885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20888 \begin_layout Standard
20894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20897 \begin_layout Standard
20903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20906 \begin_layout Standard
20912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20915 \begin_layout Standard
20922 <row topline="true" bottomline="true">
20923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20926 \begin_layout Standard
20932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20935 \begin_layout Standard
20941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20944 \begin_layout Standard
20950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20953 \begin_layout Standard
20959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20962 \begin_layout Standard
20981 \begin_layout Standard
20985 \begin_layout Standard
20997 \begin_layout Standard
21001 \begin_layout Standard
21005 sidecaptionvpos{figure}{c}
21011 \begin_inset Float figure
21016 \begin_layout Standard
21017 \begin_inset Graphics
21018 filename clipart/escher-lsd.eps
21020 scaleBeforeRotation
21027 \begin_layout Standard
21028 \begin_inset Caption
21030 \begin_layout Standard
21031 \begin_inset LatexCommand label
21032 name "fig:cap-beside-fig-2"
21036 This is a vertically centered caption beside a figure.
21049 \begin_layout Standard
21053 \begin_layout Standard
21065 \begin_layout Section
21067 \begin_inset LatexCommand label
21068 name "sec:Listings-of-Floats"
21073 \begin_inset LatexCommand index
21074 name "Floats ! Float Lists"
21081 \begin_layout Standard
21082 Similar to the the table of contents where the sections of the document
21083 are listed, there are listings for all float types, like the figures of
21085 You can insert them via the
21087 Insert\SpecialChar \menuseparator
21095 \begin_layout Standard
21096 The list entries are the float captions or its short title, the float number,
21097 and the page number where they appear in the document.
21100 \begin_layout Standard
21101 You can find the list of figures and tables at the end of this document.
21104 \begin_layout Chapter
21108 \begin_layout Section
21112 \begin_layout Standard
21125 \begin_layout Standard
21133 \begin_inset LatexCommand label
21134 name "sec:LyX-Notes"
21139 \begin_inset LatexCommand index
21140 name "Notes ! LyX Notes"
21145 \begin_inset Note Note
21148 \begin_layout Standard
21151 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21152 are displayed wrongly in PDF-bookmarks.
21153 For more information about this, have a look at
21154 \begin_inset LatexCommand cite
21167 \begin_layout Standard
21168 Notes are inserted with the toolbar button
21169 \begin_inset Graphics
21170 filename ../images/note-insert.xpm
21172 scaleBeforeRotation
21178 Insert\SpecialChar \menuseparator
21182 There are five types of notes:
21185 \begin_layout Description
21187 Note This note type is for internal notes that won't appear in the output.
21188 Its note-box looks like this:
21193 \begin_inset Graphics
21194 filename clipart/LyXNoteImageQt4.png
21197 scaleBeforeRotation
21202 \begin_inset Note Note
21205 \begin_layout Standard
21206 This is text in a note box that doesn't appear in the output.
21214 \begin_layout Description
21215 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21216 ent, when you export the document to LaTeX via the menu
21218 File\SpecialChar \menuseparator
21219 Export\SpecialChar \menuseparator
21220 LaTeX (pdflatex) / LaTeX (plain)
21223 Its note-box looks like this:
21228 \begin_inset Graphics
21229 filename clipart/CommentNoteImageQt4.png
21232 scaleBeforeRotation
21237 \begin_inset Note Comment
21240 \begin_layout Standard
21241 This is text in a note box that only appears as comment in LaTeX-files.
21249 \begin_layout Description
21250 Greyed\InsetSpace ~
21251 Out This note will appear in the output as grey text.
21252 Its note-box looks like this:
21257 \begin_inset Graphics
21258 filename clipart/GreyedOutNoteImageQt4.png
21261 scaleBeforeRotation
21271 \begin_layout Standard
21275 renewenvironment{lyxgreyedout}
21278 \begin_layout Standard
21282 textcolor[gray]{0.8}
21292 \begin_inset Note Greyedout
21295 \begin_layout Standard
21300 \begin_layout Standard
21301 This is an example footnote within a greyed out note.
21306 of a comment that appears in the output as grey text.
21315 \begin_layout Standard
21319 renewenvironment{lyxgreyedout}
21322 \begin_layout Standard
21336 \begin_inset Note Note
21339 \begin_layout Standard
21340 The greyed out note is here redefined to show it with the original LyX definitio
21341 n because greyed out notes are redefined in the preamble of this document,
21342 as described below, to have blue text.
21351 As you can see in the example, the first line of greyed out notes is a bit
21352 indented and greyed out notes can have footnotes.
21355 \begin_layout Description
21356 Framed This note will appear in the output as framed text.
21357 Its note-box looks like this:
21362 \begin_inset Graphics
21363 filename clipart/FramedNoteImageQt4.png
21366 scaleBeforeRotation
21371 \begin_inset Note Framed
21374 \begin_layout Standard
21375 This is text in a note box that appears framed in the output.
21380 In contrary to framed boxes
21384 \begin_layout Standard
21385 Framed boxes are described in section\InsetSpace ~
21387 \begin_inset LatexCommand ref
21388 reference "sec:Framed-Boxes"
21397 the frame uses always the whole text width and the note is set into its
21401 \begin_layout Description
21402 Shaded This note will appear in the output with red background color.
21403 Its note box looks like this:
21408 \begin_inset Graphics
21409 filename clipart/ShadedNoteImageQt4.png
21412 scaleBeforeRotation
21417 \begin_inset Note Shaded
21420 \begin_layout Standard
21421 This text in a note box appears in the output with red background.
21426 In contrary to colored boxes
21430 \begin_layout Standard
21431 Colored boxes are described in section\InsetSpace ~
21433 \begin_inset LatexCommand ref
21434 reference "sec:Colored-Boxes"
21443 the note uses always the whole text width and the note is set into its
21447 \begin_layout Standard
21448 \begin_inset VSpace bigskip
21451 When you use the toolbar button
21452 \begin_inset Graphics
21453 filename ../images/note-insert.xpm
21455 scaleBeforeRotation
21465 You can switch between the five note types by right-clicking on the note-box.
21470 If you want to turn existing text into a note, mark it and click on the
21486 \begin_layout Standard
21487 \begin_inset VSpace bigskip
21490 You can change the text color of the greyed out notes in the preamble with
21491 the following command:
21494 \begin_layout Standard
21499 renewenvironment{lyxgreyedout}
21505 \begin_layout Standard
21523 \begin_layout Standard
21524 The available colors and the method to define own colors is explained in
21525 section\InsetSpace ~
21527 \begin_inset LatexCommand ref
21528 reference "sec:Colored-Tables"
21535 \begin_layout Standard
21536 Notes that appear in blue in this document are set using greyed out notes
21540 \begin_layout Standard
21541 \begin_inset VSpace bigskip
21547 \begin_layout Standard
21556 notes can be set in the
21563 \begin_layout Standard
21564 The default frame width for
21568 notes is 0.4\InsetSpace \thinspace{}
21569 pt; it can be changed by changing the size
21576 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21578 be changed by changing the size
21585 For example the frame appearance of the following
21589 note is set with the ERT commands
21592 \begin_layout Standard
21602 \begin_layout Standard
21606 \begin_layout Standard
21618 \begin_inset Note Framed
21621 \begin_layout Standard
21635 \begin_layout Standard
21649 \begin_layout Standard
21650 \begin_inset VSpace bigskip
21656 \begin_layout Standard
21661 notes the default space between the note content and the note border is
21662 3\InsetSpace \thinspace{}
21663 pt; it can be changed by changing the size
21671 The default background color red can be changed with the command
21675 def\SpecialChar \textcompwordmark{}
21683 def\SpecialChar \textcompwordmark{}
21686 command is explained in section\InsetSpace ~
21688 \begin_inset LatexCommand ref
21689 reference "sec:Colored-Tables"
21697 \begin_layout Standard
21704 \SpecialChar \textcompwordmark{}
21709 requires the LaTeX-package
21713 in the preamble, see section\InsetSpace ~
21715 \begin_inset LatexCommand ref
21716 reference "sec:Colored-Boxes"
21728 \begin_layout Standard
21729 For example the appearance of the following
21733 note is set with the ERT commands
21736 \begin_layout Standard
21749 def\SpecialChar \textcompwordmark{}
21750 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21753 \begin_layout Standard
21757 \begin_layout Standard
21770 \begin_layout Standard
21774 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21780 \begin_inset Note Shaded
21783 \begin_layout Standard
21786 This is yellow text in a
21796 note with darkgreen background.
21805 \begin_layout Standard
21818 \begin_layout Standard
21822 definecolor{shadecolor}{rgb}{1,0,0}
21830 \begin_layout Section
21832 \begin_inset LatexCommand label
21833 name "sec:Footnotes"
21838 \begin_inset LatexCommand index
21839 name "Notes ! Footnotes"
21844 \begin_inset LatexCommand index
21852 \begin_layout Standard
21853 Footnotes can be inserted using the toolbar button
21854 \begin_inset Graphics
21855 filename ../images/footnote-insert.xpm
21857 scaleBeforeRotation
21863 Insert\SpecialChar \menuseparator
21875 then the following footnote-box:
21876 \begin_inset Graphics
21877 filename clipart/footnoteQt4.png
21879 scaleBeforeRotation
21887 where you can enter the footnote text.
21888 If you want to turn existing text into a footnote, mark it and click on
21904 \begin_layout Standard
21905 Here is an example footnote:
21913 \begin_layout Standard
21914 \begin_inset LatexCommand label
21915 name "foot:This-is-an"
21919 This is an example footnote.
21932 \begin_layout Standard
21936 newcounter{MyRepeatFoot}
21939 \begin_layout Standard
21943 setcounter{MyRepeatFoot}{
21953 \begin_layout Standard
21954 The footnote will appear in the output as a superscript number at the text
21955 position where the footnote box is placed.
21956 The footnote text is placed at the bottom of the current page.
21957 The footnote number is calculated by LaTeX, the numbers are consecutive.
21958 It depends on your document-class, if the footnote number is reset for
21962 \begin_layout Standard
21963 Footnotes can be referenced like floats: Insert a label into the footnote
21964 and cross-reference this label in the text as described in section\InsetSpace ~
21966 \begin_inset LatexCommand ref
21967 reference "sec:Referencing-Floats"
21973 This is a cross-reference of Footnote\InsetSpace ~
21975 \begin_inset LatexCommand ref
21976 reference "foot:This-is-an"
21983 \begin_layout Standard
21984 \begin_inset VSpace defskip
21987 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21989 \begin_inset LatexCommand ref
21990 reference "sec:Minipages"
21995 Footnotes within longtables are described in section\InsetSpace ~
21997 \begin_inset LatexCommand ref
21998 reference "sub:Footnotes-in-Longtables"
22005 \begin_layout Standard
22006 \begin_inset VSpace defskip
22009 To create only a mark for a footnote, use the command
22013 footnotemark[number]
22016 This is used when you have the same annotation several times in a text
22017 but doesn't want to print the footnote text every time.
22020 the number of the repeating footnote while you are writing the text, you
22021 have to store its number.
22022 For the following footnote mark example, these commands were inserted in
22023 ERT behind Footnote\InsetSpace ~
22025 \begin_inset LatexCommand ref
22026 reference "foot:This-is-an"
22030 to store the footnote number:
22033 \begin_layout Standard
22038 newcounter{MyRepeatFoot}
22042 setcounter{MyRepeatFoot}{
22047 \begin_layout Standard
22048 The footnote mark was then created with this command:
22051 \begin_layout Standard
22061 \begin_layout Standard
22062 Here is an example footnote mark:
22070 \begin_layout Standard
22084 \begin_layout Subsection
22086 \begin_inset LatexCommand label
22087 name "sub:Footnote-Numbering"
22092 \begin_inset LatexCommand index
22093 name "Footnotes ! Numbering"
22100 \begin_layout Standard
22101 To reset the footnote number back to 1 after each section
22103 , add this command to your document preamble:
22106 \begin_layout Standard
22111 @addtoreset{footnote}{section}
22114 \begin_layout Standard
22115 \begin_inset VSpace bigskip
22118 The following preamble command changes the footnote numbering style to small
22122 \begin_layout Standard
22134 \begin_layout Standard
22138 \begin_layout Standard
22151 This is a footnote with roman numbering:
22155 \begin_layout Standard
22156 This is an example footnote with roman numbering.
22164 \begin_layout Standard
22165 To change the numbering style to capital roman numerals replace in the command
22180 \begin_inset Quotes eld
22184 \begin_inset Quotes erd
22187 footnotes with capital or small Latin letters use
22201 \begin_inset Quotes eld
22205 \begin_inset Quotes erd
22208 footnotes with symbols use
22217 \begin_layout Standard
22218 \begin_inset Note Greyedout
22221 \begin_layout Standard
22226 You can only number 26 footnotes with Latin letters, because this numbering
22227 is limited to single letters.
22235 \begin_inset Note Greyedout
22238 \begin_layout Standard
22243 You can only number 9 footnotes with symbols.
22251 \begin_layout Standard
22252 To return to the default numbering style when you changed to another one,
22265 in the command above.
22269 \begin_layout Standard
22285 \begin_layout Standard
22286 \begin_inset VSpace bigskip
22292 \begin_layout Standard
22293 If you want to have footnotes numbered in the scheme
22294 \begin_inset Quotes eld
22298 \begin_inset Quotes erd
22301 , add the following command to your document preamble:
22304 \begin_layout Standard
22309 numberwithin{footnote}{chapter}
22312 \begin_layout Standard
22313 To be able to use the command
22324 in the document settings the option
22334 \begin_layout Standard
22338 \begin_layout Standard
22342 numberwithin{footnote}{chapter}
22347 This is another example footnote:
22353 \begin_layout Standard
22354 This is a footnote numbered in the scheme
22355 \begin_inset Quotes eld
22359 \begin_inset Quotes erd
22373 \begin_layout Standard
22389 \begin_layout Standard
22390 \begin_inset Note Greyedout
22393 \begin_layout Standard
22404 always prints out the footnote number as arabic number; previous redefinitions
22405 to get non-arabic numbers are overwritten.
22413 \begin_layout Standard
22414 So to get for example the scheme
22415 \begin_inset Quotes eld
22421 \begin_inset Quotes erd
22424 , use this command instead of
22433 \begin_layout Standard
22447 \begin_layout Subsection
22449 \begin_inset LatexCommand index
22450 name "Footnotes ! Placement"
22457 \begin_layout Standard
22458 If you have several footnotes in one page, they appear without vertical
22459 space between them at the bottom of the page.
22460 To make them better readable you can e.\InsetSpace \thinspace{}
22462 add 1.5\InsetSpace \thinspace{}
22463 mm space with the following
22467 \begin_layout Standard
22489 \begin_layout Standard
22490 \begin_inset VSpace bigskip
22493 In a two-column document the footnotes appear at the bottom of every column,
22494 see Figure\InsetSpace ~
22496 \begin_inset LatexCommand ref
22497 reference "fig:Standard-footnote-placement"
22502 If the footnotes should only appear at the bottom of the right column,
22503 as in Figure\InsetSpace ~
22505 \begin_inset LatexCommand ref
22506 reference "fig:Footnote-placement-in"
22510 , use the LaTeX-package
22515 \begin_inset LatexCommand index
22516 name "LaTeX-packages ! ftnright"
22520 with this command in the document preamble:
22523 \begin_layout Standard
22528 usepackage{ftnright}
22531 \begin_layout Standard
22532 \begin_inset Float figure
22538 \begin_layout Standard
22542 \begin_layout Standard
22552 \begin_inset Graphics
22553 filename clipart/without_fntright.pdf
22555 scaleBeforeRotation
22563 \begin_layout Standard
22573 \begin_layout Standard
22574 \begin_inset Caption
22576 \begin_layout Standard
22577 \begin_inset LatexCommand label
22578 name "fig:Standard-footnote-placement"
22582 Standard footnote placement in two-column documents.
22595 \begin_layout Standard
22596 \begin_inset Float figure
22602 \begin_layout Standard
22606 \begin_layout Standard
22616 \begin_inset Graphics
22617 filename clipart/with_fntright.pdf
22619 scaleBeforeRotation
22627 \begin_layout Standard
22637 \begin_layout Standard
22638 \begin_inset Caption
22640 \begin_layout Standard
22641 \begin_inset LatexCommand label
22642 name "fig:Footnote-placement-in"
22646 Footnote placement in two-column documents when the LaTeX-package
22663 \begin_layout Standard
22664 \begin_inset VSpace bigskip
22667 In some scientific literature it is usual to collect the footnotes and print
22668 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22670 \begin_inset LatexCommand ref
22671 reference "fig:Endnotes----footnotes"
22676 They are then so called
22677 \begin_inset Quotes eld
22681 \begin_inset Quotes erd
22685 To use endnotes instead of footnotes in your document, load the LaTeX-package
22691 \begin_inset LatexCommand index
22692 name "LaTeX-packages ! endnotes"
22696 with the document preamble lines
22699 \begin_layout Standard
22704 usepackage{endnotes}
22715 \begin_layout Standard
22716 To insert the collected footnotes, insert the command
22719 \begin_layout Standard
22727 \begin_layout Standard
22728 in ERT at the the end of a section or chapter.
22731 \begin_layout Standard
22732 \begin_inset Float figure
22737 \begin_layout Standard
22742 \begin_layout Standard
22752 \begin_inset Graphics
22753 filename clipart/endnotes.pdf
22754 scaleBeforeRotation
22762 \begin_layout Standard
22772 \begin_layout Standard
22773 \begin_inset Caption
22775 \begin_layout Standard
22776 \begin_inset LatexCommand label
22777 name "fig:Endnotes----footnotes"
22781 Endnotes -- footnotes are printed in a separate paragraph at the end of
22782 sections or chapters.
22795 \begin_layout Standard
22796 \begin_inset VSpace medskip
22799 The paragraph heading for the endnotes isn't automatically translated into
22800 the document language, this must be done manually.
22801 The following preamble command translate the default English name
22802 \begin_inset Quotes eld
22806 \begin_inset Quotes erd
22809 to the German translation
22810 \begin_inset Quotes eld
22814 \begin_inset Quotes erd
22820 \begin_layout Standard
22827 notesname}{Anmerkungen}
22830 \begin_layout Standard
22831 \begin_inset VSpace medskip
22834 The numbering of endnotes can be changed like the footnote numbering as
22835 described in section\InsetSpace ~
22837 \begin_inset LatexCommand ref
22838 reference "sub:Footnote-Numbering"
22842 ; just replace the command
22855 To reset the endnote number use the command
22861 as described in section\InsetSpace ~
22863 \begin_inset LatexCommand ref
22864 reference "sub:Footnote-Numbering"
22868 and replace the command parameter
22879 \begin_layout Standard
22880 To create only a mark for an endnote, use the command
22884 endnotemark[number]
22886 similar to the command
22892 , described in section\InsetSpace ~
22894 \begin_inset LatexCommand ref
22895 reference "sec:Footnotes"
22902 \begin_layout Standard
22903 \begin_inset VSpace bigskip
22906 Footnotes can also be placed in the page margin and the footnote text alignment
22907 can be changed, see the LaTeX-package
22912 \begin_inset LatexCommand index
22913 name "LaTeX-packages ! footmisc"
22918 \begin_inset LatexCommand cite
22923 for more information about this.
22926 \begin_layout Standard
22927 For various further footnote formatting issues have a look at LaTeX-books,
22929 \begin_inset LatexCommand cite
22930 key "latexcompanion,latexguide,latexbook"
22937 \begin_layout Section
22939 \begin_inset LatexCommand index
22940 name "Notes ! Margin Notes"
22947 \begin_layout Standard
22948 Margin notes look and behave in LyX like footnotes.
22949 They are inserted via the menu
22951 Insert\SpecialChar \menuseparator
22952 Marginal\InsetSpace ~
22955 or the toolbar button
22956 \begin_inset Graphics
22957 filename ../images/marginalnote-insert.xpm
22959 scaleBeforeRotation
22974 \begin_inset Quotes eld
22978 \begin_inset Quotes erd
22981 appears where you can enter the text of the margin note.
22984 \begin_layout Standard
22985 At the side is an example margin note.
22989 \begin_inset Marginal
22992 \begin_layout Standard
22993 This is a margin note.
23001 \begin_layout Standard
23002 Margin notes appear at the right side in single-sided documents.
23003 In double-sided documents they appear in the outer margin -- left on even
23004 pages, right on odd pages.
23005 The text of margin notes is aligned opposite to the outer margin -- right-align
23006 ed when the note appears in the left margin.
23007 The first line of the margin note is placed at the position of the text
23008 line where it is inserted in the document.
23011 \begin_layout Standard
23012 \begin_inset VSpace bigskip
23015 To place the margin note in the inner margin, add the command
23018 \begin_layout Standard
23026 \begin_layout Standard
23027 in ERT before a margin note.
23028 The new placement is valid for all following margin notes.
23032 \begin_layout Standard
23042 \begin_inset Marginal
23045 \begin_layout Standard
23046 This is a margin note in the inner margin.
23058 \begin_inset Note Greyedout
23061 \begin_layout Standard
23066 There is often not enough space in the inner margin so that the notes are
23067 not correctly displayed in the output.
23075 \begin_layout Standard
23076 To return to the default placement insert the command
23079 \begin_layout Standard
23087 \begin_layout Standard
23092 \begin_layout Standard
23102 \begin_inset Note Greyedout
23105 \begin_layout Standard
23110 The command is ignored when it is within a paragraph where also the command
23125 \begin_layout Standard
23126 \begin_inset VSpace bigskip
23133 \begin_inset Marginal
23136 \begin_layout Standard
23137 AVeryLongMarginParWord that isn't hyphenated.
23145 Similar to the case described in section\InsetSpace ~
23147 \begin_inset LatexCommand ref
23148 reference "sub:Multiple-Lines-in"
23152 , long words cannot be hyphenated when they are the first word in a margin
23154 To avoid this, insert the command
23157 \begin_layout Standard
23165 \begin_layout Standard
23166 in ERT before the word
23170 \begin_inset Marginal
23173 \begin_layout Standard
23177 \begin_layout Standard
23186 AVeryLongMarginParWord that is hyphenated.
23194 \begin_layout Standard
23195 \begin_inset VSpace bigskip
23201 \begin_layout Standard
23202 \begin_inset Note Greyedout
23205 \begin_layout Standard
23210 Margin notes can normally not be used inside tables, floats, and footnotes.
23218 \begin_layout Standard
23219 \begin_inset VSpace bigskip
23225 \begin_layout Standard
23229 \begin_layout Standard
23239 \begin_inset Note Note
23242 \begin_layout Standard
23243 The following section will only be displayed when you have the LaTeX-package
23256 \begin_layout Standard
23257 This restriction can be evaded by using the LaTeX-package
23262 \begin_inset LatexCommand index
23263 name "LaTeX-packages ! marginnote"
23268 By adding these two lines to your document preamble, the command used by
23269 LyX for margin notes is redefined to use the command provided by the
23276 \begin_layout Standard
23281 usepackage{marginnote}
23292 \begin_layout Standard
23293 This is also used in this document because
23297 has another useful feature: You can set a vertical offset for the note.
23298 This is often needed when too many margin notes are too close together
23299 or for a better page layout.
23300 The offset is set in LyX as ERT directly behind the margin note in the
23304 \begin_layout Standard
23310 \begin_layout Standard
23311 where the offset is a length with one of the units listed in Table\InsetSpace ~
23313 \begin_inset LatexCommand ref
23314 reference "tab:Units"
23319 A negative value shifts the note up, a positive value shifts it down.
23323 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23326 \begin_inset Quotes eld
23336 \begin_inset Quotes erd
23340 \begin_inset Marginal
23343 \begin_layout Standard
23344 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23345 cm from its original position.
23357 \begin_layout Standard
23367 \begin_layout Standard
23368 \begin_inset VSpace medskip
23375 you can also change the alignment of the text in the margin note.
23376 For example the commands
23379 \begin_layout Standard
23386 raggedleftmarginnote}{
23394 raggedrightmarginnote}{
23399 \begin_layout Standard
23400 set the alignment to centered.
23405 raggedleftmarginnote
23407 denotes margin notes that appear at the left side.
23414 \begin_layout Standard
23420 raggedleftmarginnote}{
23425 \begin_layout Standard
23431 raggedrightmarginnote}{
23439 \begin_inset Marginal
23442 \begin_layout Standard
23443 The text of this margin note is centered.
23454 \begin_layout Standard
23461 raggedleftmarginnote}{
23469 raggedrightmarginnote}{
23478 \begin_layout Standard
23484 raggedleftmarginnote}{
23489 \begin_layout Standard
23495 raggedrightmarginnote}{
23505 \begin_layout Standard
23506 \begin_inset VSpace medskip
23509 For the other features of
23513 we refer to its documentation
23514 \begin_inset LatexCommand cite
23522 \begin_layout Standard
23523 \begin_inset VSpace bigskip
23526 You can adjust the layout of margin notes by changing its definition.
23527 To create for example a header for all margin notes with the underlined,
23528 sans-serif, and bold header text
23529 \begin_inset Quotes eld
23541 \begin_inset Quotes erd
23544 , add this to your document preamble:
23547 \begin_layout Standard
23570 \begin_layout Standard
23587 underbar{Attention!}}}%
23593 \begin_layout Standard
23611 \begin_layout Standard
23618 \begin_layout Standard
23629 \begin_layout Standard
23640 \begin_layout Standard
23648 underbar{Attention!}}}%
23651 \begin_layout Standard
23665 \begin_inset Marginal
23668 \begin_layout Standard
23669 This is a margin note with a defined heading.
23681 \begin_layout Standard
23695 \begin_layout Standard
23712 \begin_inset Note Note
23715 \begin_layout Standard
23716 The margin note format is changed only for this example.
23724 \begin_layout Standard
23728 \begin_layout Standard
23738 \begin_inset Note Note
23741 \begin_layout Standard
23742 The following will be displayed when the LaTeX-package
23754 \begin_layout Standard
23755 You need to install the LaTeX-package
23759 to see the following part of this section in the output.
23762 \begin_layout Standard
23766 \begin_layout Standard
23778 \begin_layout Chapter
23782 \begin_layout Section
23784 \begin_inset LatexCommand index
23785 name "Boxes ! Introduction"
23792 \begin_layout Standard
23793 Boxes are used to format a block of text.
23794 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23796 \begin_inset LatexCommand ref
23797 reference "sec:Minipages"
23801 , to frame texts, see section\InsetSpace ~
23803 \begin_inset LatexCommand ref
23804 reference "sec:Framed-Boxes"
23808 , to prevent words to be hyphenated, see section\InsetSpace ~
23810 \begin_inset LatexCommand ref
23811 reference "sec:Prevent-Hyphenation"
23815 , to align text, see section\InsetSpace ~
23817 \begin_inset LatexCommand ref
23818 reference "sub:Vertical-Alignment"
23822 , or to set the background color of texts, see section\InsetSpace ~
23824 \begin_inset LatexCommand ref
23825 reference "sec:Colored-Boxes"
23832 \begin_layout Standard
23833 Boxes can be inserted with the menu
23835 Insert\SpecialChar \menuseparator
23839 A grey box with the label
23844 \begin_inset Graphics
23845 filename clipart/BoxInsetDefaultQt4.png
23847 scaleBeforeRotation
23851 , will be inserted.
23852 The box type can be specified by right-clicking on the box.
23853 The appearing box dialog offers the
23871 is the default for new boxes and is explained in section\InsetSpace ~
23873 \begin_inset LatexCommand ref
23874 reference "sec:Minipages"
23882 is described in section\InsetSpace ~
23884 \begin_inset LatexCommand ref
23885 reference "sec:Parboxes"
23892 \begin_layout Standard
23893 Boxes aren't numbered and can therefore not be referenced like floats or
23897 \begin_layout Standard
23898 \begin_inset Note Greyedout
23901 \begin_layout Standard
23906 Due to a bug in LyX you have to insert a protected space behind a box when
23907 you want to separate in a line the box from the following text with a space.
23915 \begin_layout Standard
23916 \begin_inset Note Greyedout
23919 \begin_layout Standard
23924 Boxes must not be the item in an
23940 \begin_layout Standard
23941 \begin_inset Note Greyedout
23944 \begin_layout Standard
23949 For an unknown reason you can only set the
23958 when you use a framed box.
23964 type and without frames are explained in section\InsetSpace ~
23966 \begin_inset LatexCommand ref
23967 reference "sec:Prevent-Hyphenation"
23979 \begin_layout Section
23981 \begin_inset LatexCommand label
23982 name "sec:Box-Dialog"
23987 \begin_inset LatexCommand index
23988 name "Boxes ! Box Dialog"
23993 \begin_inset LatexCommand index
23994 name "Boxes ! Alignment"
24001 \begin_layout Standard
24002 In the box dialog you can adjust the box geometry in the fields
24011 The available units for the geometry are explained in Table\InsetSpace ~
24013 \begin_inset LatexCommand ref
24014 reference "tab:Units"
24023 offers the following additional sizes:
24026 \begin_layout Description
24027 Depth This is the plain text
24028 \begin_inset Quotes eld
24032 \begin_inset Quotes erd
24036 It ignores the total depth when there are multiple text lines in the box:
24043 \begin_inset Box Boxed
24052 height_special "depth"
24055 \begin_layout Standard
24057 Box height set to 1\InsetSpace \thinspace{}
24070 \begin_layout Description
24071 Height This is the heigth of the text that is inside the box.
24072 A value of e.\InsetSpace \thinspace{}
24074 2 for this size will set the box heigth to 2 times the text
24076 \begin_inset Box Boxed
24085 height_special "height"
24088 \begin_layout Standard
24090 Box height set to 2\InsetSpace \thinspace{}
24099 \begin_layout Description
24101 Height This is the Height\InsetSpace \thinspace{}
24102 +\InsetSpace \thinspace{}
24104 \begin_inset Box Boxed
24113 height_special "totalheight"
24116 \begin_layout Standard
24118 Box height set to 1\InsetSpace \thinspace{}
24128 \begin_layout Description
24129 Width This set the width of the box as heigth:
24130 \begin_inset Box Boxed
24139 height_special "width"
24142 \begin_layout Standard
24144 Box height set to 1\InsetSpace \thinspace{}
24153 \begin_layout Standard
24154 \begin_inset VSpace bigskip
24157 When you have chosen an
24162 , the vertical box alignment can be:
24165 \begin_layout Description
24166 Top This is an example text line.
24168 \begin_inset Box Boxed
24177 height_special "totalheight"
24180 \begin_layout Standard
24182 This box is top-aligned.
24188 This is an example text line.
24191 \begin_layout Description
24192 Middle This is an example text line.
24194 \begin_inset Box Boxed
24203 height_special "totalheight"
24206 \begin_layout Standard
24208 This box is middle-aligned.
24214 This is an example text line.
24217 \begin_layout Description
24218 Bottom This is an example text line.
24220 \begin_inset Box Boxed
24229 height_special "totalheight"
24232 \begin_layout Standard
24234 This box is bottom-aligned.
24240 This is an example text line.
24243 \begin_layout Standard
24244 The horizontal box alignment can be set via LyX's paragraph dialog when
24245 you set the box into its own paragraph.
24248 \begin_layout Standard
24249 \begin_inset VSpace bigskip
24252 When you have chosen an
24257 , the box content can be vertical aligned to:
24260 \begin_layout Description
24261 top This is an example text line.
24263 \begin_inset Box Boxed
24272 height_special "totalheight"
24275 \begin_layout Standard
24277 This box text is top-aligned.
24283 This is an example text line.
24286 \begin_layout Description
24287 middle This is an example text line.
24289 \begin_inset Box Boxed
24298 height_special "totalheight"
24301 \begin_layout Standard
24303 This box text is middle-aligned.
24309 This is an example text line.
24312 \begin_layout Description
24313 bottom This is an example text line.
24315 \begin_inset Box Boxed
24324 height_special "totalheight"
24327 \begin_layout Standard
24329 This box text is bottom-aligned.
24335 This is an example text line.
24338 \begin_layout Description
24339 stretch This is an example text line.
24341 \begin_inset Box Boxed
24350 height_special "totalheight"
24353 \begin_layout Standard
24358 \begin_layout Standard
24363 \begin_layout Standard
24371 This is an example text line.
24374 \begin_layout Standard
24375 To stretch the box content, it must consist of more than one paragraph.
24376 In the example above every text line is in an own paragraph.
24379 \begin_layout Standard
24380 \begin_inset VSpace bigskip
24383 To align the box content horizontally you can use LyX's paragraph dialog
24384 when you have chosen an
24392 \begin_layout Standard
24394 \begin_inset Box Boxed
24403 height_special "totalheight"
24406 \begin_layout Standard
24411 \begin_layout Standard
24416 \begin_layout Standard
24426 \begin_layout Standard
24427 If you haven't set an
24432 , you can align the box content horizontally in the box dialog.
24435 \begin_layout Standard
24437 \begin_inset Box Boxed
24446 height_special "totalheight"
24449 \begin_layout Standard
24451 This box text is horizontally stretched.
24459 \begin_layout Section
24461 \begin_inset LatexCommand label
24462 name "sec:Framed-Boxes"
24467 \begin_inset LatexCommand index
24468 name "Boxes ! Frames"
24475 \begin_layout Standard
24476 The frame style of the box can be specified in the box-dialog in the drop-down
24482 The following frame types are possible:
24485 \begin_layout Description
24486 Rectangular\InsetSpace ~
24487 box This draws a rectangle frame around the box.
24488 The frame line thickness has the size of
24496 \begin_inset Box Boxed
24505 height_special "totalheight"
24508 \begin_layout Standard
24518 \begin_layout Description
24521 thin This draws an oval frame around the box.
24522 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24525 \begin_inset Box ovalbox
24534 height_special "totalheight"
24537 \begin_layout Standard
24547 \begin_layout Description
24550 thick This draws an oval frame around the box.
24551 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24554 \begin_inset Box Ovalbox
24563 height_special "totalheight"
24566 \begin_layout Standard
24576 \begin_layout Description
24577 Shadow\InsetSpace ~
24578 box This draws a rectangle frame with a shadow around the box.
24579 The frame line thickness has the size of
24585 , the shadow has a width of 4\InsetSpace \thinspace{}
24588 \begin_inset Box Shadowbox
24597 height_special "totalheight"
24600 \begin_layout Standard
24610 \begin_layout Description
24611 Double\InsetSpace ~
24612 box This draws a double-line rectangle frame around the box.
24613 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24620 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24628 The distance between the lines is 1.5\InsetSpace \thinspace{}
24635 \InsetSpace \thinspace{}
24636 +\InsetSpace \thinspace{}
24637 0.5\InsetSpace \thinspace{}
24640 \begin_inset Box Doublebox
24649 height_special "totalheight"
24652 \begin_layout Standard
24662 \begin_layout Standard
24663 \begin_inset VSpace bigskip
24666 LyX's box label will change to the used frame style when you set a frame.
24667 To be able to use the different frame styles, the LaTeX-package
24672 \begin_inset LatexCommand index
24673 name "LaTeX-packages ! fancybox"
24680 \begin_layout Standard
24681 \begin_inset VSpace bigskip
24684 The default value for the size
24690 is 0.4\InsetSpace \thinspace{}
24692 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24694 2\InsetSpace \thinspace{}
24698 \begin_layout Standard
24708 \begin_layout Standard
24712 \begin_layout Standard
24724 \begin_inset Box Boxed
24733 height_special "totalheight"
24736 \begin_layout Standard
24738 Rectangular box with
24744 \InsetSpace \thinspace{}
24745 =\InsetSpace \thinspace{}
24746 2\InsetSpace \thinspace{}
24756 \begin_layout Standard
24770 \begin_layout Standard
24771 \begin_inset VSpace bigskip
24774 The space between the frame and the box content is for all frame styles
24775 by default 3\InsetSpace \thinspace{}
24777 You can change it by setting the length
24784 For example the command
24787 \begin_layout Standard
24797 \begin_layout Standard
24798 sets the value to 10\InsetSpace \thinspace{}
24799 pt, like for the following box:
24802 \begin_layout Standard
24806 \begin_layout Standard
24818 \begin_inset Box Boxed
24827 height_special "totalheight"
24830 \begin_layout Standard
24832 Rectangular box with
24838 \InsetSpace \thinspace{}
24839 =\InsetSpace \thinspace{}
24840 10\InsetSpace \thinspace{}
24850 \begin_layout Standard
24864 \begin_layout Standard
24865 \begin_inset VSpace bigskip
24868 The diameter of the round corners of the oval boxes can be set with the
24879 \begin_layout Standard
24887 \begin_layout Standard
24888 sets the diameter to 1\InsetSpace \thinspace{}
24893 \begin_layout Standard
24901 \begin_layout Standard
24902 sets the diameter to
24904 num\InsetSpace \thinspace{}
24905 ×\InsetSpace \thinspace{}
24906 minimum(width and heigth of box)
24918 \begin_layout Standard
24922 \begin_layout Standard
24932 \begin_inset Box Ovalbox
24941 height_special "totalheight"
24944 \begin_layout Standard
24952 \InsetSpace \thinspace{}
24953 =\InsetSpace \thinspace{}
24954 1.5\InsetSpace \thinspace{}
24964 \begin_layout Standard
24976 \begin_layout Standard
24977 \begin_inset VSpace bigskip
24980 The size of the shadow can be adjusted by changing the length
24987 It it set to 2\InsetSpace \thinspace{}
24988 pt for the following box by this command:
24991 \begin_layout Standard
25001 \begin_layout Standard
25005 \begin_layout Standard
25017 \begin_inset Box Shadowbox
25026 height_special "totalheight"
25029 \begin_layout Standard
25037 \InsetSpace \thinspace{}
25038 =\InsetSpace \thinspace{}
25039 2\InsetSpace \thinspace{}
25049 \begin_layout Standard
25063 \begin_layout Standard
25064 \begin_inset VSpace bigskip
25067 Changed lengths and widths are valid for all boxes following the commands
25071 \begin_layout Section
25073 \begin_inset LatexCommand label
25074 name "sec:Minipages"
25079 \begin_inset LatexCommand index
25080 name "Boxes ! Minipages"
25087 \begin_layout Standard
25088 Minipages are treated by LaTeX as pages within pages and can therefore for
25089 example have their own footnotes.
25092 \begin_layout Standard
25093 Minipages are useful when you write documents with different languages.
25096 \begin_layout Standard
25097 Below are two example minipages side by side.
25098 Their width is set to 45\InsetSpace \thinspace{}
25099 col% and they are separated by a horizontal fill,
25100 that was inserted via the menu
25102 Insert\SpecialChar \menuseparator
25103 Special\InsetSpace ~
25104 Formatting\SpecialChar \menuseparator
25105 Horizontal\InsetSpace ~
25111 \begin_layout Standard
25112 \begin_inset Box Frameless
25121 height_special "totalheight"
25124 \begin_layout Standard
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.
25138 Dies ist ein deutscher Text.
25139 Dies ist ein deutscher Text
25143 \begin_layout Standard
25146 Dies ist eine deutsche Fußnote.
25152 Dies ist ein deutscher Text.
25153 Dies ist ein deutscher Text.
25161 \begin_inset Box Frameless
25170 height_special "totalheight"
25173 \begin_layout Standard
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.
25188 This is an English Text.
25189 This is an English Text.
25193 \begin_layout Standard
25194 This is an English footnote.
25199 This is an English Text.
25208 \begin_layout Standard
25209 \begin_inset VSpace bigskip
25212 Another application for minipages are footnotes within tables.
25213 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25214 bottom of the current page.
25215 But when you put the table with the footnote to a minipage, the footnote
25216 will appear at its bottom, numbered with Latin letters.
25217 The footnote number is reset to 1 in every minipage but not outside the
25221 \begin_layout Standard
25222 The footnote of this table doesn't appear:
25223 \begin_inset Tabular
25224 <lyxtabular version="3" rows="3" columns="4">
25226 <column alignment="center" valignment="top" leftline="true" width="0pt">
25227 <column alignment="center" valignment="top" leftline="true" width="0pt">
25228 <column alignment="center" valignment="top" leftline="true" width="0pt">
25229 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25230 <row topline="true">
25231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25234 \begin_layout Standard
25240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25243 \begin_layout Standard
25249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25252 \begin_layout Standard
25257 \begin_layout Standard
25258 This is a footnote within a table.
25268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25271 \begin_layout Standard
25278 <row topline="true">
25279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25282 \begin_layout Standard
25288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25291 \begin_layout Standard
25297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25300 \begin_layout Standard
25306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25309 \begin_layout Standard
25316 <row topline="true" bottomline="true">
25317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25320 \begin_layout Standard
25326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25329 \begin_layout Standard
25335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25338 \begin_layout Standard
25344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25347 \begin_layout Standard
25361 \begin_layout Standard
25363 \begin_inset Box Frameless
25372 height_special "totalheight"
25375 \begin_layout Standard
25377 \begin_inset Tabular
25378 <lyxtabular version="3" rows="3" columns="4">
25380 <column alignment="center" valignment="top" leftline="true" width="0pt">
25381 <column alignment="center" valignment="top" leftline="true" width="0pt">
25382 <column alignment="center" valignment="top" leftline="true" width="0pt">
25383 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25384 <row topline="true">
25385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25388 \begin_layout Standard
25394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25397 \begin_layout Standard
25403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25406 \begin_layout Standard
25411 \begin_layout Standard
25412 This is a footnote within a table.
25422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25425 \begin_layout Standard
25432 <row topline="true">
25433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25436 \begin_layout Standard
25442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25445 \begin_layout Standard
25451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25454 \begin_layout Standard
25460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25463 \begin_layout Standard
25470 <row topline="true" bottomline="true">
25471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25474 \begin_layout Standard
25480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25483 \begin_layout Standard
25489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25492 \begin_layout Standard
25498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25501 \begin_layout Standard
25520 \begin_layout Standard
25521 \begin_inset VSpace bigskip
25524 The document-wide paragraph settings are ignored within minipages.
25525 That means that there will be no space between paragraphs in minipages
25526 although you set it to e.\InsetSpace \thinspace{}
25532 in the document settings.
25535 \begin_layout Standard
25536 Minipages can also be used to set a background color for text parts, see
25537 section\InsetSpace ~
25539 \begin_inset LatexCommand ref
25540 reference "sub:Color-for-Paragraphs"
25547 \begin_layout Standard
25548 \begin_inset Note Greyedout
25551 \begin_layout Standard
25556 You cannot have floats or margin notes inside minipages but minipages can
25557 be used inside tables, floats, and other boxes.
25565 \begin_layout Section
25567 \begin_inset LatexCommand label
25568 name "sec:Parboxes"
25573 \begin_inset LatexCommand index
25574 name "Boxes ! Parboxes"
25581 \begin_layout Standard
25582 Parboxes are very similar to minipages with the difference that they cannot
25584 The main difference to minipages is that minipages are in contrary to parboxes
25585 no real boxes but LaTeX-environments.
25588 \begin_layout Standard
25590 \begin_inset Box Frameless
25599 height_special "totalheight"
25602 \begin_layout Standard
25603 This a text within a parbox.
25604 This a text within a parbox.
25607 \begin_layout Standard
25608 This footnote won't appear:
25612 \begin_layout Standard
25613 This footnote is inside a parbox and will therefore not appear.
25626 \begin_layout Section
25627 Boxes for Words and Characters
25628 \begin_inset LatexCommand index
25629 name "Boxes ! for Characters"
25636 \begin_layout Subsection
25637 Prevent Hyphenation
25638 \begin_inset LatexCommand label
25639 name "sec:Prevent-Hyphenation"
25644 \begin_inset LatexCommand index
25645 name "Boxes ! to Prevent Hyphenation"
25652 \begin_layout Standard
25653 You can use a special kind of boxes to prevent words or text to be hyphenated.
25656 e is an example text:
25659 \begin_layout Standard
25660 This line is an example to show how you can prevent the hyphenation of
25661 \begin_inset Quotes eld
25665 \begin_inset Quotes erd
25671 \begin_layout Standard
25672 To prevent the hyphenation of the word
25673 \begin_inset Quotes eld
25677 \begin_inset Quotes erd
25683 \begin_layout Standard
25691 \begin_layout Standard
25692 in ERT before the word.
25693 Behind the word insert a closing brace
25694 \begin_inset Quotes eld
25702 \begin_inset Quotes erd
25709 \begin_layout Standard
25721 \begin_layout Standard
25722 This is the result:
25725 \begin_layout Standard
25726 This line is an example to show how you can prevent the hyphenation of
25730 \begin_layout Standard
25740 \begin_inset Quotes eld
25744 \begin_inset Quotes erd
25751 \begin_layout Standard
25761 \begin_layout Standard
25762 You can alternatively set the command
25763 \begin_inset Quotes eld
25773 \begin_inset Quotes grd
25776 as ERT directly before the word:
25779 \begin_layout Standard
25780 This line is an example to show how you can prevent the hyphenation of
25781 \begin_inset Quotes eld
25788 \begin_layout Standard
25798 \begin_inset Quotes erd
25804 \begin_layout Standard
25805 Of course the word now protrudes over the side margin.
25806 To avoid this, add via the menu
25808 Insert\SpecialChar \menuseparator
25809 Special\InsetSpace ~
25810 Formatting\SpecialChar \menuseparator
25818 ) a line break before the word:
25821 \begin_layout Standard
25822 This line is an example to show how you can prevent the hyphenation of
25828 \begin_layout Standard
25838 \begin_inset Quotes eld
25842 \begin_inset Quotes erd
25849 \begin_layout Standard
25859 \begin_layout Subsection
25861 \begin_inset LatexCommand label
25862 name "sub:Vertical-Alignment"
25867 \begin_inset LatexCommand index
25868 name "Boxes ! for Vertical Alignment"
25873 \begin_inset LatexCommand index
25874 name "Boxes ! Raiseboxes"
25881 \begin_layout Standard
25882 With the help of the command
25888 you can align words, characters or other boxes vertically to the surrounding
25896 is used with the following scheme:
25899 \begin_layout Standard
25904 raisebox{lift}[height][depth]{box content}
25907 \begin_layout Standard
25908 The lift can be a positive value to raise the box or a negative value to
25912 \begin_layout Standard
25913 To align for example the word
25914 \begin_inset Quotes eld
25918 \begin_inset Quotes erd
25921 so that the bottom of the
25922 \begin_inset Quotes eld
25926 \begin_inset Quotes erd
25930 \begin_inset Quotes eld
25934 \begin_inset Quotes erd
25937 is at the baseline, insert the command
25940 \begin_layout Standard
25950 \begin_layout Standard
25951 in ERT before the word.
25952 Behind the word insert a closing brace
25953 \begin_inset Quotes eld
25961 \begin_inset Quotes erd
25966 This is the result:
25969 \begin_layout Standard
25970 This is a text line with the word
25974 \begin_layout Standard
25986 \begin_inset Quotes eld
25990 \begin_inset Quotes erd
25997 \begin_layout Standard
26007 \begin_layout Standard
26008 \begin_inset VSpace bigskip
26011 When you raise or lower characters in a line, the line distance will be
26015 \begin_layout Standard
26016 This is a text line with the word
26020 \begin_layout Standard
26032 \begin_inset Quotes eld
26036 \begin_inset Quotes erd
26043 \begin_layout Standard
26052 This is a text line with the word
26056 \begin_layout Standard
26066 \begin_inset Quotes eld
26070 \begin_inset Quotes erd
26077 \begin_layout Standard
26087 \begin_layout Standard
26088 If you want to prevent this for a certain reason, set the box height to
26093 \begin_layout Standard
26103 \begin_layout Standard
26104 This is a text line with the word
26108 \begin_layout Standard
26120 \begin_inset Quotes eld
26124 \begin_inset Quotes erd
26131 \begin_layout Standard
26140 This is a text line with the word
26144 \begin_layout Standard
26148 raisebox{0.5cm}[0pt]{
26154 \begin_inset Quotes eld
26158 \begin_inset Quotes erd
26165 \begin_layout Standard
26175 \begin_layout Section
26177 \begin_inset LatexCommand label
26178 name "sec:Colored-Boxes"
26183 \begin_inset LatexCommand index
26184 name "Boxes ! Color"
26191 \begin_layout Subsection
26193 \begin_inset LatexCommand index
26194 name "Color ! for Text"
26201 \begin_layout Standard
26202 To color the background of text the text must be put into a so called
26203 \begin_inset Quotes eld
26207 \begin_inset Quotes erd
26211 This requires that the LaTeX-package
26216 \begin_inset LatexCommand index
26217 name "LaTeX-packages ! color"
26221 is loaded in the document preamble with the command
26224 \begin_layout Standard
26229 @ifundef\SpecialChar \textcompwordmark{}
26236 \begin_layout Standard
26247 usepackage{color}}{}
26250 \begin_layout Standard
26255 will be loaded automatically by LyX when you color text
26259 \begin_layout Standard
26260 To avoid that it is loaded twice the command
26264 @ifundef\SpecialChar \textcompwordmark{}
26275 \begin_layout Standard
26276 \begin_inset VSpace medskip
26279 Colorboxes are created with the command
26286 This will be used with the following scheme:
26289 \begin_layout Standard
26294 colorbox{color}{box content}
26297 \begin_layout Standard
26298 The box content can also be a box and colorboxes can also be within other
26302 \begin_layout Standard
26303 The following colors are predefined:
26342 You can also define your own color as described in section\InsetSpace ~
26344 \begin_inset LatexCommand ref
26345 reference "sec:Colored-Tables"
26352 \begin_layout Standard
26353 To have e.\InsetSpace \thinspace{}
26355 a red background for a word, insert the command
26358 \begin_layout Standard
26366 \begin_layout Standard
26367 before the word in ERT.
26368 Behind the word insert a closing brace
26369 \begin_inset Quotes eld
26377 \begin_inset Quotes erd
26382 This is the result:
26385 \begin_layout Standard
26386 This is a line where the word
26390 \begin_layout Standard
26400 \begin_inset Quotes eld
26404 \begin_inset Quotes erd
26411 \begin_layout Standard
26418 has a red background.
26421 \begin_layout Standard
26422 \begin_inset VSpace bigskip
26425 If you would have the box frame in a different color, you can use the command
26432 with the following scheme:
26435 \begin_layout Standard
26440 fcolorbox{frame color}{box color}{box content}
26443 \begin_layout Standard
26457 The frame thickness and the space between the frame and the box content
26458 can be adjusted with the lengths
26470 , respectively, as described in section\InsetSpace ~
26472 \begin_inset LatexCommand ref
26473 reference "sec:Framed-Boxes"
26480 \begin_layout Standard
26481 For the following example the command
26484 \begin_layout Standard
26489 fcolorbox{cyan}{magenta}{
26492 \begin_layout Standard
26496 \begin_layout Standard
26497 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26504 \begin_layout Standard
26519 \begin_layout Standard
26523 fcolorbox{cyan}{magenta}{
26528 This is text within a colored, framed box.
26532 \begin_layout Standard
26542 \begin_layout Standard
26543 \begin_inset VSpace bigskip
26546 Of course you can also have colored text inside a colorbox:
26552 \begin_layout Standard
26556 fcolorbox{cyan}{magenta}{
26563 This is colored text within a colored, framed box.
26569 \begin_layout Standard
26580 \begin_layout Standard
26594 \begin_layout Standard
26597 \begin_inset VSpace medskip
26603 \begin_layout Standard
26604 \begin_inset Note Greyedout
26607 \begin_layout Standard
26612 Text in colorboxes cannot have line breaks.
26613 To color multiple text lines or paragraphs, use a box inside a colorbox
26614 as described in the following.
26622 \begin_layout Subsection
26623 Color for Paragraphs
26624 \begin_inset LatexCommand label
26625 name "sub:Color-for-Paragraphs"
26630 \begin_inset LatexCommand index
26631 name "Color ! for Paragraphs"
26638 \begin_layout Standard
26639 To set the background color for more than one text line, put the text into
26641 Before the minipage insert the
26650 \begin_layout Standard
26658 \begin_layout Standard
26660 Behind the minipage insert a closing brace
26661 \begin_inset Quotes eld
26669 \begin_inset Quotes erd
26675 \begin_layout Standard
26679 \begin_layout Standard
26683 colorbox{lightgrey}{
26689 \begin_inset Box Frameless
26698 height_special "totalheight"
26701 \begin_layout Standard
26702 This is text with background color.
26703 This is text with background color.
26706 \begin_layout Standard
26707 \begin_inset VSpace defskip
26710 The text can have footnotes
26714 \begin_layout Standard
26715 Another example footnote
26720 and can include tables and figures.
26723 \begin_layout Standard
26725 \begin_inset Tabular
26726 <lyxtabular version="3" rows="3" columns="3">
26728 <column alignment="center" valignment="top" leftline="true" width="0">
26729 <column alignment="center" valignment="top" leftline="true" width="0">
26730 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26731 <row topline="true">
26732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26735 \begin_layout Standard
26741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26744 \begin_layout Standard
26750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26753 \begin_layout Standard
26760 <row topline="true">
26761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26764 \begin_layout Standard
26770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26773 \begin_layout Standard
26775 \begin_inset Quotes erd
26783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26786 \begin_layout Standard
26793 <row topline="true" bottomline="true">
26794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26797 \begin_layout Standard
26803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26806 \begin_layout Standard
26812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26815 \begin_layout Standard
26835 \begin_layout Standard
26845 \begin_layout Section
26846 URLs (Uniform Resource Locators)
26847 \begin_inset LatexCommand index
26855 \begin_layout Standard
26856 Links to web pages or email addresses can be inserted via the menu
26858 Insert\SpecialChar \menuseparator
26862 The appearing URL dialog has two fields; the
26870 field for the URL description, which will be typeset as plain text immediately
26874 \begin_layout Standard
26875 Here is an example URL:
26876 \begin_inset LatexCommand url
26877 name "LyX's homepage"
26878 target "http://www.lyx.org"
26885 \begin_layout Standard
26888 Generate\InsetSpace ~
26891 in the URL dialog has only an affect when you export your document to the
26893 \begin_inset Quotes eld
26901 \begin_inset Quotes erd
26907 \begin_layout Standard
26908 You cannot change the style of the link text.
26913 field will have the default text style of the document while the text of
26918 field will have the style
26919 \begin_inset Quotes eld
26927 \begin_inset Quotes erd
26933 \begin_layout Standard
26934 When you use the LaTeX-package
26939 \begin_inset LatexCommand index
26940 name "LaTeX-packages ! hyperref"
26944 to link cross-references in the output, URLs will automatically become
26945 clickable hyperlinks in DVI and PDF-output.
26948 \begin_layout Standard
26949 \begin_inset Note Greyedout
26952 \begin_layout Standard
26957 When you use the following characters: "%", "#", "^", you have to write
26958 them with a preceding backslash, e.\InsetSpace \thinspace{}
26961 \begin_inset Quotes eld
26967 \begin_inset Quotes erd
26971 URLs must not end with a backslash.
26979 \begin_layout Standard
26980 \begin_inset VSpace bigskip
26983 To create real hyperlinks without the force to write the link location to
26984 the text, you can use the command
26987 \begin_layout Standard
26992 href{link location}{link text}
26995 \begin_layout Standard
26997 To get for example a link to LyX's web page, write the command
27000 \begin_layout Standard
27005 href{http://www.lyx.org}{
27008 \begin_layout Standard
27010 Insert after the command the link text
27011 \begin_inset Quotes eld
27015 \begin_inset Quotes erd
27018 as normal text followed by a closing brace
27019 \begin_inset Quotes eld
27027 \begin_inset Quotes erd
27031 This is the result:
27035 \begin_layout Standard
27039 href{http://www.lyx.org}{
27048 \begin_layout Standard
27058 \begin_layout Standard
27059 To link to email addresses, add the prefix
27060 \begin_inset Quotes eld
27068 \begin_inset Quotes erd
27071 to the link location:
27077 \begin_layout Standard
27081 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27086 lyx-docs mailing list
27090 \begin_layout Standard
27100 \begin_layout Standard
27107 instead of LyX's URL box has the advantage that you can specify the text
27108 style of the link text like for all other text parts.
27109 You can then set hyphenation points and forced linebreaks to have long
27110 link text broken at the page margin.
27111 You are furthermore able to change the text style for all URLs in your
27112 document with an option in
27116 's load command and the restrictions mentioned above doesn't apply for
27125 \begin_layout Chapter
27127 \begin_inset LatexCommand index
27128 name "External Stuff"
27135 \begin_layout Standard
27138 Insert\SpecialChar \menuseparator
27141 you can insert external material to your document.
27145 \begin_layout Description
27147 Document Another LyX document; its content is directly inserted to your
27151 \begin_layout Description
27153 Text A text document; every of its text lines is inserted to your document
27157 \begin_layout Description
27161 Lines A text document; its text lines are inserted as they
27163 Empty text lines creates a new paragraph in your document.
27166 \begin_layout Description
27167 External\InsetSpace ~
27168 Material Files in various formats.
27171 \begin_layout Description
27173 Document LyX or LaTeX-documents.
27176 \begin_layout Section
27178 \begin_inset LatexCommand index
27179 name "External Stuff ! External Material"
27186 \begin_layout Standard
27187 The external material feature allows you to insert files to your document
27188 without converting them previously to a format that can be read by the
27189 document output format because LyX takes care of needed conversions.
27190 This is similar to images that can be inserted in various image formats
27194 \begin_layout Standard
27195 External material can be inserted via the
27199 dialog that is accessible with the menu
27201 Insert\SpecialChar \menuseparator
27202 File\SpecialChar \menuseparator
27203 External\InsetSpace ~
27207 Currently the following file types (
27214 \begin_layout Description
27215 ChessDiagram This template supports chess position diagrams made with the
27220 \begin_layout Standard
27224 href{http://en.wikipedia.org/wiki/XBoard}{
27237 \begin_layout Standard
27247 \begin_layout Description
27248 Date This inserts the date in the form
27253 This is a date inserted as external material:
27254 \begin_inset External
27262 The date is not shown within LyX, only in the output.
27263 There are two other methods of inserting a date: Via menu
27265 Insert\SpecialChar \menuseparator
27268 and with the LaTeX command
27275 The different methods are compared in Table\InsetSpace ~
27277 \begin_inset LatexCommand ref
27278 reference "tab:Comparison-of-the"
27285 \begin_layout Description
27286 LilyPond This template is used for music notation typeset with the program
27290 \begin_layout Standard
27303 \begin_layout Standard
27307 href{http://en.wikipedia.org/wiki/LilyPond}{
27320 \begin_layout Standard
27328 \begin_inset Note Note
27331 \begin_layout Standard
27338 breaks the line while the remaining text in the line is stretched to the
27347 \begin_layout Description
27348 RasterImage This can be used for bitmap images.
27349 Nearly all popular image formats are supported.
27350 The image can be treated in the
27354 dialog like the images that are usually included via the
27358 dialog as described in section\InsetSpace ~
27360 \begin_inset LatexCommand ref
27361 reference "sec:Graphics-Dialog"
27366 The difference is that only raster images are allowed, that means that
27367 PDF and EPS-images are not supported.
27370 \begin_layout Description
27371 XFig This template supports images created with the program
27375 \begin_layout Standard
27379 href{http://en.wikipedia.org/wiki/Xfig}{
27392 \begin_layout Standard
27402 \begin_layout Standard
27403 \begin_inset Float table
27409 \begin_layout Standard
27410 \begin_inset Caption
27412 \begin_layout Standard
27413 \begin_inset LatexCommand label
27414 name "tab:Comparison-of-the"
27418 Comparison of the date input methods.
27426 \begin_layout Standard
27428 \begin_inset Tabular
27429 <lyxtabular version="3" rows="4" columns="4">
27431 <column alignment="center" valignment="top" leftline="true" width="0">
27432 <column alignment="center" valignment="top" leftline="true" width="0">
27433 <column alignment="center" valignment="top" leftline="true" width="0">
27434 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27435 <row topline="true">
27436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27439 \begin_layout Standard
27445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27448 \begin_layout Standard
27451 External Material\SpecialChar \menuseparator
27457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27460 \begin_layout Standard
27463 Insert\SpecialChar \menuseparator
27469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27472 \begin_layout Standard
27483 <row topline="true">
27484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27487 \begin_layout Standard
27493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27496 \begin_layout Standard
27502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27505 \begin_layout Standard
27511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27514 \begin_layout Standard
27521 <row topline="true">
27522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27525 \begin_layout Standard
27531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27534 \begin_layout Standard
27540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27543 \begin_layout Standard
27549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27552 \begin_layout Standard
27559 <row topline="true" bottomline="true">
27560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27563 \begin_layout Standard
27569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27572 \begin_layout Standard
27578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27581 \begin_layout Standard
27587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27590 \begin_layout Standard
27609 \begin_layout Standard
27610 When you use the option
27622 dialog, only the path to the inserted file is shown in the output.
27625 material is displayed in LyX either as box like this:
27626 \begin_inset Graphics
27627 filename clipart/ExternalMaterialQt4.png
27629 scaleBeforeRotation
27633 or as image, depending on the setting in the
27645 \begin_layout Standard
27652 manual explains how you can define your own templates.
27655 \begin_layout Section
27657 \begin_inset LatexCommand label
27658 name "sec:Child-Documents"
27663 \begin_inset LatexCommand index
27664 name "External Stuff ! Child Documents"
27669 \begin_inset LatexCommand index
27670 name "Files ! Include"
27677 \begin_layout Standard
27678 Child documents are used when you have a long document consisting of several
27679 larger parts or sections.
27680 For maintenance it is often useful and sometimes even required to split
27681 the document in several files that can be revised separately.
27682 The different documents are then the so called child documents and a master
27683 document connects them to print the full document or parts of it.
27686 \begin_layout Standard
27687 Included documents are displayed in LyX as a box like this:
27688 \begin_inset Graphics
27689 filename clipart/ChildDocumentQt4.png
27691 scaleBeforeRotation
27695 To include child documents to a master document use the menu
27697 Insert\SpecialChar \menuseparator
27698 File\SpecialChar \menuseparator
27703 A dialog pops up where you can choose between four include methods:
27706 \begin_layout Description
27707 Include You can include LyX and LaTeX-documents.
27716 dialog, the included documents will be opened in LyX in a new file tab
27717 so that you can modify it.
27722 \begin_layout Standard
27723 Here is a child document inserted using
27728 \begin_inset Include \include{DummyDocument1.lyx}
27736 \begin_layout Standard
27737 The section numbering includes the sections of the included files in the
27738 order they are inserted in the master document.
27739 The included example document has for example a subsection that is numbered
27740 as subsection of this section.
27741 Labels of included documents can be referenced: Subsection\InsetSpace ~
27743 \begin_inset LatexCommand ref
27744 reference "sub:External-Subsection-1"
27751 \begin_layout Standard
27752 The preamble of the child document is ignored, only the preamble of the
27753 master document is used.
27754 Included documents are inserted starting on a new page and end with a pagebreak.
27757 \begin_layout Standard
27758 With the LaTeX-command
27764 you can specify which included child documents are processed when the output
27766 This is useful when you are perhaps only working on a certain chapter of
27767 your large document as this saves compiling time.
27774 is inserted to the master document preamble.
27775 It takes a comma-separated list of the filenames as argument, e.g.
27778 \begin_layout Standard
27783 includeonly{chapter1,chapter5}
27786 \begin_layout Standard
27787 will only process the included files named
27788 \begin_inset Quotes eld
27792 \begin_inset Quotes erd
27796 \begin_inset Quotes eld
27800 \begin_inset Quotes erd
27804 \begin_inset Quotes eld
27808 \begin_inset Quotes erd
27814 \begin_layout Standard
27815 \begin_inset Note Greyedout
27818 \begin_layout Standard
27823 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27824 w the document in case that the child document uses another document class
27825 than the master document as this will lead to unexpected outputs.
27833 \begin_layout Description
27834 Input This method is very similar to the Include method.
27835 The differences are:
27839 \begin_layout Itemize
27840 Input files don't start with a new page and don't end with a pagebreak.
27843 \begin_layout Itemize
27844 Input files can be previewed in LyX when
27846 Instant\InsetSpace ~
27849 is enabled in LyX's preferences under
27853 feel\SpecialChar \menuseparator
27859 \begin_layout Itemize
27870 \begin_layout Standard
27871 Here is a child document inserted using
27876 \begin_inset Include \input{DummyDocument2.lyx}
27884 \begin_layout Description
27885 Verbatim With this method every text file can be included.
27886 The file is shown in the output with its source code, no command used in
27887 the text is invoked.
27888 You can use the option
27890 Mark spaces in output
27892 that displays the character
27893 \begin_inset Quotes eld
27900 \begin_layout Standard
27910 \begin_inset Quotes erd
27913 for every space character in the source code.
27914 The difference to the method via the menu
27916 Insert\SpecialChar \menuseparator
27917 File\SpecialChar \menuseparator
27921 is that the document content is not shown in LyX.
27924 \begin_layout Standard
27925 Here is a child document inserted as Verbatim:
27926 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27932 \begin_inset VSpace bigskip
27935 Here is a child document inserted as Verbatim using the
27937 Mark spaces in output
27940 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27948 \begin_layout Standard
27949 \begin_inset VSpace bigskip
27955 \begin_layout Standard
27956 \begin_inset Note Greyedout
27959 \begin_layout Standard
27964 As you can see in the examples above, the text of the documents included
27969 is not broken at the end of the document lines.
27977 \begin_layout Description
27978 Listings This type is described in chapter\InsetSpace ~
27980 \begin_inset LatexCommand ref
27981 reference "cha:Program-Code-Listings"
27988 \begin_layout Standard
27989 \begin_inset Note Greyedout
27992 \begin_layout Standard
27997 Including the same document twice in a document using different methods
27998 could cause LaTeX-problems.
28006 \begin_layout Chapter
28007 Program Code Listings
28008 \begin_inset LatexCommand label
28009 name "cha:Program-Code-Listings"
28014 \begin_inset LatexCommand index
28020 \begin_inset LatexCommand index
28021 name "Program Code"
28026 \begin_inset LatexCommand index
28027 name "Floats ! Listings"
28034 \begin_layout Standard
28035 To include and typeset program code you can use the
28039 inset that can be inserted via the menu
28041 Insert\SpecialChar \menuseparator
28050 \begin_inset LatexCommand index
28051 name "LaTeX-packages ! listings"
28055 provides a powerful and flexible way to insert program source code to your
28059 \begin_layout Standard
28060 When right-clicking on a listings inset a dialog pops up where you can set
28061 the listings format.
28064 \begin_layout Standard
28065 By default, a listing starts a new paragraph in the output.
28066 The placement option
28068 Inline\InsetSpace ~
28071 prints the listing inline like this:
28072 \begin_inset listings
28073 lstparams "language={C++}"
28077 \begin_layout Standard
28090 creates a listings float where you can specify the placement options
28091 \begin_inset Quotes eld
28099 \begin_inset Quotes erd
28103 \begin_inset Quotes eld
28111 \begin_inset Quotes erd
28115 \begin_inset Quotes eld
28123 \begin_inset Quotes erd
28127 \begin_inset Quotes eld
28135 \begin_inset Quotes erd
28138 corresponding to the float placement options described in section\InsetSpace ~
28140 \begin_inset LatexCommand ref
28141 reference "sec:Float-Placement"
28146 The placement options can be mixed and are inserted without any separation,
28147 e.\InsetSpace \thinspace{}
28150 \begin_inset Quotes eld
28158 \begin_inset Quotes erd
28163 \begin_inset Quotes eld
28167 \begin_inset Quotes erd
28170 has sometimes no effect, but you don't need to use the
28174 option in this case as also non-float listings can have captions and be
28178 \begin_layout Standard
28179 You can add captions to listings with the menu
28181 Insert\SpecialChar \menuseparator
28185 Listings can be referenced like floats: Listing\InsetSpace ~
28187 \begin_inset LatexCommand ref
28188 reference "lst:Example-Listing"
28195 \begin_layout Standard
28196 \begin_inset listings
28197 lstparams "language=Python"
28201 \begin_layout Standard
28203 \begin_inset Caption
28205 \begin_layout Standard
28206 \begin_inset LatexCommand label
28207 name "lst:Example-Listing"
28211 Example Listing float
28216 # Example listing float
28219 \begin_layout Standard
28224 \begin_layout Standard
28226 'this is a python function'
28229 \begin_layout Standard
28239 \begin_layout Standard
28240 When you have set a programming language in the listings dialog, the keywords
28241 of this language will be recognized and specially typeset in the output.
28242 In the example listings the Python keyword
28243 \begin_inset Quotes eld
28247 \begin_inset Quotes erd
28250 is recognized and printed bold in the output.
28253 \begin_layout Standard
28259 of the listings dialog you can specify the line numbering style.
28260 You can insert a number to specify which lines are numbered to the field
28266 When you insert e.g.
28268 \begin_inset Quotes eld
28272 \begin_inset Quotes erd
28275 , only every 3rd line will be numbered.
28278 \begin_layout Standard
28279 You can furthermore specify a range of lines, only these will then appear
28283 Extended\InsetSpace ~
28286 should be used when you use national characters like the German umlauts
28289 Here is an example listing with left line numbering, step
28291 \begin_inset Quotes eld
28295 \begin_inset Quotes erd
28299 \begin_inset Quotes eld
28303 \begin_inset Quotes erd
28307 \begin_inset Quotes eld
28310 Extended\InsetSpace ~
28312 \begin_inset Quotes erd
28316 \begin_inset Quotes eld
28322 \begin_inset Quotes erd
28325 , range lines 3\InsetSpace \thinspace{}
28326 -\InsetSpace \thinspace{}
28330 \begin_layout Standard
28331 \begin_inset listings
28332 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28336 \begin_layout Standard
28341 \begin_layout Standard
28343 'this is a python function'
28346 \begin_layout Standard
28351 \begin_layout Standard
28356 \begin_layout Standard
28358 'This is a German word: Tschüß'
28361 \begin_layout Standard
28366 \begin_layout Standard
28371 \begin_layout Standard
28373 'this is a python function'
28376 \begin_layout Standard
28386 \begin_layout Standard
28387 \begin_inset Note Greyedout
28390 \begin_layout Standard
28395 The line numbering is shifted by a line by every previous listing.
28396 That's the reason why the lines 2 and 5 are numbered in the above listing
28397 and not the lines 3 and 6.
28405 \begin_layout Standard
28406 \begin_inset VSpace bigskip
28412 \begin_layout Standard
28413 It is also possible to print lines from a file as listing.
28414 To do this, use the menu
28416 Insert\SpecialChar \menuseparator
28417 File\SpecialChar \menuseparator
28420 and choose the type
28428 \begin_layout Standard
28429 The other child document types are described in section\InsetSpace ~
28431 \begin_inset LatexCommand ref
28432 reference "sec:Child-Documents"
28441 In the child document dialog you can specify the listing parameters in
28443 To show a list of all available parameters, type in a question mark
28444 \begin_inset Quotes eld
28448 \begin_inset Quotes erd
28454 \begin_layout Standard
28455 To reference child document listings, write a label text into the corresponding
28456 field of the child document dialog.
28457 The label can then be referenced using the menu
28459 Insert\SpecialChar \menuseparator
28465 \begin_layout Standard
28466 Listing\InsetSpace ~
28468 \begin_inset LatexCommand ref
28469 reference "lst:file-listing"
28473 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28474 -\InsetSpace \thinspace{}
28479 \begin_layout Standard
28480 \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]
28488 \begin_layout Standard
28489 \begin_inset VSpace bigskip
28495 \begin_layout Standard
28496 Global listings settings can be set in the
28498 Document\SpecialChar \menuseparator
28499 Settings\SpecialChar \menuseparator
28503 To get there a list of available options, type in a question mark
28504 \begin_inset Quotes eld
28508 \begin_inset Quotes erd
28513 Listings\InsetSpace ~
28519 \begin_layout Standard
28520 For more information about the
28524 package, we refer to its documentation
28525 \begin_inset LatexCommand cite
28533 \begin_layout Standard
28539 \begin_layout Chapter
28545 \begin_layout Standard
28558 \begin_layout Standard
28566 \begin_inset LatexCommand index
28572 \begin_inset LatexCommand label
28573 name "cha:Units-available-in"
28578 \begin_inset Note Note
28581 \begin_layout Standard
28584 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28585 are displayed wrongly in PDF-bookmarks.
28586 For more information about this, have a look at
28587 \begin_inset LatexCommand cite
28600 \begin_layout Standard
28601 To understand the units described in this documentation, Table\InsetSpace ~
28603 \begin_inset LatexCommand ref
28604 reference "tab:Units"
28608 explains all units available in LyX.
28611 \begin_layout Standard
28612 \begin_inset Float table
28618 \begin_layout Standard
28619 \begin_inset Caption
28621 \begin_layout Standard
28622 \begin_inset LatexCommand label
28635 \begin_layout Standard
28636 \begin_inset VSpace medskip
28642 \begin_layout Standard
28644 \begin_inset Tabular
28645 <lyxtabular version="3" rows="20" columns="2">
28647 <column alignment="center" valignment="top" leftline="true" width="0">
28648 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28649 <row topline="true" bottomline="true">
28650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28653 \begin_layout Standard
28659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28662 \begin_layout Standard
28669 <row topline="true">
28670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28673 \begin_layout Standard
28679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28682 \begin_layout Standard
28689 <row topline="true">
28690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28693 \begin_layout Standard
28699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28702 \begin_layout Standard
28709 <row topline="true">
28710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28713 \begin_layout Standard
28719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28722 \begin_layout Standard
28729 <row topline="true">
28730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28733 \begin_layout Standard
28739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28742 \begin_layout Standard
28743 point (72.27\InsetSpace \thinspace{}
28744 pt = 1\InsetSpace \thinspace{}
28751 <row topline="true">
28752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28755 \begin_layout Standard
28761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28764 \begin_layout Standard
28765 pica (1\InsetSpace \thinspace{}
28766 pc = 12\InsetSpace \thinspace{}
28773 <row topline="true">
28774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28777 \begin_layout Standard
28783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28786 \begin_layout Standard
28787 scaled point (65536\InsetSpace \thinspace{}
28788 sp = 1\InsetSpace \thinspace{}
28795 <row topline="true">
28796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28799 \begin_layout Standard
28805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28808 \begin_layout Standard
28809 big point (72\InsetSpace \thinspace{}
28810 bp = 1\InsetSpace \thinspace{}
28817 <row topline="true">
28818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28821 \begin_layout Standard
28827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28830 \begin_layout Standard
28831 didot (1\InsetSpace \thinspace{}
28833 \begin_inset Formula $\approx$
28836 0.376\InsetSpace \thinspace{}
28843 <row topline="true">
28844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28847 \begin_layout Standard
28853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28856 \begin_layout Standard
28857 cicero (1\InsetSpace \thinspace{}
28858 cc = 12\InsetSpace \thinspace{}
28865 <row topline="true">
28866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28869 \begin_layout Standard
28875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28878 \begin_layout Standard
28879 % of original image width
28885 <row topline="true">
28886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28889 \begin_layout Standard
28895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28898 \begin_layout Standard
28905 <row topline="true">
28906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28909 \begin_layout Standard
28915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28918 \begin_layout Standard
28925 <row topline="true">
28926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28929 \begin_layout Standard
28935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28938 \begin_layout Standard
28945 <row topline="true">
28946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28949 \begin_layout Standard
28955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28958 \begin_layout Standard
28965 <row topline="true">
28966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28969 \begin_layout Standard
28975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28978 \begin_layout Standard
28985 <row topline="true">
28986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28989 \begin_layout Standard
28995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28998 \begin_layout Standard
29005 <row topline="true">
29006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29009 \begin_layout Standard
29015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29018 \begin_layout Standard
29029 <row topline="true">
29030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29033 \begin_layout Standard
29039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29042 \begin_layout Standard
29053 <row topline="true" bottomline="true">
29054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29057 \begin_layout Standard
29063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29066 \begin_layout Standard
29067 math unit (1\InsetSpace \thinspace{}
29068 mu = 1/18\InsetSpace \thinspace{}
29087 \begin_layout Chapter
29088 Output File Formats with Graphics
29089 \begin_inset LatexCommand label
29090 name "cha:Output-File-Formats"
29097 \begin_layout Section
29099 \begin_inset LatexCommand index
29100 name "File Formats ! DVI"
29105 \begin_inset LatexCommand index
29106 name "DVI|see{File Formats}"
29113 \begin_layout Standard
29114 This file type has the extension
29115 \begin_inset Quotes eld
29123 \begin_inset Quotes erd
29128 \begin_inset Quotes eld
29132 \begin_inset Quotes erd
29135 (DVI), because it is completely portable; you can move them from one machine
29136 to another without needing to do any sort of conversion.
29137 At the time when this file-format was developed, this was no matter of
29139 DVIs are used for quick previews and as pre-stage for other output formats,
29143 \begin_layout Standard
29144 \begin_inset Note Greyedout
29147 \begin_layout Standard
29152 DVI-files doesn't contain images, they will only be a linked.
29157 So don't forget this, if you move your
29161 file to another computer.
29162 This property can also slow down your computer when you view the DVI.
29163 Because the DVI-viewer has to convert the image in the background to make
29164 it visible when you scroll in the DVI.
29165 So we recommend to use PDF for files with many images.
29168 \begin_layout Standard
29169 You can export your document to DVI by using the menu
29171 File\SpecialChar \menuseparator
29172 Export\SpecialChar \menuseparator
29176 You can view your document as DVI via the
29180 menu or by using the toolbar button
29181 \begin_inset Graphics
29182 filename ../images/buffer-view_dvi.xpm
29184 scaleBeforeRotation
29191 \begin_layout Section
29193 \begin_inset LatexCommand label
29194 name "sec:PostScript"
29199 \begin_inset LatexCommand index
29200 name "File Formats ! PostScript"
29205 \begin_inset LatexCommand index
29206 name "PostScript|see{File Formats}"
29213 \begin_layout Standard
29214 This file type has the extension
29215 \begin_inset Quotes eld
29223 \begin_inset Quotes erd
29227 PostScript was developed by the company
29231 as printer language.
29232 The file contains therefore commands that the printer uses to print the
29234 PostScript can be seen as
29235 \begin_inset Quotes eld
29238 programming language
29239 \begin_inset Quotes erd
29242 ; you can calculate with it and draw diagrams and images
29246 \begin_layout Standard
29247 If you are interested to learn more about this, have a look at the LaTeX-package
29253 \begin_inset LatexCommand cite
29264 Due to this ability, the files are often bigger than PDFs.
29267 \begin_layout Standard
29268 PostScript can only contain images in the format
29269 \begin_inset Quotes eld
29272 Encapsulated PostScript
29273 \begin_inset Quotes erd
29276 (EPS, file extension
29277 \begin_inset Quotes eld
29285 \begin_inset Quotes erd
29289 As LyX allows you to use any known image format in your document, it has
29290 to convert images in the background to EPS.
29291 If you have e.g 50 images in your document, LyX has to do 50 conversions
29292 whenever you view or export your document.
29293 This will slow down your work flow with LyX drastically.
29294 So if you plan to use PostScript, you can insert your images directly as
29295 EPS to avoid this problem.
29298 \begin_layout Standard
29299 You can export your document to PostScript using the menu
29301 File\SpecialChar \menuseparator
29302 Export\SpecialChar \menuseparator
29306 You can view your document as PostScript via the
29310 menu or by using the toolbar button
29311 \begin_inset Graphics
29312 filename ../images/buffer-view_ps.xpm
29314 scaleBeforeRotation
29321 \begin_layout Section
29323 \begin_inset LatexCommand label
29329 \begin_inset LatexCommand index
29330 name "File Formats ! PDF"
29335 \begin_inset LatexCommand index
29343 \begin_layout Standard
29344 This file type has the extension
29345 \begin_inset Quotes eld
29353 \begin_inset Quotes erd
29358 \begin_inset Quotes eld
29361 Portable Document Format
29362 \begin_inset Quotes erd
29365 (PDF) is developed by
29369 as derivative from PostScript.
29370 It is more compressed and it uses much less commands than PostScript.
29372 \begin_inset Quotes eld
29376 \begin_inset Quotes erd
29379 implies, it can be processed at any computer system and the printed output
29380 looks exactly the same.
29383 \begin_layout Standard
29384 PDF can contain images in its own PDF format, in the format
29385 \begin_inset Quotes eld
29388 Joint Photographic Experts Group
29389 \begin_inset Quotes erd
29392 (JPG, file extension
29393 \begin_inset Quotes eld
29401 \begin_inset Quotes erd
29405 \begin_inset Quotes eld
29413 \begin_inset Quotes erd
29416 ), and in the format
29417 \begin_inset Quotes eld
29420 Portable Network Graphics
29421 \begin_inset Quotes erd
29424 (PNG, file extension
29425 \begin_inset Quotes eld
29433 \begin_inset Quotes erd
29437 Nevertheless you can use any other image format, because LyX converts them
29438 in the background to one of these formats.
29439 But as described in the section about PostScript, the image conversion
29440 will slow down your work flow.
29441 So it is recommended to use images in one of the three mentioned formats.
29444 \begin_layout Standard
29445 You can export your document to PDF via the menu
29447 File\SpecialChar \menuseparator
29450 in three different ways:
29453 \begin_layout Description
29455 (ps2pdf) This uses the program
29459 that creates a PDF from a PostScript-version of your file.
29460 The PostScript-version is produced by the program
29464 which uses a DVI-version as intermediate step.
29465 So this export variant consist of three conversions.
29468 \begin_layout Description
29470 (dvipdfm) This uses the program
29474 that converts your file in the background to DVI and in a second step to
29478 \begin_layout Description
29480 (pdflatex) This uses the program
29484 that converts your file directly to PDF.
29487 \begin_layout Standard
29488 It is recommended to use
29497 supports all features of actual PDF-versions, is quick and works stable
29503 is not under development and therefore a bit outdated.
29506 \begin_layout Standard
29507 You can view your document as PDF via the
29511 menu or by using the toolbar button
29512 \begin_inset Graphics
29513 filename ../images/buffer-view_pdf2.xpm
29515 scaleBeforeRotation
29531 \begin_layout Chapter
29532 Explanation of Equation\InsetSpace ~
29534 \begin_inset LatexCommand eqref
29540 \begin_inset LatexCommand label
29541 name "cha:Explanation-of-Equation"
29548 \begin_layout Standard
29554 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29557 can be calculated to
29560 \begin_layout Standard
29561 \begin_inset Formula \begin{equation}
29562 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29569 \begin_layout Standard
29571 \begin_inset Formula $W_{g\, n}$
29574 is the given width of all cells.
29581 is the LaTeX-length between the cell text and the cell border, its default
29582 value is 6\InsetSpace \thinspace{}
29590 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29594 \begin_layout Standard
29595 Following equation\InsetSpace ~
29597 \begin_inset LatexCommand eqref
29598 reference "eq:Wtot_n"
29602 , the total width of a multicolumn
29603 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29609 \begin_layout Standard
29610 \begin_inset Formula \begin{equation}
29611 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29618 \begin_layout Standard
29619 By setting equation\InsetSpace ~
29621 \begin_inset LatexCommand eqref
29622 reference "eq:Wtot_n"
29627 \begin_inset LatexCommand eqref
29628 reference "eq:Wtot_mult"
29632 equal we can calculate the needed given width
29633 \begin_inset Formula $W_{g\, n}$
29640 columns are spanned, so that each column has a total width of
29641 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29647 \begin_layout Standard
29648 \begin_inset Formula \begin{equation}
29649 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29656 \begin_layout Bibliography
29657 \begin_inset LatexCommand bibitem
29658 key "latexcompanion"
29662 Frank Mittelbach and Michel Goossens:
29664 The LaTeX Companion Second Edition.
29667 Addison-Wesley, 2004
29670 \begin_layout Bibliography
29671 \begin_inset LatexCommand bibitem
29676 Helmut Kopka and Patrick W.
29679 A Guide to LaTeX Fourth Edition.
29682 Addison-Wesley, 2003
29685 \begin_layout Bibliography
29686 \begin_inset LatexCommand bibitem
29693 LaTeX: A Document Preparation System.
29696 Addison-Wesley, second edition, 1994
29699 \begin_layout Bibliography
29700 \begin_inset LatexCommand bibitem
29709 \begin_layout Standard
29713 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29723 \begin_layout Standard
29730 of the LaTeX-package
29735 \begin_inset LatexCommand index
29736 name "LaTeX-packages ! booktabs"
29743 \begin_layout Bibliography
29744 \begin_inset LatexCommand bibitem
29753 \begin_layout Standard
29757 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29766 \begin_layout Standard
29773 of the LaTeX-package
29778 \begin_inset LatexCommand index
29779 name "LaTeX-packages ! caption"
29786 \begin_layout Bibliography
29787 \begin_inset LatexCommand bibitem
29796 \begin_layout Standard
29800 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29810 \begin_layout Standard
29817 of the LaTeX-package
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/endfloat/endfloat.pdf}
29846 \begin_layout Standard
29853 of the LaTeX-package
29855 endf\SpecialChar \textcompwordmark{}
29859 \begin_inset LatexCommand index
29860 name "LaTeX-packages ! endfloat"
29867 \begin_layout Bibliography
29868 \begin_inset LatexCommand bibitem
29877 \begin_layout Standard
29881 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29891 \begin_layout Standard
29898 of the LaTeX-package
29900 f\SpecialChar \textcompwordmark{}
29901 loatf\SpecialChar \textcompwordmark{}
29905 \begin_inset LatexCommand index
29906 name "LaTeX-packages ! floatflt"
29913 \begin_layout Bibliography
29914 \begin_inset LatexCommand bibitem
29923 \begin_layout Standard
29927 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29937 \begin_layout Standard
29944 of the LaTeX-package
29949 \begin_inset LatexCommand index
29950 name "LaTeX-packages ! footmisc"
29957 \begin_layout Bibliography
29958 \begin_inset LatexCommand bibitem
29967 \begin_layout Standard
29971 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29980 \begin_layout Standard
29987 of the LaTeX-package
29992 \begin_inset LatexCommand index
29993 name "LaTeX-packages ! hyperref"
30000 \begin_layout Bibliography
30001 \begin_inset LatexCommand bibitem
30010 \begin_layout Standard
30014 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
30024 \begin_layout Standard
30031 of the LaTeX-package
30036 \begin_inset LatexCommand index
30037 name "LaTeX-packages ! hyperref"
30044 \begin_layout Bibliography
30045 \begin_inset LatexCommand bibitem
30054 \begin_layout Standard
30058 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30068 \begin_layout Standard
30075 of the LaTeX-package
30080 \begin_inset LatexCommand index
30081 name "LaTeX-packages ! koma-script"
30088 \begin_layout Bibliography
30089 \begin_inset LatexCommand bibitem
30090 key "koma-script-de"
30098 \begin_layout Standard
30102 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30112 \begin_layout Standard
30119 of the LaTeX-package
30124 \begin_inset LatexCommand index
30125 name "LaTeX-packages ! koma-script"
30132 \begin_layout Bibliography
30133 \begin_inset LatexCommand bibitem
30142 \begin_layout Standard
30146 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30156 \begin_layout Standard
30163 of the LaTeX-package
30168 \begin_inset LatexCommand index
30169 name "LaTeX-packages ! listings"
30176 \begin_layout Bibliography
30177 \begin_inset LatexCommand bibitem
30186 \begin_layout Standard
30190 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30200 \begin_layout Standard
30207 of the LaTeX-package
30212 \begin_inset LatexCommand index
30213 name "LaTeX-packages ! marginnote"
30220 \begin_layout Bibliography
30221 \begin_inset LatexCommand bibitem
30230 \begin_layout Standard
30234 href{http://tug.org/PSTricks/main.cgi/}{
30243 \begin_layout Standard
30250 of the LaTeX-package
30255 \begin_inset LatexCommand index
30256 name "LaTeX-packages ! PSTricks"
30263 \begin_layout Bibliography
30264 \begin_inset LatexCommand bibitem
30273 \begin_layout Standard
30277 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30286 \begin_layout Standard
30293 of the LaTeX-package
30298 \begin_inset LatexCommand index
30299 name "LaTeX-packages ! sidecap"
30306 \begin_layout Bibliography
30307 \begin_inset LatexCommand bibitem
30316 \begin_layout Standard
30320 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30329 \begin_layout Standard
30336 about new LyX-features planned for the release
30343 \begin_layout Standard
30344 \begin_inset LatexCommand printindex
30351 \begin_layout Standard
30352 \begin_inset FloatList figure
30359 \begin_layout Standard
30360 \begin_inset FloatList table