]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/EmbeddedObjects.lyx
doc_toc.py: add comment to explain its calling syntax (fixes bug 3798
[lyx.git] / lib / doc / EmbeddedObjects.lyx
index 957fbdc167a9574bed4f5b9b3b14bd3b5f037b99..75448f9a3a78d1c2d36fa1e2fb40e7744f4806b7 100644 (file)
@@ -1,5 +1,5 @@
 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 263
+\lyxformat 276
 \begin_document
 \begin_header
 \textclass scrbook
 % used for book-style tables
 \usepackage{booktabs}
 
-% used to have extra space in table cells,
+% used to have extra space in table cells
+\@ifundefined{extrarowheight}
+ {\usepackage{array}}{}
 \setlength{\extrarowheight}{2pt}
 
 % used for customized tables
 \newcolumntype{W}{!{\color{green}\vline}}
 % ---
 
-% To be able to enter the characters ° and · directly in LyX
-\DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
-\DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
-
 % insert additional vertical space of
 % 1.5 mm between footnotes
 \let\myFoot\footnote
 \bullet 3 2 7 -1
 \tracking_changes false
 \output_changes false
-\author "usti" 
-\author "Uwe Stöhr" 
+\author "" 
 \author "" 
 \end_header
 
 \begin_body
 
 \begin_layout Title
-LyX's detailed Figure, Table, Floats, Notes, and Boxes manual
+LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
+ manual
 \end_layout
 
 \begin_layout Author
@@ -358,6 +356,7 @@ To insert an image into your document, place the cursor at the text position
 \begin_inset Graphics
        filename ../images/dialog-show-new-inset_graphics.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -396,8 +395,22 @@ You can rotate images counter-clockwise by setting a rotation angle and
  a rotation origin.
  The image will also be rotated inside LyX.
 \newline
-Images can be opened in a program
- of your choice when pressing the 
+Images can be scaled by using
+ a percentage value or by setting the width and height explicitly.
+ If you set only the width or only the height, the other size will be determined
+ automatically.
+ If you set both, then the image will be transformed to the given size,
+ possibly distorting it.
+ To prevent the image from distortion, use the option 
+\family sans
+Maintain aspect ratio
+\family default
+.
+ The image will then be scaled so that its width and height don't exceed
+ the specified dimensions.
+\newline
+Images can be opened in a program of your choice
+ when pressing the 
 \family sans
 Edit
 \family default
@@ -547,6 +560,7 @@ reference "sec:Image-Formats"
        filename clipart/mobius.eps
        display color
        scale 70
+       scaleBeforeRotation
        rotateOrigin center
 
 \end_inset
@@ -565,6 +579,7 @@ This is the same image like the one above but in draft mode:
        display color
        scale 70
        draft
+       scaleBeforeRotation
        rotateOrigin center
 
 \end_inset
@@ -581,7 +596,7 @@ name "sec:Figure-Floats"
 
 
 \begin_inset LatexCommand index
-name "Floats ! Figure Floats"
+name "Floats ! Figures"
 
 \end_inset
 
@@ -610,6 +625,7 @@ The toolbar button
 \begin_inset Graphics
        filename ../images/float-insert_figure.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -666,6 +682,7 @@ status open
        filename clipart/platypus.eps
        display color
        width 50col%
+       scaleBeforeRotation
        rotateOrigin center
 
 \end_inset
@@ -725,6 +742,7 @@ M.C.
        filename clipart/escher-lsd.eps
        display color
        scale 80
+       scaleBeforeRotation
        rotateOrigin center
 
 \end_inset
@@ -767,6 +785,7 @@ Label
 \begin_inset Graphics
        filename ../images/label-insert.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -781,6 +800,7 @@ reference
 \begin_inset Graphics
        filename ../images/dialog-show-new-inset_ref.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -867,6 +887,7 @@ status open
 \begin_inset Graphics
        filename clipart/escher-lsd.eps
        width 45col%
+       scaleBeforeRotation
        subcaption
        subcaptionText "Undefinable structure"
 
@@ -879,6 +900,7 @@ status open
        filename clipart/platypus.eps
        lyxscale 60
        width 45col%
+       scaleBeforeRotation
        subcaption
        subcaptionText "\label{fig:Platypus} Platypus"
 
@@ -1210,8 +1232,8 @@ Normally it is not possible to convert a bitmap image into a scalable one,
  only vice versa.
  Only the image formats PDF and EPS can directly be embedded to PDF and
  PostScript output files, respectively.
- SVG and WMF-images are currently recalculated to bitmaps when the output
file is generated because there is currently no adequate WMF/SVG
+ SVG and WMF-images are recalculated to bitmaps when the output file is
+ generated because there is currently no adequate WMF/SVG
 \begin_inset Formula $\to$
 \end_inset
 
@@ -1249,6 +1271,7 @@ You can insert a table using either the toolbar button
 \begin_inset Graphics
        filename ../images/tabular-insert.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1508,10 +1531,10 @@ contents
 Table\InsetSpace ~
 Settings
 \family default
- Here you can set the horizontal alignment for the current row and the width
of the current column.
+ Here you can set the horizontal alignment and the width of the current
+ column.
  When you have set a width you can also adjust the vertical alignment of
- the current column.
+ the current row.
  A given width will allow the cell to have line breaks and multiple paragraphs
  of text, see section\InsetSpace ~
 
@@ -1669,6 +1692,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_append-row.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1679,6 +1703,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_append-column.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1689,6 +1714,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_delete-row.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1699,6 +1725,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_delete-column.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1709,6 +1736,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_toggle-line-top.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1719,6 +1747,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_toggle-line-bottom.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1729,6 +1758,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_toggle-line-left.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1739,6 +1769,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_toggle-line-right.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1749,6 +1780,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_set-all-lines.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1760,6 +1792,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_unset-all-lines.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1771,6 +1804,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_align-left.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1781,6 +1815,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_align-center.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1791,6 +1826,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_align-right.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1801,6 +1837,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_valign-top.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1811,6 +1848,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_valign-middle.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1821,6 +1859,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_valign-bottom.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1831,6 +1870,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_set-rotate-cell.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1841,6 +1881,7 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_set-rotate-tabular.xpm
+       scaleBeforeRotation
 
 \end_inset
 
@@ -1851,12 +1892,31 @@ The toolbar has the following icons:
 \labelwidthstring 00.00.0000
 \begin_inset Graphics
        filename ../images/tabular-feature_multicolumn.xpm
+       scaleBeforeRotation
 
 \end_inset
 
  sets the current cell or selection as a multicolumn
 \end_layout
 
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ For the output the vertical alignment of the first cell in a row is used
+ for all following cells in the row.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
 \begin_layout Section
 Edit Table Menu
 \begin_inset LatexCommand index
@@ -2145,6 +2205,7 @@ Table
 \begin_inset Graphics
        filename ../images/float-insert_table.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -2265,6 +2326,7 @@ Label
 \begin_inset Graphics
        filename ../images/label-insert.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -2279,6 +2341,7 @@ reference
 \begin_inset Graphics
        filename ../images/dialog-show-new-inset_ref.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -2392,18 +2455,14 @@ empty
 \emph default
 .
  In this context, first means first in this order: 
-\family sans
-Footer, Last\InsetSpace ~
-footer,
-\family default
 \family sans
 Header,
 \family default
  
 \family sans
 First\InsetSpace ~
-header.
+header, Footer, Last\InsetSpace ~
+footer.
 
 \family default
  See the following longtable to see how it works:
@@ -4576,7 +4635,14 @@ addtocounter{table}{-1}
 status collapsed
 
 \begin_layout Standard
-See greyed-out note in section 2.6.2 for an explanation of this command.
+See greyed-out note in section\InsetSpace ~
+
+\begin_inset LatexCommand ref
+reference "sub:Longtable-Captions"
+
+\end_inset
+
+ for an explanation of this command.
 \end_layout
 
 \end_inset
@@ -4622,6 +4688,12 @@ name "Longtables ! Captions"
 \end_inset
 
 
+\begin_inset LatexCommand label
+name "sub:Longtable-Captions"
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -4642,7 +4714,7 @@ Create a longtable
 \end_layout
 
 \begin_layout Enumerate
-Mark the first row an disable its upper line.
+Mark the first row and disable its upper line.
 \end_layout
 
 \begin_layout Enumerate
@@ -5862,7 +5934,7 @@ asd
 
 \begin_layout Standard
 \begin_inset ERT
-status collapsed
+status open
 
 \begin_layout Standard
 
@@ -6211,6 +6283,9 @@ asd
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
 \begin_inset ERT
 status collapsed
 
@@ -6229,6 +6304,53 @@ LTcapwidth}{4in}
 \end_layout
 
 \begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ When the LaTeX-package 
+\series bold
+caption
+\series default
+
+\begin_inset LatexCommand index
+name "LaTeX-packages ! caption"
+
+\end_inset
+
+ is used, as in this document, the full page width is used for the caption
+ when you use the default value of 4\InsetSpace \thinspace{}
+in for 
+\series bold
+
+\backslash
+LTcapwidth
+\series default
+.
+ To get in this case exactly a 4\InsetSpace \thinspace{}
+in wide caption, you can either use a value
+ slightly different from 4.0\InsetSpace \thinspace{}
+in, e.g.
+ 3.99\InsetSpace \thinspace{}
+in, or the LaTeX-command 
+\series bold
+
+\backslash
+captionsetup{width=value}
+\series default
+ that is provided by the 
+\series bold
+caption
+\series default
+-package.
+\end_layout
+
+\end_inset
+
 
 \end_layout
 
@@ -6420,7 +6542,7 @@ TEL.
 
 \begin_layout Standard
 \begin_inset ERT
-status collapsed
+status open
 
 \begin_layout Standard
 
@@ -8432,7 +8554,6 @@ illskip}{0pt}
 must be inserted as ERT at the beginning of the cell.
  This assures that the part of the cell that will be displayed on the new
  page appears with the full width.
 \end_layout
 
 \begin_layout Standard
@@ -9773,7 +9894,7 @@ name "Table ! Linebreaks"
 placement H
 wide false
 sideways false
-status collapsed
+status open
 
 \begin_layout Standard
 \begin_inset Caption
@@ -9798,8 +9919,8 @@ Table with multiple lines in cells
 <lyxtabular version="3" rows="3" columns="3">
 <features>
 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
-<column alignment="center" valignment="middle" leftline="true" width="0.5cm">
-<column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
+<column alignment="center" valignment="middle" leftline="true" width="0">
+<column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
 <row topline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
@@ -9929,6 +10050,7 @@ reference "tab:Table-with-multiple"
  In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
 cm and choose centered
  for the vertical and horizontal alignment.
+ The vertical alignment is used for all cells of the row.
  As our text is smaller than than 2.5\InsetSpace \thinspace{}
 cm, only one line will appear.
  To get two lines, we add a line break with the command
@@ -9948,14 +10070,6 @@ in ERT.
  to several lines.
 \end_layout
 
-\begin_layout Standard
-To center the text inside the two other cells of the first row vertically,
- right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
-cm and choose
- centered alignments.
- Then do the same for the third cell of the row.
-\end_layout
-
 \begin_layout Standard
 If you have a long word in a cell with a fixed width, it cannot be hyphenated
  by LaTeX if it is the first entry.
@@ -9986,6 +10100,7 @@ reference "tab:Table-with-and"
 
 \begin_layout Standard
 \begin_inset Float table
+placement h
 wide false
 sideways false
 status open
@@ -10015,8 +10130,8 @@ Table with and without hyphenation
 <lyxtabular version="3" rows="3" columns="3">
 <features>
 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
-<column alignment="center" valignment="middle" leftline="true" width="0.5cm">
-<column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
+<column alignment="center" valignment="middle" leftline="true" width="0">
+<column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
 <row topline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
 <lyxtabular version="3" rows="3" columns="3">
 <features>
 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
-<column alignment="center" valignment="middle" leftline="true" width="0.5cm">
-<column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
+<column alignment="center" valignment="middle" leftline="true" width="0">
+<column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
 <row topline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
@@ -10268,6 +10383,7 @@ To span a cell over multiple columns, mark as much cells within a line that
 \begin_inset Graphics
        filename ../images/tabular-feature_multicolumn.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -10316,11 +10432,7 @@ abc
 \begin_inset Text
 
 \begin_layout Standard
-def
-\lang ngerman
-\lang english
-ghi
+def ghi
 \end_layout
 
 \end_inset
@@ -10496,11 +10608,11 @@ Perfect multicolumn table
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="3">
 <features>
-<column alignment="center" valignment="middle" leftline="true" width="0" special="|>{\centering}m{1.25cm-6.2pt}">
+<column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
 <column alignment="center" valignment="middle" leftline="true" width="0">
 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
 <row topline="true">
-<cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special="|>{\centering}m{2.5cm}|">
+<cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
 \begin_inset Text
 
 \begin_layout Standard
@@ -10606,7 +10718,7 @@ reference "tab:Table-with-centered"
 
 \end_inset
 
-, mark the first two cells in the first row a 3×3 table and right-click
+, mark the first two cells in the first row of a 3×3 table and right-click
  on them.
  Now choose for this cell 
 \emph on
@@ -10806,14 +10918,14 @@ The needed given width
 \emph on
 n
 \emph default
- columns are spanned columns can be calculated, so that each column has
a total width of 
+ columns are spanned can be calculated, so that each column has a total
+ width of 
 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
 \end_inset
 
 :
 \begin_inset Formula \begin{equation}
-W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
+W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
 
 \end_inset
 
@@ -10899,9 +11011,11 @@ b{width}
 \end_layout
 
 \begin_layout Standard
-By entering a LaTeX-argument, all cell properties set in the table dialog
+By entering a LaTeX-argument, all cell settings set in the table dialog
  are overwritten.
+\end_layout
+
+\begin_layout Standard
 \begin_inset Note Greyedout
 status open
 
@@ -10910,12 +11024,16 @@ status open
 \series bold
 Note:
 \series default
- Due to a bug, LyX shows the overwritten properties anyway.
+ Due to a bug, LyX shows the overwritten settings anyway.
 \end_layout
 
 \end_inset
 
- As the text should be horizontally centered, the command 
+
+\end_layout
+
+\begin_layout Standard
+As the text should be horizontally centered, the command 
 \series bold
 
 \backslash
@@ -10928,25 +11046,13 @@ centering
 \begin_layout Standard
 
 \series bold
-|>{
+>{
 \backslash
 centering}m{1.25cm-6.2pt}
 \end_layout
 
 \begin_layout Standard
-The bar 
-\begin_inset Quotes eld
-\end_inset
-
-
-\series bold
-|
-\series default
-
-\begin_inset Quotes erd
-\end_inset
-
- at the beginning draws the border line and the command 
+The command 
 \series bold
 >{ }
 \series default
@@ -10964,9 +11070,9 @@ Although we have chosen centered alignment for the text of the multicolumn
 \begin_layout Standard
 
 \series bold
-|>{
+>{
 \backslash
-centering}m{2.5cm}|
+centering}m{2.5cm}
 \end_layout
 
 \begin_layout Subsection
@@ -11768,7 +11874,11 @@ mytoprule[width]}
 \end_layout
 
 \begin_layout Standard
-This example is for the first line, the so called toprule.
+This example is for the first line, the so called 
+\series bold
+toprule
+\series default
+.
  If you want to change the width for the last line, replace 
 \series bold
 toprule
@@ -11905,10 +12015,6 @@ cmidrule(l{10pt}){1-1}
 in the sixth row.
 \end_layout
 
-\begin_layout Standard
-
-\end_layout
-
 \begin_layout Standard
 \begin_inset VSpace bigskip
 \end_inset
@@ -13668,6 +13774,23 @@ Style
  ERT will cause LaTeX-errors.
 \end_layout
 
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ Not all DVI-viewers are able to display self-defined colors.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 \begin_inset VSpace bigskip
 \end_inset
@@ -13781,7 +13904,7 @@ Table with colortbl
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="3">
 <features>
-<column alignment="center" valignment="top" leftline="true" width="0" special=">{\columncolor{darkgreen}\centering}c">
+<column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -14009,26 +14132,14 @@ reference "tab:Table-with-vertical-colored"
 \end_inset
 
  the LaTeX-argument
-\end_layout
-
-\begin_layout Standard
-
 \series bold
-WcW
-\end_layout
-
-\begin_layout Standard
-was used for the last column and
-\end_layout
-
-\begin_layout Standard
-
+ WcW
+\series default
+ was used for the last column and
 \series bold
-Wc
-\end_layout
-
-\begin_layout Standard
-for the other columns.
+ Wc
+\series default
+ for the other columns.
 \end_layout
 
 \begin_layout Standard
@@ -14063,9 +14174,9 @@ Table with colored vertical lines
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="3">
 <features>
-<column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
 <column alignment="center" valignment="top" width="0" special="Wc">
-<column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
+<column alignment="center" valignment="top" width="0" special="Wc">
+<column alignment="center" valignment="top" width="0" special="WcW">
 <row topline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
@@ -14194,7 +14305,22 @@ hline
 \backslash
 renewcommand{
 \backslash
-hline}{
+hline}
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{
 \backslash
 arrayrulecolor{red}
 \backslash
@@ -14224,7 +14350,12 @@ hline
 \backslash
 renewcommand{
 \backslash
-hline}{
+hline}
+\end_layout
+
+\begin_layout Standard
+
+ {
 \backslash
 arrayrulecolor{red}
 \backslash
@@ -14411,6 +14542,7 @@ reference "tab:Table-with-colored"
 
 \begin_layout Standard
 \begin_inset Float table
+placement h
 wide false
 sideways false
 status open
@@ -14437,9 +14569,9 @@ Table with colored lines
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="3">
 <features>
-<column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
 <column alignment="center" valignment="top" width="0" special="Wc">
-<column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
+<column alignment="center" valignment="top" width="0" special="Wc">
+<column alignment="center" valignment="top" width="0" special="WcW">
 <row topline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
@@ -14642,7 +14774,28 @@ reference "sec:Formal-Tables"
  LyX will insert as default 0.5\InsetSpace \thinspace{}
 em space.
  For normal tables the inserted space will unfortunately destroy the vertical
- table lines as in the following table: 
+ table lines as in the following table:
+\begin_inset VSpace medskip
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+hspace*{0pt}
+\end_layout
+
+\end_inset
+
+
+\hfill
+
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="1">
 <features>
 \end_inset
 
 
+\hfill
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+hspace*{0pt}
+\end_layout
+
+\end_inset
+
+
+\begin_inset VSpace medskip
+\end_inset
+
+
 \newline
 So inserting space to the top of row for normal tables is only useful when
  you don't have vertical lines.
@@ -14703,13 +14875,32 @@ pt.
 
 \begin_layout Description
 Between\InsetSpace ~
-rows only has an effect when you have selected the whole table row
- before.
- The space is added between the current and the following row.
+rows adds space between the current and the following row.
  If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
 em space.
  For normal tables the inserted space will unfortunately destroy the vertical
- table lines as in the following table: 
+ table lines as in the following table:
+\begin_inset VSpace medskip
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+hspace*{0pt}
+\end_layout
+
+\end_inset
+
+
+\hfill
+
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="1">
 <features>
@@ -14768,29 +14959,86 @@ mm space between row
 \end_inset
 
 
-\newline
-So inserting space between rows for normal tables is only useful when you
- don't have vertical lines.
-\end_layout
+\hfill
 
-\begin_layout Standard
-When you want to add extra height to all cells of all tables, you can do
- this with the following preamble line:
-\end_layout
+\begin_inset ERT
+status collapsed
 
 \begin_layout Standard
 
-\series bold
 
 \backslash
-setlength{
-\backslash
-extrarowheight}{height}
+hspace*{0pt}
 \end_layout
 
-\begin_layout Standard
-But this has the disadvantage that the cell texts are no longer exactly
- vertically centered.
+\end_inset
+
+
+\begin_inset VSpace medskip
+\end_inset
+
+
+\newline
+So inserting space between rows for normal tables is only useful when you
+ don't have vertical lines.
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+When you want to add extra height to all cells of all tables, you can do
+ this with the following preamble lines:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+@ifundef\SpecialChar \textcompwordmark{}
+ined{extrarowheight}
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{
+\backslash
+usepackage{array}}{}
+\newline
+
+\backslash
+setlength{
+\backslash
+extrarowheight}{height}
+\end_layout
+
+\begin_layout Standard
+But this has the disadvantage that the cell texts are no longer exactly
+ vertically centered.
+ (The package 
+\series bold
+array
+\series default
+ will be loaded automatically by LyX when you use self defined table formats.
+ To avoid that it is loaded twice the command 
+\series bold
+
+\backslash
+@ifundef\SpecialChar \textcompwordmark{}
+ined
+\series default
+ is used in the above command.)
 \end_layout
 
 \begin_layout Subsection
@@ -14957,13 +15205,6 @@ This table was created with a 4×2 table.
 @{}l
 \end_layout
 
-\begin_layout Standard
-If you need a vertical line right beside the second column, use this LaTeX-argum
-ent instead: 
-\series bold
-@{}l|
-\end_layout
-
 \begin_layout Standard
 Table\InsetSpace ~
 
@@ -15007,11 +15248,11 @@ Several table cell alignments.
 <lyxtabular version="3" rows="4" columns="6">
 <features>
 <column alignment="right" valignment="top" width="0">
-<column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
-<column alignment="right" valignment="top" width="0">
-<column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
+<column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
 <column alignment="right" valignment="top" width="0">
 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
+<column alignment="right" valignment="top" width="0">
+<column alignment="left" valignment="top" width="0" special="@{}l">
 <row bottomline="true">
 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
 \begin_inset Text
@@ -15354,7 +15595,7 @@ name "tab:Alignments-when"
 \end_inset
 
 Alignments when LaTeX-package dcolumn is used.
- For the second and third alignment some tricks were used.
+ For all column alignments tricks have to be used to get the output.
 \end_layout
 
 \end_inset
@@ -15367,9 +15608,9 @@ Alignments when LaTeX-package dcolumn is used.
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="3">
 <features>
-<column alignment="center" valignment="top" rightline="true" width="0" special="D{×}{\times}{-1}|">
-<column alignment="center" valignment="top" width="0" special="D{×}{\times}{4.9}|">
-<column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
+<column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
+<column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
+<column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
 <row bottomline="true">
 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
 \begin_inset Text
@@ -15404,7 +15645,7 @@ units
 \begin_inset Text
 
 \begin_layout Standard
-12×24\InsetSpace \thinspace{}
+12x24\InsetSpace \thinspace{}
 bottles
 \end_layout
 
@@ -15414,7 +15655,7 @@ bottles
 \begin_inset Text
 
 \begin_layout Standard
-12×24\InsetSpace \thinspace{}
+12x24\InsetSpace \thinspace{}
 
 \begin_inset Formula $\mbox{bottles}$
 \end_inset
@@ -15428,7 +15669,20 @@ bottles
 \begin_inset Text
 
 \begin_layout Standard
-12×24~
+12
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+times 
+\end_layout
+
+\end_inset
+
+24~
 \begin_inset Formula $\mbox{bottles}$
 \end_inset
 
@@ -15443,7 +15697,7 @@ bottles
 \begin_inset Text
 
 \begin_layout Standard
-1024×768\InsetSpace \thinspace{}
+1024x768\InsetSpace \thinspace{}
 Pixels
 \end_layout
 
@@ -15453,7 +15707,7 @@ Pixels
 \begin_inset Text
 
 \begin_layout Standard
-1024×768\InsetSpace \thinspace{}
+1024x768\InsetSpace \thinspace{}
 
 \begin_inset Formula $\mbox{Pixels}$
 \end_inset
@@ -15467,7 +15721,20 @@ Pixels
 \begin_inset Text
 
 \begin_layout Standard
-1024×768~
+1024
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+times 
+\end_layout
+
+\end_inset
+
+768~
 \begin_inset Formula $\mbox{Pixels}$
 \end_inset
 
@@ -15482,7 +15749,7 @@ Pixels
 \begin_inset Text
 
 \begin_layout Standard
-32×6\InsetSpace \thinspace{}
+32x6\InsetSpace \thinspace{}
 cm
 \end_layout
 
@@ -15492,7 +15759,7 @@ cm
 \begin_inset Text
 
 \begin_layout Standard
-32×6\InsetSpace \thinspace{}
+32x6\InsetSpace \thinspace{}
 
 \begin_inset Formula $\mbox{cm}$
 \end_inset
 \begin_inset Text
 
 \begin_layout Standard
-32×6~
+32
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+times 
+\end_layout
+
+\end_inset
+
+6~
 \begin_inset Formula $\mbox{cm}$
 \end_inset
 
@@ -15641,7 +15921,7 @@ reference "sub:Multiple-Lines-in"
 \begin_layout Standard
 
 \series bold
-|M{width}
+M{width}
 \end_layout
 
 \begin_layout Standard
@@ -15720,7 +16000,7 @@ You can now enter
 \begin_layout Standard
 
 \series bold
-|S{width of multicolumn cell}{number of spanned columns}
+S{width of multicolumn cell}{number of spanned columns}
 \end_layout
 
 \begin_layout Standard
@@ -15795,7 +16075,7 @@ reference "tab:Table-using-user-defined"
 \begin_layout Standard
 
 \series bold
-|M{2.5cm}
+M{2.5cm}
 \end_layout
 
 \begin_layout Standard
@@ -15805,7 +16085,7 @@ for the first column and the multicolumn,
 \begin_layout Standard
 
 \series bold
-|K{red}|
+K{red}
 \end_layout
 
 \begin_layout Standard
@@ -15815,7 +16095,7 @@ for the the last column, and
 \begin_layout Standard
 
 \series bold
-|S{2.5cm}{2}
+S{2.5cm}{2}
 \end_layout
 
 \begin_layout Standard
@@ -15851,10 +16131,10 @@ Table using user-defined table formats
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="4">
 <features>
-<column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
-<column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
+<column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
+<column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
 <column alignment="center" valignment="middle" leftline="true" width="0">
-<column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
+<column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
 <row topline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
@@ -15865,7 +16145,7 @@ verylongtablecellword
 
 \end_inset
 </cell>
-<cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
+<cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
 \begin_inset Text
 
 \begin_layout Standard
@@ -16241,7 +16521,7 @@ global
 \backslash
 arrayrulewidth 1.5pt}
 \newline
-  
 \backslash
 myHline
 \backslash
@@ -16554,9 +16834,9 @@ pt thick vertical lines
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="3">
 <features>
-<column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
-<column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
-<column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
+<column alignment="center" valignment="top" width="0" special="Vc">
+<column alignment="center" valignment="top" width="0" special="Vc">
+<column alignment="center" valignment="top" width="0" special="VcV">
 <row topline="true">
 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
@@ -17303,41 +17583,14 @@ reference "sec:Referencing-Floats"
 To insert a float, use the menu 
 \family sans
 Insert\SpecialChar \menuseparator
-Floats
+Float
 \family default
 .
- This inserts a box with a label in the 
-\family sans
-Caption
-\family default
- environment
-\begin_inset Foot
-status collapsed
-
-\begin_layout Standard
-The 
+ This inserts the 
 \family sans
 Caption
 \family default
- environment is described in LyX's 
-\emph on
-Userguide
-\emph default
-.
-\end_layout
-
-\end_inset
-
- into your document.
- Every label ends with the character 
-\begin_inset Quotes eld
-\end_inset
-
-#
-\begin_inset Quotes erd
-\end_inset
-
- as placeholder for the float number in the output.
+ inset, a box with a label.
  The label will automatically be translated to the document language in
  the output.
  Behind the label you can insert the caption text.
@@ -17357,6 +17610,7 @@ reference "sec:Caption-Placement"
 \begin_inset Graphics
        filename clipart/floatQt4.png
        scale 70
+       scaleBeforeRotation
 
 \end_inset
 
@@ -17407,7 +17661,7 @@ Float
 \begin_layout Subsection
 Algorithm Floats
 \begin_inset LatexCommand index
-name "Floats ! Algorithm Floats"
+name "Floats ! Algorithms"
 
 \end_inset
 
@@ -17441,7 +17695,7 @@ Example Algorithm float
 \begin_layout LyX-Code
 for I in 1..N loop
 \newline
- Sum:= Sum + A(I); /*senseless comment*/
+ Sum:= Sum + A(I); /*comment*/
 \newline
 end loop
 \begin_inset VSpace -4mm
@@ -17603,27 +17857,6 @@ end{Xalgorithm}}
 \end_inset
 
 
-\series default
-
-\newline
-Where 
-\family sans
-your\InsetSpace ~
-name
-\family default
- is the word 
-\begin_inset Quotes eld
-\end_inset
-
-
-\emph on
-algorithm
-\emph default
-
-\begin_inset Quotes erd
-\end_inset
-
- in your language.
 \end_layout
 
 \begin_layout Standard
@@ -17732,6 +17965,7 @@ status open
        filename clipart/mobius.eps
        display color
        width 40col%
+       scaleBeforeRotation
        rotateOrigin center
 
 \end_inset
@@ -17773,7 +18007,9 @@ Float
 \family default
  if the LaTeX-package 
 \series bold
-floatflt
+f\SpecialChar \textcompwordmark{}
+loatf\SpecialChar \textcompwordmark{}
+lt
 \series default
 
 \begin_inset LatexCommand index
@@ -17832,12 +18068,16 @@ ng text.
 \begin_layout Standard
 The LaTeX-package 
 \series bold
-floatflt
+f\SpecialChar \textcompwordmark{}
+loatf\SpecialChar \textcompwordmark{}
+lt
 \series default
  also supports table wrap floats, but they are not yet supported by LyX.
  If you need this, read the documentation of 
 \series bold
-floatflt
+f\SpecialChar \textcompwordmark{}
+loatf\SpecialChar \textcompwordmark{}
+lt
 \series default
  
 \begin_inset LatexCommand cite
@@ -17880,7 +18120,8 @@ name "LaTeX-packages ! wrapfig\\vspace{4mm}"
 
  instead of 
 \series bold
-floatf\SpecialChar \textcompwordmark{}
+f\SpecialChar \textcompwordmark{}
+loatf\SpecialChar \textcompwordmark{}
 lt
 \series default
 , but it is currently not supported by LyX.
@@ -17903,8 +18144,8 @@ In general:
 \begin_layout Itemize
 Wrap floats should not be placed in paragraphs that run over a page break.
  That means that wrap floats should better be inserted to the exact place
- when the document is nearly ready and you are able to estimate where page
- breaks will appear.
+ when the document is nearly finished and you are able to estimate where
page breaks will appear.
 \end_layout
 
 \begin_layout Itemize
@@ -17922,101 +18163,237 @@ Wrap floats are not allowed in section headings or tables.
 \end_layout
 
 \begin_layout Section
-Referencing Floats
+Float Numbering
 \begin_inset LatexCommand label
-name "sec:Referencing-Floats"
+name "sec:Float-Numbering"
 
 \end_inset
 
 
 \begin_inset LatexCommand index
-name "Floats ! References"
+name "Floats ! Numbering"
 
 \end_inset
 
 
-\begin_inset LatexCommand index
-name "References"
+\end_layout
 
+\begin_layout Standard
+Floats are usually numbered either independent from the sections the floats
+ are in, or in the scheme 
+\begin_inset Quotes eld
 \end_inset
 
+chapter.number
+\begin_inset Quotes erd
+\end_inset
 
-\end_layout
-
-\begin_layout Standard
-To reference a float, insert a label into its caption using the menu 
-\family sans
-Insert\SpecialChar \menuseparator
-Label
-\family default
- or the toolbar button 
-\begin_inset Graphics
-       filename ../images/label-insert.xpm
-       scale 85
+ or 
+\begin_inset Quotes eld
+\end_inset
 
+section.number
+\begin_inset Quotes erd
 \end_inset
 
 .
- A grey label box like this one: 
-\begin_inset Graphics
-       filename clipart/labelQt4.png
-       scale 85
+ This depends on the used document class.
+\end_layout
 
-\end_inset
+\begin_layout Standard
+To change the section independent numbering, you can use this command in
+ the document preamble:
+\end_layout
 
- will be inserted and the label window pops up asking for the label text.
- LyX offers as text the first words of the caption with a prefix.
- The prefix depends on the float type, e.\InsetSpace \thinspace{}
-g.\InsetSpace ~
-for figure floats the prefix will
- be "
-\family sans
-fig:
-\family default
-".
+\begin_layout Standard
+
+\series bold
+
+\backslash
+renewcommand{
+\backslash
+thetable}{
+\backslash
+roman{table}}
 \end_layout
 
 \begin_layout Standard
-The label is used as anchor and name for the reference.
- You can refer to the label using the menu 
-\family sans
-Insert\SpecialChar \menuseparator
-Cross-reference
-\family default
- or the toolbar button 
-\begin_inset Graphics
-       filename ../images/dialog-show-new-inset_ref.xpm
-       scale 85
 
-\end_inset
+\series bold
 
-.
- A grey cross-reference box like this one: 
-\begin_inset Graphics
-       filename clipart/referenceQt4.png
-       scale 85
+\backslash
+thetable
+\series default
+ is the command that prints the table number, for figure floats, the command
+ would be 
+\series bold
 
-\end_inset
+\backslash
+thefigure
+\series default
+.
+ The command 
+\series bold
 
- will be inserted and the cross-reference window appear showing all labels
- of the document.
- If you have multiple LyX-documents opened, choose the one you are working
- on from the drop-list at the top of the dialog.
- You can now sort the labels alphabetically and then choose one.
- At the position of the cross-reference box the float number will appear
- in the output.
+\backslash
+roman
+\series default
+ prints in the command above the table number as small roman number.
 \end_layout
 
 \begin_layout Standard
-It is recommended to use a protected space between the cross-reference name
- and its number to avoid line breaks between them.
- If a cross-reference refers to a non-existing label, you will see two question
- marks in the output instead of the reference.
+To change the numbering scheme for example to 
+\begin_inset Quotes eld
+\end_inset
+
+subsection.number
+\begin_inset Quotes erd
+\end_inset
+
+, use this command in the preamble:
 \end_layout
 
 \begin_layout Standard
-You can change labels at any time by clicking on the label box.
- References to the changed label will automatically change its link to the
+
+\series bold
+
+\backslash
+numberwithin{table}{subsection}
+\end_layout
+
+\begin_layout Standard
+To be able to use the command 
+\series bold
+
+\backslash
+numberwithin
+\series default
+, set in the tab 
+\family sans
+Math\InsetSpace ~
+Options
+\family default
+ in the document settings the option 
+\family sans
+Use\InsetSpace ~
+AMS\InsetSpace ~
+math\InsetSpace ~
+package
+\family default
+.
+\end_layout
+
+\begin_layout Standard
+Please also have a look at section\InsetSpace ~
+
+\begin_inset LatexCommand ref
+reference "sub:Footnote-Numbering"
+
+\end_inset
+
+ for the details and important notes about the numbering commands.
+\end_layout
+
+\begin_layout Section
+Referencing Floats
+\begin_inset LatexCommand label
+name "sec:Referencing-Floats"
+
+\end_inset
+
+
+\begin_inset LatexCommand index
+name "Floats ! References"
+
+\end_inset
+
+
+\begin_inset LatexCommand index
+name "References"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To reference a float, insert a label into its caption using the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Label
+\family default
+ or the toolbar button 
+\begin_inset Graphics
+       filename ../images/label-insert.xpm
+       scale 85
+       scaleBeforeRotation
+
+\end_inset
+
+.
+ A grey label box like this one: 
+\begin_inset Graphics
+       filename clipart/labelQt4.png
+       scale 85
+       scaleBeforeRotation
+
+\end_inset
+
+ will be inserted and the label window pops up asking for the label text.
+ LyX offers as text the first words of the caption with a prefix.
+ The prefix depends on the float type, e.\InsetSpace \thinspace{}
+g.\InsetSpace ~
+for figure floats the prefix will
+ be "
+\family sans
+fig:
+\family default
+".
+\end_layout
+
+\begin_layout Standard
+The label is used as anchor and name for the reference.
+ You can refer to the label using the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Cross-reference
+\family default
+ or the toolbar button 
+\begin_inset Graphics
+       filename ../images/dialog-show-new-inset_ref.xpm
+       scale 85
+       scaleBeforeRotation
+
+\end_inset
+
+.
+ A grey cross-reference box like this one: 
+\begin_inset Graphics
+       filename clipart/referenceQt4.png
+       scale 85
+       scaleBeforeRotation
+
+\end_inset
+
+ will be inserted and the cross-reference window appear showing all labels
+ of the document.
+ If you have multiple LyX-documents opened, choose the one you are working
+ on from the drop-list at the top of the dialog.
+ You can now sort the labels alphabetically and then choose one.
+ At the position of the cross-reference box the float number will appear
+ in the output.
+\end_layout
+
+\begin_layout Standard
+It is recommended to use a protected space between the cross-reference name
+ and its number to avoid line breaks between them.
+ If a cross-reference refers to a non-existing label, you will see two question
+ marks in the output instead of the reference.
+\end_layout
+
+\begin_layout Standard
+You can change labels at any time by clicking on the label box.
+ References to the changed label will automatically change its link to the
  new label text, so that you don't need to take care about this.
 \end_layout
 
@@ -18488,7 +18865,11 @@ status open
 \series bold
 Note:
 \series default
- The set reference position has no effect for references to subfigures.
+\series bold
+hypcap
+\series default
+ has no effect for references to subfigures.
 \end_layout
 
 \end_inset
@@ -18553,25 +18934,25 @@ placement
 \begin_layout Description
 Here\InsetSpace ~
 if\InsetSpace ~
-possible: try to place the float on the position where it is inserted
+possible try to place the float on the position where it is inserted
 \end_layout
 
 \begin_layout Description
 Top\InsetSpace ~
 of\InsetSpace ~
-page: try to place the float on the top of the current page
+page try to place the float on the top of the current page
 \end_layout
 
 \begin_layout Description
 Bottom\InsetSpace ~
 of\InsetSpace ~
-page: try to place the float on the bottom of the current page
+page try to place the float on the bottom of the current page
 \end_layout
 
 \begin_layout Description
 Page\InsetSpace ~
 of\InsetSpace ~
-floats: try to place the float on an own page 
+floats try to place the float on an own page 
 \end_layout
 
 \begin_layout Standard
@@ -18601,7 +18982,7 @@ page
 \end_layout
 
 \begin_layout Standard
-By default, each options has its own rules:
+By default, each option has its own rules:
 \end_layout
 
 \begin_layout Labeling
@@ -18658,7 +19039,8 @@ floats
 \series bold
 
 \backslash
-floatpagefraction
+f\SpecialChar \textcompwordmark{}
+loatpagefraction
 \series default
 )
 \end_layout
@@ -18953,6 +19335,18 @@ Rotated floats are always placed on its own page (or column, when you have
  a two-column document).
  They are normally rotated so that you can read them from the outside margin
  -- to the left on even pages, to the right on odd pages.
+ To force a certain rotation direction for all pages, you can add either
+ the option 
+\series bold
+f\SpecialChar \textcompwordmark{}
+iguresleft
+\series default
+ or 
+\series bold
+f\SpecialChar \textcompwordmark{}
+iguresright
+\series default
+ to the document class options.
 \end_layout
 
 \begin_layout Standard
@@ -19129,7 +19523,7 @@ Figure #:
 \end_inset
 
  followed by the caption text.
- The number sign 
 \begin_inset Quotes eld
 \end_inset
 
@@ -19137,9 +19531,9 @@ Figure #:
 \begin_inset Quotes erd
 \end_inset
 
- is substituted in the printed output by the actual reference number.
+ is the actual reference number.
  By default the label and the number are in the same font as the caption
- text and a colon follows the number to divide then label from the text.
+ text and a colon follows the number to divide the label from the text.
  This caption format is not suitable for all document formats.
  
 \end_layout
@@ -19484,6 +19878,7 @@ status open
        filename clipart/mobius.eps
        lyxscale 50
        scale 50
+       scaleBeforeRotation
 
 \end_inset
 
@@ -19751,16 +20146,7 @@ caption
 \series bold
 tablecaptionabove
 \series default
-, or you can use the environment 
-\family sans
-caption\InsetSpace ~
-above
-\family default
- instead of the 
-\family sans
-caption
-\family default
- environment.
+.
 \end_layout
 
 \begin_layout Standard
@@ -20237,7 +20623,7 @@ reference "fig:cap-beside-fig-2"
 \end_layout
 
 \begin_layout Standard
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 For more information about the package 
@@ -20313,6 +20699,7 @@ status open
 \begin_inset Graphics
        filename clipart/escher-lsd.eps
        scale 75
+       scaleBeforeRotation
 
 \end_inset
 
@@ -20628,6 +21015,7 @@ status open
 \begin_inset Graphics
        filename clipart/escher-lsd.eps
        scale 75
+       scaleBeforeRotation
 
 \end_inset
 
@@ -20681,7 +21069,7 @@ name "sec:Listings-of-Floats"
 
 
 \begin_inset LatexCommand index
-name "Floats ! Listings"
+name "Floats ! Float Lists"
 
 \end_inset
 
@@ -20779,6 +21167,7 @@ Notes are inserted with the toolbar button
 \begin_inset Graphics
        filename ../images/note-insert.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -20788,7 +21177,7 @@ Insert\SpecialChar \menuseparator
 Note
 \family default
 .
- There are three types of notes:
+ There are five types of notes:
 \end_layout
 
 \begin_layout Description
@@ -20803,6 +21192,7 @@ Note This note type is for internal notes that won't appear in the output.
        filename clipart/LyXNoteImageQt4.png
        display none
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -20837,6 +21227,7 @@ LaTeX (pdflatex) / LaTeX (plain)
        filename clipart/CommentNoteImageQt4.png
        display none
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -20865,6 +21256,7 @@ Out This note will appear in the output as grey text.
        filename clipart/GreyedOutNoteImageQt4.png
        display none
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -20969,6 +21361,7 @@ Framed This note will appear in the output as framed text.
        filename clipart/FramedNoteImageQt4.png
        display none
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -21014,6 +21407,7 @@ Shaded This note will appear in the output with red background color.
        filename clipart/ShadedNoteImageQt4.png
        display none
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -21052,13 +21446,21 @@ reference "sec:Colored-Boxes"
 \begin_inset VSpace bigskip
 \end_inset
 
-When you use the toolbar button to insert notes, a 
+When you use the toolbar button 
+\begin_inset Graphics
+       filename ../images/note-insert.xpm
+       scale 85
+       scaleBeforeRotation
+
+\end_inset
+
+ to insert notes, a 
 \family sans
 LyX\InsetSpace ~
 Note
 \family default
  is inserted.
- You can switch between the three note types by right-clicking on the note-box.
+ You can switch between the five note types by right-clicking on the note-box.
  
 \family roman
 \series medium
@@ -21450,6 +21852,7 @@ Footnotes can be inserted using the toolbar button
 \begin_inset Graphics
        filename ../images/footnote-insert.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -21471,6 +21874,7 @@ You'll see
 \begin_inset Graphics
        filename clipart/footnoteQt4.png
        scale 80
+       scaleBeforeRotation
 
 \end_inset
 
@@ -21572,42 +21976,6 @@ reference "foot:This-is-an"
 \end_inset
 
 .
-\newline
-
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Standard
-
-\series bold
-Note:
-\series default
- LyX doesn't provide a prefix for labels in footnotes, so you have to insert
- e.\InsetSpace \thinspace{}
-g.\InsetSpace ~
-the prefix 
-\family sans
-
-\begin_inset Quotes eld
-\end_inset
-
-foot:
-\family default
-
-\begin_inset Quotes erd
-\end_inset
-
- manually when you want to use the reference style 
-\family sans
-Formatted\InsetSpace ~
-reference
-\family default
-.
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
@@ -21728,15 +22096,9 @@ name "Footnotes ! Numbering"
 \end_layout
 
 \begin_layout Standard
-If you want to have footnotes numbered in the scheme 
-\begin_inset Quotes eld
-\end_inset
-
-chapter.footnote
-\begin_inset Quotes erd
-\end_inset
-
-, add the following command to your document preamble:
+To reset the footnote number back to 1 after each section
+\family roman
+, add this command to your document preamble:
 \end_layout
 
 \begin_layout Standard
@@ -21744,29 +22106,27 @@ chapter.footnote
 \series bold
 
 \backslash
-numberwithin{footnote}{chapter}
+@addtoreset{footnote}{section}
 \end_layout
 
 \begin_layout Standard
-To be able to use the command 
+\begin_inset VSpace bigskip
+\end_inset
+
+The following preamble command changes the footnote numbering style to small
+ roman numerals:
+\end_layout
+
+\begin_layout Standard
+
 \series bold
 
 \backslash
-numberwithin
-\series default
-, set in the tab 
-\family sans
-Math\InsetSpace ~
-Options
-\family default
- in the document settings the option 
-\family sans
-Use\InsetSpace ~
-AMS\InsetSpace ~
-math\InsetSpace ~
-package
-\family default
-.
+renewcommand{
+\backslash
+thefootnote}{
+\backslash
+roman{footnote}}
 \end_layout
 
 \begin_layout Standard
@@ -21777,91 +22137,130 @@ status collapsed
 
 
 \backslash
-numberwithin{footnote}{chapter}
+renewcommand{
+\backslash
+thefootnote}{
+\backslash
+roman{footnote}}
 \end_layout
 
 \end_inset
 
-This is another example footnote:
-\series bold
-
+ This is a footnote with roman numbering:
 \begin_inset Foot
 status open
 
 \begin_layout Standard
-This is a footnote numbered in the scheme 
-\begin_inset Quotes eld
-\end_inset
+This is an example footnote with roman numbering.
+\end_layout
 
-chapter.footnote
-\begin_inset Quotes erd
 \end_inset
 
-.
+
 \end_layout
 
-\end_inset
+\begin_layout Standard
+To change the numbering style to capital roman numerals replace in the command
+ above 
+\series bold
 
+\backslash
+roman
+\series default
+ by 
+\series bold
 
+\backslash
+Roman
 \series default
+.
+ To 
+\begin_inset Quotes eld
+\end_inset
 
-\begin_inset ERT
-status collapsed
+number
+\begin_inset Quotes erd
+\end_inset
 
-\begin_layout Standard
+ footnotes with capital or small Latin letters use 
+\series bold
 
+\backslash
+Alph
+\series default
+ or 
+\series bold
 
 \backslash
-numberwithin{footnote}{part}
-\end_layout
+alph
+\series default
+, respectively.
+ To 
+\begin_inset Quotes eld
+\end_inset
 
+number
+\begin_inset Quotes erd
 \end_inset
 
+ footnotes with symbols use 
+\series bold
 
+\backslash
+fnsymbol
+\series default
+.
 \end_layout
 
 \begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
+\begin_inset Note Greyedout
+status open
 
+\begin_layout Standard
 
+\series bold
+Note:
+\series default
+ You can only number 26 footnotes with Latin letters, because this numbering
+ is limited to single letters.
 \end_layout
 
-\begin_layout Standard
-To reset the footnote number back to 1 after each section
-\family roman
-, add this command to your document preamble:
-\end_layout
+\end_inset
+
+
+\newline
+
+\begin_inset Note Greyedout
+status open
 
 \begin_layout Standard
 
 \series bold
-
-\backslash
-@addtoreset{footnote}{section}
+Note:
+\series default
+ You can only number 9 footnotes with symbols.
 \end_layout
 
-\begin_layout Standard
-\begin_inset VSpace bigskip
 \end_inset
 
-The following preamble command changes the footnote numbering style to small
- roman numerals:
+
 \end_layout
 
 \begin_layout Standard
-
+To return to the default numbering style when you changed to another one,
+ use 
 \series bold
 
 \backslash
-renewcommand{
-\backslash
-thefootnote}{
-\backslash
-roman{footnote}}
-\end_layout
+arabic
+\series default
+ instead of 
+\series bold
 
-\begin_layout Standard
+\backslash
+roman
+\series default
+ in the command above.
 \begin_inset ERT
 status collapsed
 
@@ -21873,112 +22272,119 @@ renewcommand{
 \backslash
 thefootnote}{
 \backslash
-roman{footnote}}
+arabic{footnote}}
 \end_layout
 
 \end_inset
 
- This is a footnote with roman numbering:
-\begin_inset Foot
-status open
 
-\begin_layout Standard
-This is an example footnote with roman numbering.
 \end_layout
 
+\begin_layout Standard
+\begin_inset VSpace bigskip
 \end_inset
 
 
-\begin_inset ERT
-status collapsed
+\end_layout
 
 \begin_layout Standard
+If you want to have footnotes numbered in the scheme 
+\begin_inset Quotes eld
+\end_inset
 
+chapter.footnote
+\begin_inset Quotes erd
+\end_inset
 
-\backslash
-renewcommand{
-\backslash
-thefootnote}{
-\backslash
-arabic{footnote}}
+, add the following command to your document preamble:
 \end_layout
 
-\end_inset
+\begin_layout Standard
 
+\series bold
 
+\backslash
+numberwithin{footnote}{chapter}
 \end_layout
 
 \begin_layout Standard
-To change the numbering style to capital roman numerals replace in the command
- above 
+To be able to use the command 
 \series bold
 
 \backslash
-roman
+numberwithin
 \series default
- by 
-\series bold
+, set in the tab 
+\family sans
+Math\InsetSpace ~
+Options
+\family default
+ in the document settings the option 
+\family sans
+Use\InsetSpace ~
+AMS\InsetSpace ~
+math\InsetSpace ~
+package
+\family default
+.
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
 
 \backslash
-Roman
-\series default
-.
- To 
-\begin_inset Quotes eld
-\end_inset
+numberwithin{footnote}{chapter}
+\end_layout
 
-number
-\begin_inset Quotes erd
 \end_inset
 
- footnotes with capital or small Latin letters use 
+This is another example footnote:
 \series bold
 
-\backslash
-Alph
-\series default
- or 
-\series bold
+\begin_inset Foot
+status open
 
-\backslash
-alph
-\series default
-, respectively.
- To 
+\begin_layout Standard
+This is a footnote numbered in the scheme 
 \begin_inset Quotes eld
 \end_inset
 
-number
+chapter.footnote
 \begin_inset Quotes erd
 \end_inset
 
- footnotes with symbols use 
-\series bold
-
-\backslash
-fnsymbol
-\series default
 .
 \end_layout
 
-\begin_layout Standard
-\begin_inset Note Greyedout
-status open
+\end_inset
 
-\begin_layout Standard
 
-\series bold
-Note:
 \series default
- You can only number 26 footnotes with Latin letters, because this numbering
- is limited to single letters.
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+renewcommand{
+\backslash
+thefootnote}{
+\backslash
+arabic{footnote}}
 \end_layout
 
 \end_inset
 
 
-\newline
+\end_layout
 
+\begin_layout Standard
 \begin_inset Note Greyedout
 status open
 
@@ -21987,7 +22393,14 @@ status open
 \series bold
 Note:
 \series default
- You can only number 9 footnotes with symbols.
+\series bold
+
+\backslash
+numberwithin
+\series default
+ always prints out the footnote number as arabic number; previous redefinitions
+ to get non-arabic numbers are overwritten.
 \end_layout
 
 \end_inset
@@ -21996,20 +22409,37 @@ Note:
 \end_layout
 
 \begin_layout Standard
-To return to the default numbering style when you changed to another one,
- use 
+So to get for example the scheme 
+\begin_inset Quotes eld
+\end_inset
+
+chapter.
+\backslash
+Roman{footnote}
+\begin_inset Quotes erd
+\end_inset
+
+, use this command instead of 
 \series bold
 
 \backslash
-arabic
+numberwithin
 \series default
- instead of 
+:
+\end_layout
+
+\begin_layout Standard
+
 \series bold
 
 \backslash
-roman
-\series default
- in the command above.
+renewcommand{
+\backslash
+thefootnote}{
+\backslash
+thechapter.
+\backslash
+Roman{footnote}}
 \end_layout
 
 \begin_layout Subsection
@@ -22120,6 +22550,7 @@ framebox{
 \begin_inset Graphics
        filename clipart/without_fntright.pdf
        width 100col%
+       scaleBeforeRotation
 
 \end_inset
 
@@ -22183,6 +22614,7 @@ framebox{
 \begin_inset Graphics
        filename clipart/with_fntright.pdf
        width 100col%
+       scaleBeforeRotation
 
 \end_inset
 
@@ -22317,6 +22749,7 @@ framebox{
 
 \begin_inset Graphics
        filename clipart/endnotes.pdf
+       scaleBeforeRotation
 
 \end_inset
 
@@ -22358,7 +22791,7 @@ Endnotes -- footnotes are printed in a separate paragraph at the end of
 \end_layout
 
 \begin_layout Standard
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 The paragraph heading for the endnotes isn't automatically translated into
@@ -22393,7 +22826,7 @@ notesname}{Anmerkungen}
 \end_layout
 
 \begin_layout Standard
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 The numbering of endnotes can be changed like the footnote numbering as
@@ -22521,6 +22954,7 @@ Note
 \begin_inset Graphics
        filename ../images/marginalnote-insert.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -22637,31 +23071,31 @@ Note:
 \end_layout
 
 \begin_layout Standard
-\begin_inset ERT
-status collapsed
+To return to the default placement insert the command
+\end_layout
 
 \begin_layout Standard
 
+\series bold
 
 \backslash
-normalmarginpar 
+normalmarginpar
 \end_layout
 
-\end_inset
-
-To return to the default placement insert the command
-\end_layout
+\begin_layout Standard
+in ERT.
+\begin_inset ERT
+status collapsed
 
 \begin_layout Standard
 
-\series bold
 
 \backslash
-normalmarginpar
+normalmarginpar 
 \end_layout
 
-\begin_layout Standard
-in ERT.
+\end_inset
+
  
 \begin_inset Note Greyedout
 status open
@@ -22929,7 +23363,7 @@ status collapsed
 \end_layout
 
 \begin_layout Standard
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 With 
@@ -23067,7 +23501,7 @@ raggedright}
 \end_layout
 
 \begin_layout Standard
-\begin_inset VSpace defskip
+\begin_inset VSpace medskip
 \end_inset
 
 For the other features of 
@@ -23087,7 +23521,7 @@ key "marginnote"
 \begin_inset VSpace bigskip
 \end_inset
 
-You can change the layout of margin notes by redefining its definition.
+You can adjust the layout of margin notes by changing its definition.
  To create for example a header for all margin notes with the underlined,
  sans-serif, and bold header text 
 \begin_inset Quotes eld
@@ -23408,6 +23842,7 @@ Box (Minipage)
 \begin_inset Graphics
        filename clipart/BoxInsetDefaultQt4.png
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -25220,10 +25655,15 @@ e is an example text:
 \end_layout
 
 \begin_layout Standard
-This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
-g.\InsetSpace ~
-veryver
-ylongwords.
+This line is an example to show how you can prevent the hyphenation of 
+\begin_inset Quotes eld
+\end_inset
+
+veryverylongword
+\begin_inset Quotes erd
+\end_inset
+
+.
 \end_layout
 
 \begin_layout Standard
@@ -25231,7 +25671,7 @@ To prevent the hyphenation of the word
 \begin_inset Quotes eld
 \end_inset
 
-veryverylongwords
+veryverylongword
 \begin_inset Quotes erd
 \end_inset
 
@@ -25281,9 +25721,7 @@ This is the result:
 \end_layout
 
 \begin_layout Standard
-This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
-g.\InsetSpace ~
-
+This line is an example to show how you can prevent the hyphenation of 
 \begin_inset ERT
 status collapsed
 
@@ -25296,7 +25734,15 @@ mbox{
 
 \end_inset
 
-veryverylongwords.
+
+\begin_inset Quotes eld
+\end_inset
+
+veryverylongword
+\begin_inset Quotes erd
+\end_inset
+
+.
 \begin_inset ERT
 status collapsed
 
@@ -25310,6 +25756,49 @@ status collapsed
 
 \end_layout
 
+\begin_layout Standard
+You can alternatively set the command 
+\begin_inset Quotes eld
+\end_inset
+
+
+\series bold
+
+\backslash
+-
+\series default
+
+\begin_inset Quotes grd
+\end_inset
+
+ as ERT directly before the word:
+\end_layout
+
+\begin_layout Standard
+This line is an example to show how you can prevent the hyphenation of 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+-
+\end_layout
+
+\end_inset
+
+veryverylongword
+\begin_inset Quotes erd
+\end_inset
+
+.
+\end_layout
+
 \begin_layout Standard
 Of course the word now protrudes over the side margin.
  To avoid this, add via the menu 
@@ -25328,9 +25817,7 @@ Ctrl-Return
 \end_layout
 
 \begin_layout Standard
-This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
-g.\InsetSpace ~
-
+This line is an example to show how you can prevent the hyphenation of 
 \newline
 
 \begin_inset ERT
@@ -25345,7 +25832,15 @@ mbox{
 
 \end_inset
 
-veryverylongwords.
+
+\begin_inset Quotes eld
+\end_inset
+
+veryverylongword
+\begin_inset Quotes erd
+\end_inset
+
+.
 \begin_inset ERT
 status collapsed
 
@@ -25702,7 +26197,15 @@ name "Color ! for Text"
 \end_layout
 
 \begin_layout Standard
-To color the background of text the text must be put into a so called colorbox.
+To color the background of text the text must be put into a so called 
+\begin_inset Quotes eld
+\end_inset
+
+colorbox
+\begin_inset Quotes erd
+\end_inset
+
+.
  This requires that the LaTeX-package 
 \series bold
 color
@@ -26601,8 +27104,8 @@ href
 \series default
  instead of LyX's URL box has the advantage that you can specify the text
  style of the link text like for all other text parts.
- You can therefore set hyphenation points and forced linebreaks to have
- long link text broken at the page margin.
+ You can then set hyphenation points and forced linebreaks to have long
+ link text broken at the page margin.
  You are furthermore able to change the text style for all URLs in your
  document with an option in 
 \series bold
@@ -26742,7 +27245,7 @@ status collapsed
 \begin_layout Description
 Date This inserts the date in the form 
 \emph on
-Date-Month-Year
+Day-Month-Year
 \emph default
 .
  This is a date inserted as external material: 
@@ -26755,7 +27258,7 @@ Date-Month-Year
 
 \newline
 The date is not shown within LyX, only in the output.
- There are two other methods of inserting a date, via menu 
+ There are two other methods of inserting a date: Via menu 
 \family sans
 Insert\SpecialChar \menuseparator
 Date
@@ -27121,6 +27624,7 @@ External
 \begin_inset Graphics
        filename clipart/ExternalMaterialQt4.png
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -27148,6 +27652,12 @@ Customization
 
 \begin_layout Section
 Child Documents
+\begin_inset LatexCommand label
+name "sec:Child-Documents"
+
+\end_inset
+
+
 \begin_inset LatexCommand index
 name "External Stuff ! Child Documents"
 
@@ -27176,6 +27686,7 @@ Included documents are displayed in LyX as a box like this:
 \begin_inset Graphics
        filename clipart/ChildDocumentQt4.png
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -27187,7 +27698,7 @@ Child\InsetSpace ~
 Documents
 \family default
 .
- A dialog pops up where you can choose between three include methods:
+ A dialog pops up where you can choose between four include methods:
 \end_layout
 
 \begin_layout Description
@@ -27206,96 +27717,702 @@ Child Document
 
 \end_layout
 
-\begin_layout Standard
-Here is a child document inserted using 
-\family sans
-Include
-\family default
-: 
-\begin_inset Include \include{DummyDocument1.lyx}
-preview false
+\begin_layout Standard
+Here is a child document inserted using 
+\family sans
+Include
+\family default
+: 
+\begin_inset Include \include{DummyDocument1.lyx}
+preview false
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The section numbering includes the sections of the included files in the
+ order they are inserted in the master document.
+ The included example document has for example a subsection that is numbered
+ as subsection of this section.
+ Labels of included documents can be referenced: Subsection\InsetSpace ~
+
+\begin_inset LatexCommand ref
+reference "sub:External-Subsection-1"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The preamble of the child document is ignored, only the preamble of the
+ master document is used.
+ Included documents are inserted starting on a new page and end with a pagebreak.
+\end_layout
+
+\begin_layout Standard
+With the LaTeX-command 
+\series bold
+
+\backslash
+includeonly 
+\series default
+you can specify which included child documents are processed when the output
+ is generated.
+ This is useful when you are perhaps only working on a certain chapter of
+ your large document as this saves compiling time.
+\series bold
+
+\backslash
+includeonly
+\series default
+ is inserted to the master document preamble.
+ It takes a comma-separated list of the filenames as argument, e.g.
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+includeonly{chapter1,chapter5}
+\end_layout
+
+\begin_layout Standard
+will only process the included files named 
+\begin_inset Quotes eld
+\end_inset
+
+chapter1.lyx
+\begin_inset Quotes erd
+\end_inset
+
+ (or 
+\begin_inset Quotes eld
+\end_inset
+
+chapter1.tex
+\begin_inset Quotes erd
+\end_inset
+
+) and 
+\begin_inset Quotes eld
+\end_inset
+
+chapter5.lyx
+\begin_inset Quotes erd
+\end_inset
+
+ .
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ When you have included a LyX- or LaTeX-file, you are warned when you export/vie
+w the document in case that the child document uses another document class
+ than the master document as this will lead to unexpected outputs.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+Input This method is very similar to the Include method.
+ The differences are:
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+Input files don't start with a new page and don't end with a pagebreak.
+\end_layout
+
+\begin_layout Itemize
+Input files can be previewed in LyX when 
+\family sans
+Instant\InsetSpace ~
+Preview
+\family default
+ is enabled in LyX's preferences under 
+\family sans
+Look\InsetSpace ~
+and\InsetSpace ~
+feel\SpecialChar \menuseparator
+Graphics
+\family default
+.
+\end_layout
+
+\begin_layout Itemize
+The LaTeX-command 
+\series bold
+
+\backslash
+includeonly
+\series default
+ cannot be used.
+\end_layout
+
+\end_deeper
+\begin_layout Standard
+Here is a child document inserted using 
+\family sans
+Input
+\family default
+: 
+\begin_inset Include \input{DummyDocument2.lyx}
+preview false
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+Verbatim With this method every text file can be included.
+ The file is shown in the output with its source code, no command used in
+ the text is invoked.
+ You can use the option 
+\family sans
+Mark spaces in output
+\family default
+ that displays the character 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+textvisiblespace 
+\end_layout
+
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+ for every space character in the source code.
+ The difference to the method via the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+File\SpecialChar \menuseparator
+Plain\InsetSpace ~
+Text
+\family default
+ is that the document content is not shown in LyX.
+\end_layout
+
+\begin_layout Standard
+Here is a child document inserted as Verbatim: 
+\begin_inset Include \verbatiminput{DummyTextDocument.txt}
+preview false
+
+\end_inset
+
+
+\begin_inset VSpace bigskip
+\end_inset
+
+Here is a child document inserted as Verbatim using the 
+\family sans
+Mark spaces in output
+\family default
+ option: 
+\begin_inset Include \verbatiminput*{DummyTextDocument.txt}
+preview false
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ As you can see in the examples above, the text of the documents included
+ as 
+\family sans
+verbatim
+\family default
+ is not broken at the end of the document lines.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+Listings This type is described in chapter\InsetSpace ~
+
+\begin_inset LatexCommand ref
+reference "cha:Program-Code-Listings"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ Including the same document twice in a document using different methods
+ could cause LaTeX-problems.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Chapter
+Program Code Listings
+\begin_inset LatexCommand label
+name "cha:Program-Code-Listings"
+
+\end_inset
+
+
+\begin_inset LatexCommand index
+name "Listings"
+
+\end_inset
+
+
+\begin_inset LatexCommand index
+name "Program Code"
+
+\end_inset
+
+
+\begin_inset LatexCommand index
+name "Floats ! Listings"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To include and typeset program code you can use the 
+\family sans
+Listings
+\family default
+ inset that can be inserted via the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Program Listing
+\family default
+.
+ The LaTeX-package 
+\series bold
+listings
+\series default
+
+\begin_inset LatexCommand index
+name "LaTeX-packages ! listings"
+
+\end_inset
+
+ provides a powerful and flexible way to insert program source code to your
+ document.
+\end_layout
+
+\begin_layout Standard
+When right-clicking on a listings inset a dialog pops up where you can set
+ the listings format.
+\end_layout
+
+\begin_layout Standard
+By default, a listing starts a new paragraph in the output.
+ The placement option 
+\family sans
+Inline\InsetSpace ~
+listing
+\family default
+ prints the listing inline like this: 
+\begin_inset listings
+lstparams "language={C++}"
+inline true
+status open
+
+\begin_layout Standard
+
+int a=5;
+\end_layout
+
+\end_inset
+
+
+\newline
+The option 
+\family sans
+Float
+\family default
+ creates a listings float where you can specify the placement options 
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+h
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+, 
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+t
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+, 
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+b
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+, and 
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+p
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+ corresponding to the float placement options described in section\InsetSpace ~
+
+\begin_inset LatexCommand ref
+reference "sec:Float-Placement"
+
+\end_inset
+
+.
+ The placement options can be mixed and are inserted without any separation,
+ e.\InsetSpace \thinspace{}
+g.\InsetSpace ~
+
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+htbp
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+.
+ The option 
+\begin_inset Quotes eld
+\end_inset
+
+h
+\begin_inset Quotes erd
+\end_inset
+
+ has sometimes no effect, but you don't need to use the 
+\family sans
+Float
+\family default
+ option in this case as also non-float listings can have captions and be
+ referenced.
+\end_layout
+
+\begin_layout Standard
+You can add captions to listings with the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Caption
+\family default
+.
+ Listings can be referenced like floats: Listing\InsetSpace ~
+
+\begin_inset LatexCommand ref
+reference "lst:Example-Listing"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language=Python"
+inline false
+status open
+
+\begin_layout Standard
+
+\begin_inset Caption
+
+\begin_layout Standard
+\begin_inset LatexCommand label
+name "lst:Example-Listing"
+
+\end_inset
+
+Example Listing float
+\end_layout
+
+\end_inset
+
+# Example listing float
+\end_layout
+
+\begin_layout Standard
+
+def func(param):
+\end_layout
+
+\begin_layout Standard
+
+    'this is a python function'
+\end_layout
+
+\begin_layout Standard
+
+    pass
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+When you have set a programming language in the listings dialog, the keywords
+ of this language will be recognized and specially typeset in the output.
+ In the example listings the Python keyword 
+\begin_inset Quotes eld
+\end_inset
+
+def
+\begin_inset Quotes erd
+\end_inset
+
+ is recognized and printed bold in the output.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ If you don't get bold keywords when using typewriter fonts, your typewriter
+ font probably doesn't provide a bold shape.
+ In this case select a different one in the menu 
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Fonts
+\family default
+.
+ (The fonts 
+\emph on
+LuxiMono, BeraMono
+\emph default
+ and 
+\emph on
+Courier
+\emph default
+ provide bold shapes.)
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+In section 
+\family sans
+Line\InsetSpace ~
+numbering
+\family default
+ of the listings dialog you can specify the line numbering style.
+ You can insert a number to specify which lines are numbered to the field
+\family sans
+Step
+\family default
+.
+ When you insert e.g.
+\begin_inset Quotes eld
+\end_inset
+
+3
+\begin_inset Quotes erd
+\end_inset
+
+, only every 3rd line will be numbered.
+\end_layout
+
+\begin_layout Standard
+You can furthermore specify a range of lines, only these will then appear
+ in the output.
+ The option 
+\family sans
+Extended\InsetSpace ~
+chars
+\family default
+ should be used when you use national characters like the German umlauts
+ in the listing.
+\newline
+Here is an example listing with left line numbering, step
+\begin_inset Quotes eld
+\end_inset
+
+3
+\begin_inset Quotes erd
+\end_inset
+
+, language 
+\begin_inset Quotes eld
+\end_inset
+
+Python
+\begin_inset Quotes erd
+\end_inset
+
+, options 
+\begin_inset Quotes eld
+\end_inset
+
+Extended\InsetSpace ~
+chars
+\begin_inset Quotes erd
+\end_inset
 
+ and 
+\begin_inset Quotes eld
 \end_inset
 
+Space\InsetSpace ~
+as\InsetSpace ~
+Symbol
+\begin_inset Quotes erd
+\end_inset
 
+, range lines 3\InsetSpace \thinspace{}
+-\InsetSpace \thinspace{}
+8:
 \end_layout
 
 \begin_layout Standard
-The section numbering includes the sections of the included files in the
- order they are inserted in the master document.
- The included example document has for example a subsection that is numbered
- as subsection of this section.
- Labels of included documents can be referenced: Subsection\InsetSpace ~
+\begin_inset listings
+lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
+inline false
+status open
 
-\begin_inset LatexCommand ref
-reference "sub:External-Subsection-1"
+\begin_layout Standard
 
-\end_inset
+def func(param):
+\end_layout
 
+\begin_layout Standard
 
+    'this is a python function'
 \end_layout
 
 \begin_layout Standard
-The preamble of the child document is ignored, only the preamble of the
- master document is used.
- Included documents are inserted starting on a new page and end with a pagebreak.
+
+    pass
 \end_layout
 
 \begin_layout Standard
-With the LaTeX-command 
-\series bold
 
-\backslash
-includeonly 
-\series default
-you can specify which included child documents are processed when the output
- is generated.
- This is useful when you are perhaps only working on a certain chapter of
- your large document as this saves compiling time.
-\series bold
+def func(param):
+\end_layout
 
-\backslash
-includeonly
-\series default
- is inserted to the master document preamble.
- It takes a comma-separated list of the filenames as argument, e.g.
+\begin_layout Standard
+
+'This is a German word: Tschüß'
 \end_layout
 
 \begin_layout Standard
 
-\series bold
+pass
+\end_layout
 
-\backslash
-includeonly{chapter1,chapter5}
+\begin_layout Standard
+
+def func(param):
 \end_layout
 
 \begin_layout Standard
-will only process the included files named 
-\begin_inset Quotes eld
-\end_inset
 
-chapter1.lyx
-\begin_inset Quotes erd
-\end_inset
+'this is a python function'
+\end_layout
 
- (or 
-\begin_inset Quotes eld
-\end_inset
+\begin_layout Standard
 
-chapter1.tex
-\begin_inset Quotes erd
-\end_inset
+pass
+\end_layout
 
-) and 
-\begin_inset Quotes eld
 \end_inset
 
-chapter5.lyx
-\begin_inset Quotes erd
-\end_inset
 
- .
 \end_layout
 
 \begin_layout Standard
@@ -27307,9 +28424,13 @@ status open
 \series bold
 Note:
 \series default
- When you have included a LyX- or LaTeX-file, you are warned when you export/vie
-w the document in case that the child document uses another document class
- than the master document as this will lead to unexpected outputs.
+ Due to a bug in the 
+\series bold
+listings
+\series default
+ package the line numbering is shifted by a line by every previous listing.
+ That's the reason why the lines 2 and 5 are numbered in the above listing
+ and not the lines 3 and 6.
 \end_layout
 
 \end_inset
@@ -27317,114 +28438,82 @@ w the document in case that the child document uses another document class
 
 \end_layout
 
-\begin_layout Description
-Input This method is very similar to the Include method.
- The differences are:
-\end_layout
-
-\begin_deeper
-\begin_layout Itemize
-Input files don't start with a new page and don't end with a pagebreak.
-\end_layout
-
-\begin_layout Itemize
-Input files can be previewed in LyX when 
-\family sans
-Instant\InsetSpace ~
-Preview
-\family default
- is enabled in LyX's preferences under 
-\family sans
-Look\InsetSpace ~
-and\InsetSpace ~
-feel\SpecialChar \menuseparator
-Graphics
-\family default
-.
-\end_layout
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
 
-\begin_layout Itemize
-The LaTeX-command 
-\series bold
 
-\backslash
-includeonly
-\series default
- cannot be used.
 \end_layout
 
-\end_deeper
 \begin_layout Standard
-Here is a child document inserted using 
+It is also possible to print lines from a file as listing.
+ To do this, use the menu 
 \family sans
-Input
+Insert\SpecialChar \menuseparator
+File\SpecialChar \menuseparator
+Child Document
 \family default
-: 
-\begin_inset Include \input{DummyDocument2.lyx}
-preview true
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Description
-Verbatim With this method every text file can be included.
- The file is shown in the output with its source code, no command used in
- the text is invoked.
- You can use the option 
+ and choose the type 
 \family sans
-Mark spaces in output
+Listings
 \family default
- that displays the character 
-\begin_inset Quotes eld
-\end_inset
-
-
-\begin_inset ERT
+.
+\begin_inset Foot
 status collapsed
 
 \begin_layout Standard
+The other child document types are described in section\InsetSpace ~
 
+\begin_inset LatexCommand ref
+reference "sec:Child-Documents"
 
-\backslash
-textvisiblespace 
+\end_inset
+
+.
 \end_layout
 
 \end_inset
 
+ In the child document dialog you can specify the listing parameters in
+ a text box.
+ To show a list of all available parameters, type in a question mark 
+\begin_inset Quotes eld
+\end_inset
 
+?
 \begin_inset Quotes erd
 \end_inset
 
- for every space character in the source code.
- The difference to the method via the menu 
+ in the text box.
+\end_layout
+
+\begin_layout Standard
+To reference child document listings, write a label text into the corresponding
+ field of the child document dialog.
+ The label can then be referenced using the menu 
 \family sans
 Insert\SpecialChar \menuseparator
-File\SpecialChar \menuseparator
-Plain\InsetSpace ~
-Text
+Cross-Reference
 \family default
- is that the document content is not shown in LyX.
+.
 \end_layout
 
 \begin_layout Standard
-Here is a child document inserted as Verbatim: 
-\begin_inset Include \verbatiminput{DummyTextDocument.txt}
-preview false
-
-\end_inset
+Listing\InsetSpace ~
 
+\begin_inset LatexCommand ref
+reference "lst:file-listing"
 
-\begin_inset VSpace bigskip
 \end_inset
 
-Here is a child document inserted as Verbatim using the 
-\family sans
-Mark spaces in output
-\family default
- option: 
-\begin_inset Include \verbatiminput*{DummyTextDocument.txt}
+ is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
+-\InsetSpace \thinspace{}
+15 of this LyX
+ file are listed.
+\end_layout
+
+\begin_layout Standard
+\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]
 preview false
 
 \end_inset
@@ -27440,39 +28529,41 @@ preview false
 \end_layout
 
 \begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Standard
-
-\series bold
-Note:
-\series default
- As you can see in the examples above, the text of the documents included
- as verbatim is not broken at the end of the document lines.
-\end_layout
-
+Global listings settings can be set in the 
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Text Layout
+\family default
+ dialog.
+ To get there a list of available options, type in a question mark 
+\begin_inset Quotes eld
 \end_inset
 
+?
+\begin_inset Quotes erd
+\end_inset
 
+ in the 
+\family sans
+Listings\InsetSpace ~
+settings
+\family default
+ field.
 \end_layout
 
 \begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Standard
-
+For more information about the 
 \series bold
-Note:
+listings
 \series default
- Including the same document twice in a document using different methods
- could cause LaTeX-problems.
-\end_layout
+ package, we refer to its documentation 
+\begin_inset LatexCommand cite
+key "listings"
 
 \end_inset
 
-
+.
 \end_layout
 
 \begin_layout Standard
 \begin_inset Text
 
 \begin_layout Standard
-didot (72\InsetSpace \thinspace{}
+didot (1\InsetSpace \thinspace{}
 dd 
 \begin_inset Formula $\approx$
 \end_inset
 
37.6\InsetSpace \thinspace{}
0.376\InsetSpace \thinspace{}
 mm)
 \end_layout
 
@@ -28126,6 +29217,7 @@ View
 \begin_inset Graphics
        filename ../images/buffer-view_dvi.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -28255,6 +29347,7 @@ View
 \begin_inset Graphics
        filename ../images/buffer-view_ps.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
@@ -28377,7 +29470,7 @@ Portable Network Graphics
 \end_inset
 
 ).
You can although use any other image format, because LyX converts them
Nevertheless you can use any other image format, because LyX converts them
  in the background to one of these formats.
  But as described in the section about PostScript, the image conversion
  will slow down your work flow.
@@ -28394,7 +29487,8 @@ Export
 \end_layout
 
 \begin_layout Description
-PDF This uses the program 
+PDF\InsetSpace ~
+(ps2pdf) This uses the program 
 \family typewriter
 ps2pdf
 \family default
@@ -28454,6 +29548,7 @@ View
 \begin_inset Graphics
        filename ../images/buffer-view_pdf2.xpm
        scale 85
+       scaleBeforeRotation
 
 \end_inset
 
 
 \begin_layout Standard
 \begin_inset Formula \begin{equation}
-W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
+W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
 
 \end_inset
 
@@ -28549,7 +29644,7 @@ reference "eq:Wtot_n"
 
 \begin_layout Standard
 \begin_inset Formula \begin{equation}
-W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
+W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
 
 \end_inset
 
 
 \begin_layout Standard
 \begin_inset Formula \begin{equation}
-W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
+W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
 
 \end_inset
 
@@ -28838,7 +29933,8 @@ status collapsed
 
  of the LaTeX-package 
 \series bold
-floatf\SpecialChar \textcompwordmark{}
+f\SpecialChar \textcompwordmark{}
+loatf\SpecialChar \textcompwordmark{}
 lt
 \series default
 
@@ -29067,6 +30163,50 @@ name "LaTeX-packages ! koma-script"
 \end_inset
 
 
+\end_layout
+
+\begin_layout Bibliography
+\begin_inset LatexCommand bibitem
+key "listings"
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
+{
+\end_layout
+
+\end_inset
+
+Documentation
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+ of the LaTeX-package 
+\series bold
+listings
+\series default
+
+\begin_inset LatexCommand index
+name "LaTeX-packages ! listings"
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Bibliography
@@ -29233,7 +30373,7 @@ status collapsed
 \family sans
 LyX 1.5
 \family default
-.
+.0.
 \end_layout
 
 \begin_layout Standard