1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells
110 \@ifundefined{extrarowheight}
111 {\usepackage{array}}{}
112 \setlength{\extrarowheight}{2pt}
114 % used for customized tables
117 {>{\centering\hspace{0pt}}m{#1}}
120 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
123 {>{\columncolor{#1}\hspace{0pt}}c}
125 \newcolumntype{V}{!{\vrule width 1.5pt}}
127 \newcolumntype{W}{!{\color{green}\vline}}
130 % insert additional vertical space of
131 % 1.5 mm between footnotes
133 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
135 % enable algorithm floats to be referenced
136 \newfloat{Xalgorithm}{tbp}{loa}
137 \floatname{Xalgorithm}{Algorithm}
138 \newcommand{\theHalgorithm}{\theHXalgorithm}
139 \renewenvironment{algorithm}[1][tbp]
140 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
142 % number algorithm floats within chapters
143 \numberwithin{Xalgorithm}{chapter}
145 % redefine the greyed out note
146 \renewenvironment{lyxgreyedout}
147 {\textcolor{blue}\bgroup}{\egroup}
149 % ------------------------------------
150 % used to check for needed LaTeX packages
153 % check for package arydshln
154 % used for tables with dashed lines
155 \newboolean{arydshln}
156 \IfFileExists{arydshln.sty}
157 {\usepackage{arydshln}
158 \setboolean{arydshln}{true}}
159 {\setboolean{arydshln}{false}}
161 % check for package marginnote
162 % used for margin notes
163 \newboolean{marginnote}
164 \IfFileExists{marginnote.sty}
165 {\usepackage{marginnote}
166 \let\marginpar\marginnote
167 \setboolean{marginnote}{true}}
168 {\setboolean{marginnote}{false}}
170 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
175 \font_typewriter default
176 \font_default_family default
190 \paperorientation portrait
193 \paragraph_separation skip
195 \quotes_language english
198 \paperpagestyle default
202 \tracking_changes false
203 \output_changes false
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.
19045 f\SpecialChar \textcompwordmark{}
19051 \begin_layout Standard
19052 If you don't like these rules, you can ignore them by using the additional
19055 Ignore\InsetSpace ~
19061 You can also redefine the rules with LaTeX-commands that are given in parenthese
19062 s behind the rules description above.
19063 To increase for example the often too small default of the bottom-rule
19064 to 50\InsetSpace \thinspace{}
19065 % of the page, add this line to your document preamble:
19068 \begin_layout Standard
19075 bottomfraction}{0.5}
19078 \begin_layout Standard
19079 Sometimes you might need, under all circumstances, a float to be placed
19080 exactly at the position where it is inserted.
19081 For this case you can use the option
19087 Use this option very rarely and only if the document is nearly ready to
19089 Because the float is then no longer able to
19090 \begin_inset Quotes eld
19094 \begin_inset Quotes erd
19097 when you change your document and this will often destroy the page layout.
19100 \begin_layout Standard
19101 There are no placement options for text wrap floats, because they are always
19102 surrounded by the text of a certain paragraph.
19103 \begin_inset VSpace bigskip
19109 \begin_layout Standard
19110 Sometimes you have the problem that a float is placed at the top of a page
19111 while its corresponding section starts at the middle of the page, so that
19112 the reader could think the float is part of the previous section.
19113 To avoid this the LaTeX-command
19117 suppressf\SpecialChar \textcompwordmark{}
19121 It suppresses a given float placement for the page where it is inserted
19122 and can therefore be used to avoid that floats could be set before a section
19124 To get this, add these commands to your document preamble:
19127 \begin_layout Standard
19144 suppressf\SpecialChar \textcompwordmark{}
19150 \begin_layout Standard
19151 You can define the same for all section headings, like chapters and subsections.
19152 This definition is not recommended to be used for small text parts like
19153 subsubsections because LaTeX may then have problems to find a suitable
19157 \begin_layout Standard
19158 \begin_inset VSpace bigskip
19161 In some cases it is required to have all figures/tables at the end of the
19163 For this purpose the LaTeX-package
19165 endf\SpecialChar \textcompwordmark{}
19169 \begin_inset LatexCommand index
19170 name "LaTeX-packages ! endfloat"
19175 It puts all figure and table floats at the end of the document into own
19177 At the original float position a text hint like
19178 \begin_inset Quotes eld
19183 [Figure\InsetSpace ~
19187 \begin_inset Quotes erd
19191 The endfloat-package is loaded in the preamble with the line
19194 \begin_layout Standard
19199 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19203 \begin_layout Standard
19204 There are various package options to format the created figure/table sections.
19205 For more information we refer to the
19207 endf\SpecialChar \textcompwordmark{}
19211 \begin_inset LatexCommand cite
19219 \begin_inset Note Greyedout
19222 \begin_layout Standard
19225 Note: endf\SpecialChar \textcompwordmark{}
19228 doesn't provide an automatic translation for the text hint, you have to
19229 do this manually, see section\InsetSpace ~
19231 \begin_inset LatexCommand cite
19244 \begin_inset Note Greyedout
19247 \begin_layout Standard
19252 There is currently a bug in
19254 endf\SpecialChar \textcompwordmark{}
19257 when the caption contains a German
19258 \begin_inset Quotes eld
19262 \begin_inset Quotes erd
19266 Use in this case the command
19267 \begin_inset Quotes eld
19277 \begin_inset Quotes erd
19281 \begin_inset Quotes eld
19285 \begin_inset Quotes erd
19296 \begin_layout Standard
19297 \begin_inset VSpace bigskip
19300 For more details about float placements, have a look at LaTeX books,
19301 \begin_inset LatexCommand cite
19302 key "latexcompanion,latexguide,latexbook"
19309 \begin_layout Section
19311 \begin_inset LatexCommand label
19312 name "sec:Rotated-Floats"
19317 \begin_inset LatexCommand index
19318 name "Floats ! Rotating"
19325 \begin_layout Standard
19326 Especially for wide tables you might have floats rotated.
19327 To rotate a whole float including the caption, right-click on the float-box
19330 Rotate\InsetSpace ~
19336 \begin_layout Standard
19337 Rotated floats are always placed on its own page (or column, when you have
19338 a two-column document).
19339 They are normally rotated so that you can read them from the outside margin
19340 -- to the left on even pages, to the right on odd pages.
19341 To force a certain rotation direction for all pages, you can add either
19344 f\SpecialChar \textcompwordmark{}
19349 f\SpecialChar \textcompwordmark{}
19352 to the document class options.
19355 \begin_layout Standard
19356 Referencing rotated floats is the same like for normal floats, the caption
19357 format is also the same: Table\InsetSpace ~
19359 \begin_inset LatexCommand ref
19360 reference "tab:Rotated-table"
19364 is an example of a rotated table float.
19367 \begin_layout Standard
19368 \begin_inset Note Greyedout
19371 \begin_layout Standard
19376 Not all DVI-viewers are able to display rotated floats.
19384 \begin_layout Standard
19385 \begin_inset Float table
19390 \begin_layout Standard
19391 \begin_inset Caption
19393 \begin_layout Standard
19394 \begin_inset LatexCommand label
19395 name "tab:Rotated-table"
19407 \begin_layout Standard
19409 \begin_inset Tabular
19410 <lyxtabular version="3" rows="1" columns="5">
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" width="0">
19416 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19417 <row topline="true" bottomline="true">
19418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19421 \begin_layout Standard
19427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19430 \begin_layout Standard
19436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19439 \begin_layout Standard
19445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19448 \begin_layout Standard
19454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19457 \begin_layout Standard
19476 \begin_layout Section
19478 \begin_inset LatexCommand index
19479 name "Caption ! Formatting"
19484 \begin_inset LatexCommand index
19485 name "Floats ! Caption Formatting"
19490 \begin_inset LatexCommand index
19491 name "LaTeX-packages ! caption"
19496 \begin_inset LatexCommand label
19497 name "sec:Caption-Formatting"
19504 \begin_layout Standard
19509 environment is the default paragraph environment for
19514 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19517 \begin_inset Quotes eld
19525 \begin_inset Quotes erd
19528 followed by the caption text.
19530 \begin_inset Quotes eld
19534 \begin_inset Quotes erd
19537 is the actual reference number.
19538 By default the label and the number are in the same font as the caption
19539 text and a colon follows the number to divide the label from the text.
19540 This caption format is not suitable for all document formats.
19544 \begin_layout Standard
19545 To change the default caption format, load the LaTeX-package
19550 \begin_inset LatexCommand index
19551 name "LaTeX-packages ! caption"
19555 in the document preamble with this line:
19558 \begin_layout Standard
19563 usepackage[format definition]{caption}
19566 \begin_layout Standard
19567 To have for example the label and the number in sans-serif bold font and
19568 the table captions always above the table like in this document, use the
19572 \begin_layout Standard
19577 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19580 \begin_layout Standard
19581 You can also define different caption formats for the different float types.
19582 In this case load the
19586 package without format specific options and define the different formats
19587 with the help of the command
19590 \begin_layout Standard
19595 captionsetup[float type]{format definition}
19598 \begin_layout Standard
19599 in the document preamble.
19600 For example the caption formats of Figure\InsetSpace ~
19602 \begin_inset LatexCommand ref
19603 reference "fig:This-is-an-fig"
19607 and Table\InsetSpace ~
19609 \begin_inset LatexCommand ref
19610 reference "tab:This-is-an-tab"
19614 can be created using these commands in the document preamble:
19617 \begin_layout Standard
19622 usepackage[tableposition=top]{caption}
19630 captionsetup[f\SpecialChar \textcompwordmark{}
19631 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19637 \begin_layout Standard
19645 captionsetup[figure]
19656 captionsetup[table]{labelfont={bf,sf}}
19659 \begin_layout Standard
19660 \begin_inset Note Greyedout
19663 \begin_layout Standard
19672 has no effect when a
19677 \begin_inset LatexCommand index
19678 name "LaTeX-packages ! koma-script"
19682 document class is used.
19683 In this case the document class option
19695 \begin_layout Standard
19696 For more information about the package
19700 we refer to its documentation
19701 \begin_inset LatexCommand cite
19702 key "caption,caption-de"
19709 \begin_layout Standard
19710 To change the label name from e.g.
19712 \begin_inset Quotes eld
19716 \begin_inset Quotes erd
19720 \begin_inset Quotes eld
19724 \begin_inset Quotes erd
19727 use this preamble command:
19730 \begin_layout Standard
19737 fnum@figure}{Image~
19742 \begin_layout Standard
19749 inserts the figure number and
19752 \begin_inset Quotes eld
19758 \begin_inset Quotes erd
19761 creates a protected space.
19764 \begin_layout Standard
19765 \begin_inset VSpace bigskip
19773 \begin_inset LatexCommand index
19774 name "LaTeX-packages ! koma-script"
19780 article (koma-script)
19788 letter (koma-script)
19792 report (koma-script)
19794 \InsetSpace \thinspace{}
19795 ), you can alternatively to the
19803 's built-in command
19810 For example, to have the caption label in bold, add this command to your
19814 \begin_layout Standard
19819 setkomafont{captionlabel}{
19824 \begin_layout Standard
19825 For more information about
19836 \begin_inset LatexCommand cite
19837 key "koma-script,koma-script-de"
19844 \begin_layout Standard
19848 \begin_layout Standard
19852 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19859 \begin_inset Note Note
19862 \begin_layout Standard
19863 The caption format is changed only for this example.
19871 \begin_layout Standard
19872 \begin_inset Float figure
19878 \begin_layout Standard
19880 \begin_inset Graphics
19881 filename clipart/mobius.eps
19884 scaleBeforeRotation
19891 \begin_layout Standard
19892 \begin_inset Caption
19894 \begin_layout Standard
19895 \begin_inset LatexCommand label
19896 name "fig:This-is-an-fig"
19900 This is an example figure caption that is longer than one line to show the
19901 different caption format.
19902 Here a self-defined caption format is used.
19915 \begin_layout Standard
19919 \begin_layout Standard
19923 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19932 \begin_layout Standard
19933 \begin_inset Float table
19939 \begin_layout Standard
19940 \begin_inset Caption
19942 \begin_layout Standard
19943 \begin_inset LatexCommand label
19944 name "tab:This-is-an-tab"
19948 This is an example table caption that is longer than one line to show the
19949 different caption format.
19950 Here the standard caption format for tables in this document is used.
19958 \begin_layout Standard
19960 \begin_inset Tabular
19961 <lyxtabular version="3" rows="1" columns="5">
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" width="0">
19967 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19968 <row topline="true" bottomline="true">
19969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19972 \begin_layout Standard
19978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19981 \begin_layout Standard
19987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19990 \begin_layout Standard
19996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19999 \begin_layout Standard
20005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20008 \begin_layout Standard
20027 \begin_layout Section
20029 \begin_inset LatexCommand index
20030 name "Caption ! Placement"
20035 \begin_inset LatexCommand index
20036 name "Floats ! Caption Placement"
20041 \begin_inset LatexCommand label
20042 name "sec:Caption-Placement"
20049 \begin_layout Standard
20050 The common caption placement rule is:
20053 \begin_layout Description
20054 Figure: Caption is set below the figure
20057 \begin_layout Description
20058 Table: Caption is set above the table
20061 \begin_layout Standard
20062 Having the caption above the table is unfortunately not supported in LaTeX's
20064 That means if you are using the document classes
20080 there will be no space between the caption and the table.
20081 To insert the needed space, add the following option to the load command
20082 of the LaTeX-package
20086 in your document preamble
20090 \begin_layout Standard
20091 See section\InsetSpace ~
20093 \begin_inset LatexCommand ref
20094 reference "sec:Caption-Formatting"
20098 for more information of the package
20110 \begin_layout Standard
20116 \begin_layout Standard
20122 \begin_inset LatexCommand index
20123 name "LaTeX-packages ! koma-script"
20129 article (koma-script)
20137 letter (koma-script)
20141 report (koma-script)
20143 \InsetSpace \thinspace{}
20144 ), you can alternatively to the
20148 package set the document class option
20155 \begin_layout Standard
20156 \begin_inset VSpace bigskip
20159 It is also possible to set the caption beside a figure or table.
20160 To get this the LaTeX-package
20165 \begin_inset LatexCommand index
20166 name "LaTeX-packages ! sidecap"
20170 has to be loaded in the document preamble with the line
20173 \begin_layout Standard
20178 usepackage[option]{sidecap}
20181 \begin_layout Standard
20182 If you set no option, the caption is placed on the side of the outer page
20183 margin -- to the right on odd pages, to the left on even pages.
20184 You can change the placement to inner margin with the option
20189 To force the placement always to the right or left, use the option
20200 \begin_layout Standard
20201 To place in LyX the caption of a float on the side, it is necessary to add
20202 these commands to the document preamble:
20205 \begin_layout Standard
20211 \begin_layout Standard
20224 \begin_layout Standard
20245 \begin_layout Standard
20266 \begin_layout Standard
20277 renewenvironment{table}{
20284 \begin_layout Standard
20297 \begin_layout Standard
20318 \begin_layout Standard
20336 \begin_layout Standard
20349 \begin_layout Standard
20364 f\SpecialChar \textcompwordmark{}
20371 \begin_layout Standard
20384 MyEndf\SpecialChar \textcompwordmark{}
20387 endf\SpecialChar \textcompwordmark{}
20394 \begin_layout Standard
20405 renewenvironment{f\SpecialChar \textcompwordmark{}
20408 begin{SCf\SpecialChar \textcompwordmark{}
20411 end{SCf\SpecialChar \textcompwordmark{}
20415 \begin_layout Standard
20428 \begin_layout Standard
20441 f\SpecialChar \textcompwordmark{}
20450 \begin_layout Standard
20463 endf\SpecialChar \textcompwordmark{}
20466 MyEndf\SpecialChar \textcompwordmark{}
20470 \begin_layout Standard
20476 \begin_layout Standard
20477 The commands allow you to redefine the floats so that the caption is set
20479 For figure floats use the command
20482 \begin_layout Standard
20490 \begin_layout Standard
20491 in ERT before the float.
20492 Behind the float insert the command
20495 \begin_layout Standard
20503 \begin_layout Standard
20504 in ERT to get back to the original float definition.
20507 \begin_layout Standard
20508 For table floats use the corresponding commands
20511 \begin_layout Standard
20525 \begin_layout Standard
20526 Figure\InsetSpace ~
20528 \begin_inset LatexCommand ref
20529 reference "fig:cap-beside-fig"
20533 and Table\InsetSpace ~
20535 \begin_inset LatexCommand ref
20536 reference "tab:cap-beside-tab"
20540 are examples where the caption is set beside.
20543 \begin_layout Standard
20544 You can see in the examples that the caption text appears at the top of
20545 the floats for table floats and at the bottom for figure floats.
20546 To change this, you can use the command
20549 \begin_layout Standard
20554 sidecaptionvpos{float type}{placement}
20557 \begin_layout Standard
20558 in the document preamble or in ERT before the float.
20559 The float type is either
20567 , the placement can be
20568 \begin_inset Quotes eld
20576 \begin_inset Quotes erd
20580 \begin_inset Quotes eld
20588 \begin_inset Quotes erd
20592 \begin_inset Quotes eld
20600 \begin_inset Quotes erd
20604 To have for example the caption of figure floats vertically centered, use
20608 \begin_layout Standard
20613 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20617 \begin_layout Standard
20618 This was used for Figure\InsetSpace ~
20620 \begin_inset LatexCommand ref
20621 reference "fig:cap-beside-fig-2"
20628 \begin_layout Standard
20629 \begin_inset VSpace medskip
20632 For more information about the package
20636 we refer to its documentation
20637 \begin_inset LatexCommand cite
20645 \begin_layout Standard
20646 \begin_inset Note Greyedout
20649 \begin_layout Standard
20659 \begin_inset LatexCommand index
20660 name "LaTeX-packages ! hypcap"
20664 , described in section\InsetSpace ~
20666 \begin_inset LatexCommand ref
20667 reference "sub:Reference-Position"
20671 , has no effect on floats with the caption set beside.
20679 \begin_layout Standard
20683 \begin_layout Standard
20695 \begin_layout Standard
20696 \begin_inset Float figure
20701 \begin_layout Standard
20702 \begin_inset Graphics
20703 filename clipart/escher-lsd.eps
20705 scaleBeforeRotation
20712 \begin_layout Standard
20713 \begin_inset Caption
20715 \begin_layout Standard
20716 \begin_inset LatexCommand label
20717 name "fig:cap-beside-fig"
20721 This is a caption beside a figure.
20734 \begin_layout Standard
20738 \begin_layout Standard
20750 \begin_layout Standard
20751 \begin_inset Float table
20756 \begin_layout Standard
20757 \begin_inset Caption
20759 \begin_layout Standard
20760 \begin_inset LatexCommand label
20761 name "tab:cap-beside-tab"
20765 This is a caption beside a table.
20773 \begin_layout Standard
20774 \begin_inset Tabular
20775 <lyxtabular version="3" rows="4" columns="5">
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" width="0">
20781 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20782 <row topline="true">
20783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20786 \begin_layout Standard
20792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20795 \begin_layout Standard
20801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20804 \begin_layout Standard
20810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20813 \begin_layout Standard
20819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20822 \begin_layout Standard
20829 <row topline="true">
20830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20833 \begin_layout Standard
20839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20842 \begin_layout Standard
20848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20851 \begin_layout Standard
20857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20860 \begin_layout Standard
20866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20869 \begin_layout Standard
20876 <row topline="true">
20877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20880 \begin_layout Standard
20886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20889 \begin_layout Standard
20895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20898 \begin_layout Standard
20904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20907 \begin_layout Standard
20913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20916 \begin_layout Standard
20923 <row topline="true" bottomline="true">
20924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20927 \begin_layout Standard
20933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20936 \begin_layout Standard
20942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20945 \begin_layout Standard
20951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20954 \begin_layout Standard
20960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20963 \begin_layout Standard
20982 \begin_layout Standard
20986 \begin_layout Standard
20998 \begin_layout Standard
21002 \begin_layout Standard
21006 sidecaptionvpos{figure}{c}
21012 \begin_inset Float figure
21017 \begin_layout Standard
21018 \begin_inset Graphics
21019 filename clipart/escher-lsd.eps
21021 scaleBeforeRotation
21028 \begin_layout Standard
21029 \begin_inset Caption
21031 \begin_layout Standard
21032 \begin_inset LatexCommand label
21033 name "fig:cap-beside-fig-2"
21037 This is a vertically centered caption beside a figure.
21050 \begin_layout Standard
21054 \begin_layout Standard
21066 \begin_layout Section
21068 \begin_inset LatexCommand label
21069 name "sec:Listings-of-Floats"
21074 \begin_inset LatexCommand index
21075 name "Floats ! Float Lists"
21082 \begin_layout Standard
21083 Similar to the the table of contents where the sections of the document
21084 are listed, there are listings for all float types, like the figures of
21086 You can insert them via the
21088 Insert\SpecialChar \menuseparator
21096 \begin_layout Standard
21097 The list entries are the float captions or its short title, the float number,
21098 and the page number where they appear in the document.
21101 \begin_layout Standard
21102 You can find the list of figures and tables at the end of this document.
21105 \begin_layout Chapter
21109 \begin_layout Section
21113 \begin_layout Standard
21126 \begin_layout Standard
21134 \begin_inset LatexCommand label
21135 name "sec:LyX-Notes"
21140 \begin_inset LatexCommand index
21141 name "Notes ! LyX Notes"
21146 \begin_inset Note Note
21149 \begin_layout Standard
21152 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21153 are displayed wrongly in PDF-bookmarks.
21154 For more information about this, have a look at
21155 \begin_inset LatexCommand cite
21168 \begin_layout Standard
21169 Notes are inserted with the toolbar button
21170 \begin_inset Graphics
21171 filename ../images/note-insert.xpm
21173 scaleBeforeRotation
21179 Insert\SpecialChar \menuseparator
21183 There are five types of notes:
21186 \begin_layout Description
21188 Note This note type is for internal notes that won't appear in the output.
21189 Its note-box looks like this:
21194 \begin_inset Graphics
21195 filename clipart/LyXNoteImageQt4.png
21198 scaleBeforeRotation
21203 \begin_inset Note Note
21206 \begin_layout Standard
21207 This is text in a note box that doesn't appear in the output.
21215 \begin_layout Description
21216 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21217 ent, when you export the document to LaTeX via the menu
21219 File\SpecialChar \menuseparator
21220 Export\SpecialChar \menuseparator
21221 LaTeX (pdflatex) / LaTeX (plain)
21224 Its note-box looks like this:
21229 \begin_inset Graphics
21230 filename clipart/CommentNoteImageQt4.png
21233 scaleBeforeRotation
21238 \begin_inset Note Comment
21241 \begin_layout Standard
21242 This is text in a note box that only appears as comment in LaTeX-files.
21250 \begin_layout Description
21251 Greyed\InsetSpace ~
21252 Out This note will appear in the output as grey text.
21253 Its note-box looks like this:
21258 \begin_inset Graphics
21259 filename clipart/GreyedOutNoteImageQt4.png
21262 scaleBeforeRotation
21272 \begin_layout Standard
21276 renewenvironment{lyxgreyedout}
21279 \begin_layout Standard
21283 textcolor[gray]{0.8}
21293 \begin_inset Note Greyedout
21296 \begin_layout Standard
21301 \begin_layout Standard
21302 This is an example footnote within a greyed out note.
21307 of a comment that appears in the output as grey text.
21316 \begin_layout Standard
21320 renewenvironment{lyxgreyedout}
21323 \begin_layout Standard
21337 \begin_inset Note Note
21340 \begin_layout Standard
21341 The greyed out note is here redefined to show it with the original LyX definitio
21342 n because greyed out notes are redefined in the preamble of this document,
21343 as described below, to have blue text.
21352 As you can see in the example, the first line of greyed out notes is a bit
21353 indented and greyed out notes can have footnotes.
21356 \begin_layout Description
21357 Framed This note will appear in the output as framed text.
21358 Its note-box looks like this:
21363 \begin_inset Graphics
21364 filename clipart/FramedNoteImageQt4.png
21367 scaleBeforeRotation
21372 \begin_inset Note Framed
21375 \begin_layout Standard
21376 This is text in a note box that appears framed in the output.
21381 In contrary to framed boxes
21385 \begin_layout Standard
21386 Framed boxes are described in section\InsetSpace ~
21388 \begin_inset LatexCommand ref
21389 reference "sec:Framed-Boxes"
21398 the frame uses always the whole text width and the note is set into its
21402 \begin_layout Description
21403 Shaded This note will appear in the output with red background color.
21404 Its note box looks like this:
21409 \begin_inset Graphics
21410 filename clipart/ShadedNoteImageQt4.png
21413 scaleBeforeRotation
21418 \begin_inset Note Shaded
21421 \begin_layout Standard
21422 This text in a note box appears in the output with red background.
21427 In contrary to colored boxes
21431 \begin_layout Standard
21432 Colored boxes are described in section\InsetSpace ~
21434 \begin_inset LatexCommand ref
21435 reference "sec:Colored-Boxes"
21444 the note uses always the whole text width and the note is set into its
21448 \begin_layout Standard
21449 \begin_inset VSpace bigskip
21452 When you use the toolbar button
21453 \begin_inset Graphics
21454 filename ../images/note-insert.xpm
21456 scaleBeforeRotation
21466 You can switch between the five note types by right-clicking on the note-box.
21471 If you want to turn existing text into a note, mark it and click on the
21487 \begin_layout Standard
21488 \begin_inset VSpace bigskip
21491 You can change the text color of the greyed out notes in the preamble with
21492 the following command:
21495 \begin_layout Standard
21500 renewenvironment{lyxgreyedout}
21506 \begin_layout Standard
21524 \begin_layout Standard
21525 The available colors and the method to define own colors is explained in
21526 section\InsetSpace ~
21528 \begin_inset LatexCommand ref
21529 reference "sec:Colored-Tables"
21536 \begin_layout Standard
21537 Notes that appear in blue in this document are set using greyed out notes
21541 \begin_layout Standard
21542 \begin_inset VSpace bigskip
21548 \begin_layout Standard
21557 notes can be set in the
21564 \begin_layout Standard
21565 The default frame width for
21569 notes is 0.4\InsetSpace \thinspace{}
21570 pt; it can be changed by changing the size
21577 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21579 be changed by changing the size
21586 For example the frame appearance of the following
21590 note is set with the ERT commands
21593 \begin_layout Standard
21603 \begin_layout Standard
21607 \begin_layout Standard
21619 \begin_inset Note Framed
21622 \begin_layout Standard
21636 \begin_layout Standard
21650 \begin_layout Standard
21651 \begin_inset VSpace bigskip
21657 \begin_layout Standard
21662 notes the default space between the note content and the note border is
21663 3\InsetSpace \thinspace{}
21664 pt; it can be changed by changing the size
21672 The default background color red can be changed with the command
21676 def\SpecialChar \textcompwordmark{}
21684 def\SpecialChar \textcompwordmark{}
21687 command is explained in section\InsetSpace ~
21689 \begin_inset LatexCommand ref
21690 reference "sec:Colored-Tables"
21698 \begin_layout Standard
21705 \SpecialChar \textcompwordmark{}
21710 requires the LaTeX-package
21714 in the preamble, see section\InsetSpace ~
21716 \begin_inset LatexCommand ref
21717 reference "sec:Colored-Boxes"
21729 \begin_layout Standard
21730 For example the appearance of the following
21734 note is set with the ERT commands
21737 \begin_layout Standard
21750 def\SpecialChar \textcompwordmark{}
21751 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21754 \begin_layout Standard
21758 \begin_layout Standard
21771 \begin_layout Standard
21775 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21781 \begin_inset Note Shaded
21784 \begin_layout Standard
21787 This is yellow text in a
21797 note with darkgreen background.
21806 \begin_layout Standard
21819 \begin_layout Standard
21823 definecolor{shadecolor}{rgb}{1,0,0}
21831 \begin_layout Section
21833 \begin_inset LatexCommand label
21834 name "sec:Footnotes"
21839 \begin_inset LatexCommand index
21840 name "Notes ! Footnotes"
21845 \begin_inset LatexCommand index
21853 \begin_layout Standard
21854 Footnotes can be inserted using the toolbar button
21855 \begin_inset Graphics
21856 filename ../images/footnote-insert.xpm
21858 scaleBeforeRotation
21864 Insert\SpecialChar \menuseparator
21876 then the following footnote-box:
21877 \begin_inset Graphics
21878 filename clipart/footnoteQt4.png
21880 scaleBeforeRotation
21888 where you can enter the footnote text.
21889 If you want to turn existing text into a footnote, mark it and click on
21905 \begin_layout Standard
21906 Here is an example footnote:
21914 \begin_layout Standard
21915 \begin_inset LatexCommand label
21916 name "foot:This-is-an"
21920 This is an example footnote.
21933 \begin_layout Standard
21937 newcounter{MyRepeatFoot}
21940 \begin_layout Standard
21944 setcounter{MyRepeatFoot}{
21954 \begin_layout Standard
21955 The footnote will appear in the output as a superscript number at the text
21956 position where the footnote box is placed.
21957 The footnote text is placed at the bottom of the current page.
21958 The footnote number is calculated by LaTeX, the numbers are consecutive.
21959 It depends on your document-class, if the footnote number is reset for
21963 \begin_layout Standard
21964 Footnotes can be referenced like floats: Insert a label into the footnote
21965 and cross-reference this label in the text as described in section\InsetSpace ~
21967 \begin_inset LatexCommand ref
21968 reference "sec:Referencing-Floats"
21974 This is a cross-reference of Footnote\InsetSpace ~
21976 \begin_inset LatexCommand ref
21977 reference "foot:This-is-an"
21984 \begin_layout Standard
21985 \begin_inset VSpace defskip
21988 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21990 \begin_inset LatexCommand ref
21991 reference "sec:Minipages"
21996 Footnotes within longtables are described in section\InsetSpace ~
21998 \begin_inset LatexCommand ref
21999 reference "sub:Footnotes-in-Longtables"
22006 \begin_layout Standard
22007 \begin_inset VSpace defskip
22010 To create only a mark for a footnote, use the command
22014 footnotemark[number]
22017 This is used when you have the same annotation several times in a text
22018 but doesn't want to print the footnote text every time.
22021 the number of the repeating footnote while you are writing the text, you
22022 have to store its number.
22023 For the following footnote mark example, these commands were inserted in
22024 ERT behind Footnote\InsetSpace ~
22026 \begin_inset LatexCommand ref
22027 reference "foot:This-is-an"
22031 to store the footnote number:
22034 \begin_layout Standard
22039 newcounter{MyRepeatFoot}
22043 setcounter{MyRepeatFoot}{
22048 \begin_layout Standard
22049 The footnote mark was then created with this command:
22052 \begin_layout Standard
22062 \begin_layout Standard
22063 Here is an example footnote mark:
22071 \begin_layout Standard
22085 \begin_layout Subsection
22087 \begin_inset LatexCommand label
22088 name "sub:Footnote-Numbering"
22093 \begin_inset LatexCommand index
22094 name "Footnotes ! Numbering"
22101 \begin_layout Standard
22102 To reset the footnote number back to 1 after each section
22104 , add this command to your document preamble:
22107 \begin_layout Standard
22112 @addtoreset{footnote}{section}
22115 \begin_layout Standard
22116 \begin_inset VSpace bigskip
22119 The following preamble command changes the footnote numbering style to small
22123 \begin_layout Standard
22135 \begin_layout Standard
22139 \begin_layout Standard
22152 This is a footnote with roman numbering:
22156 \begin_layout Standard
22157 This is an example footnote with roman numbering.
22165 \begin_layout Standard
22166 To change the numbering style to capital roman numerals replace in the command
22181 \begin_inset Quotes eld
22185 \begin_inset Quotes erd
22188 footnotes with capital or small Latin letters use
22202 \begin_inset Quotes eld
22206 \begin_inset Quotes erd
22209 footnotes with symbols use
22218 \begin_layout Standard
22219 \begin_inset Note Greyedout
22222 \begin_layout Standard
22227 You can only number 26 footnotes with Latin letters, because this numbering
22228 is limited to single letters.
22236 \begin_inset Note Greyedout
22239 \begin_layout Standard
22244 You can only number 9 footnotes with symbols.
22252 \begin_layout Standard
22253 To return to the default numbering style when you changed to another one,
22266 in the command above.
22270 \begin_layout Standard
22286 \begin_layout Standard
22287 \begin_inset VSpace bigskip
22293 \begin_layout Standard
22294 If you want to have footnotes numbered in the scheme
22295 \begin_inset Quotes eld
22299 \begin_inset Quotes erd
22302 , add the following command to your document preamble:
22305 \begin_layout Standard
22310 numberwithin{footnote}{chapter}
22313 \begin_layout Standard
22314 To be able to use the command
22325 in the document settings the option
22335 \begin_layout Standard
22339 \begin_layout Standard
22343 numberwithin{footnote}{chapter}
22348 This is another example footnote:
22354 \begin_layout Standard
22355 This is a footnote numbered in the scheme
22356 \begin_inset Quotes eld
22360 \begin_inset Quotes erd
22374 \begin_layout Standard
22390 \begin_layout Standard
22391 \begin_inset Note Greyedout
22394 \begin_layout Standard
22405 always prints out the footnote number as arabic number; previous redefinitions
22406 to get non-arabic numbers are overwritten.
22414 \begin_layout Standard
22415 So to get for example the scheme
22416 \begin_inset Quotes eld
22422 \begin_inset Quotes erd
22425 , use this command instead of
22434 \begin_layout Standard
22448 \begin_layout Subsection
22450 \begin_inset LatexCommand index
22451 name "Footnotes ! Placement"
22458 \begin_layout Standard
22459 If you have several footnotes in one page, they appear without vertical
22460 space between them at the bottom of the page.
22461 To make them better readable you can e.\InsetSpace \thinspace{}
22463 add 1.5\InsetSpace \thinspace{}
22464 mm space with the following
22468 \begin_layout Standard
22490 \begin_layout Standard
22491 \begin_inset VSpace bigskip
22494 In a two-column document the footnotes appear at the bottom of every column,
22495 see Figure\InsetSpace ~
22497 \begin_inset LatexCommand ref
22498 reference "fig:Standard-footnote-placement"
22503 If the footnotes should only appear at the bottom of the right column,
22504 as in Figure\InsetSpace ~
22506 \begin_inset LatexCommand ref
22507 reference "fig:Footnote-placement-in"
22511 , use the LaTeX-package
22516 \begin_inset LatexCommand index
22517 name "LaTeX-packages ! ftnright"
22521 with this command in the document preamble:
22524 \begin_layout Standard
22529 usepackage{ftnright}
22532 \begin_layout Standard
22533 \begin_inset Float figure
22539 \begin_layout Standard
22543 \begin_layout Standard
22553 \begin_inset Graphics
22554 filename clipart/without_fntright.pdf
22556 scaleBeforeRotation
22564 \begin_layout Standard
22574 \begin_layout Standard
22575 \begin_inset Caption
22577 \begin_layout Standard
22578 \begin_inset LatexCommand label
22579 name "fig:Standard-footnote-placement"
22583 Standard footnote placement in two-column documents.
22596 \begin_layout Standard
22597 \begin_inset Float figure
22603 \begin_layout Standard
22607 \begin_layout Standard
22617 \begin_inset Graphics
22618 filename clipart/with_fntright.pdf
22620 scaleBeforeRotation
22628 \begin_layout Standard
22638 \begin_layout Standard
22639 \begin_inset Caption
22641 \begin_layout Standard
22642 \begin_inset LatexCommand label
22643 name "fig:Footnote-placement-in"
22647 Footnote placement in two-column documents when the LaTeX-package
22664 \begin_layout Standard
22665 \begin_inset VSpace bigskip
22668 In some scientific literature it is usual to collect the footnotes and print
22669 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22671 \begin_inset LatexCommand ref
22672 reference "fig:Endnotes----footnotes"
22677 They are then so called
22678 \begin_inset Quotes eld
22682 \begin_inset Quotes erd
22686 To use endnotes instead of footnotes in your document, load the LaTeX-package
22692 \begin_inset LatexCommand index
22693 name "LaTeX-packages ! endnotes"
22697 with the document preamble lines
22700 \begin_layout Standard
22705 usepackage{endnotes}
22716 \begin_layout Standard
22717 To insert the collected footnotes, insert the command
22720 \begin_layout Standard
22728 \begin_layout Standard
22729 in ERT at the the end of a section or chapter.
22732 \begin_layout Standard
22733 \begin_inset Float figure
22738 \begin_layout Standard
22743 \begin_layout Standard
22753 \begin_inset Graphics
22754 filename clipart/endnotes.pdf
22755 scaleBeforeRotation
22763 \begin_layout Standard
22773 \begin_layout Standard
22774 \begin_inset Caption
22776 \begin_layout Standard
22777 \begin_inset LatexCommand label
22778 name "fig:Endnotes----footnotes"
22782 Endnotes -- footnotes are printed in a separate paragraph at the end of
22783 sections or chapters.
22796 \begin_layout Standard
22797 \begin_inset VSpace medskip
22800 The paragraph heading for the endnotes isn't automatically translated into
22801 the document language, this must be done manually.
22802 The following preamble command translate the default English name
22803 \begin_inset Quotes eld
22807 \begin_inset Quotes erd
22810 to the German translation
22811 \begin_inset Quotes eld
22815 \begin_inset Quotes erd
22821 \begin_layout Standard
22828 notesname}{Anmerkungen}
22831 \begin_layout Standard
22832 \begin_inset VSpace medskip
22835 The numbering of endnotes can be changed like the footnote numbering as
22836 described in section\InsetSpace ~
22838 \begin_inset LatexCommand ref
22839 reference "sub:Footnote-Numbering"
22843 ; just replace the command
22856 To reset the endnote number use the command
22862 as described in section\InsetSpace ~
22864 \begin_inset LatexCommand ref
22865 reference "sub:Footnote-Numbering"
22869 and replace the command parameter
22880 \begin_layout Standard
22881 To create only a mark for an endnote, use the command
22885 endnotemark[number]
22887 similar to the command
22893 , described in section\InsetSpace ~
22895 \begin_inset LatexCommand ref
22896 reference "sec:Footnotes"
22903 \begin_layout Standard
22904 \begin_inset VSpace bigskip
22907 Footnotes can also be placed in the page margin and the footnote text alignment
22908 can be changed, see the LaTeX-package
22913 \begin_inset LatexCommand index
22914 name "LaTeX-packages ! footmisc"
22919 \begin_inset LatexCommand cite
22924 for more information about this.
22927 \begin_layout Standard
22928 For various further footnote formatting issues have a look at LaTeX-books,
22930 \begin_inset LatexCommand cite
22931 key "latexcompanion,latexguide,latexbook"
22938 \begin_layout Section
22940 \begin_inset LatexCommand index
22941 name "Notes ! Margin Notes"
22948 \begin_layout Standard
22949 Margin notes look and behave in LyX like footnotes.
22950 They are inserted via the menu
22952 Insert\SpecialChar \menuseparator
22953 Marginal\InsetSpace ~
22956 or the toolbar button
22957 \begin_inset Graphics
22958 filename ../images/marginalnote-insert.xpm
22960 scaleBeforeRotation
22975 \begin_inset Quotes eld
22979 \begin_inset Quotes erd
22982 appears where you can enter the text of the margin note.
22985 \begin_layout Standard
22986 At the side is an example margin note.
22990 \begin_inset Marginal
22993 \begin_layout Standard
22994 This is a margin note.
23002 \begin_layout Standard
23003 Margin notes appear at the right side in single-sided documents.
23004 In double-sided documents they appear in the outer margin -- left on even
23005 pages, right on odd pages.
23006 The text of margin notes is aligned opposite to the outer margin -- right-align
23007 ed when the note appears in the left margin.
23008 The first line of the margin note is placed at the position of the text
23009 line where it is inserted in the document.
23012 \begin_layout Standard
23013 \begin_inset VSpace bigskip
23016 To place the margin note in the inner margin, add the command
23019 \begin_layout Standard
23027 \begin_layout Standard
23028 in ERT before a margin note.
23029 The new placement is valid for all following margin notes.
23033 \begin_layout Standard
23043 \begin_inset Marginal
23046 \begin_layout Standard
23047 This is a margin note in the inner margin.
23059 \begin_inset Note Greyedout
23062 \begin_layout Standard
23067 There is often not enough space in the inner margin so that the notes are
23068 not correctly displayed in the output.
23076 \begin_layout Standard
23077 To return to the default placement insert the command
23080 \begin_layout Standard
23088 \begin_layout Standard
23093 \begin_layout Standard
23103 \begin_inset Note Greyedout
23106 \begin_layout Standard
23111 The command is ignored when it is within a paragraph where also the command
23126 \begin_layout Standard
23127 \begin_inset VSpace bigskip
23134 \begin_inset Marginal
23137 \begin_layout Standard
23138 AVeryLongMarginParWord that isn't hyphenated.
23146 Similar to the case described in section\InsetSpace ~
23148 \begin_inset LatexCommand ref
23149 reference "sub:Multiple-Lines-in"
23153 , long words cannot be hyphenated when they are the first word in a margin
23155 To avoid this, insert the command
23158 \begin_layout Standard
23166 \begin_layout Standard
23167 in ERT before the word
23171 \begin_inset Marginal
23174 \begin_layout Standard
23178 \begin_layout Standard
23187 AVeryLongMarginParWord that is hyphenated.
23195 \begin_layout Standard
23196 \begin_inset VSpace bigskip
23202 \begin_layout Standard
23203 \begin_inset Note Greyedout
23206 \begin_layout Standard
23211 Margin notes can normally not be used inside tables, floats, and footnotes.
23219 \begin_layout Standard
23220 \begin_inset VSpace bigskip
23226 \begin_layout Standard
23230 \begin_layout Standard
23240 \begin_inset Note Note
23243 \begin_layout Standard
23244 The following section will only be displayed when you have the LaTeX-package
23257 \begin_layout Standard
23258 This restriction can be evaded by using the LaTeX-package
23263 \begin_inset LatexCommand index
23264 name "LaTeX-packages ! marginnote"
23269 By adding these two lines to your document preamble, the command used by
23270 LyX for margin notes is redefined to use the command provided by the
23277 \begin_layout Standard
23282 usepackage{marginnote}
23293 \begin_layout Standard
23294 This is also used in this document because
23298 has another useful feature: You can set a vertical offset for the note.
23299 This is often needed when too many margin notes are too close together
23300 or for a better page layout.
23301 The offset is set in LyX as ERT directly behind the margin note in the
23305 \begin_layout Standard
23311 \begin_layout Standard
23312 where the offset is a length with one of the units listed in Table\InsetSpace ~
23314 \begin_inset LatexCommand ref
23315 reference "tab:Units"
23320 A negative value shifts the note up, a positive value shifts it down.
23324 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23327 \begin_inset Quotes eld
23337 \begin_inset Quotes erd
23341 \begin_inset Marginal
23344 \begin_layout Standard
23345 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23346 cm from its original position.
23358 \begin_layout Standard
23368 \begin_layout Standard
23369 \begin_inset VSpace medskip
23376 you can also change the alignment of the text in the margin note.
23377 For example the commands
23380 \begin_layout Standard
23387 raggedleftmarginnote}{
23395 raggedrightmarginnote}{
23400 \begin_layout Standard
23401 set the alignment to centered.
23406 raggedleftmarginnote
23408 denotes margin notes that appear at the left side.
23415 \begin_layout Standard
23421 raggedleftmarginnote}{
23426 \begin_layout Standard
23432 raggedrightmarginnote}{
23440 \begin_inset Marginal
23443 \begin_layout Standard
23444 The text of this margin note is centered.
23455 \begin_layout Standard
23462 raggedleftmarginnote}{
23470 raggedrightmarginnote}{
23479 \begin_layout Standard
23485 raggedleftmarginnote}{
23490 \begin_layout Standard
23496 raggedrightmarginnote}{
23506 \begin_layout Standard
23507 \begin_inset VSpace medskip
23510 For the other features of
23514 we refer to its documentation
23515 \begin_inset LatexCommand cite
23523 \begin_layout Standard
23524 \begin_inset VSpace bigskip
23527 You can adjust the layout of margin notes by changing its definition.
23528 To create for example a header for all margin notes with the underlined,
23529 sans-serif, and bold header text
23530 \begin_inset Quotes eld
23542 \begin_inset Quotes erd
23545 , add this to your document preamble:
23548 \begin_layout Standard
23571 \begin_layout Standard
23588 underbar{Attention!}}}%
23594 \begin_layout Standard
23612 \begin_layout Standard
23619 \begin_layout Standard
23630 \begin_layout Standard
23641 \begin_layout Standard
23649 underbar{Attention!}}}%
23652 \begin_layout Standard
23666 \begin_inset Marginal
23669 \begin_layout Standard
23670 This is a margin note with a defined heading.
23682 \begin_layout Standard
23696 \begin_layout Standard
23713 \begin_inset Note Note
23716 \begin_layout Standard
23717 The margin note format is changed only for this example.
23725 \begin_layout Standard
23729 \begin_layout Standard
23739 \begin_inset Note Note
23742 \begin_layout Standard
23743 The following will be displayed when the LaTeX-package
23755 \begin_layout Standard
23756 You need to install the LaTeX-package
23760 to see the following part of this section in the output.
23763 \begin_layout Standard
23767 \begin_layout Standard
23779 \begin_layout Chapter
23783 \begin_layout Section
23785 \begin_inset LatexCommand index
23786 name "Boxes ! Introduction"
23793 \begin_layout Standard
23794 Boxes are used to format a block of text.
23795 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23797 \begin_inset LatexCommand ref
23798 reference "sec:Minipages"
23802 , to frame texts, see section\InsetSpace ~
23804 \begin_inset LatexCommand ref
23805 reference "sec:Framed-Boxes"
23809 , to prevent words to be hyphenated, see section\InsetSpace ~
23811 \begin_inset LatexCommand ref
23812 reference "sec:Prevent-Hyphenation"
23816 , to align text, see section\InsetSpace ~
23818 \begin_inset LatexCommand ref
23819 reference "sub:Vertical-Alignment"
23823 , or to set the background color of texts, see section\InsetSpace ~
23825 \begin_inset LatexCommand ref
23826 reference "sec:Colored-Boxes"
23833 \begin_layout Standard
23834 Boxes can be inserted with the menu
23836 Insert\SpecialChar \menuseparator
23840 A grey box with the label
23845 \begin_inset Graphics
23846 filename clipart/BoxInsetDefaultQt4.png
23848 scaleBeforeRotation
23852 , will be inserted.
23853 The box type can be specified by right-clicking on the box.
23854 The appearing box dialog offers the
23872 is the default for new boxes and is explained in section\InsetSpace ~
23874 \begin_inset LatexCommand ref
23875 reference "sec:Minipages"
23883 is described in section\InsetSpace ~
23885 \begin_inset LatexCommand ref
23886 reference "sec:Parboxes"
23893 \begin_layout Standard
23894 Boxes aren't numbered and can therefore not be referenced like floats or
23898 \begin_layout Standard
23899 \begin_inset Note Greyedout
23902 \begin_layout Standard
23907 Due to a bug in LyX you have to insert a protected space behind a box when
23908 you want to separate in a line the box from the following text with a space.
23916 \begin_layout Standard
23917 \begin_inset Note Greyedout
23920 \begin_layout Standard
23925 Boxes must not be the item in an
23941 \begin_layout Standard
23942 \begin_inset Note Greyedout
23945 \begin_layout Standard
23950 For an unknown reason you can only set the
23959 when you use a framed box.
23965 type and without frames are explained in section\InsetSpace ~
23967 \begin_inset LatexCommand ref
23968 reference "sec:Prevent-Hyphenation"
23980 \begin_layout Section
23982 \begin_inset LatexCommand label
23983 name "sec:Box-Dialog"
23988 \begin_inset LatexCommand index
23989 name "Boxes ! Box Dialog"
23994 \begin_inset LatexCommand index
23995 name "Boxes ! Alignment"
24002 \begin_layout Standard
24003 In the box dialog you can adjust the box geometry in the fields
24012 The available units for the geometry are explained in Table\InsetSpace ~
24014 \begin_inset LatexCommand ref
24015 reference "tab:Units"
24024 offers the following additional sizes:
24027 \begin_layout Description
24028 Depth This is the plain text
24029 \begin_inset Quotes eld
24033 \begin_inset Quotes erd
24037 It ignores the total depth when there are multiple text lines in the box:
24044 \begin_inset Box Boxed
24053 height_special "depth"
24056 \begin_layout Standard
24058 Box height set to 1\InsetSpace \thinspace{}
24071 \begin_layout Description
24072 Height This is the heigth of the text that is inside the box.
24073 A value of e.\InsetSpace \thinspace{}
24075 2 for this size will set the box heigth to 2 times the text
24077 \begin_inset Box Boxed
24086 height_special "height"
24089 \begin_layout Standard
24091 Box height set to 2\InsetSpace \thinspace{}
24100 \begin_layout Description
24102 Height This is the Height\InsetSpace \thinspace{}
24103 +\InsetSpace \thinspace{}
24105 \begin_inset Box Boxed
24114 height_special "totalheight"
24117 \begin_layout Standard
24119 Box height set to 1\InsetSpace \thinspace{}
24129 \begin_layout Description
24130 Width This set the width of the box as heigth:
24131 \begin_inset Box Boxed
24140 height_special "width"
24143 \begin_layout Standard
24145 Box height set to 1\InsetSpace \thinspace{}
24154 \begin_layout Standard
24155 \begin_inset VSpace bigskip
24158 When you have chosen an
24163 , the vertical box alignment can be:
24166 \begin_layout Description
24167 Top This is an example text line.
24169 \begin_inset Box Boxed
24178 height_special "totalheight"
24181 \begin_layout Standard
24183 This box is top-aligned.
24189 This is an example text line.
24192 \begin_layout Description
24193 Middle This is an example text line.
24195 \begin_inset Box Boxed
24204 height_special "totalheight"
24207 \begin_layout Standard
24209 This box is middle-aligned.
24215 This is an example text line.
24218 \begin_layout Description
24219 Bottom This is an example text line.
24221 \begin_inset Box Boxed
24230 height_special "totalheight"
24233 \begin_layout Standard
24235 This box is bottom-aligned.
24241 This is an example text line.
24244 \begin_layout Standard
24245 The horizontal box alignment can be set via LyX's paragraph dialog when
24246 you set the box into its own paragraph.
24249 \begin_layout Standard
24250 \begin_inset VSpace bigskip
24253 When you have chosen an
24258 , the box content can be vertical aligned to:
24261 \begin_layout Description
24262 top This is an example text line.
24264 \begin_inset Box Boxed
24273 height_special "totalheight"
24276 \begin_layout Standard
24278 This box text is top-aligned.
24284 This is an example text line.
24287 \begin_layout Description
24288 middle This is an example text line.
24290 \begin_inset Box Boxed
24299 height_special "totalheight"
24302 \begin_layout Standard
24304 This box text is middle-aligned.
24310 This is an example text line.
24313 \begin_layout Description
24314 bottom This is an example text line.
24316 \begin_inset Box Boxed
24325 height_special "totalheight"
24328 \begin_layout Standard
24330 This box text is bottom-aligned.
24336 This is an example text line.
24339 \begin_layout Description
24340 stretch This is an example text line.
24342 \begin_inset Box Boxed
24351 height_special "totalheight"
24354 \begin_layout Standard
24359 \begin_layout Standard
24364 \begin_layout Standard
24372 This is an example text line.
24375 \begin_layout Standard
24376 To stretch the box content, it must consist of more than one paragraph.
24377 In the example above every text line is in an own paragraph.
24380 \begin_layout Standard
24381 \begin_inset VSpace bigskip
24384 To align the box content horizontally you can use LyX's paragraph dialog
24385 when you have chosen an
24393 \begin_layout Standard
24395 \begin_inset Box Boxed
24404 height_special "totalheight"
24407 \begin_layout Standard
24412 \begin_layout Standard
24417 \begin_layout Standard
24427 \begin_layout Standard
24428 If you haven't set an
24433 , you can align the box content horizontally in the box dialog.
24436 \begin_layout Standard
24438 \begin_inset Box Boxed
24447 height_special "totalheight"
24450 \begin_layout Standard
24452 This box text is horizontally stretched.
24460 \begin_layout Section
24462 \begin_inset LatexCommand label
24463 name "sec:Framed-Boxes"
24468 \begin_inset LatexCommand index
24469 name "Boxes ! Frames"
24476 \begin_layout Standard
24477 The frame style of the box can be specified in the box-dialog in the drop-down
24483 The following frame types are possible:
24486 \begin_layout Description
24487 Rectangular\InsetSpace ~
24488 box This draws a rectangle frame around the box.
24489 The frame line thickness has the size of
24497 \begin_inset Box Boxed
24506 height_special "totalheight"
24509 \begin_layout Standard
24519 \begin_layout Description
24522 thin This draws an oval frame around the box.
24523 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24526 \begin_inset Box ovalbox
24535 height_special "totalheight"
24538 \begin_layout Standard
24548 \begin_layout Description
24551 thick This draws an oval frame around the box.
24552 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24555 \begin_inset Box Ovalbox
24564 height_special "totalheight"
24567 \begin_layout Standard
24577 \begin_layout Description
24578 Shadow\InsetSpace ~
24579 box This draws a rectangle frame with a shadow around the box.
24580 The frame line thickness has the size of
24586 , the shadow has a width of 4\InsetSpace \thinspace{}
24589 \begin_inset Box Shadowbox
24598 height_special "totalheight"
24601 \begin_layout Standard
24611 \begin_layout Description
24612 Double\InsetSpace ~
24613 box This draws a double-line rectangle frame around the box.
24614 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24621 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24629 The distance between the lines is 1.5\InsetSpace \thinspace{}
24636 \InsetSpace \thinspace{}
24637 +\InsetSpace \thinspace{}
24638 0.5\InsetSpace \thinspace{}
24641 \begin_inset Box Doublebox
24650 height_special "totalheight"
24653 \begin_layout Standard
24663 \begin_layout Standard
24664 \begin_inset VSpace bigskip
24667 LyX's box label will change to the used frame style when you set a frame.
24668 To be able to use the different frame styles, the LaTeX-package
24673 \begin_inset LatexCommand index
24674 name "LaTeX-packages ! fancybox"
24681 \begin_layout Standard
24682 \begin_inset VSpace bigskip
24685 The default value for the size
24691 is 0.4\InsetSpace \thinspace{}
24693 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24695 2\InsetSpace \thinspace{}
24699 \begin_layout Standard
24709 \begin_layout Standard
24713 \begin_layout Standard
24725 \begin_inset Box Boxed
24734 height_special "totalheight"
24737 \begin_layout Standard
24739 Rectangular box with
24745 \InsetSpace \thinspace{}
24746 =\InsetSpace \thinspace{}
24747 2\InsetSpace \thinspace{}
24757 \begin_layout Standard
24771 \begin_layout Standard
24772 \begin_inset VSpace bigskip
24775 The space between the frame and the box content is for all frame styles
24776 by default 3\InsetSpace \thinspace{}
24778 You can change it by setting the length
24785 For example the command
24788 \begin_layout Standard
24798 \begin_layout Standard
24799 sets the value to 10\InsetSpace \thinspace{}
24800 pt, like for the following box:
24803 \begin_layout Standard
24807 \begin_layout Standard
24819 \begin_inset Box Boxed
24828 height_special "totalheight"
24831 \begin_layout Standard
24833 Rectangular box with
24839 \InsetSpace \thinspace{}
24840 =\InsetSpace \thinspace{}
24841 10\InsetSpace \thinspace{}
24851 \begin_layout Standard
24865 \begin_layout Standard
24866 \begin_inset VSpace bigskip
24869 The diameter of the round corners of the oval boxes can be set with the
24880 \begin_layout Standard
24888 \begin_layout Standard
24889 sets the diameter to 1\InsetSpace \thinspace{}
24894 \begin_layout Standard
24902 \begin_layout Standard
24903 sets the diameter to
24905 num\InsetSpace \thinspace{}
24906 ×\InsetSpace \thinspace{}
24907 minimum(width and heigth of box)
24919 \begin_layout Standard
24923 \begin_layout Standard
24933 \begin_inset Box Ovalbox
24942 height_special "totalheight"
24945 \begin_layout Standard
24953 \InsetSpace \thinspace{}
24954 =\InsetSpace \thinspace{}
24955 1.5\InsetSpace \thinspace{}
24965 \begin_layout Standard
24977 \begin_layout Standard
24978 \begin_inset VSpace bigskip
24981 The size of the shadow can be adjusted by changing the length
24988 It it set to 2\InsetSpace \thinspace{}
24989 pt for the following box by this command:
24992 \begin_layout Standard
25002 \begin_layout Standard
25006 \begin_layout Standard
25018 \begin_inset Box Shadowbox
25027 height_special "totalheight"
25030 \begin_layout Standard
25038 \InsetSpace \thinspace{}
25039 =\InsetSpace \thinspace{}
25040 2\InsetSpace \thinspace{}
25050 \begin_layout Standard
25064 \begin_layout Standard
25065 \begin_inset VSpace bigskip
25068 Changed lengths and widths are valid for all boxes following the commands
25072 \begin_layout Section
25074 \begin_inset LatexCommand label
25075 name "sec:Minipages"
25080 \begin_inset LatexCommand index
25081 name "Boxes ! Minipages"
25088 \begin_layout Standard
25089 Minipages are treated by LaTeX as pages within pages and can therefore for
25090 example have their own footnotes.
25093 \begin_layout Standard
25094 Minipages are useful when you write documents with different languages.
25097 \begin_layout Standard
25098 Below are two example minipages side by side.
25099 Their width is set to 45\InsetSpace \thinspace{}
25100 col% and they are separated by a horizontal fill,
25101 that was inserted via the menu
25103 Insert\SpecialChar \menuseparator
25104 Special\InsetSpace ~
25105 Formatting\SpecialChar \menuseparator
25106 Horizontal\InsetSpace ~
25112 \begin_layout Standard
25113 \begin_inset Box Frameless
25122 height_special "totalheight"
25125 \begin_layout Standard
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.
25140 Dies ist ein deutscher Text
25144 \begin_layout Standard
25147 Dies ist eine deutsche Fußnote.
25153 Dies ist ein deutscher Text.
25154 Dies ist ein deutscher Text.
25162 \begin_inset Box Frameless
25171 height_special "totalheight"
25174 \begin_layout Standard
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.
25190 This is an English Text.
25194 \begin_layout Standard
25195 This is an English footnote.
25200 This is an English Text.
25209 \begin_layout Standard
25210 \begin_inset VSpace bigskip
25213 Another application for minipages are footnotes within tables.
25214 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25215 bottom of the current page.
25216 But when you put the table with the footnote to a minipage, the footnote
25217 will appear at its bottom, numbered with Latin letters.
25218 The footnote number is reset to 1 in every minipage but not outside the
25222 \begin_layout Standard
25223 The footnote of this table doesn't appear:
25224 \begin_inset Tabular
25225 <lyxtabular version="3" rows="3" columns="4">
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" width="0pt">
25230 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25231 <row topline="true">
25232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25235 \begin_layout Standard
25241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25244 \begin_layout Standard
25250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25253 \begin_layout Standard
25258 \begin_layout Standard
25259 This is a footnote within a table.
25269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25272 \begin_layout Standard
25279 <row topline="true">
25280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25283 \begin_layout Standard
25289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25292 \begin_layout Standard
25298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25301 \begin_layout Standard
25307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25310 \begin_layout Standard
25317 <row topline="true" bottomline="true">
25318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25321 \begin_layout Standard
25327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25330 \begin_layout Standard
25336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25339 \begin_layout Standard
25345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25348 \begin_layout Standard
25362 \begin_layout Standard
25364 \begin_inset Box Frameless
25373 height_special "totalheight"
25376 \begin_layout Standard
25378 \begin_inset Tabular
25379 <lyxtabular version="3" rows="3" columns="4">
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" width="0pt">
25384 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25385 <row topline="true">
25386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25389 \begin_layout Standard
25395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25398 \begin_layout Standard
25404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25407 \begin_layout Standard
25412 \begin_layout Standard
25413 This is a footnote within a table.
25423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25426 \begin_layout Standard
25433 <row topline="true">
25434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25437 \begin_layout Standard
25443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25446 \begin_layout Standard
25452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25455 \begin_layout Standard
25461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25464 \begin_layout Standard
25471 <row topline="true" bottomline="true">
25472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25475 \begin_layout Standard
25481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25484 \begin_layout Standard
25490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25493 \begin_layout Standard
25499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25502 \begin_layout Standard
25521 \begin_layout Standard
25522 \begin_inset VSpace bigskip
25525 The document-wide paragraph settings are ignored within minipages.
25526 That means that there will be no space between paragraphs in minipages
25527 although you set it to e.\InsetSpace \thinspace{}
25533 in the document settings.
25536 \begin_layout Standard
25537 Minipages can also be used to set a background color for text parts, see
25538 section\InsetSpace ~
25540 \begin_inset LatexCommand ref
25541 reference "sub:Color-for-Paragraphs"
25548 \begin_layout Standard
25549 \begin_inset Note Greyedout
25552 \begin_layout Standard
25557 You cannot have floats or margin notes inside minipages but minipages can
25558 be used inside tables, floats, and other boxes.
25566 \begin_layout Section
25568 \begin_inset LatexCommand label
25569 name "sec:Parboxes"
25574 \begin_inset LatexCommand index
25575 name "Boxes ! Parboxes"
25582 \begin_layout Standard
25583 Parboxes are very similar to minipages with the difference that they cannot
25585 The main difference to minipages is that minipages are in contrary to parboxes
25586 no real boxes but LaTeX-environments.
25589 \begin_layout Standard
25591 \begin_inset Box Frameless
25600 height_special "totalheight"
25603 \begin_layout Standard
25604 This a text within a parbox.
25605 This a text within a parbox.
25608 \begin_layout Standard
25609 This footnote won't appear:
25613 \begin_layout Standard
25614 This footnote is inside a parbox and will therefore not appear.
25627 \begin_layout Section
25628 Boxes for Words and Characters
25629 \begin_inset LatexCommand index
25630 name "Boxes ! for Characters"
25637 \begin_layout Subsection
25638 Prevent Hyphenation
25639 \begin_inset LatexCommand label
25640 name "sec:Prevent-Hyphenation"
25645 \begin_inset LatexCommand index
25646 name "Boxes ! to Prevent Hyphenation"
25653 \begin_layout Standard
25654 You can use a special kind of boxes to prevent words or text to be hyphenated.
25657 e is an example text:
25660 \begin_layout Standard
25661 This line is an example to show how you can prevent the hyphenation of
25662 \begin_inset Quotes eld
25666 \begin_inset Quotes erd
25672 \begin_layout Standard
25673 To prevent the hyphenation of the word
25674 \begin_inset Quotes eld
25678 \begin_inset Quotes erd
25684 \begin_layout Standard
25692 \begin_layout Standard
25693 in ERT before the word.
25694 Behind the word insert a closing brace
25695 \begin_inset Quotes eld
25703 \begin_inset Quotes erd
25710 \begin_layout Standard
25722 \begin_layout Standard
25723 This is the result:
25726 \begin_layout Standard
25727 This line is an example to show how you can prevent the hyphenation of
25731 \begin_layout Standard
25741 \begin_inset Quotes eld
25745 \begin_inset Quotes erd
25752 \begin_layout Standard
25762 \begin_layout Standard
25763 You can alternatively set the command
25764 \begin_inset Quotes eld
25774 \begin_inset Quotes grd
25777 as ERT directly before the word:
25780 \begin_layout Standard
25781 This line is an example to show how you can prevent the hyphenation of
25782 \begin_inset Quotes eld
25789 \begin_layout Standard
25799 \begin_inset Quotes erd
25805 \begin_layout Standard
25806 Of course the word now protrudes over the side margin.
25807 To avoid this, add via the menu
25809 Insert\SpecialChar \menuseparator
25810 Special\InsetSpace ~
25811 Formatting\SpecialChar \menuseparator
25819 ) a line break before the word:
25822 \begin_layout Standard
25823 This line is an example to show how you can prevent the hyphenation of
25829 \begin_layout Standard
25839 \begin_inset Quotes eld
25843 \begin_inset Quotes erd
25850 \begin_layout Standard
25860 \begin_layout Subsection
25862 \begin_inset LatexCommand label
25863 name "sub:Vertical-Alignment"
25868 \begin_inset LatexCommand index
25869 name "Boxes ! for Vertical Alignment"
25874 \begin_inset LatexCommand index
25875 name "Boxes ! Raiseboxes"
25882 \begin_layout Standard
25883 With the help of the command
25889 you can align words, characters or other boxes vertically to the surrounding
25897 is used with the following scheme:
25900 \begin_layout Standard
25905 raisebox{lift}[height][depth]{box content}
25908 \begin_layout Standard
25909 The lift can be a positive value to raise the box or a negative value to
25913 \begin_layout Standard
25914 To align for example the word
25915 \begin_inset Quotes eld
25919 \begin_inset Quotes erd
25922 so that the bottom of the
25923 \begin_inset Quotes eld
25927 \begin_inset Quotes erd
25931 \begin_inset Quotes eld
25935 \begin_inset Quotes erd
25938 is at the baseline, insert the command
25941 \begin_layout Standard
25951 \begin_layout Standard
25952 in ERT before the word.
25953 Behind the word insert a closing brace
25954 \begin_inset Quotes eld
25962 \begin_inset Quotes erd
25967 This is the result:
25970 \begin_layout Standard
25971 This is a text line with the word
25975 \begin_layout Standard
25987 \begin_inset Quotes eld
25991 \begin_inset Quotes erd
25998 \begin_layout Standard
26008 \begin_layout Standard
26009 \begin_inset VSpace bigskip
26012 When you raise or lower characters in a line, the line distance will be
26016 \begin_layout Standard
26017 This is a text line with the word
26021 \begin_layout Standard
26033 \begin_inset Quotes eld
26037 \begin_inset Quotes erd
26044 \begin_layout Standard
26053 This is a text line with the word
26057 \begin_layout Standard
26067 \begin_inset Quotes eld
26071 \begin_inset Quotes erd
26078 \begin_layout Standard
26088 \begin_layout Standard
26089 If you want to prevent this for a certain reason, set the box height to
26094 \begin_layout Standard
26104 \begin_layout Standard
26105 This is a text line with the word
26109 \begin_layout Standard
26121 \begin_inset Quotes eld
26125 \begin_inset Quotes erd
26132 \begin_layout Standard
26141 This is a text line with the word
26145 \begin_layout Standard
26149 raisebox{0.5cm}[0pt]{
26155 \begin_inset Quotes eld
26159 \begin_inset Quotes erd
26166 \begin_layout Standard
26176 \begin_layout Section
26178 \begin_inset LatexCommand label
26179 name "sec:Colored-Boxes"
26184 \begin_inset LatexCommand index
26185 name "Boxes ! Color"
26192 \begin_layout Subsection
26194 \begin_inset LatexCommand index
26195 name "Color ! for Text"
26202 \begin_layout Standard
26203 To color the background of text the text must be put into a so called
26204 \begin_inset Quotes eld
26208 \begin_inset Quotes erd
26212 This requires that the LaTeX-package
26217 \begin_inset LatexCommand index
26218 name "LaTeX-packages ! color"
26222 is loaded in the document preamble with the command
26225 \begin_layout Standard
26230 @ifundef\SpecialChar \textcompwordmark{}
26237 \begin_layout Standard
26248 usepackage{color}}{}
26251 \begin_layout Standard
26256 will be loaded automatically by LyX when you color text
26260 \begin_layout Standard
26261 To avoid that it is loaded twice the command
26265 @ifundef\SpecialChar \textcompwordmark{}
26276 \begin_layout Standard
26277 \begin_inset VSpace medskip
26280 Colorboxes are created with the command
26287 This will be used with the following scheme:
26290 \begin_layout Standard
26295 colorbox{color}{box content}
26298 \begin_layout Standard
26299 The box content can also be a box and colorboxes can also be within other
26303 \begin_layout Standard
26304 The following colors are predefined:
26343 You can also define your own color as described in section\InsetSpace ~
26345 \begin_inset LatexCommand ref
26346 reference "sec:Colored-Tables"
26353 \begin_layout Standard
26354 To have e.\InsetSpace \thinspace{}
26356 a red background for a word, insert the command
26359 \begin_layout Standard
26367 \begin_layout Standard
26368 before the word in ERT.
26369 Behind the word insert a closing brace
26370 \begin_inset Quotes eld
26378 \begin_inset Quotes erd
26383 This is the result:
26386 \begin_layout Standard
26387 This is a line where the word
26391 \begin_layout Standard
26401 \begin_inset Quotes eld
26405 \begin_inset Quotes erd
26412 \begin_layout Standard
26419 has a red background.
26422 \begin_layout Standard
26423 \begin_inset VSpace bigskip
26426 If you would have the box frame in a different color, you can use the command
26433 with the following scheme:
26436 \begin_layout Standard
26441 fcolorbox{frame color}{box color}{box content}
26444 \begin_layout Standard
26458 The frame thickness and the space between the frame and the box content
26459 can be adjusted with the lengths
26471 , respectively, as described in section\InsetSpace ~
26473 \begin_inset LatexCommand ref
26474 reference "sec:Framed-Boxes"
26481 \begin_layout Standard
26482 For the following example the command
26485 \begin_layout Standard
26490 fcolorbox{cyan}{magenta}{
26493 \begin_layout Standard
26497 \begin_layout Standard
26498 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26505 \begin_layout Standard
26520 \begin_layout Standard
26524 fcolorbox{cyan}{magenta}{
26529 This is text within a colored, framed box.
26533 \begin_layout Standard
26543 \begin_layout Standard
26544 \begin_inset VSpace bigskip
26547 Of course you can also have colored text inside a colorbox:
26553 \begin_layout Standard
26557 fcolorbox{cyan}{magenta}{
26564 This is colored text within a colored, framed box.
26570 \begin_layout Standard
26581 \begin_layout Standard
26595 \begin_layout Standard
26598 \begin_inset VSpace medskip
26604 \begin_layout Standard
26605 \begin_inset Note Greyedout
26608 \begin_layout Standard
26613 Text in colorboxes cannot have line breaks.
26614 To color multiple text lines or paragraphs, use a box inside a colorbox
26615 as described in the following.
26623 \begin_layout Subsection
26624 Color for Paragraphs
26625 \begin_inset LatexCommand label
26626 name "sub:Color-for-Paragraphs"
26631 \begin_inset LatexCommand index
26632 name "Color ! for Paragraphs"
26639 \begin_layout Standard
26640 To set the background color for more than one text line, put the text into
26642 Before the minipage insert the
26651 \begin_layout Standard
26659 \begin_layout Standard
26661 Behind the minipage insert a closing brace
26662 \begin_inset Quotes eld
26670 \begin_inset Quotes erd
26676 \begin_layout Standard
26680 \begin_layout Standard
26684 colorbox{lightgrey}{
26690 \begin_inset Box Frameless
26699 height_special "totalheight"
26702 \begin_layout Standard
26703 This is text with background color.
26704 This is text with background color.
26707 \begin_layout Standard
26708 \begin_inset VSpace defskip
26711 The text can have footnotes
26715 \begin_layout Standard
26716 Another example footnote
26721 and can include tables and figures.
26724 \begin_layout Standard
26726 \begin_inset Tabular
26727 <lyxtabular version="3" rows="3" columns="3">
26729 <column alignment="center" valignment="top" leftline="true" width="0">
26730 <column alignment="center" valignment="top" leftline="true" width="0">
26731 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26732 <row topline="true">
26733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26736 \begin_layout Standard
26742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26745 \begin_layout Standard
26751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26754 \begin_layout Standard
26761 <row topline="true">
26762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26765 \begin_layout Standard
26771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26774 \begin_layout Standard
26776 \begin_inset Quotes erd
26784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26787 \begin_layout Standard
26794 <row topline="true" bottomline="true">
26795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26798 \begin_layout Standard
26804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26807 \begin_layout Standard
26813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26816 \begin_layout Standard
26836 \begin_layout Standard
26846 \begin_layout Section
26847 URLs (Uniform Resource Locators)
26848 \begin_inset LatexCommand index
26856 \begin_layout Standard
26857 Links to web pages or email addresses can be inserted via the menu
26859 Insert\SpecialChar \menuseparator
26863 The appearing URL dialog has two fields; the
26871 field for the URL description, which will be typeset as plain text immediately
26875 \begin_layout Standard
26876 Here is an example URL:
26877 \begin_inset LatexCommand url
26878 name "LyX's homepage"
26879 target "http://www.lyx.org"
26886 \begin_layout Standard
26889 Generate\InsetSpace ~
26892 in the URL dialog has only an affect when you export your document to the
26894 \begin_inset Quotes eld
26902 \begin_inset Quotes erd
26908 \begin_layout Standard
26909 You cannot change the style of the link text.
26914 field will have the default text style of the document while the text of
26919 field will have the style
26920 \begin_inset Quotes eld
26928 \begin_inset Quotes erd
26934 \begin_layout Standard
26935 When you use the LaTeX-package
26940 \begin_inset LatexCommand index
26941 name "LaTeX-packages ! hyperref"
26945 to link cross-references in the output, URLs will automatically become
26946 clickable hyperlinks in DVI and PDF-output.
26949 \begin_layout Standard
26950 \begin_inset Note Greyedout
26953 \begin_layout Standard
26958 When you use the following characters: "%", "#", "^", you have to write
26959 them with a preceding backslash, e.\InsetSpace \thinspace{}
26962 \begin_inset Quotes eld
26968 \begin_inset Quotes erd
26972 URLs must not end with a backslash.
26980 \begin_layout Standard
26981 \begin_inset VSpace bigskip
26984 To create real hyperlinks without the force to write the link location to
26985 the text, you can use the command
26988 \begin_layout Standard
26993 href{link location}{link text}
26996 \begin_layout Standard
26998 To get for example a link to LyX's web page, write the command
27001 \begin_layout Standard
27006 href{http://www.lyx.org}{
27009 \begin_layout Standard
27011 Insert after the command the link text
27012 \begin_inset Quotes eld
27016 \begin_inset Quotes erd
27019 as normal text followed by a closing brace
27020 \begin_inset Quotes eld
27028 \begin_inset Quotes erd
27032 This is the result:
27036 \begin_layout Standard
27040 href{http://www.lyx.org}{
27049 \begin_layout Standard
27059 \begin_layout Standard
27060 To link to email addresses, add the prefix
27061 \begin_inset Quotes eld
27069 \begin_inset Quotes erd
27072 to the link location:
27078 \begin_layout Standard
27082 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
27087 lyx-docs mailing list
27091 \begin_layout Standard
27101 \begin_layout Standard
27108 instead of LyX's URL box has the advantage that you can specify the text
27109 style of the link text like for all other text parts.
27110 You can then set hyphenation points and forced linebreaks to have long
27111 link text broken at the page margin.
27112 You are furthermore able to change the text style for all URLs in your
27113 document with an option in
27117 's load command and the restrictions mentioned above doesn't apply for
27126 \begin_layout Chapter
27128 \begin_inset LatexCommand index
27129 name "External Stuff"
27136 \begin_layout Standard
27139 Insert\SpecialChar \menuseparator
27142 you can insert external material to your document.
27146 \begin_layout Description
27148 Document Another LyX document; its content is directly inserted to your
27152 \begin_layout Description
27154 Text A text document; every of its text lines is inserted to your document
27158 \begin_layout Description
27162 Lines A text document; its text lines are inserted as they
27164 Empty text lines creates a new paragraph in your document.
27167 \begin_layout Description
27168 External\InsetSpace ~
27169 Material Files in various formats.
27172 \begin_layout Description
27174 Document LyX or LaTeX-documents.
27177 \begin_layout Section
27179 \begin_inset LatexCommand index
27180 name "External Stuff ! External Material"
27187 \begin_layout Standard
27188 The external material feature allows you to insert files to your document
27189 without converting them previously to a format that can be read by the
27190 document output format because LyX takes care of needed conversions.
27191 This is similar to images that can be inserted in various image formats
27195 \begin_layout Standard
27196 External material can be inserted via the
27200 dialog that is accessible with the menu
27202 Insert\SpecialChar \menuseparator
27203 File\SpecialChar \menuseparator
27204 External\InsetSpace ~
27208 Currently the following file types (
27215 \begin_layout Description
27216 ChessDiagram This template supports chess position diagrams made with the
27221 \begin_layout Standard
27225 href{http://en.wikipedia.org/wiki/XBoard}{
27238 \begin_layout Standard
27248 \begin_layout Description
27249 Date This inserts the date in the form
27254 This is a date inserted as external material:
27255 \begin_inset External
27263 The date is not shown within LyX, only in the output.
27264 There are two other methods of inserting a date: Via menu
27266 Insert\SpecialChar \menuseparator
27269 and with the LaTeX command
27276 The different methods are compared in Table\InsetSpace ~
27278 \begin_inset LatexCommand ref
27279 reference "tab:Comparison-of-the"
27286 \begin_layout Description
27287 LilyPond This template is used for music notation typeset with the program
27291 \begin_layout Standard
27304 \begin_layout Standard
27308 href{http://en.wikipedia.org/wiki/LilyPond}{
27321 \begin_layout Standard
27329 \begin_inset Note Note
27332 \begin_layout Standard
27339 breaks the line while the remaining text in the line is stretched to the
27348 \begin_layout Description
27349 RasterImage This can be used for bitmap images.
27350 Nearly all popular image formats are supported.
27351 The image can be treated in the
27355 dialog like the images that are usually included via the
27359 dialog as described in section\InsetSpace ~
27361 \begin_inset LatexCommand ref
27362 reference "sec:Graphics-Dialog"
27367 The difference is that only raster images are allowed, that means that
27368 PDF and EPS-images are not supported.
27371 \begin_layout Description
27372 XFig This template supports images created with the program
27376 \begin_layout Standard
27380 href{http://en.wikipedia.org/wiki/Xfig}{
27393 \begin_layout Standard
27403 \begin_layout Standard
27404 \begin_inset Float table
27410 \begin_layout Standard
27411 \begin_inset Caption
27413 \begin_layout Standard
27414 \begin_inset LatexCommand label
27415 name "tab:Comparison-of-the"
27419 Comparison of the date input methods.
27427 \begin_layout Standard
27429 \begin_inset Tabular
27430 <lyxtabular version="3" rows="4" columns="4">
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" width="0">
27435 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27436 <row topline="true">
27437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27440 \begin_layout Standard
27446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27449 \begin_layout Standard
27452 External Material\SpecialChar \menuseparator
27458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27461 \begin_layout Standard
27464 Insert\SpecialChar \menuseparator
27470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27473 \begin_layout Standard
27484 <row topline="true">
27485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27488 \begin_layout Standard
27494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27497 \begin_layout Standard
27503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27506 \begin_layout Standard
27512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27515 \begin_layout Standard
27522 <row topline="true">
27523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27526 \begin_layout Standard
27532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27535 \begin_layout Standard
27541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27544 \begin_layout Standard
27550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27553 \begin_layout Standard
27560 <row topline="true" bottomline="true">
27561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27564 \begin_layout Standard
27570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27573 \begin_layout Standard
27579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27582 \begin_layout Standard
27588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27591 \begin_layout Standard
27610 \begin_layout Standard
27611 When you use the option
27623 dialog, only the path to the inserted file is shown in the output.
27626 material is displayed in LyX either as box like this:
27627 \begin_inset Graphics
27628 filename clipart/ExternalMaterialQt4.png
27630 scaleBeforeRotation
27634 or as image, depending on the setting in the
27646 \begin_layout Standard
27653 manual explains how you can define your own templates.
27656 \begin_layout Section
27658 \begin_inset LatexCommand label
27659 name "sec:Child-Documents"
27664 \begin_inset LatexCommand index
27665 name "External Stuff ! Child Documents"
27670 \begin_inset LatexCommand index
27671 name "Files ! Include"
27678 \begin_layout Standard
27679 Child documents are used when you have a long document consisting of several
27680 larger parts or sections.
27681 For maintenance it is often useful and sometimes even required to split
27682 the document in several files that can be revised separately.
27683 The different documents are then the so called child documents and a master
27684 document connects them to print the full document or parts of it.
27687 \begin_layout Standard
27688 Included documents are displayed in LyX as a box like this:
27689 \begin_inset Graphics
27690 filename clipart/ChildDocumentQt4.png
27692 scaleBeforeRotation
27696 To include child documents to a master document use the menu
27698 Insert\SpecialChar \menuseparator
27699 File\SpecialChar \menuseparator
27704 A dialog pops up where you can choose between four include methods:
27707 \begin_layout Description
27708 Include You can include LyX and LaTeX-documents.
27717 dialog, the included documents will be opened in LyX in a new file tab
27718 so that you can modify it.
27723 \begin_layout Standard
27724 Here is a child document inserted using
27729 \begin_inset Include \include{DummyDocument1.lyx}
27737 \begin_layout Standard
27738 The section numbering includes the sections of the included files in the
27739 order they are inserted in the master document.
27740 The included example document has for example a subsection that is numbered
27741 as subsection of this section.
27742 Labels of included documents can be referenced: Subsection\InsetSpace ~
27744 \begin_inset LatexCommand ref
27745 reference "sub:External-Subsection-1"
27752 \begin_layout Standard
27753 The preamble of the child document is ignored, only the preamble of the
27754 master document is used.
27755 Included documents are inserted starting on a new page and end with a pagebreak.
27758 \begin_layout Standard
27759 With the LaTeX-command
27765 you can specify which included child documents are processed when the output
27767 This is useful when you are perhaps only working on a certain chapter of
27768 your large document as this saves compiling time.
27775 is inserted to the master document preamble.
27776 It takes a comma-separated list of the filenames as argument, e.g.
27779 \begin_layout Standard
27784 includeonly{chapter1,chapter5}
27787 \begin_layout Standard
27788 will only process the included files named
27789 \begin_inset Quotes eld
27793 \begin_inset Quotes erd
27797 \begin_inset Quotes eld
27801 \begin_inset Quotes erd
27805 \begin_inset Quotes eld
27809 \begin_inset Quotes erd
27815 \begin_layout Standard
27816 \begin_inset Note Greyedout
27819 \begin_layout Standard
27824 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27825 w the document in case that the child document uses another document class
27826 than the master document as this will lead to unexpected outputs.
27834 \begin_layout Description
27835 Input This method is very similar to the Include method.
27836 The differences are:
27840 \begin_layout Itemize
27841 Input files don't start with a new page and don't end with a pagebreak.
27844 \begin_layout Itemize
27845 Input files can be previewed in LyX when
27847 Instant\InsetSpace ~
27850 is enabled in LyX's preferences under
27854 feel\SpecialChar \menuseparator
27860 \begin_layout Itemize
27871 \begin_layout Standard
27872 Here is a child document inserted using
27877 \begin_inset Include \input{DummyDocument2.lyx}
27885 \begin_layout Description
27886 Verbatim With this method every text file can be included.
27887 The file is shown in the output with its source code, no command used in
27888 the text is invoked.
27889 You can use the option
27891 Mark spaces in output
27893 that displays the character
27894 \begin_inset Quotes eld
27901 \begin_layout Standard
27911 \begin_inset Quotes erd
27914 for every space character in the source code.
27915 The difference to the method via the menu
27917 Insert\SpecialChar \menuseparator
27918 File\SpecialChar \menuseparator
27922 is that the document content is not shown in LyX.
27925 \begin_layout Standard
27926 Here is a child document inserted as Verbatim:
27927 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27933 \begin_inset VSpace bigskip
27936 Here is a child document inserted as Verbatim using the
27938 Mark spaces in output
27941 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27949 \begin_layout Standard
27950 \begin_inset VSpace bigskip
27956 \begin_layout Standard
27957 \begin_inset Note Greyedout
27960 \begin_layout Standard
27965 As you can see in the examples above, the text of the documents included
27970 is not broken at the end of the document lines.
27978 \begin_layout Description
27979 Listings This type is described in chapter\InsetSpace ~
27981 \begin_inset LatexCommand ref
27982 reference "cha:Program-Code-Listings"
27989 \begin_layout Standard
27990 \begin_inset Note Greyedout
27993 \begin_layout Standard
27998 Including the same document twice in a document using different methods
27999 could cause LaTeX-problems.
28007 \begin_layout Chapter
28008 Program Code Listings
28009 \begin_inset LatexCommand label
28010 name "cha:Program-Code-Listings"
28015 \begin_inset LatexCommand index
28021 \begin_inset LatexCommand index
28022 name "Program Code"
28027 \begin_inset LatexCommand index
28028 name "Floats ! Listings"
28035 \begin_layout Standard
28036 To include and typeset program code you can use the
28040 inset that can be inserted via the menu
28042 Insert\SpecialChar \menuseparator
28051 \begin_inset LatexCommand index
28052 name "LaTeX-packages ! listings"
28056 provides a powerful and flexible way to insert program source code to your
28060 \begin_layout Standard
28061 When right-clicking on a listings inset a dialog pops up where you can set
28062 the listings format.
28065 \begin_layout Standard
28066 By default, a listing starts a new paragraph in the output.
28067 The placement option
28069 Inline\InsetSpace ~
28072 prints the listing inline like this:
28073 \begin_inset listings
28074 lstparams "language={C++}"
28078 \begin_layout Standard
28091 creates a listings float where you can specify the placement options
28092 \begin_inset Quotes eld
28100 \begin_inset Quotes erd
28104 \begin_inset Quotes eld
28112 \begin_inset Quotes erd
28116 \begin_inset Quotes eld
28124 \begin_inset Quotes erd
28128 \begin_inset Quotes eld
28136 \begin_inset Quotes erd
28139 corresponding to the float placement options described in section\InsetSpace ~
28141 \begin_inset LatexCommand ref
28142 reference "sec:Float-Placement"
28147 The placement options can be mixed and are inserted without any separation,
28148 e.\InsetSpace \thinspace{}
28151 \begin_inset Quotes eld
28159 \begin_inset Quotes erd
28164 \begin_inset Quotes eld
28168 \begin_inset Quotes erd
28171 has sometimes no effect, but you don't need to use the
28175 option in this case as also non-float listings can have captions and be
28179 \begin_layout Standard
28180 You can add captions to listings with the menu
28182 Insert\SpecialChar \menuseparator
28186 Listings can be referenced like floats: Listing\InsetSpace ~
28188 \begin_inset LatexCommand ref
28189 reference "lst:Example-Listing"
28196 \begin_layout Standard
28197 \begin_inset listings
28198 lstparams "language=Python"
28202 \begin_layout Standard
28204 \begin_inset Caption
28206 \begin_layout Standard
28207 \begin_inset LatexCommand label
28208 name "lst:Example-Listing"
28212 Example Listing float
28217 # Example listing float
28220 \begin_layout Standard
28225 \begin_layout Standard
28227 'this is a python function'
28230 \begin_layout Standard
28240 \begin_layout Standard
28241 When you have set a programming language in the listings dialog, the keywords
28242 of this language will be recognized and specially typeset in the output.
28243 In the example listings the Python keyword
28244 \begin_inset Quotes eld
28248 \begin_inset Quotes erd
28251 is recognized and printed bold in the output.
28254 \begin_layout Standard
28260 of the listings dialog you can specify the line numbering style.
28261 You can insert a number to specify which lines are numbered to the field
28267 When you insert e.g.
28269 \begin_inset Quotes eld
28273 \begin_inset Quotes erd
28276 , only every 3rd line will be numbered.
28279 \begin_layout Standard
28280 You can furthermore specify a range of lines, only these will then appear
28284 Extended\InsetSpace ~
28287 should be used when you use national characters like the German umlauts
28290 Here is an example listing with left line numbering, step
28292 \begin_inset Quotes eld
28296 \begin_inset Quotes erd
28300 \begin_inset Quotes eld
28304 \begin_inset Quotes erd
28308 \begin_inset Quotes eld
28311 Extended\InsetSpace ~
28313 \begin_inset Quotes erd
28317 \begin_inset Quotes eld
28323 \begin_inset Quotes erd
28326 , range lines 3\InsetSpace \thinspace{}
28327 -\InsetSpace \thinspace{}
28331 \begin_layout Standard
28332 \begin_inset listings
28333 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28337 \begin_layout Standard
28342 \begin_layout Standard
28344 'this is a python function'
28347 \begin_layout Standard
28352 \begin_layout Standard
28357 \begin_layout Standard
28359 'This is a German word: Tschüß'
28362 \begin_layout Standard
28367 \begin_layout Standard
28372 \begin_layout Standard
28374 'this is a python function'
28377 \begin_layout Standard
28387 \begin_layout Standard
28388 \begin_inset Note Greyedout
28391 \begin_layout Standard
28396 The line numbering is shifted by a line by every previous listing.
28397 That's the reason why the lines 2 and 5 are numbered in the above listing
28398 and not the lines 3 and 6.
28406 \begin_layout Standard
28407 \begin_inset VSpace bigskip
28413 \begin_layout Standard
28414 It is also possible to print lines from a file as listing.
28415 To do this, use the menu
28417 Insert\SpecialChar \menuseparator
28418 File\SpecialChar \menuseparator
28421 and choose the type
28429 \begin_layout Standard
28430 The other child document types are described in section\InsetSpace ~
28432 \begin_inset LatexCommand ref
28433 reference "sec:Child-Documents"
28442 In the child document dialog you can specify the listing parameters in
28444 To show a list of all available parameters, type in a question mark
28445 \begin_inset Quotes eld
28449 \begin_inset Quotes erd
28455 \begin_layout Standard
28456 To reference child document listings, write a label text into the corresponding
28457 field of the child document dialog.
28458 The label can then be referenced using the menu
28460 Insert\SpecialChar \menuseparator
28466 \begin_layout Standard
28467 Listing\InsetSpace ~
28469 \begin_inset LatexCommand ref
28470 reference "lst:file-listing"
28474 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28475 -\InsetSpace \thinspace{}
28480 \begin_layout Standard
28481 \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]
28489 \begin_layout Standard
28490 \begin_inset VSpace bigskip
28496 \begin_layout Standard
28497 Global listings settings can be set in the
28499 Document\SpecialChar \menuseparator
28500 Settings\SpecialChar \menuseparator
28504 To get there a list of available options, type in a question mark
28505 \begin_inset Quotes eld
28509 \begin_inset Quotes erd
28514 Listings\InsetSpace ~
28520 \begin_layout Standard
28521 For more information about the
28525 package, we refer to its documentation
28526 \begin_inset LatexCommand cite
28534 \begin_layout Standard
28540 \begin_layout Chapter
28546 \begin_layout Standard
28559 \begin_layout Standard
28567 \begin_inset LatexCommand index
28573 \begin_inset LatexCommand label
28574 name "cha:Units-available-in"
28579 \begin_inset Note Note
28582 \begin_layout Standard
28585 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28586 are displayed wrongly in PDF-bookmarks.
28587 For more information about this, have a look at
28588 \begin_inset LatexCommand cite
28601 \begin_layout Standard
28602 To understand the units described in this documentation, Table\InsetSpace ~
28604 \begin_inset LatexCommand ref
28605 reference "tab:Units"
28609 explains all units available in LyX.
28612 \begin_layout Standard
28613 \begin_inset Float table
28619 \begin_layout Standard
28620 \begin_inset Caption
28622 \begin_layout Standard
28623 \begin_inset LatexCommand label
28636 \begin_layout Standard
28637 \begin_inset VSpace medskip
28643 \begin_layout Standard
28645 \begin_inset Tabular
28646 <lyxtabular version="3" rows="20" columns="2">
28648 <column alignment="center" valignment="top" leftline="true" width="0">
28649 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28650 <row topline="true" bottomline="true">
28651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28654 \begin_layout Standard
28660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28663 \begin_layout Standard
28670 <row topline="true">
28671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28674 \begin_layout Standard
28680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28683 \begin_layout Standard
28690 <row topline="true">
28691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28694 \begin_layout Standard
28700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28703 \begin_layout Standard
28710 <row topline="true">
28711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28714 \begin_layout Standard
28720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28723 \begin_layout Standard
28730 <row topline="true">
28731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28734 \begin_layout Standard
28740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28743 \begin_layout Standard
28744 point (72.27\InsetSpace \thinspace{}
28745 pt = 1\InsetSpace \thinspace{}
28752 <row topline="true">
28753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28756 \begin_layout Standard
28762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28765 \begin_layout Standard
28766 pica (1\InsetSpace \thinspace{}
28767 pc = 12\InsetSpace \thinspace{}
28774 <row topline="true">
28775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28778 \begin_layout Standard
28784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28787 \begin_layout Standard
28788 scaled point (65536\InsetSpace \thinspace{}
28789 sp = 1\InsetSpace \thinspace{}
28796 <row topline="true">
28797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28800 \begin_layout Standard
28806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28809 \begin_layout Standard
28810 big point (72\InsetSpace \thinspace{}
28811 bp = 1\InsetSpace \thinspace{}
28818 <row topline="true">
28819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28822 \begin_layout Standard
28828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28831 \begin_layout Standard
28832 didot (1\InsetSpace \thinspace{}
28834 \begin_inset Formula $\approx$
28837 0.376\InsetSpace \thinspace{}
28844 <row topline="true">
28845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28848 \begin_layout Standard
28854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28857 \begin_layout Standard
28858 cicero (1\InsetSpace \thinspace{}
28859 cc = 12\InsetSpace \thinspace{}
28866 <row topline="true">
28867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28870 \begin_layout Standard
28876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28879 \begin_layout Standard
28880 % of original image width
28886 <row topline="true">
28887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28890 \begin_layout Standard
28896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28899 \begin_layout Standard
28906 <row topline="true">
28907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28910 \begin_layout Standard
28916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28919 \begin_layout Standard
28926 <row topline="true">
28927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28930 \begin_layout Standard
28936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28939 \begin_layout Standard
28946 <row topline="true">
28947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28950 \begin_layout Standard
28956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28959 \begin_layout Standard
28966 <row topline="true">
28967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28970 \begin_layout Standard
28976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28979 \begin_layout Standard
28986 <row topline="true">
28987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28990 \begin_layout Standard
28996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28999 \begin_layout Standard
29006 <row topline="true">
29007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29010 \begin_layout Standard
29016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29019 \begin_layout Standard
29030 <row topline="true">
29031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29034 \begin_layout Standard
29040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29043 \begin_layout Standard
29054 <row topline="true" bottomline="true">
29055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29058 \begin_layout Standard
29064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29067 \begin_layout Standard
29068 math unit (1\InsetSpace \thinspace{}
29069 mu = 1/18\InsetSpace \thinspace{}
29088 \begin_layout Chapter
29089 Output File Formats with Graphics
29090 \begin_inset LatexCommand label
29091 name "cha:Output-File-Formats"
29098 \begin_layout Section
29100 \begin_inset LatexCommand index
29101 name "File Formats ! DVI"
29106 \begin_inset LatexCommand index
29107 name "DVI|see{File Formats}"
29114 \begin_layout Standard
29115 This file type has the extension
29116 \begin_inset Quotes eld
29124 \begin_inset Quotes erd
29129 \begin_inset Quotes eld
29133 \begin_inset Quotes erd
29136 (DVI), because it is completely portable; you can move them from one machine
29137 to another without needing to do any sort of conversion.
29138 At the time when this file-format was developed, this was no matter of
29140 DVIs are used for quick previews and as pre-stage for other output formats,
29144 \begin_layout Standard
29145 \begin_inset Note Greyedout
29148 \begin_layout Standard
29153 DVI-files doesn't contain images, they will only be a linked.
29158 So don't forget this, if you move your
29162 file to another computer.
29163 This property can also slow down your computer when you view the DVI.
29164 Because the DVI-viewer has to convert the image in the background to make
29165 it visible when you scroll in the DVI.
29166 So we recommend to use PDF for files with many images.
29169 \begin_layout Standard
29170 You can export your document to DVI by using the menu
29172 File\SpecialChar \menuseparator
29173 Export\SpecialChar \menuseparator
29177 You can view your document as DVI via the
29181 menu or by using the toolbar button
29182 \begin_inset Graphics
29183 filename ../images/buffer-view_dvi.xpm
29185 scaleBeforeRotation
29192 \begin_layout Section
29194 \begin_inset LatexCommand label
29195 name "sec:PostScript"
29200 \begin_inset LatexCommand index
29201 name "File Formats ! PostScript"
29206 \begin_inset LatexCommand index
29207 name "PostScript|see{File Formats}"
29214 \begin_layout Standard
29215 This file type has the extension
29216 \begin_inset Quotes eld
29224 \begin_inset Quotes erd
29228 PostScript was developed by the company
29232 as printer language.
29233 The file contains therefore commands that the printer uses to print the
29235 PostScript can be seen as
29236 \begin_inset Quotes eld
29239 programming language
29240 \begin_inset Quotes erd
29243 ; you can calculate with it and draw diagrams and images
29247 \begin_layout Standard
29248 If you are interested to learn more about this, have a look at the LaTeX-package
29254 \begin_inset LatexCommand cite
29265 Due to this ability, the files are often bigger than PDFs.
29268 \begin_layout Standard
29269 PostScript can only contain images in the format
29270 \begin_inset Quotes eld
29273 Encapsulated PostScript
29274 \begin_inset Quotes erd
29277 (EPS, file extension
29278 \begin_inset Quotes eld
29286 \begin_inset Quotes erd
29290 As LyX allows you to use any known image format in your document, it has
29291 to convert images in the background to EPS.
29292 If you have e.g 50 images in your document, LyX has to do 50 conversions
29293 whenever you view or export your document.
29294 This will slow down your work flow with LyX drastically.
29295 So if you plan to use PostScript, you can insert your images directly as
29296 EPS to avoid this problem.
29299 \begin_layout Standard
29300 You can export your document to PostScript using the menu
29302 File\SpecialChar \menuseparator
29303 Export\SpecialChar \menuseparator
29307 You can view your document as PostScript via the
29311 menu or by using the toolbar button
29312 \begin_inset Graphics
29313 filename ../images/buffer-view_ps.xpm
29315 scaleBeforeRotation
29322 \begin_layout Section
29324 \begin_inset LatexCommand label
29330 \begin_inset LatexCommand index
29331 name "File Formats ! PDF"
29336 \begin_inset LatexCommand index
29344 \begin_layout Standard
29345 This file type has the extension
29346 \begin_inset Quotes eld
29354 \begin_inset Quotes erd
29359 \begin_inset Quotes eld
29362 Portable Document Format
29363 \begin_inset Quotes erd
29366 (PDF) is developed by
29370 as derivative from PostScript.
29371 It is more compressed and it uses much less commands than PostScript.
29373 \begin_inset Quotes eld
29377 \begin_inset Quotes erd
29380 implies, it can be processed at any computer system and the printed output
29381 looks exactly the same.
29384 \begin_layout Standard
29385 PDF can contain images in its own PDF format, in the format
29386 \begin_inset Quotes eld
29389 Joint Photographic Experts Group
29390 \begin_inset Quotes erd
29393 (JPG, file extension
29394 \begin_inset Quotes eld
29402 \begin_inset Quotes erd
29406 \begin_inset Quotes eld
29414 \begin_inset Quotes erd
29417 ), and in the format
29418 \begin_inset Quotes eld
29421 Portable Network Graphics
29422 \begin_inset Quotes erd
29425 (PNG, file extension
29426 \begin_inset Quotes eld
29434 \begin_inset Quotes erd
29438 Nevertheless you can use any other image format, because LyX converts them
29439 in the background to one of these formats.
29440 But as described in the section about PostScript, the image conversion
29441 will slow down your work flow.
29442 So it is recommended to use images in one of the three mentioned formats.
29445 \begin_layout Standard
29446 You can export your document to PDF via the menu
29448 File\SpecialChar \menuseparator
29451 in three different ways:
29454 \begin_layout Description
29456 (ps2pdf) This uses the program
29460 that creates a PDF from a PostScript-version of your file.
29461 The PostScript-version is produced by the program
29465 which uses a DVI-version as intermediate step.
29466 So this export variant consist of three conversions.
29469 \begin_layout Description
29471 (dvipdfm) This uses the program
29475 that converts your file in the background to DVI and in a second step to
29479 \begin_layout Description
29481 (pdflatex) This uses the program
29485 that converts your file directly to PDF.
29488 \begin_layout Standard
29489 It is recommended to use
29498 supports all features of actual PDF-versions, is quick and works stable
29504 is not under development and therefore a bit outdated.
29507 \begin_layout Standard
29508 You can view your document as PDF via the
29512 menu or by using the toolbar button
29513 \begin_inset Graphics
29514 filename ../images/buffer-view_pdf2.xpm
29516 scaleBeforeRotation
29532 \begin_layout Chapter
29533 Explanation of Equation\InsetSpace ~
29535 \begin_inset LatexCommand eqref
29541 \begin_inset LatexCommand label
29542 name "cha:Explanation-of-Equation"
29549 \begin_layout Standard
29555 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29558 can be calculated to
29561 \begin_layout Standard
29562 \begin_inset Formula \begin{equation}
29563 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29570 \begin_layout Standard
29572 \begin_inset Formula $W_{g\, n}$
29575 is the given width of all cells.
29582 is the LaTeX-length between the cell text and the cell border, its default
29583 value is 6\InsetSpace \thinspace{}
29591 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29595 \begin_layout Standard
29596 Following equation\InsetSpace ~
29598 \begin_inset LatexCommand eqref
29599 reference "eq:Wtot_n"
29603 , the total width of a multicolumn
29604 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29610 \begin_layout Standard
29611 \begin_inset Formula \begin{equation}
29612 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29619 \begin_layout Standard
29620 By setting equation\InsetSpace ~
29622 \begin_inset LatexCommand eqref
29623 reference "eq:Wtot_n"
29628 \begin_inset LatexCommand eqref
29629 reference "eq:Wtot_mult"
29633 equal we can calculate the needed given width
29634 \begin_inset Formula $W_{g\, n}$
29641 columns are spanned, so that each column has a total width of
29642 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29648 \begin_layout Standard
29649 \begin_inset Formula \begin{equation}
29650 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29657 \begin_layout Bibliography
29658 \begin_inset LatexCommand bibitem
29659 key "latexcompanion"
29663 Frank Mittelbach and Michel Goossens:
29665 The LaTeX Companion Second Edition.
29668 Addison-Wesley, 2004
29671 \begin_layout Bibliography
29672 \begin_inset LatexCommand bibitem
29677 Helmut Kopka and Patrick W.
29680 A Guide to LaTeX Fourth Edition.
29683 Addison-Wesley, 2003
29686 \begin_layout Bibliography
29687 \begin_inset LatexCommand bibitem
29694 LaTeX: A Document Preparation System.
29697 Addison-Wesley, second edition, 1994
29700 \begin_layout Bibliography
29701 \begin_inset LatexCommand bibitem
29710 \begin_layout Standard
29714 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29724 \begin_layout Standard
29731 of the LaTeX-package
29736 \begin_inset LatexCommand index
29737 name "LaTeX-packages ! booktabs"
29744 \begin_layout Bibliography
29745 \begin_inset LatexCommand bibitem
29754 \begin_layout Standard
29758 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29767 \begin_layout Standard
29774 of the LaTeX-package
29779 \begin_inset LatexCommand index
29780 name "LaTeX-packages ! caption"
29787 \begin_layout Bibliography
29788 \begin_inset LatexCommand bibitem
29797 \begin_layout Standard
29801 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29811 \begin_layout Standard
29818 of the LaTeX-package
29823 \begin_layout Bibliography
29824 \begin_inset LatexCommand bibitem
29833 \begin_layout Standard
29837 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29847 \begin_layout Standard
29854 of the LaTeX-package
29856 endf\SpecialChar \textcompwordmark{}
29860 \begin_inset LatexCommand index
29861 name "LaTeX-packages ! endfloat"
29868 \begin_layout Bibliography
29869 \begin_inset LatexCommand bibitem
29878 \begin_layout Standard
29882 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29892 \begin_layout Standard
29899 of the LaTeX-package
29901 f\SpecialChar \textcompwordmark{}
29902 loatf\SpecialChar \textcompwordmark{}
29906 \begin_inset LatexCommand index
29907 name "LaTeX-packages ! floatflt"
29914 \begin_layout Bibliography
29915 \begin_inset LatexCommand bibitem
29924 \begin_layout Standard
29928 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29938 \begin_layout Standard
29945 of the LaTeX-package
29950 \begin_inset LatexCommand index
29951 name "LaTeX-packages ! footmisc"
29958 \begin_layout Bibliography
29959 \begin_inset LatexCommand bibitem
29968 \begin_layout Standard
29972 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29981 \begin_layout Standard
29988 of the LaTeX-package
29993 \begin_inset LatexCommand index
29994 name "LaTeX-packages ! hyperref"
30001 \begin_layout Bibliography
30002 \begin_inset LatexCommand bibitem
30011 \begin_layout Standard
30015 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
30025 \begin_layout Standard
30032 of the LaTeX-package
30037 \begin_inset LatexCommand index
30038 name "LaTeX-packages ! hyperref"
30045 \begin_layout Bibliography
30046 \begin_inset LatexCommand bibitem
30055 \begin_layout Standard
30059 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
30069 \begin_layout Standard
30076 of the LaTeX-package
30081 \begin_inset LatexCommand index
30082 name "LaTeX-packages ! koma-script"
30089 \begin_layout Bibliography
30090 \begin_inset LatexCommand bibitem
30091 key "koma-script-de"
30099 \begin_layout Standard
30103 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30113 \begin_layout Standard
30120 of the LaTeX-package
30125 \begin_inset LatexCommand index
30126 name "LaTeX-packages ! koma-script"
30133 \begin_layout Bibliography
30134 \begin_inset LatexCommand bibitem
30143 \begin_layout Standard
30147 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30157 \begin_layout Standard
30164 of the LaTeX-package
30169 \begin_inset LatexCommand index
30170 name "LaTeX-packages ! listings"
30177 \begin_layout Bibliography
30178 \begin_inset LatexCommand bibitem
30187 \begin_layout Standard
30191 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30201 \begin_layout Standard
30208 of the LaTeX-package
30213 \begin_inset LatexCommand index
30214 name "LaTeX-packages ! marginnote"
30221 \begin_layout Bibliography
30222 \begin_inset LatexCommand bibitem
30231 \begin_layout Standard
30235 href{http://tug.org/PSTricks/main.cgi/}{
30244 \begin_layout Standard
30251 of the LaTeX-package
30256 \begin_inset LatexCommand index
30257 name "LaTeX-packages ! PSTricks"
30264 \begin_layout Bibliography
30265 \begin_inset LatexCommand bibitem
30274 \begin_layout Standard
30278 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30287 \begin_layout Standard
30294 of the LaTeX-package
30299 \begin_inset LatexCommand index
30300 name "LaTeX-packages ! sidecap"
30307 \begin_layout Bibliography
30308 \begin_inset LatexCommand bibitem
30317 \begin_layout Standard
30321 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30330 \begin_layout Standard
30337 about new LyX-features planned for the release
30344 \begin_layout Standard
30345 \begin_inset LatexCommand printindex
30352 \begin_layout Standard
30353 \begin_inset FloatList figure
30360 \begin_layout Standard
30361 \begin_inset FloatList table