]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Customization.lyx
Revert part of http://www.lyx.org/trac/changeset/29412
[lyx.git] / lib / doc / Customization.lyx
index 6123deb98122a00cae3119b38e53288c6c3d1b5a..1c0e63e6933055e79f394f9a0cb1ce102589e1a9 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 340
+#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 353
 \begin_document
 \begin_header
 \textclass scrbook
 % redefine the \LyX macro for PDF bookmarks
 \def\LyX{\texorpdfstring{%
   L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
-  {LyX }}
+  {LyX}}
 
 % used for multi-column text
 \usepackage{multicol}
 \usepackage{inputenc}
 \end_preamble
 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
+\use_default_options false
 \begin_modules
 logicalmkup
 \end_modules
@@ -65,12 +66,14 @@ 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 none
+\graphics default
+\default_output_format default
 \paperfontsize 12
 \spacing single
 \use_hyperref true
@@ -86,7 +89,6 @@ End
 \pdf_pdfborder false
 \pdf_colorlinks true
 \pdf_backref false
-\pdf_pagebackref false
 \pdf_pdfusetitle false
 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false, pdfpagelabels"
 \papersize default
@@ -95,7 +97,9 @@ End
 \use_esint 0
 \cite_engine basic
 \use_bibtopic false
+\use_indices false
 \paperorientation portrait
+\backgroundcolor #ffffff
 \branch OutDated
 \selected 0
 \color #f5fae7
@@ -112,6 +116,9 @@ End
 \output_changes false
 \author "" 
 \author "" 
+\author "" 
+\author "" 
+\author "" 
 \end_header
 
 \begin_body
@@ -137,11 +144,29 @@ type "mailto:"
 \end_inset
 
 .
+ Include 
+\begin_inset Quotes eld
+\end_inset
+
+[Customization]
+\begin_inset Quotes erd
+\end_inset
+
+ in the subject header, and please cc the current maintainer of this file,
+ Richard Heck <rgheck@comcast.net>.
 \end_layout
 
 \end_inset
 
+
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+Version 2.0.x 
 \end_layout
 
 \begin_layout Standard
@@ -151,6 +176,22 @@ LatexCommand tableofcontents
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+Please use change tracking when modifying this document.
+ This makes it easier for our translators to recognize things that have
+ been changed, and it helps the maintainer keep up-to-date with what's been
+ done.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Chapter
@@ -162,15 +203,15 @@ This manual covers the customization features present in LyX.
  In it, we discuss issues like keyboard shortcuts, screen previewing options,
  printer options, sending commands to LyX via the LyX Server, internationalizati
 on, installing new LaTeX classes and LyX layouts, etc.
- We can't possibly hope to touch on everything you can change---our developers
- add new features faster than we can document them---but we will explain
the most common customizations and hopefully point you in the right direction
+ We can't possibly hope to touch on everything you can changeour developers
+ add new features faster than we can document them—but we will explain the
+ most common customizations and hopefully point you in the right direction
  for some of the more obscure ones.
 \end_layout
 
 \begin_layout Standard
 \begin_inset Branch OutDated
-status collapsed
+status open
 
 \begin_layout Standard
 Information from previous versions of this document that now seems to be
@@ -196,18 +237,12 @@ This chapter aims to help you to find your way through the LyX configuration
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-H
-\bar default
-elp\SpecialChar \menuseparator
+Help\SpecialChar \menuseparator
 About
 \begin_inset space ~
 \end_inset
 
-Ly
-\bar under
-X
+LyX
 \end_layout
 
 \end_inset
@@ -264,22 +299,14 @@ LyXDir
 \end_inset
 
  and its sub-directories contain a number of files and that can be used
- to customise LyX's behaviour.
+ to customize LyX's behavior.
  You can change many of these files from within LyX itself through the 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-T
-\bar default
-ools\SpecialChar \menuseparator
-
-\bar under
-P
-\bar default
-references
+Tools\SpecialChar \menuseparator
+Preferences
 \end_layout
 
 \end_inset
@@ -356,16 +383,8 @@ packages.lst
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-H
-\bar default
-elp\SpecialChar \menuseparator
-L
-\bar under
-a
-\bar default
-TeX
+Help\SpecialChar \menuseparator
+LaTeX
 \begin_inset space ~
 \end_inset
 
@@ -577,26 +596,33 @@ LaTeXConfig.lyx
 \end_inset
 
  deserves special attention, as noted above.
- If there exists an internationalized version of the help-document with
+ The internationalized help docs are in subdirectories 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-$LANG_
+doc/xx
 \end_layout
 
 \end_inset
 
- prepended to the name, that will be used first.
- See Chapter
+ where 
+\begin_inset Quotes eld
+\end_inset
+
+xx
+\begin_inset Quotes erd
+\end_inset
+
+ is the ISO language code.
+ See chapter
 \begin_inset space ~
 \end_inset
 
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "chap:i18n"
+reference "cha:Internationalizing-LyX"
 
 \end_inset
 
@@ -698,7 +724,7 @@ layouts/
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "chap:textclass"
+reference "cha:Installing-New-Document"
 
 \end_inset
 
@@ -778,7 +804,7 @@ templates/
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:templates"
+reference "sec:Creating-Templates"
 
 \end_inset
 
@@ -837,11 +863,7 @@ CREDITS
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-H
-\bar default
-elp\SpecialChar \menuseparator
+Help\SpecialChar \menuseparator
 About
 \begin_inset space ~
 \end_inset
@@ -900,7 +922,7 @@ encodings
 \end_inset
 
  this contains tables describing how different character encodings can be
- mapped to unicode
+ mapped to Unicode
 \end_layout
 
 \begin_layout Labeling
@@ -976,11 +998,7 @@ user directory
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-H
-\bar default
-elp\SpecialChar \menuseparator
+Help\SpecialChar \menuseparator
 About
 \begin_inset space ~
 \end_inset
@@ -1037,16 +1055,8 @@ The preferences set in the
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-T
-\bar default
-ools\SpecialChar \menuseparator
-
-\bar under
-P
-\bar default
-references
+Tools\SpecialChar \menuseparator
+Preferences
 \end_layout
 
 \end_inset
@@ -1080,16 +1090,8 @@ When you reconfigure using
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-T
-\bar default
-ools\SpecialChar \menuseparator
-
-\bar under
-R
-\bar default
-econfigure
+Tools\SpecialChar \menuseparator
+Reconfigure
 \end_layout
 
 \end_inset
@@ -1122,16 +1124,8 @@ UserDir/layouts
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-D
-\bar default
-ocument\SpecialChar \menuseparator
-
-\bar under
-S
-\bar default
-ettings
+Document\SpecialChar \menuseparator
+Settings
 \end_layout
 
 \end_inset
@@ -1157,11 +1151,7 @@ UserDir/doc/
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-H
-\bar default
-elp
+Help
 \end_layout
 
 \end_inset
@@ -1257,22 +1247,14 @@ doc/
 
 \end_inset
 
- subirectory, however, since it contains a file written by the configuration
+ subdirectory, however, since it contains a file written by the configuration
  script (also accessible through 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-T
-\bar default
-ools\SpecialChar \menuseparator
-
-\bar under
-R
-\bar default
-econfigure
+Tools\SpecialChar \menuseparator
+Reconfigure
 \end_layout
 
 \end_inset
@@ -1298,79 +1280,19 @@ 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
+Formats
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Formats"
 
 \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 
+The first step is to define your file formats if they are not already defined.
+ To do so, open the 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -1381,64 +1303,19 @@ Preferences
 
 \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.g., screen fonts) will
- have an instant effect.
- Others (e.g.
- 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
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Formats"
-
-\end_inset
-
-Formats
-\end_layout
-
-\begin_layout Standard
-The first step is to define your file formats if they are not already defined.
- To do so, open the 
+ dialog.
+ Under 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-Tools\SpecialChar \menuseparator
-Preferences\SpecialChar \menuseparator
 File Handling\SpecialChar \menuseparator
-File Formats
+File formats
 \end_layout
 
 \end_inset
 
- dialog.
- Press the 
+ press the 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -1471,7 +1348,7 @@ Short Name
 
 \end_inset
 
- is used to identify the format interally.
+ is used to identify the format internally.
  You will also need to enter a file extension.
  These are all required.
  The optional 
@@ -1602,10 +1479,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 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 +1655,7 @@ png
 .
 \end_layout
 
-\begin_layout Subsection
+\begin_layout Section
 Copiers
 \end_layout
 
@@ -1786,7 +1667,7 @@ Since all conversions from one format to another take place in LyX's temporary
 status collapsed
 
 \begin_layout Plain Layout
-For example, the file may refer to other files---images, for example---using
+For example, the file may refer to other files—images, for example—using
  relative file names, and these may become invalid when the file is copied
  to the temporary directory.
 \end_layout
@@ -1817,7 +1698,7 @@ $$s
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 
@@ -1876,14 +1757,14 @@ $$l
 \end_layout
 
 \begin_layout Standard
-The latter is to be given in a form suitable for inclusion in a LaTeX's
+The latter should be the filename as it would be used in a LaTeX's 
 \series bold
 
 \backslash
 include
 \series default
- command and is relevant only when exporting files suitable for such inclusion.
+ command.
+ It is relevant only when exporting files suitable for such inclusion.
 \end_layout
 
 \begin_layout Standard
@@ -1930,7 +1811,7 @@ cp $FROMFILE /home/you/pdf/$TOFILE
 
 \end_inset
 
-Save that in your local LyX directory---say, 
+Save that in your local LyX directorysay, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -1940,19 +1821,30 @@ status collapsed
 
 \end_inset
 
----and make it executable, if you need to do so on your platform.
+and make it executable, if you need to do so on your platform.
  Then, in the 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
 Tools\SpecialChar \menuseparator
-Preferences:Copiers
+Preferences
+\end_layout
+
+\end_inset
+
+ dialog, select under 
+\begin_inset Flex CharStyle:MenuItem
+status collapsed
+
+\begin_layout Plain Layout
+File Handling\SpecialChar \menuseparator
+File formats
 \end_layout
 
 \end_inset
 
dialog, select the 
+ the 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -1962,7 +1854,7 @@ PDF(pdflatex)
 
 \end_inset
 
- format---or one of the other pdf formats---and enter 
+ format—or one of the other pdf formats—and enter 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -2090,19 +1982,19 @@ 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
-You can define your own Converters to, uhh, convert files between different
- formats.
+You can define your own Converters to convert files between different formats.
  This is done in the 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
@@ -2134,11 +2026,7 @@ format
 
 \end_inset
 
- and
-\begin_inset space \thinspace{}
-\end_inset
-
+ and 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -2220,7 +2108,11 @@ $$b
 
 \end_inset
 
- The base filename of the input file (i.e., without the extension)
+ The base filename of the input file (i.
+\begin_inset space \thinspace{}
+\end_inset
+
+g., without the extension)
 \end_layout
 
 \begin_layout Labeling
@@ -2237,6 +2129,21 @@ $$p
  The path to the input file
 \end_layout
 
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+$$r
+\end_layout
+
+\end_inset
+
+ The path to the original input file (this is different from $$p when chain
+ of converters is called).
+\end_layout
+
 \begin_layout Standard
 In the 
 \begin_inset Flex CharStyle:MenuItem
@@ -2445,11 +2352,11 @@ None of these last three are presently used in any of the converters that
 \begin_layout Standard
 You do not have to define converters between all the 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®.
+ 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
  for this) which is then converted to DVI using the `LaTeX to DVI' converter,
- and finally converting the resulting DVI file to PostScript®.
+ and finally converting the resulting DVI file to PostScript.
  LyX finds such `chains' of converters automatically, and it will always
  choose the shortest possible chain.
  You can, though, still define multiple conversion methods between file
@@ -2465,7 +2372,7 @@ pdflatex
 
 \end_inset
 
-; via (DVI and) PostScript®, using 
+; via (DVI and) PostScript, using 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -2490,7 +2397,7 @@ dvipdfm
  formats', as described in section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:Formats"
+reference "sec:Formats"
 
 \end_inset
 
@@ -2542,7 +2449,7 @@ status collapsed
 Internationalizing LyX
 \begin_inset CommandInset label
 LatexCommand label
-name "chap:i18n"
+name "cha:Internationalizing-LyX"
 
 \end_inset
 
@@ -2630,7 +2537,7 @@ po
 -file for that language.
  When this is available, you'll have to generate a 
 \begin_inset Flex CharStyle:Code
-status open
+status collapsed
 
 \begin_layout Plain Layout
 mo
@@ -2862,9 +2769,16 @@ lyx.mo
 
 \end_inset
 
- (e.g.
-\begin_inset Flex CharStyle:Code
+ (e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+
+\begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
@@ -2896,7 +2810,7 @@ po
 \end_layout
 
 \begin_layout Subsubsection
-Ambigous messages
+Ambiguous messages
 \end_layout
 
 \begin_layout Standard
@@ -2939,7 +2853,7 @@ gettext
 
 \end_inset
 
- does not handle such ambigous translations.
+ does not handle such ambiguous translations.
  Therefore you have to add some context information to the message: Instead
  of 
 \begin_inset Flex CharStyle:Code
@@ -2971,7 +2885,7 @@ To[[as in 'From page x to page y']].
 
 \end_inset
 
- Now the two occurences of 
+ Now the two occurrences of 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -3021,11 +2935,7 @@ The online documentation (in the
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-H
-\bar default
-elp
+Help
 \end_layout
 
 \end_inset
@@ -3049,7 +2959,7 @@ As of March 2008, at least some of the documents have been translated into
 status collapsed
 
 \begin_layout Plain Layout
-LyXDir/doc/xx_DocName.lyx
+LyXDir/doc/xx/DocName.lyx
 \end_layout
 
 \end_inset
@@ -3102,8 +3012,8 @@ DocStyle.lyx
 Check out the documentation translation web page at 
 \begin_inset CommandInset href
 LatexCommand href
-name "http://www.devel.lyx.org"
-target "http://www.devel.lyx.org"
+name "http://www.lyx.org/Translation"
+target "http://www.lyx.org/Translation"
 
 \end_inset
 
@@ -3136,11 +3046,7 @@ Intro.lyx
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-H
-\bar default
-elp\SpecialChar \menuseparator
+Help\SpecialChar \menuseparator
 
 \bar under
 I
@@ -3173,7 +3079,7 @@ Make a copy of the document.
 status collapsed
 
 \begin_layout Plain Layout
-UserDir/doc/
+UserDir/doc/xx/
 \end_layout
 
 \end_inset
@@ -3779,6 +3685,7 @@ status open
 In doing the revisions on this document in March 2008, I did not look over
  this stuff, as I do not understand it.
  It would be good if someone else could do so.
+ (RH)
 \end_layout
 
 \end_inset
@@ -4176,7 +4083,7 @@ char
 \emph default
  
 \family roman
-followed by the other, unallowed key, as output.
+followed by the other, not allowed key, as output.
 
 \family default
  Note that a 
@@ -4385,12 +4292,7 @@ sequence,
 \shape up
 \emph on
 result
-\family default
-\shape default
 \emph default
-\family roman
-\shape up
  is produced.
  If such a declaration does not exist in
 \family default
@@ -4418,7 +4320,7 @@ u enter
  
 \family roman
 \emph on
-accent  char
+accent char
 \emph default
 , you get
 \family default
@@ -4426,20 +4328,14 @@ accent  char
 \family roman
 \emph on
 accent_key char
-\family default
 \emph default
-\family roman
  where
 \family default
  
 \family roman
 \emph on
 accent_key
-\family default
 \emph default
-\family roman
  is the first arg
 \family default
 ument of the 
@@ -5158,7 +5054,7 @@ xkeycaps
 
 \end_inset
 
 to set up the special 
+ to set up the special 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -5357,16 +5253,8 @@ You can edit your preferences so that your desired language environment
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-E
-\bar default
-dit\SpecialChar \menuseparator
-
-\bar under
-P
-\bar default
-references
+Edit\SpecialChar \menuseparator
+Preferences
 \end_layout
 
 \end_inset
@@ -5375,10 +5263,10 @@ references
 \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
 
@@ -5460,7 +5348,7 @@ text class
  can be used somewhat interchangeably, but it is better to refer to the
  file as the layout, and the thing living in LyX's memory as the text class.
  A template file is simply a LyX document that contains a set of predefined
- entries for a given document class---entries that are generally required
+ entries for a given document classentries that are generally required
  for that class.
  Templates are especially useful for things like journal manuscripts that
  are to be submitted electronically.
@@ -5473,14 +5361,86 @@ Installing a new LaTeX package
 \begin_layout Standard
 Some installations may not include a LaTeX package that you would like to
  use within LyX.
- For example, you might need FoilTeX, a common (and very powerful) package
- for preparing slides or viewgraphs for overhead projectors.
- On some systems, you may have a GUI for installing such packages: MikTeX
- on Windows®, for example.
+ For example, you might need FoilTeX, a package for preparing slides or
+ viewgraphs for overhead projectors.
+ Modern LaTeX distributions like TeXLive (2008 or newer) or MiKTeX provide
+ a user interface for that.
+ For example on MiKTeX you start its program 
+\begin_inset Quotes eld
+\end_inset
+
+Browse Packages
+\begin_inset Quotes erd
+\end_inset
+
+ to get a list of available packages.
+ To install one, right click on it or use the installing toolbar button.
+ When the package you want to install is not in the list, but you have it
+ in form of a 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+.cls
+\end_layout
+
+\end_inset
+
+ or 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+.sty
+\end_layout
+
+\end_inset
+
+-file, then copy these files to a subfolder of your LaTeX distribution,
+ for example to the folder 
+\family sans
+~
+\backslash
+tex
+\backslash
+latex
+\family default
+.
+ Then update the file name database of your LaTeX-distribution.
+ For example on MiKTeX this is done by pressing the button 
+\family sans
+Refresh
+\begin_inset space ~
+\end_inset
+
+FNDB
+\family default
+ that you find in MiKTeX's 
+\begin_inset Quotes eld
+\end_inset
+
+Settings
+\begin_inset Quotes erd
+\end_inset
+
+ program.
+ In both cases you need afterwards to reconfigure LyX using the menu 
+\begin_inset Flex CharStyle:MenuItem
+status collapsed
+
+\begin_layout Plain Layout
+Tools\SpecialChar \menuseparator
+Reconfigure
+\end_layout
+
+\end_inset
+
+ and then to restart LyX.
 \end_layout
 
 \begin_layout Standard
-If you don't have such a GUI, then you can follow these steps.
+If your LaTeX distribution doesn't provide a user interface, then you can
+ follow these steps by using a UNIX/Linux console.
 \end_layout
 
 \begin_layout Enumerate
@@ -5620,8 +5580,11 @@ TEXMFHOME
 
 \end_inset
 
- variables; e.g.
+ variables; e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
 \begin_inset Newline newline
 \end_inset
 
@@ -5758,22 +5721,14 @@ Your package is now installed and available to LaTeX.
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-T
-\bar default
-ools\SpecialChar \menuseparator
-
-\bar under
-R
-\bar default
-econfigure
+Tools\SpecialChar \menuseparator
+Reconfigure
 \end_layout
 
 \end_inset
 
 ) and then restart LyX.
- You should then see your new package---for example 
+ You should then see your new packagefor example 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -5783,21 +5738,13 @@ slides (FoilTeX)
 
 \end_inset
 
----under 
+under 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-D
-\bar default
-ocument\SpecialChar \menuseparator
-
-\bar under
-S
-\bar default
-ettings
+Document\SpecialChar \menuseparator
+Settings
 \end_layout
 
 \end_inset
@@ -5918,7 +5865,7 @@ emphasized
 \end_inset
 
 .
- If the argument has a datatype like 
+ If the argument has a data type like 
 \begin_inset Quotes eld
 \end_inset
 
@@ -5951,6 +5898,13 @@ default
 
 \begin_layout Subsection
 Layout modules
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Layout-modules"
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -5960,9 +5914,9 @@ modules
 \emph default
 .
  Modules are to LaTeX packages much as layouts are to LaTeX classes, and
- some modules---such as the Endnotes module---provide support for just such
+ some modules—such as the endnotes module—provide support for just such
  a package.
- In a sense, layout modules are similar to included files---files like 
+ In a sense, layout modules are similar to included filesfiles like 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -5972,7 +5926,7 @@ stdsections.inc
 
 \end_inset
 
----in that modules are not specific to a given document layout but may be
+in that modules are not specific to a given document layout but may be
  used with many different layouts.
  The difference is that using a layout module does not require editing the
  layout file.
@@ -6007,9 +5961,7 @@ DeclareLyXModule[endnotes.sty]{Endnotes}
 \end_layout
 
 \begin_layout Standard
-The argument in square brackets is optional: It declares any LaTeX packages
- on which the module depends.
- The mandatory argument, in curly brackets, is the name of the module, as
+The mandatory argument, in curly brackets, is the name of the module, as
  it should appear in 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
@@ -6022,7 +5974,20 @@ Settings
 \end_inset
 
 .
+ The argument in square brackets is optional: It declares any LaTeX packages
+ on which the module depends.
+ 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
+The list of such packages is documented only in the source code.
+\end_layout
+
+\end_inset
+
+ LyX will not check for arbitrary packages.
 \end_layout
 
 \begin_layout Standard
@@ -6041,7 +6006,7 @@ The module declaration should then be followed by lines like the following:
 \begin_layout LyX-Code
 #You will need to add  
 \backslash
-theendnotes in ERT where you 
+theendnotes in TeX code where you 
 \end_layout
 
 \begin_layout LyX-Code
@@ -6222,7 +6187,7 @@ sty
 
 \begin_layout Standard
 If your new document class is provided as a style file that is used in conjuncti
-on with an existing, supported document class---for the sake of the example,
+on with an existing, supported document classfor the sake of the example,
  we'll assume that the style file is called 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
@@ -6243,7 +6208,7 @@ report.cls
 
 \end_inset
 
-, which is a standard class---start by copying the existing class's layout
+, which is a standard classstart by copying the existing class's layout
  file into your local directory:
 \end_layout
 
@@ -6309,16 +6274,8 @@ Start LyX and select
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-T
-\bar default
-ools\SpecialChar \menuseparator
-
-\bar under
-R
-\bar default
-econfigure
+Tools\SpecialChar \menuseparator
+Reconfigure
 \end_layout
 
 \end_inset
@@ -6340,23 +6297,15 @@ report (myclass)
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-D
-\bar default
-ocument\SpecialChar \menuseparator
-
-\bar under
-S
-\bar default
-ettings
+Document\SpecialChar \menuseparator
+Settings
 \end_layout
 
 \end_inset
 
  dialog.
  It is likely that some of the sectioning commands and such in your new
- class will work differently from how they worked in the base class---
+ class will work differently from how they worked in the base class
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -6366,7 +6315,7 @@ report
 
 \end_inset
 
- in this example---so you can fiddle around with the settings for the different
+ in this exampleso you can fiddle around with the settings for the different
  sections if you wish.
 \end_layout
 
@@ -6578,16 +6527,8 @@ article
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-D
-\bar default
-ocument\SpecialChar \menuseparator
-
-\bar under
-S
-\bar default
-ettings
+Document\SpecialChar \menuseparator
+Settings
 \end_layout
 
 \end_inset
@@ -6720,7 +6661,7 @@ DeclareLaTeXClass[class,package.sty]{layout description}
 
 \begin_layout Standard
 The class need only be specified if the name of the LaTeX class file and
- the name of the layout file are different; if the name of the classfile
+ the name of the layout file are different; if the name of the class file
  is not specified, then LyX will simply assume that it is the same as the
  name of the layout file.
 \end_layout
@@ -6752,16 +6693,8 @@ UserDir/layouts
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-T
-\bar default
-ools\SpecialChar \menuseparator
-
-\bar under
-R
-\bar default
-econfigure
+Tools\SpecialChar \menuseparator
+Reconfigure
 \end_layout
 
 \end_inset
@@ -6786,8 +6719,8 @@ layout-reload
 \end_inset
 
 .
- There is no default binding for this function---though, of course, you
can bind it to a key yourself.
+ There is no default binding for this function—though, of course, you can
+ bind it to a key yourself.
  If you want to use this function, then, you should simply enter it in the
  mini-buffer.
  
@@ -6844,7 +6777,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 8.
+ The file format that is documented here is format 14.
 \end_layout
 
 \begin_layout Subsection
@@ -6905,7 +6838,7 @@ ClassOptions
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:classoptions"
+reference "sub:ClassOptions"
 
 \end_inset
 
@@ -6969,16 +6902,8 @@ status collapsed
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-D
-\bar default
-ocument\SpecialChar \menuseparator
-
-\bar under
-S
-\bar default
-ettings
+Document\SpecialChar \menuseparator
+Settings
 \end_layout
 
 \end_inset
@@ -7004,7 +6929,7 @@ Counter
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -7048,7 +6973,7 @@ DefaultFont
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -7078,6 +7003,43 @@ EndFont
 \begin_inset Flex CharStyle:Code
 status collapsed
 
+\begin_layout Plain Layout
+DefaultModule
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+string]
+\end_layout
+
+\end_inset
+
+ Specifies a module to be included by default with this document class,
+ which should be specified by filename without the 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+.module
+\end_layout
+
+\end_inset
+
+ extension.
+ The user can still remove the module, but it will be active at the outset.
+ (This applies only when new files are created, or when this class is chosen
+ for an existing document.)
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
 \begin_layout Plain Layout
 DefaultStyle
 \end_layout
@@ -7113,6 +7075,65 @@ Standard
 \begin_inset Flex CharStyle:Code
 status collapsed
 
+\begin_layout Plain Layout
+ExcludesModule
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+string
+\end_layout
+
+\end_inset
+
+] Indicates that the module in question—which should be specified by filename
+ without the 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+.module
+\end_layout
+
+\end_inset
+
+ extension—cannot be used with this document class.
+ This might be used in a journal-specific layout file to prevent, say, the
+ use of the 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+theorems-sec
+\end_layout
+
+\end_inset
+
+ module that numbers theorems by section.
+ This tag may 
+\emph on
+not
+\emph default
+ be used in a module.
+ Modules have their own way of excluding other modules (see 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Layout-modules"
+
+\end_inset
+
+).
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
 \begin_layout Plain Layout
 Float
 \end_layout
@@ -7127,7 +7148,7 @@ Float
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:floats"
+reference "sub:Floats"
 
 \end_inset
 
@@ -7190,7 +7211,15 @@ InsetLayout
 
  This section (re-)defines the layout of an inset.
  It can be applied to an existing inset of to a new, user-defined inset,
- e.g., a new character style.
+ e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+a new character style.
  See Section
 \begin_inset space ~
 \end_inset
@@ -7198,7 +7227,7 @@ InsetLayout
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:charstyle"
+reference "sub:Flex-insets-and"
 
 \end_inset
 
@@ -7234,7 +7263,16 @@ LeftMargin
 
 \end_inset
 
- [[FIXME]]
+ A string that indicates the width of the left margin on the screen, for
+ example, 
+\begin_inset Quotes eld
+\end_inset
+
+MMMMM
+\begin_inset Quotes erd
+\end_inset
+
+.
 \end_layout
 
 \begin_layout Description
@@ -7277,7 +7315,9 @@ OutputType
 
 \end_inset
 
- [[FIXME]]
+ A string indicating what sort of output documents using this class will
+ produce.
+ At present, the options are: `docbook', `latex', and `literate'.
 \end_layout
 
 \begin_layout Description
@@ -7334,16 +7374,8 @@ headings
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-D
-\bar default
-ocument\SpecialChar \menuseparator
-
-\bar under
-S
-\bar default
-ettings
+Document\SpecialChar \menuseparator
+Settings
 \end_layout
 
 \end_inset
@@ -7367,7 +7399,7 @@ Preamble
 status collapsed
 
 \begin_layout Plain Layout
-Premable
+Preamble
 \end_layout
 
 \end_inset
@@ -7500,7 +7532,7 @@ boldsymbol
 
 ,\SpecialChar \ldots{}
 ); the complete list of supported features is unfortunately not documented
- outside the LyX source code---but see 
+ outside the LyX source codebut see 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -7516,21 +7548,61 @@ LaTeXFeatures.cpp
 status collapsed
 
 \begin_layout Plain Layout
+Help\SpecialChar \menuseparator
+LaTeX Configuration
+\end_layout
 
-\bar under
-H
-\bar default
-elp\SpecialChar \menuseparator
+\end_inset
 
-\bar under
-L
-\bar default
-aTeX Configuration
+ also gives an overview of the supported packages.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+ProvidesModule
 \end_layout
 
 \end_inset
 
- also gives an overview of the supported packages.
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+string
+\end_layout
+
+\end_inset
+
+] Indicates that this layout provides the functionality of the module mentioned,
+ which should be specified by the filename without the 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+.module
+\end_layout
+
+\end_inset
+
+ extension.
+ This will typically be used if the layout includes the module directly,
+ rather than using the 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+DefaultModule
+\end_layout
+
+\end_inset
+
+ tag to indicate that it ought to be used.
+ It could be used in a module that provided an alternate implementation
+ of the same functionality.
 \end_layout
 
 \begin_layout Description
@@ -7553,12 +7625,12 @@ string
 
 \end_inset
 
-] Whether the class requires the feature
+] Whether the class requires the feature 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
- string
+string
 \end_layout
 
 \end_inset
@@ -7578,7 +7650,16 @@ RightMargin
 
 \end_inset
 
- [[FIXME]]
+ A string that indicates the width of the right margin on the screen, for
+ example, 
+\begin_inset Quotes eld
+\end_inset
+
+MMMMM
+\begin_inset Quotes erd
+\end_inset
+
+.
 \end_layout
 
 \begin_layout Description
@@ -7591,7 +7672,18 @@ SecNumDepth
 
 \end_inset
 
- [[FIXME]]
+ Sets which divisions get numbered.
+ Corresponds to the 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+secnumdepth
+\end_layout
+
+\end_inset
+
+ counter in LaTeX.
 \end_layout
 
 \begin_layout Description
@@ -7637,16 +7729,8 @@ status collapsed
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-D
-\bar default
-ocument\SpecialChar \menuseparator
-
-\bar under
-S
-\bar default
-ettings
+Document\SpecialChar \menuseparator
+Settings
 \end_layout
 
 \end_inset
@@ -7673,7 +7757,7 @@ Style
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:style"
+reference "sub:Paragraph-Styles"
 
 \end_inset
 
@@ -7845,43 +7929,28 @@ TitleLatexName
  environment.
 \end_layout
 
-\begin_layout Description
-\begin_inset Flex CharStyle:Code
-status open
-
-\begin_layout Plain Layout
-TocDepth
-\end_layout
-
-\end_inset
-
- [[FIXME]]
-\end_layout
-
 \begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-UseModule
+TocDepth
 \end_layout
 
 \end_inset
 
- [
+ Sets which divisions are included in the table of contents.
+ Corresponds to the 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-string]
+tocdepth
 \end_layout
 
 \end_inset
 
- Specifies a module to be included by default with this document class.
- The user can still remove the module, but it will be active at the outset.
- (This applies only when new files are created, or when this class is chosen
- for an existing document.)
+ counter in LaTeX.
 \end_layout
 
 \begin_layout Subsection
@@ -7895,15 +7964,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
@@ -7969,7 +8039,20 @@ Header
 
 \end_inset
 
- [[FIXME]]
+ Used to set the DTD line with XML-based output classes.
+ E.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.: PUBLIC 
+\begin_inset Quotes eld
+\end_inset
+
+-//OASIS//DTD DocBook V4.2//EN
+\begin_inset Quotes erd
+\end_inset
+
+.
 \end_layout
 
 \begin_layout Description
@@ -8083,15 +8166,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
@@ -8254,7 +8338,8 @@ CommandDepth
 
 \end_inset
 
- [[FIXME]]
+ Depth of XML command.
+ Used only with XML-type formats.
 \end_layout
 
 \begin_layout Description
@@ -8572,16 +8657,8 @@ Vertical space above
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-E
-\bar default
-dit\SpecialChar \menuseparator
-
-\bar under
-P
-\bar default
-aragraph
+Edit\SpecialChar \menuseparator
+Paragraph
 \begin_inset space ~
 \end_inset
 
@@ -8630,7 +8707,7 @@ and
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -8727,258 +8804,288 @@ FreeSpacing
 status collapsed
 
 \begin_layout Plain Layout
-InnerTag
+BabelPreamble
 \end_layout
 
 \end_inset
 
- [[FIXME]]
-\end_layout
-
-\begin_layout Description
+ 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
-InTitle
+BabelPreamble
 \end_layout
 
 \end_inset
 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-[1, 0]
-\end_layout
-
+ declarations.
+ Must end with 
+\begin_inset Quotes eld
 \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
+EndBabelPreamble
 \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
 
- global entries).
+.
+ 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_layout Description
+\begin_deeper
+\begin_layout Itemize
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-ItemSep
+$$lang
 \end_layout
 
 \end_inset
 
- [
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-float=0
+ is replaced by the language name (as used by the babel package).
 \end_layout
 
+\begin_layout Itemize
+The 
+\begin_inset Quotes eld
 \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
-
+Function
+\begin_inset Quotes erd
 \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
 
 \end_inset
 
-.
- Note that this is a
-\emph on
- multiplier.
+ 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
-ItemTag
+LangPreamble
 \end_layout
 
 \end_inset
 
- [[FIXME]]
-\end_layout
-
-\begin_layout Description
+ Like 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-KeepEmpty
+BabelPreamble
 \end_layout
 
 \end_inset
 
-\begin_inset CommandInset label
-LatexCommand label
-name "des:KeepEmpty"
-
+, 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
 
-[
-\emph on
 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\emph on
-0
+EndLangPreamble
 \end_layout
 
 \end_inset
 
 
-\emph default
-, 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-1
-\end_layout
-
+\begin_inset Quotes erd
 \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
+\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
-LabelBottomsep
+LangPreamble
 \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 (
+ and 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Top_Environment
+BabelPreamble
 \end_layout
 
 \end_inset
 
-, 
+ 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
-Centered_Top_Environment
+theorems-ams.inc
 \end_layout
 
 \end_inset
 
-).
+ file) shows how this works:
 \end_layout
 
-\begin_layout Description
-\begin_inset Flex CharStyle:Code
-status collapsed
+\begin_layout LyX-Code
+Preamble
+\end_layout
 
-\begin_layout Plain Layout
-LabelCounter
+\begin_layout LyX-Code
+  
+\backslash
+theoremstyle{remark}
 \end_layout
 
-\end_inset
+\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
+LangPreamble
+\end_layout
+
+\begin_layout LyX-Code
+  
+\backslash
+providecommand{
+\backslash
+claimname}{_(Claim)}
+\end_layout
+
+\begin_layout LyX-Code
+
+\end_layout
+
+\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
-string=""
+
+\backslash
+claimname
 \end_layout
 
 \end_inset
 
-]
-\begin_inset Newline newline
-\end_inset
+ 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
 
-The name of the counter for automatic numbering (see Section 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:counter"
+\begin_layout Plain Layout
+BabelPreamble
+\end_layout
 
 \end_inset
 
- for details).
- This must be given if 
+ then uses the commands offered by the babel package to redefine 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Labeltype
+
+\backslash
+claimname
 \end_layout
 
 \end_inset
 
- is 
+ for each used language in multilanguage documents.
+\end_layout
+
+\end_deeper
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Counter
+InnerTag
 \end_layout
 
 \end_inset
 
-.
+ [[FIXME]] (Used only with XML-type formats.)
 \end_layout
 
 \begin_layout Description
@@ -8986,48 +9093,42 @@ Counter
 status collapsed
 
 \begin_layout Plain Layout
-LabelFont
+InTitle
 \end_layout
 
 \end_inset
 
- The font used for the label.
- See section
-\begin_inset space ~
-\end_inset
-
+\begin_inset Flex CharStyle:Code
+status collapsed
 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:fonts"
+\begin_layout Plain Layout
+[1, 0]
+\end_layout
 
 \end_inset
 
-.
-\end_layout
-
-\begin_layout Description
+ 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
-Labelsep
+TitleLatexType
 \end_layout
 
 \end_inset
 
- [
+ and 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-string=""
+TitleLatexName
 \end_layout
 
 \end_inset
 
-] The horizontal space between the label and the text body.
- Only used for labels that are not above the text body.
+ global entries).
 \end_layout
 
 \begin_layout Description
@@ -9035,7 +9136,7 @@ string=""
 status collapsed
 
 \begin_layout Plain Layout
-LabelString
+ItemSep
 \end_layout
 
 \end_inset
@@ -9045,96 +9146,103 @@ LabelString
 status collapsed
 
 \begin_layout Plain Layout
-string=""
+float=0
 \end_layout
 
 \end_inset
 
-] The string used for a label with a 
+] 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
-Static
+Parsep
 \end_layout
 
 \end_inset
 
- labeltype.
- When 
+.
+ But the whole items of the environment are additionally separated with
+ this 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelCounter
+Itemsep
 \end_layout
 
-\end_inset
-
- is set, this string can be contain the special formatting commands described
- in Section 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:counter"
-
 \end_inset
 
 .
-\begin_inset Foot
-status collapsed
+ Note that this is a
+\emph on
+ multiplier.
+\end_layout
 
-\begin_layout Plain Layout
-For the sake of backwards compatibility, the string 
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-@
-\emph on
-style-name
-\emph default
-@
+ItemTag
 \end_layout
 
 \end_inset
 
- will be replaced by the expanded 
+ [[FIXME]] (Used only with XML-type formats.)
+\end_layout
+
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelString
+KeepEmpty
 \end_layout
 
 \end_inset
 
- of style 
+\begin_inset CommandInset label
+LatexCommand label
+name "des:KeepEmpty"
+
+\end_inset
+
+[
+\emph on
+
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
 
 \emph on
-style-name
+0
 \end_layout
 
 \end_inset
 
-.
- This feature is now obsolete and should be replaced by the mechanisms of
- Section 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:counter"
 
-\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
@@ -9142,56 +9250,68 @@ reference "sec:counter"
 status collapsed
 
 \begin_layout Plain Layout
-LabelStringAppendix
+LabelBottomsep
 \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 (
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-string=""
+Top_Environment
 \end_layout
 
 \end_inset
 
-] This is used inside the appendix instead of 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelString
+Centered_Top_Environment
 \end_layout
 
 \end_inset
 
-.
- Note that every 
+).
+\end_layout
+
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelString
+LabelCounter
 \end_layout
 
 \end_inset
 
- statement resets 
+ [
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelStringAppendix
+string=""
 \end_layout
 
 \end_inset
 
- too.
-\end_layout
+]
+\begin_inset Newline newline
+\end_inset
 
-\begin_layout Description
+The name of the counter for automatic numbering (see Section 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Counters"
+
+\end_inset
+
+ for details).
+ This must be given if 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -9201,214 +9321,186 @@ Labeltype
 
 \end_inset
 
- [
+ is 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\emph on
-No_Label
-\emph default
-, Manual, Static, Top_Environment, 
-\begin_inset Newline newline
-\end_inset
-
-Centered_Top_Environment, Sensitive, Counter
+Counter
 \end_layout
 
 \end_inset
 
-] 
-\begin_inset Newline newline
-\end_inset
-
+.
+\end_layout
 
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Manual
+LabelFont
 \end_layout
 
 \end_inset
 
- means the label is the very first word (up to the first real blank).
-\begin_inset Foot
-status collapsed
+ The font used for the label.
+ See section
+\begin_inset space ~
+\end_inset
 
-\begin_layout Plain Layout
-Use protected spaces if you want more than one word as the label.
-\end_layout
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Font-description"
 
 \end_inset
 
+.
+\end_layout
+
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Static
+LabelIndent
 \end_layout
 
 \end_inset
 
- means it is defined in the layout (see 
+ Text that indicates how far a label should be indented.
+\end_layout
+
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelString
+Labelsep
 \end_layout
 
 \end_inset
 
-).
+ [
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Top_Environment
+string=""
 \end_layout
 
 \end_inset
 
- and 
+] The horizontal space between the label and the text body.
+ Only used for labels that are not above the text body.
+\end_layout
+
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Centered_Top_Environment
+LabelString
 \end_layout
 
 \end_inset
 
- are special cases of 
+ [
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Static
+string=""
 \end_layout
 
 \end_inset
 
-.
- 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 
-\begin_inset Flex CharStyle:MenuItem
+] The string used for a label with a 
+\begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Abstract
+Static
 \end_layout
 
 \end_inset
 
- layout or the 
-\begin_inset Flex CharStyle:MenuItem
+ labeltype.
+ When 
+\begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Bibliography
+LabelCounter
 \end_layout
 
 \end_inset
 
- layout.
- This is also the case for 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-Manual
-\end_layout
+ is set, this string can be contain the special formatting commands described
+ in Section 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Counters"
 
 \end_inset
 
- labels with latex type 
-\begin_inset Flex CharStyle:Code
+.
+\begin_inset Foot
 status collapsed
 
 \begin_layout Plain Layout
-Environment
-\end_layout
-
-\end_inset
-
-, in order to make layouts for theorems work correctly.
+For the sake of backwards compatibility, the string 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Sensitive
+@
+\emph on
+style-name
+\emph default
+@
 \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
-
-.
+ will be replaced by the expanded 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Sensitive
+LabelString
 \end_layout
 
 \end_inset
 
- means the (hardcoded) label string depends on the kind of float.
- The 
+ of style 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Counter
+
+\emph on
+style-name
 \end_layout
 
 \end_inset
 
- label type defines automatically numbered labels.
- See Section 
+.
+ This feature is now obsolete and should be replaced by the mechanisms of
+ Section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
 .
 \end_layout
 
-\begin_layout Description
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-LatexFooter
-\end_layout
-
 \end_inset
 
- [[FIXME]]
+
 \end_layout
 
 \begin_layout Description
@@ -9416,63 +9508,53 @@ LatexFooter
 status collapsed
 
 \begin_layout Plain Layout
-LatexHeader
+LabelStringAppendix
 \end_layout
 
 \end_inset
 
- [[FIXME]]
-\end_layout
-
-\begin_layout Description
+ [
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LatexName
+string=""
 \end_layout
 
 \end_inset
 
- The name of the corresponding LaTeX stuff.
- Either the environment or command name.
-\end_layout
-
-\begin_layout Description
+] This is used inside the appendix instead of 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LatexParagraph
+LabelString
 \end_layout
 
 \end_inset
 
- [[FIXME]]
-\end_layout
-
-\begin_layout Description
+.
+ Note that every 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LatexParam
+LabelString
 \end_layout
 
 \end_inset
 
- An optional parameter for the corresponding 
+ statement resets 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LatexName
+LabelStringAppendix
 \end_layout
 
 \end_inset
 
- stuff.
- This parameter cannot be changed from within LyX.
+ too.
 \end_layout
 
 \begin_layout Description
@@ -9480,251 +9562,233 @@ LatexName
 status collapsed
 
 \begin_layout Plain Layout
-LatexType
+LabelTag
 \end_layout
 
 \end_inset
 
-\begin_inset CommandInset label
-LatexCommand label
-name "des:LatexType"
-
-\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
-
-\emph on
-Paragraph
-\emph default
-, Command, Environment, Item_Environment,
+Labeltype
 \end_layout
 
 \end_inset
 
+ [
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-List_Environment
+
+\emph on
+No_Label
+\emph default
+, Manual, Static, Top_Environment, 
+\begin_inset Newline newline
+\end_inset
+
+Centered_Top_Environment, Sensitive, Counter
 \end_layout
 
 \end_inset
 
-] How the layout should be translated into LaTeX.
+] 
+\begin_inset Newline newline
+\end_inset
+
+
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Paragraph
+Manual
 \end_layout
 
 \end_inset
 
- means nothing special.
-\begin_inset Flex CharStyle:Code
+ means the label is the very first word (up to the first real blank).
+\begin_inset Foot
 status collapsed
 
 \begin_layout Plain Layout
-Command
+Use protected spaces if you want more than one word as the label.
 \end_layout
 
 \end_inset
 
- means 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\backslash
-
-\emph on
-LatexName
-\emph default
-{\SpecialChar \ldots{}
-}
+Static
 \end_layout
 
 \end_inset
 
- and 
+ means it is defined in the layout (see 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Environment
+LabelString
 \end_layout
 
 \end_inset
 
- means 
+).
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\backslash
-begin{
-\emph on
-LatexName
-\emph default
-}\SpecialChar \ldots{}
-
-\backslash
-end{
-\emph on
-LatexName
-\emph default
-}
+Top_Environment
 \end_layout
 
 \end_inset
 
-.
+ and 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Item_Environment
+Centered_Top_Environment
 \end_layout
 
 \end_inset
 
- is the same as 
+ are special cases of 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Environment
+Static
 \end_layout
 
 \end_inset
 
-, except that a 
-\begin_inset Flex CharStyle:Code
+.
+ 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 
+\begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-
-\backslash
-item
+Abstract
 \end_layout
 
 \end_inset
 
- is generated for each paragraph of this environment.
-\begin_inset Flex CharStyle:Code
+ layout or the 
+\begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-List_Environment
+Bibliography
 \end_layout
 
 \end_inset
 
- is the same as 
+ layout.
+ This is also the case for 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Item_Environment
+Manual
 \end_layout
 
 \end_inset
 
-, except that 
+ labels with latex type 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelWidthString
+Environment
 \end_layout
 
 \end_inset
 
- is passed as an argument to the environment.
+, in order to make layouts for theorems work correctly.
  
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelWidthString
+Sensitive
 \end_layout
 
 \end_inset
 
- can be defined in the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
+ is a special case for the caption-labels 
+\begin_inset Quotes eld
+\end_inset
 
-\bar under
-L
-\bar default
-ayout\SpecialChar \menuseparator
+Figure
+\begin_inset Quotes erd
+\end_inset
 
-\bar under
-P
-\bar default
-aragraph
-\end_layout
+ and 
+\begin_inset Quotes eld
+\end_inset
 
+Table
+\begin_inset Quotes erd
 \end_inset
 
- dialog.
+.
  
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-
-\emph on
-LatexType
+Sensitive
 \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
+ means the (hardcoded) label string depends on the kind of float.
+ The 
+\begin_inset Flex CharStyle:Code
+status collapsed
 
-\begin_layout Standard
-Putting the last few things together, the LaTeX output will be either: 
+\begin_layout Plain Layout
+Counter
 \end_layout
 
-\begin_layout LyX-Code
+\end_inset
 
-\backslash
-latexname[latexparam]{\SpecialChar \ldots{}
-}
-\end_layout
+ label type defines automatically numbered labels.
+ See Section 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Counters"
 
-\begin_layout Standard
-or: 
+\end_inset
+
+.
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
 
-\backslash
-begin{latexname}[latexparam] \SpecialChar \ldots{}
-\backslash
-end{latexname}.
+\begin_layout Plain Layout
+LatexName
 \end_layout
 
-\begin_layout Standard
-depending upon the LaTex type.
+\end_inset
+
+ The name of the corresponding LaTeX stuff.
+ Either the environment or command name.
 \end_layout
 
 \begin_layout Description
@@ -9732,213 +9796,481 @@ depending upon the LaTex type.
 status collapsed
 
 \begin_layout Plain Layout
-LeftMargin
+LatexParam
 \end_layout
 
 \end_inset
 
- [
+ An optional parameter for the corresponding 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-string=""
+LatexName
 \end_layout
 
 \end_inset
 
-] If you put layouts into environments, the leftmargins are not simply added,
- but added with a factor 
-\begin_inset Formula $\frac{4}{depth+4}$
-\end_inset
+ stuff.
+ This parameter cannot be changed from within LyX.
+\end_layout
 
-.
- Note that this parameter is also used when the margin is defined as 
+\begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Manual
+LatexType
 \end_layout
 
 \end_inset
 
- or 
+\begin_inset CommandInset label
+LatexCommand label
+name "des:LatexType"
+
+\end_inset
+
+[
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Dynamic
+
+\emph on
+Paragraph
+\emph default
+, Command, Environment, Item_Environment,
 \end_layout
 
 \end_inset
 
-.
- Then it is added to the manual or dynamic margin.
  
-\begin_inset Newline newline
-\end_inset
+\begin_inset Flex CharStyle:Code
+status collapsed
 
-The argument is passed as a string.
- For example 
-\begin_inset Quotes eld
-\end_inset
+\begin_layout Plain Layout
+List_Environment
+\end_layout
 
+\end_inset
 
+] How the layout should be translated into LaTeX.
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-MM
+Paragraph
 \end_layout
 
 \end_inset
 
+ means nothing special.
+\begin_inset Flex CharStyle:Code
+status collapsed
 
-\begin_inset Quotes erd
-\end_inset
+\begin_layout Plain Layout
+Command
+\end_layout
 
- means that the paragraph is indented with the width of 
-\begin_inset Quotes eld
 \end_inset
 
-
+ means 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-MM
+
+\backslash
+
+\emph on
+LatexName
+\emph default
+{\SpecialChar \ldots{}
+}
 \end_layout
 
 \end_inset
 
+ and 
+\begin_inset Flex CharStyle:Code
+status collapsed
 
-\begin_inset Quotes erd
-\end_inset
+\begin_layout Plain Layout
+Environment
+\end_layout
 
- in the normal font.
- You can get a negative width by prefixing the string with 
-\begin_inset Quotes eld
 \end_inset
 
-
+ means 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
--
-\end_layout
 
-\end_inset
+\backslash
+begin{
+\emph on
+LatexName
+\emph default
+}\SpecialChar \ldots{}
 
+\backslash
+end{
+\emph on
+LatexName
+\emph default
+}
+\end_layout
 
-\begin_inset Quotes erd
 \end_inset
 
 .
- This way was chosen so that the look is the same with each used screen
- font.
  
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Item_Environment
 \end_layout
 
-\begin_layout Description
+\end_inset
+
+ is the same as 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Margin
+Environment
 \end_layout
 
 \end_inset
 
- [
+, except that a 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
 
-\emph on
-Static
-\emph default
-, Manual, Dynamic, First_Dynamic, Right_Address_Box
+\backslash
+item
 \end_layout
 
 \end_inset
 
-] 
-\begin_inset Newline newline
+ is generated for each paragraph of this environment.
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+List_Environment
+\end_layout
+
 \end_inset
 
-The kind of margin that the layout has on the left side.
+ is the same as 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Static
+Item_Environment
 \end_layout
 
 \end_inset
 
- just means a fixed margin.
+, except that 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LabelWidthString
+\end_layout
+
+\end_inset
+
+ is passed as an argument to the environment.
  
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Manual
+LabelWidthString
 \end_layout
 
 \end_inset
 
means that the left margin depends on the string entered in the 
can be defined in the 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
 
 \bar under
-E
+L
 \bar default
-dit\SpecialChar \menuseparator
+ayout\SpecialChar \menuseparator
 
 \bar under
 P
 \bar default
 aragraph
-\begin_inset space ~
-\end_inset
-
-Settings
 \end_layout
 
 \end_inset
 
  dialog.
- This is used to typeset nice lists without tabulators.
  
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Dynamic
+
+\emph on
+LatexType
 \end_layout
 
 \end_inset
 
- means that the margin depends on the size of the label.
- This is used for automatic enumerated headlines.
- It is obvious that the headline 
-\begin_inset Quotes eld
-\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
 
-5.4.3.2.1 Very long headline
-\begin_inset Quotes erd
-\end_inset
+\begin_layout Standard
+Putting the last few things together, the LaTeX output will be either: 
+\end_layout
 
- must have a wider left margin (as wide as 
-\begin_inset Quotes eld
-\end_inset
+\begin_layout LyX-Code
+
+\backslash
+latexname[latexparam]{\SpecialChar \ldots{}
+}
+\end_layout
+
+\begin_layout Standard
+or: 
+\end_layout
+
+\begin_layout LyX-Code
+
+\backslash
+begin{latexname}[latexparam] \SpecialChar \ldots{}
+\backslash
+end{latexname}.
+\end_layout
+
+\begin_layout Standard
+depending upon the LaTeX type.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LeftMargin
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+string=""
+\end_layout
+
+\end_inset
+
+] If you put layouts into environments, the leftmargins are not simply added,
+ but added with a factor 
+\begin_inset Formula $\frac{4}{depth+4}$
+\end_inset
+
+.
+ Note that this parameter is also used when the margin is defined as 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Manual
+\end_layout
+
+\end_inset
+
+ or 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Dynamic
+\end_layout
+
+\end_inset
+
+.
+ Then it is added to the manual or dynamic margin.
+\begin_inset Newline newline
+\end_inset
+
+The argument is passed as a string.
+ For example 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+MM
+\end_layout
+
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+ means that the paragraph is indented with the width of 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+MM
+\end_layout
+
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+ in the normal font.
+ You can get a negative width by prefixing the string with 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+-
+\end_layout
+
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+.
+ This way was chosen so that the look is the same with each used screen
+ font.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Margin
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+Static
+\emph default
+, Manual, Dynamic, First_Dynamic, Right_Address_Box
+\end_layout
+
+\end_inset
+
+] 
+\begin_inset Newline newline
+\end_inset
+
+The kind of margin that the layout has on the left side.
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Static
+\end_layout
+
+\end_inset
+
+ just means a fixed margin.
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Manual
+\end_layout
+
+\end_inset
+
+ means that the left margin depends on the string entered in the 
+\begin_inset Flex CharStyle:MenuItem
+status collapsed
+
+\begin_layout Plain Layout
+Edit\SpecialChar \menuseparator
+Paragraph
+\begin_inset space ~
+\end_inset
+
+Settings
+\end_layout
+
+\end_inset
+
+ dialog.
+ This is used to typeset nice lists without tabulators.
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Dynamic
+\end_layout
+
+\end_inset
+
+ means that the margin depends on the size of the label.
+ This is used for automatic enumerated headlines.
+ It is obvious that the headline 
+\begin_inset Quotes eld
+\end_inset
+
+5.4.3.2.1 Very long headline
+\begin_inset Quotes erd
+\end_inset
+
+ must have a wider left margin (as wide as 
+\begin_inset Quotes eld
+\end_inset
 
 5.4.3.2.1
 \begin_inset Quotes erd
@@ -10157,7 +10489,8 @@ ObsoletedBy
 
 \end_inset
 
- [[FIXME]]
+ Name of a layout that has replaced this layout.
+ This is used to rename a layout, while keeping backward compatibility.
 \end_layout
 
 \begin_layout Description
@@ -10367,7 +10700,14 @@ PassThru
 
 \end_inset
 
- [
+\begin_inset CommandInset label
+LatexCommand label
+name "des:PathThru"
+
+\end_inset
+
+[
 \emph on
 
 \begin_inset Flex CharStyle:Code
@@ -10414,7 +10754,7 @@ name "des:Preamble"
 
 \end_inset
 
-Information to be included in the LaTeX preamable when this style is used.
+Information to be included in the LaTeX preamble when this style is used.
  Used to define macros, load packages, etc., required by this particular
  style.
  Must end with 
@@ -10641,7 +10981,7 @@ TextFont
  See section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -10649,7 +10989,6 @@ reference "sec:fonts"
 \end_layout
 
 \begin_layout Description
-Need
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -10693,15 +11032,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
 \end_inset
 
  specifier is special and, because of implementation details, cannot be
- used in non-builtin float types.
+ used in non-built in float types.
  If you do not understand what this means, just use 
 \begin_inset Quotes eld
 \end_inset
@@ -11234,28 +11574,19 @@ type
 \end_layout
 
 \begin_layout Subsection
-Inset layouts and Flex insets
-\end_layout
-
-\begin_layout Standard
+Flex insets and InsetLayout
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:charstyle"
+name "sub:Flex-insets-and"
 
 \end_inset
 
-LyX has supported character styles since version 1.4.0; since version 1.6.0
- these are called Flex insets.
+
 \end_layout
 
 \begin_layout Standard
-Furthermore, it is possible to define the general layout of many different
- types of insets.
- Currently, InsetLayout can be used to customize the  layout parameters
- for footnotes, marginal notes, note insets, ERT insets, branches, listings,
- indexes, boxes, tables, algorithms, URLs, and optional arguments, as well
- as Flex insets.
+LyX has supported character styles since version 1.4.0; as of version 1.6.0,
+ these are called Flex insets.
  
 \end_layout
 
@@ -11313,8 +11644,19 @@ Custom
 
 \end_inset
 
-): These can be used to define custom collapsable insets, similar to ERT,
- footnote, and the like.
+): These can be used to define custom collapsible insets, similar to TeX
+ code, footnote, and the like.
+ An obvious example is an endnote inset, which is defined in the 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+endnote
+\end_layout
+
+\end_inset
+
+ module.
 \end_layout
 
 \begin_layout Itemize
@@ -11332,7 +11674,7 @@ Element
 \end_layout
 
 \begin_layout Standard
-The 
+Flex insets are defined using the 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -11342,70 +11684,89 @@ InsetLayout
 
 \end_inset
 
- definition starting line is of the form
-\end_layout
-
-\begin_layout LyX-Code
-InsetLayout <Type> <Name>
+ tag, which shall be explained in a moment.
 \end_layout
 
 \begin_layout Standard
-wher
+Th
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-<Type>
+InsetLayout
 \end_layout
 
 \end_inset
 
- can be 
+ tag also serves another function: It can be used to customize the general
+ layout of many different types of insets.
+ Currently, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Algorithm
+InsetLayout
 \end_layout
 
 \end_inset
 
-, 
+ can be used to customize the layout parameters for footnotes, marginal
+ notes, note insets, TeX code (ERT) insets, branches, listings, indexes,
+ boxes, tables, algorithms, URLs, and optional arguments, as well as to
+ define Flex insets.
+\end_layout
+
+\begin_layout Standard
+The 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Branch
+InsetLayout
 \end_layout
 
 \end_inset
 
-, 
+ definition must begin with a line of the form:
+\end_layout
+
+\begin_layout LyX-Code
+InsetLayout <Type>
+\end_layout
+
+\begin_layout Standard
+Here 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Box
+<Type>
 \end_layout
 
 \end_inset
 
-, 
+ indicates the inset whose layout is being defined, and here there are two
+ cases.
+\end_layout
+
+\begin_layout Enumerate
+The layout for a pre-existing inset is being modified.
+ In this case, can be 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-ERT
+<Type>
 \end_layout
 
 \end_inset
 
-, 
+ any one of the following: 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Figure
+Algorithm
 \end_layout
 
 \end_inset
@@ -11415,7 +11776,7 @@ Figure
 status collapsed
 
 \begin_layout Plain Layout
-Foot
+Branch
 \end_layout
 
 \end_inset
@@ -11425,7 +11786,7 @@ Foot
 status collapsed
 
 \begin_layout Plain Layout
-Index
+Box
 \end_layout
 
 \end_inset
@@ -11435,7 +11796,7 @@ Index
 status collapsed
 
 \begin_layout Plain Layout
-Listings
+Box:shaded
 \end_layout
 
 \end_inset
@@ -11445,7 +11806,7 @@ Listings
 status collapsed
 
 \begin_layout Plain Layout
-Marginal
+ERT
 \end_layout
 
 \end_inset
@@ -11455,7 +11816,7 @@ Marginal
 status collapsed
 
 \begin_layout Plain Layout
-Note:Comment
+Figure
 \end_layout
 
 \end_inset
@@ -11465,7 +11826,7 @@ Note:Comment
 status collapsed
 
 \begin_layout Plain Layout
-Note:Note
+Foot
 \end_layout
 
 \end_inset
@@ -11475,7 +11836,7 @@ Note:Note
 status collapsed
 
 \begin_layout Plain Layout
-Note:GreyedOut
+Index
 \end_layout
 
 \end_inset
@@ -11485,7 +11846,7 @@ Note:GreyedOut
 status collapsed
 
 \begin_layout Plain Layout
-OptArg
+Info
 \end_layout
 
 \end_inset
@@ -11495,7 +11856,7 @@ OptArg
 status collapsed
 
 \begin_layout Plain Layout
-Table
+Info:menu
 \end_layout
 
 \end_inset
@@ -11505,78 +11866,77 @@ Table
 status collapsed
 
 \begin_layout Plain Layout
-URL
+Info:shortcut
 \end_layout
 
 \end_inset
 
-, or 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Flex
+Info:shortcuts
 \end_layout
 
 \end_inset
 
-.
- If 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-<Type>
+Listings
 \end_layout
 
 \end_inset
 
- is 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Flex
+Marginal
 \end_layout
 
 \end_inset
 
-, then 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-<Name>
+Note:Comment
 \end_layout
 
 \end_inset
 
- should have the form 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-SubType:StyleName
+Note:Note
 \end_layout
 
 \end_inset
 
-, where 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-SubType
+Note:GreyedOut
 \end_layout
 
 \end_inset
 
- is either 
+, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-CharStyle
+OptArg
 \end_layout
 
 \end_inset
@@ -11586,7 +11946,7 @@ CharStyle
 status collapsed
 
 \begin_layout Plain Layout
-Custom
+Table
 \end_layout
 
 \end_inset
@@ -11596,27 +11956,47 @@ Custom
 status collapsed
 
 \begin_layout Plain Layout
-Element
+URL
 \end_layout
 
 \end_inset
 
-, and 
+.
+\end_layout
+
+\begin_layout Enumerate
+The layout for a Flex inset is being defined.
+ In this case, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-StyleName
+<Type>
 \end_layout
 
 \end_inset
 
- is any valid identifier.
+ can be any valid identifier not used by a pre-existing inset.
+ Note that the definition of a flex inset must
+\emph on
+ als
+\emph default
+o include a 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LyXType
+\end_layout
+
+\end_inset
+
+ entry.
 \end_layout
 
 \begin_layout Standard
-The following 
+The 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -11626,7 +12006,7 @@ InsetLayout
 
 \end_inset
 
section can contain the following entries:
definition can contain the following entries:
 \end_layout
 
 \begin_layout Description
@@ -11640,7 +12020,7 @@ BgColor
 \end_inset
 
  The color for the inset's background.
- These valid colors are defined in 
+ The valid colors are defined in 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -11677,6 +12057,42 @@ reference "des:CopyStyle"
 \begin_inset Flex CharStyle:Code
 status collapsed
 
+\begin_layout Plain Layout
+CustomPars
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+0
+\end_layout
+
+\end_inset
+
+,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
+\end_inset
+
+] Indicates whether the user may employ the Paragraph Settings dialog to
+ customize the paragraph.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
 \begin_layout Plain Layout
 Decoration
 \end_layout
@@ -11724,7 +12140,7 @@ Classic
 
 \end_inset
 
-; ERT insets generally use 
+, ERT insets generally 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -11734,7 +12150,7 @@ Minimalistic
 
 \end_inset
 
-; and character styles use 
+, and character styles 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -11751,6 +12167,19 @@ Conglomerate
 \begin_inset Flex CharStyle:Code
 status collapsed
 
+\begin_layout Plain Layout
+End
+\end_layout
+
+\end_inset
+
+ Required at the end of the InsetLayout declarations.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
 \begin_layout Plain Layout
 Font
 \end_layout
@@ -11769,7 +12198,7 @@ and
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -11807,7 +12236,60 @@ ForceLTR
 
 \end_inset
 
- [[FIXME]]
+ Force the 
+\begin_inset Quotes eld
+\end_inset
+
+latex
+\begin_inset Quotes erd
+\end_inset
+
+ language, leading to Left-to-Right (latin) output, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+in TeX code or URL.
+ A kludge.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+ForcePlain
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+0
+\end_layout
+
+\end_inset
+
+,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
+\end_inset
+
+] Indicates whether the PlainLayout should be used or, instead, the user
+ can change the paragraph style used in the inset.
 \end_layout
 
 \begin_layout Description
@@ -11835,19 +12317,39 @@ reference "des:FreeSpacing"
 status collapsed
 
 \begin_layout Plain Layout
-KeepEmpty
+InToc
 \end_layout
 
 \end_inset
 
- As with paragraph styles (see page 
-\begin_inset CommandInset ref
-LatexCommand pageref
-reference "des:KeepEmpty"
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+0
+\end_layout
 
 \end_inset
 
-).
+,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
+\end_inset
+
+] Whether to include the contents of this inset in the strings generated
+ for the `Outline' pane.
+ One would not, for example, want the content of a footnote in a section
+ header to be included in the TOC displayed in the outline, but one would
+ normally want the content of a character style displayed.
+ Default is false: not to include.
 \end_layout
 
 \begin_layout Description
@@ -11855,13 +12357,19 @@ reference "des:KeepEmpty"
 status collapsed
 
 \begin_layout Plain Layout
-LabelString
+KeepEmpty
 \end_layout
 
 \end_inset
 
- What will be displayed on the button or elsewhere as the inset label.
- Some inset types (ERT and Branch) modify this label on the fly.
+ As with paragraph styles (see page 
+\begin_inset CommandInset ref
+LatexCommand pageref
+reference "des:KeepEmpty"
+
+\end_inset
+
+).
 \end_layout
 
 \begin_layout Description
@@ -11882,7 +12390,7 @@ LabelFont
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -11904,6 +12412,20 @@ Font
 \begin_inset Flex CharStyle:Code
 status collapsed
 
+\begin_layout Plain Layout
+LabelString
+\end_layout
+
+\end_inset
+
+ What will be displayed on the button or elsewhere as the inset label.
+ Some inset types (TeX code and Branch) modify this label on the fly.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
 \begin_layout Plain Layout
 LatexName
 \end_layout
@@ -12008,7 +12530,7 @@ element
 
 \end_inset
 
-, 
+, or 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -12018,8 +12540,9 @@ end
 
 \end_inset
 
- (indicating a dummy definition ending definitions of charstyles etc.).
- This entry is only meaningful for Flex (user definable) insets.
+ (indicating a dummy definition ending definitions of charstyles, etc).
+ This entry is required in and is only meaningful for Flex insets.
+ Among other things, it determines on which menu this inset will appear.
 \end_layout
 
 \begin_layout Description
@@ -12027,7 +12550,7 @@ end
 status collapsed
 
 \begin_layout Plain Layout
-NeedProtect
+MultiPar
 \end_layout
 
 \end_inset
@@ -12054,24 +12577,14 @@ status collapsed
 
 \end_inset
 
-] Whether fragile commands in this layout should be 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-protect
-\end_layout
-
-\end_inset
-
-'ed.
- (Note: This is 
+] Whether multiple paragraphs are permitted in this inset.
+ This will also set CustomPars to the same value and ForcePlain to the opposite
+ value.
+ These can be reset to other values, if they are used 
 \emph on
-not
+after
 \emph default
- whether this command should itself be protected.)
+ MultiPar.
 \end_layout
 
 \begin_layout Description
@@ -12079,7 +12592,101 @@ not
 status collapsed
 
 \begin_layout Plain Layout
-Preamble
+NeedProtect
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+0
+\end_layout
+
+\end_inset
+
+,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
+\end_inset
+
+] Whether fragile commands in this layout should be 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+protect
+\end_layout
+
+\end_inset
+
+'ed.
+ (Note: This is 
+\emph on
+not
+\emph default
+ whether the command should itself be protected.)
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+PassThru
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+0
+\end_layout
+
+\end_inset
+
+,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
+\end_inset
+
+] As with paragraph styles (see page 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "des:PathThru"
+
+\end_inset
+
+).
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Preamble
 \end_layout
 
 \end_inset
@@ -12126,15 +12733,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
@@ -12177,8 +12785,36 @@ Input stdcounters.inc
 
 \begin_layout Standard
 to your layout file to get them to work.
- But if you want to define custom counters, then you can do so, using the
- following parameters:
+ But if you want to define custom counters, then you can do so.
+ The counter declaration must begin with:
+\end_layout
+
+\begin_layout LyX-Code
+Counter name
+\end_layout
+
+\begin_layout Standard
+where of course `name' is replaced by the name of the counter.
+ And it must end with 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+End
+\end_layout
+
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+.
+ The following parameters can also be used:
 \end_layout
 
 \begin_layout Description
@@ -12319,7 +12955,7 @@ numbertype
 \emph off
 \bar no
 \noun off
- other than those descibed below will produce arabic numerals.
+ other than those described below will produce arabic numerals.
  It would not be surprising to see this change in the future.
 \end_layout
 
@@ -12465,38 +13101,7 @@ LabelString
 
 \end_inset
 
-.
-\end_layout
-
-\begin_layout Description
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-Name
-\end_layout
-
-\end_inset
-
- [
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-string
-\end_layout
-
-\end_inset
-
-=
-\begin_inset Quotes erd
-\end_inset
-
-
-\begin_inset Quotes erd
-\end_inset
-
-] The name of the counter.
+, but for use in the Appendix.
 \end_layout
 
 \begin_layout Description
@@ -12528,7 +13133,7 @@ string
 \end_inset
 
 ] If this is set to the name of another counter, the present counter will
- be reset everytime the other one is increased.
+ be reset every time the other one is increased.
  For example, 
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -12554,15 +13159,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
 
@@ -12762,7 +13368,7 @@ string
 
 \end_inset
 
-] Valid argument sare: 
+] Valid argument are: 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -13092,7 +13698,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
 
@@ -13181,19 +13787,8 @@ LyXDir/templates/
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-T
-\family sans
-\bar default
-ools
-\family default
-\SpecialChar \menuseparator
-
-\bar under
-P
-\bar default
-references\SpecialChar \menuseparator
+Tools\SpecialChar \menuseparator
+Preferences\SpecialChar \menuseparator
 Paths
 \end_layout
 
@@ -13214,31 +13809,13 @@ defaults.lyx
 \end_inset
 
 .
- This template is loaded everytime you create a new document with 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-
-\bar under
-F
-\bar default
-ile
-\end_layout
-
-\end_inset
-
-\SpecialChar \menuseparator
-
+ This template is loaded every time you create a new document with 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-
-\bar under
-N
-\bar default
-ew
+File\SpecialChar \menuseparator
+New
 \end_layout
 
 \end_inset
 status collapsed
 
 \begin_layout Plain Layout
-Sa
-\bar under
-v
-\bar default
-e as Document Defaults
+Save as Document Defaults
 \end_layout
 
 \end_inset
@@ -13266,6 +13839,30 @@ e as Document Defaults
 Including External Material
 \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 portion of the documentation has not been updated for some
+ time.
+ We certainly hope that it is still accurate, but there are no guarantees.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 The use of material from sources external to LyX is covered in detail in
  the 
@@ -13337,7 +13934,7 @@ status collapsed
 \end_inset
 
  extension.
- Within XFig, you create and change your figure, and when you are done,
+ Within Xfig, you create and change your figure, and when you are done,
  you save the 
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -13380,21 +13977,21 @@ This distinction is important in order to allow updating of the material
  Furthermore, it provides us with the flexibility that is needed to support
  multiple export formats.
  For instance, in the case of a plain text file, it is not exactly an award-winn
-ing idea to include the figure as raw PostScript®.
+ing idea to include the figure as raw PostScript.
  Instead, you'd either prefer to just include a reference to the figure
- or try to invoke some graphics to Ascii converter to make the final result
+ or try to invoke some graphics to ASCII converter to make the final result
  look similar to the real graphics.
- The external material management allows you to do this, because it is parameter
-ized on the different export formats that LyX supports.
+ The external material management allows you to do this, because it is parametri
+zed on the different export formats that LyX supports.
 \end_layout
 
 \begin_layout Standard
 Besides supporting the production of different products according to the
  exported format, it supports tight integration with editing and viewing
  applications.
- In the case of an XFig figure, you are able to invoke Xfig on the original
+ In the case of an Xfig figure, you are able to invoke Xfig on the original
  file with a single click from within the external material dialog in LyX,
- and also preview the produced PostScript file with ghostview with another
+ and also preview the produced PostScript file with Ghostview with another
  click.
  No more fiddling around with the command line and/or file browsers to locate
  and manipulate the original or produced files.
@@ -13766,8 +14363,12 @@ FileFilter
 
  A glob pattern that is used in the file dialog to filter out the desired
  files.
- If there is more than one possible file extension (e.g.
-\begin_inset space ~
+ If there is more than one possible file extension (e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
 \end_inset
 
 tgif has 
@@ -13864,7 +14465,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
 
@@ -14651,8 +15252,15 @@ $$Tempname
 
 \begin_layout Standard
 All path macros contain a trailing directory separator, so you can construct
- e.g.
- the absolute filename with 
+ e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+the absolute filename with 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -14916,8 +15524,12 @@ $$AbsOrRelPathParent
 \end_layout
 
 \begin_layout Standard
-There are special cases where this rule does not work and e.g.
-\begin_inset space ~
+There are special cases where this rule does not work and e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
 \end_inset
 
 relative names are needed, but normally it will work just fine.
@@ -14956,15 +15568,28 @@ Security discussion
 \end_layout
 
 \begin_layout Standard
-\begin_inset Note Note
-status collapsed
+\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
-This section is outdated
+WARNING: This section is definitely outdated.
 \end_layout
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
 The external material feature interfaces with a lot of external programs
  and does so automatically, so we have to consider the security implications
  of this.
@@ -14972,7 +15597,7 @@ The external material feature interfaces with a lot of external programs
  and/or parameter strings and those are expanded into a command, it seems
  that it would be possible to create a malicious document which executes
  arbitrary commands when a user views or prints the document.
- This is something we definately want to avoid.
+ This is something we definitely want to avoid.
 \end_layout
 
 \begin_layout Standard
@@ -15091,507 +15716,10 @@ Including external material provides a lot of power, and you have to be
  A subtle error in a single line in an innocent looking script can open
  the door to huge security problems.
  So if you do not fully understand the issues, we recommend that you consult
- a knowledgable security professional or the LyX development team if you
+ a knowledgeable security professional or the LyX development team if you
  have any questions about whether a given template is safe or not.
  And do this before you use it in an uncontrolled environment.
 \end_layout
 
-\begin_layout Chapter
-The LyX Server
-\end_layout
-
-\begin_layout Section
-Introduction
-\end_layout
-
-\begin_layout Standard
-The LyX server is a method implemented in LyX that will enable other programs
- to talk to LyX, invoke LyX commands, and retrieve information about the
- LyX internal state.
- This is only intended for advanced users, but they should find it useful.
- Please note that, at present, 
-\emph on
-the server does not work on Windows
-\emph default
-.
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-There is no principled reason it cannot do so.
- But none of the developers on Windows® have yet implemented this functionality
- there.
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Starting the LyX Server
-\end_layout
-
-\begin_layout Standard
-The LyX server works through the use of a pair of named pipes.
- These are usually located in 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-UserDir
-\end_layout
-
-\end_inset
-
- and have the names 
-\begin_inset Quotes eld
-\end_inset
-
-
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-.lyxpipe.in
-\end_layout
-
-\end_inset
-
-
-\begin_inset Quotes erd
-\end_inset
-
- and 
-\begin_inset Quotes eld
-\end_inset
-
-
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-.lyxpipe.out
-\end_layout
-
-\end_inset
-
-
-\begin_inset Quotes erd
-\end_inset
-
-.
- External programs write into 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-.lyxpipe.in
-\end_layout
-
-\end_inset
-
- and read back data from 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-.lyxpipe.out
-\end_layout
-
-\end_inset
-
-.
- The stem of the pipe names can be defined in the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-
-\bar under
-T
-\bar default
-ools\SpecialChar \menuseparator
-
-\bar under
-P
-\bar default
-references
-\end_layout
-
-\end_inset
-
- dialog, for example 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-"/home/myhome/.lyxpipe"
-\end_layout
-
-\end_inset
-
-.
-\end_layout
-
-\begin_layout Standard
-LyX will add the '
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-.in
-\end_layout
-
-\end_inset
-
-' and '
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-.out
-\end_layout
-
-\end_inset
-
-' to create the pipes.
- The above setting also has the effect of activating the LyX server.
- If one of the pipes already exists, LyX will assume that another LyX process
- is already running and will not start the server.
- To have several LyX processes with servers at the same time, you have to
- change the configuration between the start of the programs.
-\end_layout
-
-\begin_layout Standard
-If you are developing a client program, you might find it useful to enable
- debugging information from the LyX server.
- Do this by starting LyX as lyx -dbg lyxserver.
-\end_layout
-
-\begin_layout Standard
-Warning: if LyX crashes, it may not manage to remove the pipes; in this
- case you must remove them manually.
- If LyX starts and the pipes exist already, it will not start any server.
-\end_layout
-
-\begin_layout Standard
-Other than this, there are a few points to consider:
-\end_layout
-
-\begin_layout Itemize
-Both server and clients must run on UNIX or OS/2 machines.
- Communications between LyX on UNIX and clients on OS/2 or vice versa is
- not possible right now.
-\end_layout
-
-\begin_layout Itemize
-On OS/2, only one client can connect to LyXServer at a time.
-\end_layout
-
-\begin_layout Itemize
-On OS/2, clients must open inpipe with 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-O_WRONLY
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-mode.
-\end_layout
-
-\begin_layout Standard
-You can find a complete example client written in C in the source distribution
- as 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-development/lyxserver/server_monitor.c
-\end_layout
-
-\end_inset
-
-.
-\end_layout
-
-\begin_layout Section
-Normal communication
-\end_layout
-
-\begin_layout Standard
-To issue a LyX call, the client writes a line of ASCII text into the input
- pipe.
- This line has the following format:
-\end_layout
-
-\begin_layout Quote
-LYXCMD:
-\emph on
-clientname
-\emph default
-:
-\emph on
-function
-\emph default
-:
-\emph on
-argument
-\end_layout
-
-\begin_layout Description
-
-\emph on
-clientname
-\emph default
- is a name that the client can choose arbitrarily.
- Its only use is that LyX will echo it if it sends an answer---so a client
- can dispatch results from different requesters.
-\end_layout
-
-\begin_layout Description
-
-\emph on
-function
-\emph default
- is the function you want LyX to perform.
- It is the same as the commands you'd use in the minibuffer.
-\end_layout
-
-\begin_layout Description
-
-\emph on
-argument
-\emph default
- is an optional argument which is meaningful only to some functions (for
- instance 
-\begin_inset Quotes eld
-\end_inset
-
-self-insert
-\begin_inset Quotes erd
-\end_inset
-
- which will insert the argument as text at the cursor position.)
-\end_layout
-
-\begin_layout Standard
-The answer from LyX will arrive in the output pipe and be of the form
-\end_layout
-
-\begin_layout Quote
-INFO:
-\emph on
-clientname
-\emph default
-:
-\emph on
-function
-\emph default
-:
-\emph on
-data
-\end_layout
-
-\begin_layout Standard
-where 
-\emph on
-clientname
-\emph default
- and 
-\emph on
-function
-\emph default
- are just echoed from the command request, while 
-\emph on
-data
-\emph default
- is more or less useful information filled according to how the command
- execution worked out.
- Some commands will return information about the internal state of LyX,
- such as 
-\begin_inset Quotes eld
-\end_inset
-
-font-state
-\begin_inset Quotes erd
-\end_inset
-
-, while other will return an empty data-response.
- This means that the command execution went fine.
-\end_layout
-
-\begin_layout Standard
-In case of errors, the response from LyX will have this form
-\end_layout
-
-\begin_layout Quote
-ERROR:
-\emph on
-clientname
-\emph default
-:
-\emph on
-function
-\emph default
-:
-\emph on
-error message
-\end_layout
-
-\begin_layout Standard
-where the 
-\emph on
-error message
-\emph default
- should contain an explanation of why the command failed.
-\end_layout
-
-\begin_layout Standard
-Examples:
-\end_layout
-
-\begin_layout LyX-Code
-echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
-\end_layout
-
-\begin_layout LyX-Code
-echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
-\begin_inset Newline newline
-\end_inset
-
-read a <~/.lyxpipe.out
-\begin_inset Newline newline
-\end_inset
-
-echo $a
-\end_layout
-
-\begin_layout Section
-Notification
-\end_layout
-
-\begin_layout Standard
-LyX can notify clients of events going on asynchronously.
- Currently it will only do this if the user binds a key sequence with the
- function 
-\begin_inset Quotes eld
-\end_inset
-
-notify
-\begin_inset Quotes erd
-\end_inset
-
-.
- The format of the string LyX sends is as follows:
-\end_layout
-
-\begin_layout Quote
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-NOTIFY:
-\end_layout
-
-\end_inset
-
-
-\emph on
-key-sequence
-\end_layout
-
-\begin_layout Standard
-where 
-\emph on
-key-sequence
-\emph default
- is the printed representation of the key sequence that was actually typed
- by the user.
-\end_layout
-
-\begin_layout Standard
-This mechanism can be used to extend LyX's command set and implement macros:
- bind some key sequence to 
-\begin_inset Quotes eld
-\end_inset
-
-notify
-\begin_inset Quotes erd
-\end_inset
-
-, start a client that listens on the out pipe, dispatches the command according
- to the sequence and starts a function that may use LyX calls and LyX requests
- to issue a command or a series of commands to LyX.
-\end_layout
-
-\begin_layout Section
-The simple LyX Server Protocol
-\end_layout
-
-\begin_layout Standard
-LyX implements a simple protocol that can be used for session management.
- All messages are of the form
-\end_layout
-
-\begin_layout Quote
-LYXSRV:
-\emph on
-clientname
-\emph default
-:
-\emph on
-protocol message
-\end_layout
-
-\begin_layout Standard
-where 
-\emph on
-protocol message
-\emph default
- can be 
-\begin_inset Quotes eld
-\end_inset
-
-hello
-\begin_inset Quotes erd
-\end_inset
-
- or 
-\begin_inset Quotes eld
-\end_inset
-
-bye
-\begin_inset Quotes erd
-\end_inset
-
-.
- If 
-\begin_inset Quotes eld
-\end_inset
-
-hello
-\begin_inset Quotes erd
-\end_inset
-
- is received from a client, LyX will report back to inform the client that
- it's listening to it's messages, while 
-\begin_inset Quotes eld
-\end_inset
-
-bye
-\begin_inset Quotes erd
-\end_inset
-
- sent from LyX will inform clients that LyX is closing.
-\end_layout
-
 \end_body
 \end_document