]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Customization.lyx
Customization.lyx: accept changes and transfer the new infos to the other language...
[lyx.git] / lib / doc / Customization.lyx
index e2d7b35c6cd39ac41da2ba97cbe3dd36257225eb..4914cdd9e7abc9c8fdcaf8e0539e92d6ae561840 100644 (file)
@@ -1,14 +1,14 @@
 #LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 348
+\lyxformat 362
 \begin_document
 \begin_header
 \textclass scrbook
 \begin_preamble
 % DO NOT ALTER THIS PREAMBLE!!!
 %
-% This preamble is designed to ensure that the User's Guide prints
+% This preamble is designed to ensure that this document prints
 % out as advertised. If you mess with this preamble,
-% parts of the User's Guide may not print out as expected.  If you
+% parts of this document may not print out as expected.  If you
 % have problems LaTeXing this file, please contact 
 % the documentation team
 % email: lyx-docs@lists.lyx.org
@@ -66,12 +66,16 @@ End
 \font_sans default
 \font_typewriter default
 \font_default_family default
+\use_xetex false
 \font_sc false
 \font_osf false
 \font_sf_scale 100
 \font_tt_scale 100
 
 \graphics default
+\default_output_format default
+\bibtex_command default
+\index_command default
 \paperfontsize 12
 \spacing single
 \use_hyperref true
@@ -95,6 +99,7 @@ End
 \use_esint 0
 \cite_engine basic
 \use_bibtopic false
+\use_indices false
 \paperorientation portrait
 \branch OutDated
 \selected 0
@@ -108,11 +113,11 @@ End
 \papercolumns 1
 \papersides 2
 \paperpagestyle headings
-\tracking_changes true
+\tracking_changes false
 \output_changes false
-\author "rgheck
-\author "ab
-\author "Georg Baum,,,
+\author "" 
+\author "" 
+\author "" 
 \author "" 
 \end_header
 
@@ -617,7 +622,7 @@ xx
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "chap:i18n"
+reference "cha:Internationalizing-LyX"
 
 \end_inset
 
@@ -694,7 +699,7 @@ kbd/
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:keymap"
+reference "sec:International-Keymap-Stuff"
 
 \end_inset
 
@@ -719,7 +724,7 @@ layouts/
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "chap:textclass"
+reference "cha:Installing-New-Document"
 
 \end_inset
 
@@ -799,7 +804,7 @@ templates/
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:templates"
+reference "sec:Creating-Templates"
 
 \end_inset
 
@@ -1275,142 +1280,14 @@ User's Guide
 \end_layout
 
 \begin_layout Section
-Using the dialog for the first time
-\end_layout
-
-\begin_layout Standard
-The 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-UserDir/preferences
-\end_layout
-
-\end_inset
-
- file will contain only changes that you have made to the default behavior,
- some of which is hard-coded into LyX and some of which is contained in
- the system file 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-LyXDir/lyxrc.defaults
-\end_layout
-
-\end_inset
-
-.
- Note that in both files lines beginning with a 
-\begin_inset Quotes eld
-\end_inset
-
-#
-\begin_inset Quotes erd
-\end_inset
-
- are just comments and are not interpreted.
- However, only system administrators should edit 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-LyXDir/lyxrc.defaults
-\end_layout
-
-\end_inset
-
-.
- Users should use the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Tools\SpecialChar \menuseparator
-Preferences
-\end_layout
-
-\end_inset
-
- dialog to create and modify their own 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-UserDir/preferences
-\end_layout
-
-\end_inset
-
- file.
-\end_layout
-
-\begin_layout Standard
-We hope that the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Tools\SpecialChar \menuseparator
-Preferences
-\end_layout
-
-\end_inset
-
- dialog will be largely self-explanatory.
- Most things in the dialog have associated `tool tips': hover your mouse
- pointer over something for more information.
- Before we highlight a few of the more important commands below, however,
- a word of warning: Applying some of your changes (e.
-\begin_inset space \thinspace{}
-\end_inset
-
-g.
-\begin_inset space \space{}
-\end_inset
-
-screen fonts) will have an instant effect.
- Others (e.
-\begin_inset space \thinspace{}
-\end_inset
-
-g.
-\begin_inset space \space{}
-\end_inset
-
-changing the bind file) will not.
- If nothing appears to have changed, just 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Save
-\end_layout
-
-\end_inset
-
- the changes and restart LyX.
-\end_layout
-
-\begin_layout Section
-File Handling
-\end_layout
-
-\begin_layout Standard
-LyX has a powerful mechanism to convert to and from any file format using
- external programs.
-\end_layout
-
-\begin_layout Subsection
+Formats
 \begin_inset CommandInset label
 LatexCommand label
-name "sub:Formats"
+name "sec:Formats"
 
 \end_inset
 
-Formats
+
 \end_layout
 
 \begin_layout Standard
@@ -1460,7 +1337,7 @@ Format
 
 \end_inset
 
- field contains the named used to identify the format in the GUI.
+ field contains the name used to identify the format in the GUI.
  The 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
@@ -1520,7 +1397,7 @@ Viewer
 
 \end_inset
 
- and 
+ and an 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -1557,37 +1434,18 @@ View
 \end_inset
 
  menu.
- The editor is for example launched when you press the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Edit
-\end_layout
-
-\end_inset
-
- button in the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Graphics
-\end_layout
-
-\end_inset
-
- or the 
+ The editor is for example launched when you right-click on an image and
+ choose 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-External material
+Edit externally
 \end_layout
 
 \end_inset
 
dialog.
in the appearing context menu.
 \end_layout
 
 \begin_layout Standard
@@ -1602,10 +1460,14 @@ Document format
 \end_inset
 
  option tells LyX that a format is suitable for document export.
- If this is is set and if a suitable conversion route exists (see 
+ If this is set and if a suitable conversion route exists (see sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:Converters"
+reference "sec:Converters"
 
 \end_inset
 
@@ -1774,7 +1636,7 @@ png
 .
 \end_layout
 
-\begin_layout Subsection
+\begin_layout Section
 Copiers
 \end_layout
 
@@ -1930,7 +1792,7 @@ cp $FROMFILE /home/you/pdf/$TOFILE
 
 \end_inset
 
-Save that in your local LyX directory—say, 
+Save it in your local LyX directory—say, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -2101,14 +1963,15 @@ status collapsed
 
 \end_layout
 
-\begin_layout Subsection
+\begin_layout Section
+Converters
 \begin_inset CommandInset label
 LatexCommand label
-name "sub:Converters"
+name "sec:Converters"
 
 \end_inset
 
-Converters
+
 \end_layout
 
 \begin_layout Standard
@@ -2258,8 +2121,8 @@ $$r
 
 \end_inset
 
- The path to the original input file (this is different from $$p when chain
- of converters is called).
+ The path to the original input file (this is different from $$p when a
chain of converters is called).
 \end_layout
 
 \begin_layout Standard
@@ -2382,7 +2245,7 @@ infile.out
 status collapsed
 
 \begin_layout Plain Layout
-script <infile.out >infile.log
+script < infile.out > infile.log
 \end_layout
 
 \end_inset
@@ -2468,8 +2331,8 @@ None of these last three are presently used in any of the converters that
 \end_layout
 
 \begin_layout Standard
-You do not have to define converters between all the formats between which
you want to convert.
+You do not have to define converters for all formats between which you want
+ to convert.
  For example, you will note that there is no `LyX to PostScript' converter,
  but LyX will export PostScript.
  It does so by first creating a LaTeX file (no converter needs to be defined
@@ -2515,7 +2378,7 @@ dvipdfm
  formats', as described in section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:Formats"
+reference "sec:Formats"
 
 \end_inset
 
@@ -2567,7 +2430,7 @@ status collapsed
 Internationalizing LyX
 \begin_inset CommandInset label
 LatexCommand label
-name "chap:i18n"
+name "cha:Internationalizing-LyX"
 
 \end_inset
 
@@ -3111,21 +2974,6 @@ DocName
  do right away:
 \end_layout
 
-\begin_layout Itemize
-Read 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-DocStyle.lyx
-\end_layout
-
-\end_inset
-
-, the guide to writing LyX documentation.
- Pay special attention to the translator's section.
-\end_layout
-
 \begin_layout Itemize
 Check out the documentation translation web page at 
 \begin_inset CommandInset href
@@ -3165,11 +3013,7 @@ status collapsed
 
 \begin_layout Plain Layout
 Help\SpecialChar \menuseparator
-
-\bar under
-I
-\bar default
-ntroduction
+Introduction
 \end_layout
 
 \end_inset
@@ -3786,13 +3630,14 @@ kinclude
 \end_layout
 
 \begin_layout Section
+International Keymap Stuff
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:keymap"
+name "sec:International-Keymap-Stuff"
 
 \end_inset
 
-International Keymap Stuff
+
 \end_layout
 
 \begin_layout Standard
@@ -5381,10 +5226,10 @@ Preferences
 \end_layout
 
 \begin_layout Chapter
-Installing New Document Classes, Layouts, and Templates 
+Installing New Document Classes, Layouts, and Templates
 \begin_inset CommandInset label
 LatexCommand label
-name "chap:textclass"
+name "cha:Installing-New-Document"
 
 \end_inset
 
@@ -6015,13 +5860,14 @@ default
 \end_layout
 
 \begin_layout Subsection
+Layout modules
 \begin_inset CommandInset label
 LatexCommand label
 name "sub:Layout-modules"
 
 \end_inset
 
-Layout modules
+
 \end_layout
 
 \begin_layout Standard
@@ -6078,16 +5924,12 @@ DeclareLyXModule[endnotes.sty]{Endnotes}
 \end_layout
 
 \begin_layout Standard
-
-\change_inserted 0 1235082501
 The mandatory argument, in curly brackets, is the name of the module, as
  it should appear in 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 0 1235082501
 Document\SpecialChar \menuseparator
 Settings
 \end_layout
@@ -6095,45 +5937,32 @@ Settings
 \end_inset
 
 .
-\change_unchanged
-The argument in square brackets is optional: It declares any LaTeX packages
+ The argument in square brackets is optional: It declares any LaTeX packages
  on which the module depends.
-\change_deleted 0 1235082500
-The mandatory argument, in curly brackets, is the name of the module, as
- it should appear in 
-\begin_inset Flex CharStyle:MenuItem
+ Please note that only packages about which LyX knows should be listed in
+ the square brackets.
+\begin_inset Foot
 status collapsed
 
 \begin_layout Plain Layout
-Document\SpecialChar \menuseparator
-Settings
+The list of such packages is documented only in the source code.
 \end_layout
 
 \end_inset
 
-.
-\change_inserted 0 1235082535
-Please note that only packages about which LyX knows should be listed in
- the square brackets.
-\begin_inset Foot
-status open
+ LyX will not check for arbitrary packages.
+ It is also possible to use the form 
+\begin_inset Flex CharStyle:MenuItem
+status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 0 1235082591
-The list of such packages is documented only in the source code.
-\change_unchanged
-
+from->to
 \end_layout
 
 \end_inset
 
- LyX will not check for arbitrary packages.
-\change_unchanged
-
+, which declares that the module can only be used when there exists a conversion
+ chain between formats `from' and `to'.
 \end_layout
 
 \begin_layout Standard
@@ -6923,15 +6752,7 @@ int
 
 ] This tag was introduced with LyX 1.4.0 (layout files of LyX 1.3.x and earlier
  don't have an explicit file format).
- The file format that is documented here is format 1
-\change_deleted 2 1234611237
-2
-\change_inserted 2 1234611237
-4
-\change_unchanged
-.
-\change_deleted 1 1234946903
-
+ The file format that is documented here is format 14.
 \end_layout
 
 \begin_layout Subsection
@@ -6992,7 +6813,7 @@ ClassOptions
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:classoptions"
+reference "sub:ClassOptions"
 
 \end_inset
 
@@ -7083,7 +6904,7 @@ Counter
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -7127,7 +6948,7 @@ DefaultFont
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -7302,7 +7123,7 @@ Float
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:floats"
+reference "sub:Floats"
 
 \end_inset
 
@@ -7381,7 +7202,7 @@ a new character style.
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:charstyle"
+reference "sub:Flex-insets-and"
 
 \end_inset
 
@@ -7463,6 +7284,43 @@ NoStyle
 \begin_inset Flex CharStyle:Code
 status collapsed
 
+\begin_layout Plain Layout
+OutputFormat
+\end_layout
+
+\end_inset
+
+ A string indicating the file format (as defined in the Preferences dialog)
+ produced by this class.
+ It is mainly useful when 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+OutputType
+\end_layout
+
+\end_inset
+
+ is `literate' and one wants to define a new type of literate document.
+ This string is reset to `docbook', `latex', or `literate' when the correspondin
+g 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+OutputType
+\end_layout
+
+\end_inset
+
+ parameter is encountered.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
 \begin_layout Plain Layout
 OutputType
 \end_layout
@@ -7911,7 +7769,7 @@ Style
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:style"
+reference "sub:Paragraph-Styles"
 
 \end_inset
 
@@ -8118,15 +7976,16 @@ ClassOptions
 \end_inset
 
  section
-\end_layout
-
-\begin_layout Standard
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:classoptions"
+name "sub:ClassOptions"
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
 The 
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -8319,15 +8178,16 @@ End
 
 \begin_layout Subsection
 Paragraph Styles
-\end_layout
-
-\begin_layout Standard
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:style"
+name "sub:Paragraph-Styles"
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
 A paragraph style description looks like this:
 \begin_inset Foot
 status collapsed
@@ -8422,49 +8282,139 @@ block
 status collapsed
 
 \begin_layout Plain Layout
-BottomSep
+BabelPreamble
 \end_layout
 
 \end_inset
 
- [
+ Language dependent information to be included in the LaTeX preamble when
+ this style is used.
+ Note that this will completely override any prior 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-float=0
+BabelPreamble
 \end_layout
 
 \end_inset
 
-]
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-Note that a `float' here is a real number, such as: 1.5.
-\end_layout
-
+ declarations.
+ Must end with 
+\begin_inset Quotes eld
 \end_inset
 
- The vertical space with which the last of a chain of paragraphs with this
- layout is separated from the following paragraph.
- If the next paragraph has another layout, the separations are not simply
- added, but the maximum is taken.
-\end_layout
 
-\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Category
+EndBabelPreamble
 \end_layout
 
 \end_inset
 
-\begin_inset Flex CharStyle:Code
+
+\begin_inset Quotes erd
+\end_inset
+
+.
+ The contents of this tag will occur once in the LaTeX preamble for each
+ language used by the document.
+ Each time, the following substitutions are made:
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+$$lang
+\end_layout
+
+\end_inset
+
+ is replaced by the language name (as used by the babel package).
+\end_layout
+
+\begin_layout Itemize
+The 
+\begin_inset Quotes eld
+\end_inset
+
+Function
+\begin_inset Quotes erd
+\end_inset
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+_()
+\end_layout
+
+\end_inset
+
+ replaces its argument by the translation of the argument to the current
+ language.
+\end_layout
+
+\begin_layout Standard
+This preamble snippet will only be used if the document contains more than
+ one language and the babel package is used.
+\end_layout
+
+\end_deeper
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+BottomSep
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+float=0
+\end_layout
+
+\end_inset
+
+]
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+Note that a `float' here is a real number, such as: 1.5.
+\end_layout
+
+\end_inset
+
+ The vertical space with which the last of a chain of paragraphs with this
+ layout is separated from the following paragraph.
+ If the next paragraph has another layout, the separations are not simply
+ added, but the maximum is taken.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Category
+\end_layout
+
+\end_inset
+
+\begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
@@ -8859,7 +8809,7 @@ and
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -8956,488 +8906,203 @@ FreeSpacing
 status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 2 1234613251
-Babel
-\change_deleted 2 1234611266
-I18N
-\change_unchanged
-Preamble
+InnerTag
 \end_layout
 
 \end_inset
 
- Language dependent information to be included in the LaTeX preamble when
- this style is used.
- Note that this will completely override any prior 
+ [[FIXME]] (Used only with XML-type formats.)
+\end_layout
+
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 2 1234613436
-Babel
-\change_deleted 2 1234611275
-I18N
-\change_unchanged
-Preamble
+InTitle
 \end_layout
 
 \end_inset
 
- declarations.
- Must end with 
-\begin_inset Quotes eld
-\end_inset
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+[1, 0]
+\end_layout
 
+\end_inset
 
+ If 1, marks the layout as being part of a title block (see also the 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-End
-\change_deleted 2 1234611280
-I18N
-\change_inserted 2 1234613262
-Babel
-\change_unchanged
-Preamble
+TitleLatexType
 \end_layout
 
 \end_inset
 
+ and 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+TitleLatexName
+\end_layout
 
-\begin_inset Quotes erd
 \end_inset
 
-.
- The contents of this tag will occur once in the LaTeX preamble for each
- language used by the document.
- Each time, the following substitutions are made:
+ global entries).
 \end_layout
 
-\begin_deeper
-\begin_layout Itemize
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-$$lang
+ItemSep
 \end_layout
 
 \end_inset
 
- is replaced by the language name (as used by the babel package).
-\end_layout
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
 
-\begin_layout Itemize
-The 
-\begin_inset Quotes eld
-\end_inset
+\begin_layout Plain Layout
+float=0
+\end_layout
 
-Function
-\begin_inset Quotes erd
 \end_inset
 
+] This provides extra space between paragraphs that have the same layout.
+ If you put other layouts into an environment, each is separated with the
+ environment's 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-_()
+Parsep
 \end_layout
 
 \end_inset
 
- replaces its argument by the translation of the argument to the current
- language.
-\change_inserted 2 1234611470
+.
+ But the whole items of the environment are additionally separated with
+ this 
+\begin_inset Flex CharStyle:Code
+status collapsed
 
+\begin_layout Plain Layout
+Itemsep
 \end_layout
 
-\begin_layout Standard
-
-\change_inserted 2 1234615134
-This preamble snippet will only be used if the document contains more than
- one language and the babel package is used.
-\change_unchanged
+\end_inset
 
+.
+ Note that this is a
+\emph on
+ multiplier.
 \end_layout
 
-\end_deeper
 \begin_layout Description
-
-\change_inserted 2 1234614203
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 2 1234614202
-LangPreamble
+ItemTag
 \end_layout
 
 \end_inset
 
- Like 
+ [[FIXME]] (Used only with XML-type formats.)
+\end_layout
+
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 2 1234614202
-BabelPreamble
+KeepEmpty
 \end_layout
 
 \end_inset
 
-, but this preamble snippet occurs independently from the babel package,
- and only for the document language.
- Must end with 
-\begin_inset Quotes eld
+\begin_inset CommandInset label
+LatexCommand label
+name "des:KeepEmpty"
+
 \end_inset
 
+[
+\emph on
 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
 
-\change_inserted 2 1234614202
-EndLangPreamble
+\emph on
+0
 \end_layout
 
 \end_inset
 
 
-\begin_inset Quotes erd
+\emph default
+, 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
 \end_inset
 
-.
+] Usually LyX does not allow you to leave a paragraph empty, since it would
+ lead to empty LaTeX output.
+ There are some cases where this could be desirable however: in a letter
+ template, the required fields can be provided as empty fields, so that
+ people do not forget them; in some special classes, a layout can be used
+ as some kind of break, which does not contain actual text.
 \end_layout
 
-\begin_deeper
-\begin_layout Standard
-If the style defines text that appears in the typeset document, it may use
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 2 1234611302
-Lang
-\change_deleted 2 1234611306
-I18N
-\change_unchanged
-Preamble
+LabelBottomsep
 \end_layout
 
 \end_inset
 
-
-\change_inserted 2 1234611823
- and
-\change_unchanged
-\change_inserted 2 1234611832
-
+ [float=0] The vertical space between the label and the text body.
+ Only used for labels that are above the text body (
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 2 1234611838
-BabelPreamble
+Top_Environment
 \end_layout
 
 \end_inset
 
-\change_unchanged
-to support non-english and even multilanguage documents correctly.
- The following excerpt (from the 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-theorems-ams.inc
+Centered_Top_Environment
 \end_layout
 
 \end_inset
 
- file) shows how this works:
-\end_layout
-
-\begin_layout LyX-Code
-Preamble
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_deleted 2 1234612061
-  
-\backslash
-providecommand{
-\backslash
-claimname}{Claim}
-\end_layout
-
-\begin_layout LyX-Code
-  
-\backslash
-theoremstyle{remark}
-\end_layout
-
-\begin_layout LyX-Code
-  
-\backslash
-newtheorem{claim}[thm]{
-\backslash
-protect
-\backslash
-claimname}
-\end_layout
-
-\begin_layout LyX-Code
-EndPreamble
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_inserted 2 1234612037
-LangPreamble
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_inserted 2 1234612045
-  
-\backslash
-providecommand{
-\backslash
-claimname}{_(Claim)}
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_inserted 2 1234611897
-
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_inserted 2 1234612050
-EndLangPreamble
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_inserted 2 1234611892
-Babel
-\change_deleted 2 1234611847
-I18n
-\change_unchanged
-Preamble
-\end_layout
-
-\begin_layout LyX-Code
-  
-\change_deleted 2 1234612079
-
-\backslash
-AtBeginDocument{
-\backslash
-ifx
-\backslash
-LdfInit
-\backslash
-undefined
-\backslash
-relax
-\backslash
-else%
-\end_layout
-
-\begin_layout LyX-Code
-  
-\backslash
-addto
-\backslash
-captions$$lang{
-\backslash
-renewcommand{
-\backslash
-claimname}{_(Claim)}}
-\change_deleted 2 1234612086
-%
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_deleted 2 1234612089
-  
-\backslash
-fi}
-\change_unchanged
-
-\end_layout
-
-\begin_layout LyX-Code
-End
-\change_inserted 2 1234611859
-Babel
-\change_deleted 2 1234611856
-I18n
-\change_unchanged
-Preamble
-\end_layout
-
-\begin_layout Standard
-The key to correct translation of the user visible text is the definition
- of the command 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-claimname
-\end_layout
-
-\end_inset
-
- in the 
-\change_inserted 2 1234612144
-language
-\change_deleted 2 1234612146
-standard
-\change_unchanged
- preamble.
- This command holds the name of the theorem that will appear in the output.
- The 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\change_inserted 2 1234612157
-Babel
-\change_deleted 2 1234612155
-I18N
-\change_unchanged
-Preamble
-\end_layout
-
-\end_inset
-
- then uses the commands offered by the babel package to redefine 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-claimname
-\end_layout
-
-\end_inset
-
- for each used language
-\change_inserted 2 1234622073
- in multilanguage documents
-\change_unchanged
-.
-
-\change_deleted 2 1234612171
- The 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-ifx
-\backslash
-LdfInit
-\end_layout
-
-\end_inset
-
- test ensures that no LaTeX error occurs in documents that do not use babel.
- Since LyX loads babel after the style-specific preamble, the whole command
- is deferred to the actual start of the document with 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-AtBeginDocument
-\end_layout
-
-\end_inset
-
-.
-\change_unchanged
-
-\end_layout
-
-\end_deeper
-\begin_layout Description
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-InnerTag
-\end_layout
-
-\end_inset
-
- [[FIXME]] (Used only with XML-type formats.)
-\end_layout
-
-\begin_layout Description
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-InTitle
-\end_layout
-
-\end_inset
-
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-[1, 0]
-\end_layout
-
-\end_inset
-
- If 1, marks the layout as being part of a title block (see also the 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-TitleLatexType
-\end_layout
-
-\end_inset
-
- and 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-TitleLatexName
-\end_layout
-
-\end_inset
-
- global entries).
+).
 \end_layout
 
 \begin_layout Description
@@ -9445,7 +9110,7 @@ TitleLatexName
 status collapsed
 
 \begin_layout Plain Layout
-ItemSep
+LabelCounter
 \end_layout
 
 \end_inset
@@ -9455,192 +9120,147 @@ ItemSep
 status collapsed
 
 \begin_layout Plain Layout
-float=0
+string=""
 \end_layout
 
 \end_inset
 
-] This provides extra space between paragraphs that have the same layout.
- If you put other layouts into an environment, each is separated with the
- environment's 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-Parsep
-\end_layout
-
+]
+\begin_inset Newline newline
 \end_inset
 
-.
- But the whole items of the environment are additionally separated with
- this 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-Itemsep
-\end_layout
-
+The name of the counter for automatic numbering.
+\begin_inset Newline newline
 \end_inset
 
-.
- Note that this is a
+This 
 \emph on
- multiplier.
-\end_layout
-
-\begin_layout Description
+must
+\emph default
+ be given if 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-ItemTag
+LabelType
 \end_layout
 
 \end_inset
 
- [[FIXME]] (Used only with XML-type formats.)
-\end_layout
-
-\begin_layout Description
+ is 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-KeepEmpty
+Counter
 \end_layout
 
 \end_inset
 
+.
+ In that case, the counter will be stepped each time the layout appears.
  
-\begin_inset CommandInset label
-LatexCommand label
-name "des:KeepEmpty"
-
+\begin_inset Newline newline
 \end_inset
 
-[
+This 
 \emph on
-
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\emph on
-0
-\end_layout
-
-\end_inset
-
-
-\emph default
-, 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-1
-\end_layout
-
-\end_inset
-
-] Usually LyX does not allow you to leave a paragraph empty, since it would
- lead to empty LaTeX output.
- There are some cases where this could be desirable however: in a letter
- template, the required fields can be provided as empty fields, so that
- people do not forget them; in some special classes, a layout can be used
- as some kind of break, which does not contain actual text.
-\end_layout
-
-\begin_layout Description
+may
+\emph default
+ also be given if 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelBottomsep
+LabelType
 \end_layout
 
 \end_inset
 
- [float=0] The vertical space between the label and the text body.
- Only used for labels that are above the text body (
+ is 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Top_Environment
+Enumerate
 \end_layout
 
 \end_inset
 
-, 
+, though this case is a bit complicated.
+ Suppose you declare 
+\begin_inset Quotes eld
+\end_inset
+
+
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Centered_Top_Environment
+LabelCounter myenum
 \end_layout
 
 \end_inset
 
-).
-\end_layout
 
-\begin_layout Description
+\begin_inset Quotes erd
+\end_inset
+
+.
+ Then the actual counters used are 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelCounter
+myenumi
 \end_layout
 
 \end_inset
 
- [
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-string=""
+myenumii
 \end_layout
 
 \end_inset
 
-]
-\begin_inset Newline newline
-\end_inset
-
-The name of the counter for automatic numbering (see Section 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:counter"
-
-\end_inset
-
- for details).
- This must be given if 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Labeltype
+myenumiii
 \end_layout
 
 \end_inset
 
- is 
+, and 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Counter
+myenumiv
 \end_layout
 
 \end_inset
 
-.
+, much as in LaTeX.
+ These counters must all be declared separately.
+\begin_inset Newline newline
+\end_inset
+
+See Section 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Counters"
+
+\end_inset
+
+ for details on counters.
 \end_layout
 
 \begin_layout Description
@@ -9661,7 +9281,7 @@ LabelFont
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -9750,7 +9370,7 @@ LabelCounter
  in Section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -9800,7 +9420,7 @@ style-name
  Section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -9884,7 +9504,7 @@ LabelTag
 status collapsed
 
 \begin_layout Plain Layout
-Labeltype
+LabelType
 \end_layout
 
 \end_inset
@@ -9898,20 +9518,17 @@ status collapsed
 \emph on
 No_Label
 \emph default
-, Manual, Static, Top_Environment, 
-\begin_inset Newline newline
-\end_inset
-
-Centered_Top_Environment, Sensitive, Counter
+, Manual, Static, Top_Environment, Centered_Top_Environment, Counter, Sensitive,
+ Enumerate, Itemize, Bibliography
 \end_layout
 
 \end_inset
 
 ] 
-\begin_inset Newline newline
-\end_inset
-
+\end_layout
 
+\begin_deeper
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -9922,16 +9539,15 @@ Manual
 \end_inset
 
  means the label is the very first word (up to the first real blank).
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-Use protected spaces if you want more than one word as the label.
-\end_layout
-
+ Use protected spaces (like
+\begin_inset space ~
 \end_inset
 
+that one) if you want more than one word as the label.
  
+\end_layout
+
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -9941,7 +9557,7 @@ Static
 
 \end_inset
 
- means it is defined in the layout (see 
+ means the label is simply whatever 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -9951,8 +9567,11 @@ LabelString
 
 \end_inset
 
-).
+ declares it to be.
+ Note that this really is `static'.
+\end_layout
+
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -9985,107 +9604,356 @@ Static
 .
  The label will be printed above the paragraph, but only at the top of an
  environment or the top of a chain of paragraphs with this layout.
Usage is for example the 
This might be used with the 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-Abstract
+Abstract
+\end_layout
+
+\end_inset
+
+ layout, for example.
+\end_layout
+
+\begin_layout Itemize
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Sensitive
+\end_layout
+
+\end_inset
+
+ is a special case for the caption-labels 
+\begin_inset Quotes eld
+\end_inset
+
+Figure
+\begin_inset Quotes erd
+\end_inset
+
+ and 
+\begin_inset Quotes eld
+\end_inset
+
+Table
+\begin_inset Quotes erd
+\end_inset
+
+.
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Sensitive
+\end_layout
+
+\end_inset
+
+ means the (hardcoded) label string depends on the kind of float: It is
+ hardcoded to be `FloatType N', where N is the value of the counter associated
+ with the float.
+\end_layout
+
+\begin_layout Itemize
+The 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Counter
+\end_layout
+
+\end_inset
+
+ label type defines automatically numbered labels.
+ The 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LabelString
+\end_layout
+
+\end_inset
+
+ will be expanded to resolve any counter references it contains: For example,
+ it might be 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Section 
+\backslash
+thechapter.
+\backslash
+thesection
+\end_layout
+
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+.
+ See Section 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Counters"
+
+\end_inset
+
+ for more information on counters.
+\end_layout
+
+\begin_layout Itemize
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Enumerate
+\end_layout
+
+\end_inset
+
+ produces the usual sort of enumeration labels.
+ At present, it is hardcoded to use Arabic numerals, lowercase letters,
+ small Roman numerals, and uppercase letters for the four possible depths.
+\end_layout
+
+\begin_layout Itemize
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Itemize
+\end_layout
+
+\end_inset
+
+ produces various bullets at the different levels.
+ It is also hardcoded.
+\end_layout
+
+\begin_layout Itemize
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Bibliography
+\end_layout
+
+\end_inset
+
+ is used internally by LyX and should be used only with 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LatexType BibEnvironment
+\end_layout
+
+\end_inset
+
+.
+\end_layout
+
+\end_deeper
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LangPreamble
+\end_layout
+
+\end_inset
+
+ Like 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+BabelPreamble
+\end_layout
+
+\end_inset
+
+, but this preamble snippet occurs independently from the babel package,
+ and only for the document language.
+ Must end with 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+EndLangPreamble
+\end_layout
+
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+.
+\end_layout
+
+\begin_deeper
+\begin_layout Standard
+If the style defines text that appears in the typeset document, it may use
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LangPreamble
 \end_layout
 
 \end_inset
 
- layout or the 
-\begin_inset Flex CharStyle:MenuItem
+ and 
+\begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Bibliography
+BabelPreamble
 \end_layout
 
 \end_inset
 
layout.
- This is also the case for 
to support non-english and even multilanguage documents correctly.
+ The following excerpt (from the 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Manual
+theorems-ams.inc
 \end_layout
 
 \end_inset
 
- labels with latex type 
-\begin_inset Flex CharStyle:Code
-status collapsed
+ file) shows how this works:
+\end_layout
 
-\begin_layout Plain Layout
-Environment
+\begin_layout LyX-Code
+Preamble
 \end_layout
 
-\end_inset
+\begin_layout LyX-Code
+  
+\backslash
+theoremstyle{remark}
+\end_layout
 
-, in order to make layouts for theorems work correctly.
-\begin_inset Flex CharStyle:Code
-status collapsed
+\begin_layout LyX-Code
+  
+\backslash
+newtheorem{claim}[thm]{
+\backslash
+protect
+\backslash
+claimname}
+\end_layout
 
-\begin_layout Plain Layout
-Sensitive
+\begin_layout LyX-Code
+EndPreamble
 \end_layout
 
-\end_inset
+\begin_layout LyX-Code
+LangPreamble
+\end_layout
 
- is a special case for the caption-labels 
-\begin_inset Quotes eld
-\end_inset
+\begin_layout LyX-Code
+  
+\backslash
+providecommand{
+\backslash
+claimname}{_(Claim)}
+\end_layout
 
-Figure
-\begin_inset Quotes erd
-\end_inset
+\begin_layout LyX-Code
 
- and 
-\begin_inset Quotes eld
-\end_inset
+\end_layout
 
-Table
-\begin_inset Quotes erd
-\end_inset
+\begin_layout LyX-Code
+EndLangPreamble
+\end_layout
 
-.
+\begin_layout LyX-Code
+BabelPreamble
+\end_layout
+
+\begin_layout LyX-Code
+    
+\backslash
+addto
+\backslash
+captions$$lang{
+\backslash
+renewcommand{
+\backslash
+claimname}{_(Claim)}}
+\end_layout
+
+\begin_layout LyX-Code
+EndBabelPreamble
+\end_layout
+
+\begin_layout Standard
+The key to correct translation of the user visible text is the definition
+ of the command 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Sensitive
+
+\backslash
+claimname
 \end_layout
 
 \end_inset
 
- means the (hardcoded) label string depends on the kind of float.
+ in the language preamble.
+ This command holds the name of the theorem that will appear in the output.
  The 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Counter
+BabelPreamble
 \end_layout
 
 \end_inset
 
- label type defines automatically numbered labels.
- See Section 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:counter"
+ then uses the commands offered by the babel package to redefine 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+claimname
+\end_layout
 
 \end_inset
 
-.
+ for each used language in multilanguage documents.
 \end_layout
 
+\end_deeper
 \begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -10160,13 +10028,36 @@ Paragraph
 status collapsed
 
 \begin_layout Plain Layout
-List_Environment
+List_Environment, Bib_Environment
 \end_layout
 
 \end_inset
 
 ] How the layout should be translated into LaTeX.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LatexType
+\end_layout
+
+\end_inset
+
+ is perhaps a bit misleading, since these rules apply to SGML classes, too.
+ Visit the SGML class files for specific examples.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -10178,6 +10069,9 @@ Paragraph
 
  means nothing special.
  
+\end_layout
+
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -10204,7 +10098,10 @@ LatexName
 
 \end_inset
 
- and 
+.
+\end_layout
+
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -10239,6 +10136,9 @@ LatexName
 
 .
  
+\end_layout
+
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -10258,7 +10158,7 @@ Environment
 
 \end_inset
 
-, except that a 
+, except that an 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -10272,6 +10172,9 @@ item
 
  is generated for each paragraph of this environment.
  
+\end_layout
+
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -10333,19 +10236,6 @@ aragraph
 
  dialog.
  
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\emph on
-LatexType
-\end_layout
-
-\end_inset
-
- is perhaps a bit misleading, since these rules apply to SGML classes, too.
- Visit the SGML class files for specific examples.
 \end_layout
 
 \begin_layout Standard
@@ -10376,6 +10266,7 @@ end{latexname}.
 depending upon the LaTeX type.
 \end_layout
 
+\end_deeper
 \begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -11290,7 +11181,7 @@ TextFont
  See section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -11341,15 +11232,16 @@ float=0
 
 \begin_layout Subsection
 Floats
-\end_layout
-
-\begin_layout Standard
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:floats"
+name "sub:Floats"
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
 Since version 1.3.0 of LyX, it is has been both possible and necessary to
  define the floats (
 \begin_inset Flex CharStyle:MenuItem
@@ -11459,6 +11351,7 @@ string
 \end_inset
 
 ] The string that will be used in the menus and also for the caption.
+ This is translated to the current language if babel is used.
 \end_layout
 
 \begin_layout Description
@@ -11556,6 +11449,7 @@ string
 \end_inset
 
 ] The heading used for the list of floats.
+ This is translated to the document language.
 \end_layout
 
 \begin_layout Description
@@ -11883,15 +11777,16 @@ type
 
 \begin_layout Subsection
 Flex insets and InsetLayout
-\end_layout
-
-\begin_layout Standard
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:charstyle"
+name "sub:Flex-insets-and"
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
 LyX has supported character styles since version 1.4.0; as of version 1.6.0,
  these are called Flex insets.
  
@@ -12505,7 +12400,7 @@ and
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -12697,7 +12592,7 @@ LabelFont
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -13040,15 +12935,16 @@ reference "des:Requires"
 
 \begin_layout Subsection
 Counters
-\end_layout
-
-\begin_layout Standard
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:counter"
+name "sub:Counters"
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
 Since version 1.3.0 of LyX, it is both possible and necessary to define the
  counters (
 \begin_inset Flex CharStyle:MenuItem
@@ -13465,15 +13361,16 @@ section
 
 \begin_layout Subsection
 Font description
-\end_layout
-
-\begin_layout Standard
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:fonts"
+name "sub:Font-description"
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
 A font description looks like this:
 \end_layout
 
@@ -14003,7 +13900,7 @@ The automatic conversion only handles syntax changes.
 Creating Templates
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:templates"
+name "sec:Creating-Templates"
 
 \end_inset
 
@@ -14770,7 +14667,7 @@ InputFormat
  This must be the name of a format that is known to LyX (see section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:Formats"
+reference "sec:Formats"
 
 \end_inset
 
@@ -15863,34 +15760,13 @@ status collapsed
 \end_layout
 
 \begin_layout Section
+Security discussion
 \begin_inset CommandInset label
 LatexCommand label
 name "sec:Security-discussion"
 
 \end_inset
 
-Security discussion
-\end_layout
-
-\begin_layout Standard
-\begin_inset Box Shadowbox
-position "t"
-hor_pos "c"
-has_inner_box 1
-inner_pos "t"
-use_parbox 0
-width "100col%"
-special "none"
-height "1in"
-height_special "totalheight"
-status open
-
-\begin_layout Plain Layout
-WARNING: This section is definitely outdated.
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -15941,49 +15817,7 @@ This also implies that you are restricted in what command strings you can
  If you want to use some of the shell features, you should write a safe
  script to do this in a controlled manner, and then invoke the script from
  the command string.
- In the 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-lib/scripts
-\end_layout
-
-\end_inset
-
- directory of the LyX installation, you can find a safe wrapper script 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-general_command_wrapper.py
-\end_layout
-
-\end_inset
-
- that supports redirection of input and output.
- That can serve as an example for how to write safe template scripts.
- For a more advanced example that uses 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-fork
-\end_layout
-
-\end_inset
-
- and friends, take a look at the 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-pic2ascii.py
-\end_layout
-
-\end_inset
-
- converter script.
 \end_layout
 
 \begin_layout Standard