]> git.lyx.org Git - features.git/blobdiff - lib/doc/Customization.lyx
Allow literate documents other than noweb to work out of the box. Currently
[features.git] / lib / doc / Customization.lyx
index e4b884433055cee1a01fbba933b467acb8b6e092..8945a49c7e31cfbd0f415473ce8af748157b8a67 100644 (file)
@@ -1,14 +1,14 @@
-#LyX 1.6.2svn created this file. For more info see http://www.lyx.org/
-\lyxformat 345
+#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 361
 \begin_document
 \begin_header
 \textclass scrbook
 \begin_preamble
 % DO NOT ALTER THIS PREAMBLE!!!
 %
-% This preamble is designed to ensure that the User's Guide prints
+% This preamble is designed to ensure that this document prints
 % out as advertised. If you mess with this preamble,
-% parts of the User's Guide may not print out as expected.  If you
+% parts of this document may not print out as expected.  If you
 % have problems LaTeXing this file, please contact 
 % the documentation team
 % email: lyx-docs@lists.lyx.org
@@ -34,7 +34,7 @@
 % 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}
@@ -66,12 +66,16 @@ End
 \font_sans default
 \font_typewriter default
 \font_default_family default
+\use_xetex false
 \font_sc false
 \font_osf false
 \font_sf_scale 100
 \font_tt_scale 100
 
 \graphics default
+\default_output_format default
+\bibtex_command default
+\index_command default
 \paperfontsize 12
 \spacing single
 \use_hyperref true
@@ -95,6 +99,7 @@ End
 \use_esint 0
 \cite_engine basic
 \use_bibtopic false
+\use_indices false
 \paperorientation portrait
 \branch OutDated
 \selected 0
@@ -108,9 +113,9 @@ End
 \papercolumns 1
 \papersides 2
 \paperpagestyle headings
-\tracking_changes false
+\tracking_changes true
 \output_changes false
-\author "" 
+\author "Jean-Marc Lasgouttes
 \author "" 
 \end_header
 
@@ -146,7 +151,11 @@ type "mailto:"
 \end_inset
 
  in the subject header, and please cc the current maintainer of this file,
- Richard Heck <rgheck@comcast.net>.
+ Richard Heck <
+rgheck
+@
+comcast
+.net>.
 \end_layout
 
 \end_inset
@@ -159,7 +168,7 @@ type "mailto:"
 \begin_inset Newline newline
 \end_inset
 
-Version 1.6.x 
+Version 2.0.x 
 \end_layout
 
 \begin_layout Standard
@@ -169,6 +178,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
@@ -179,21 +204,27 @@ Introduction
 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
+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
  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
- outdated is contained in the OutDated branch of this document.
- By default, this information will not appear in the LaTeX output.
+ outdated is contained in the 
+OutDated
+ branch of this document.
+ By default, this information will not appear in the 
+LaTeX
+ output.
 \end_layout
 
 \end_inset
@@ -232,6 +263,7 @@ on files; the user directory is where you can place your modified versions.
 status collapsed
 
 \begin_layout Plain Layout
+
 LyXDir
 \end_layout
 
@@ -242,6 +274,7 @@ LyXDir
 status collapsed
 
 \begin_layout Plain Layout
+
 UserDir
 \end_layout
 
@@ -257,6 +290,7 @@ What's in
 status collapsed
 
 \begin_layout Plain Layout
+
 LyXDir
 \end_layout
 
@@ -270,6 +304,7 @@ LyXDir
 status collapsed
 
 \begin_layout Plain Layout
+
 LyXDir
 \end_layout
 
@@ -297,6 +332,7 @@ Preferences
 status collapsed
 
 \begin_layout Plain Layout
+
 LyXDir
 \end_layout
 
@@ -317,6 +353,7 @@ The files, which are to be found in
 status collapsed
 
 \begin_layout Plain Layout
+
 UserDir
 \end_layout
 
@@ -348,7 +385,8 @@ lyxrc.defaults
 status collapsed
 
 \begin_layout Plain Layout
-packages.lst
+packages.
+lst
 \end_layout
 
 \end_inset
@@ -361,7 +399,9 @@ status collapsed
 
 \begin_layout Plain Layout
 Help\SpecialChar \menuseparator
+
 LaTeX
+
 \begin_inset space ~
 \end_inset
 
@@ -379,7 +419,10 @@ Configuration
 status collapsed
 
 \begin_layout Plain Layout
-textclass.lst
+
+textclass
+.
+lst
 \end_layout
 
 \end_inset
@@ -394,8 +437,9 @@ layout/
 
 \end_inset
 
- directories, along with the associated LaTeX document class and their descripti
-on.
+ directories, along with the associated 
+LaTeX
+ document class and their description.
 \end_layout
 
 \begin_layout Labeling
@@ -404,7 +448,10 @@ on.
 status collapsed
 
 \begin_layout Plain Layout
-lyxmodules.lst
+
+lyxmodules
+.
+lst
 \end_layout
 
 \end_inset
@@ -428,12 +475,15 @@ layout/
 status collapsed
 
 \begin_layout Plain Layout
-*files.lst
+*files.
+lst
 \end_layout
 
 \end_inset
 
- lists of various sorts of LaTeX-related files found on your system
+ lists of various sorts of 
+LaTeX
+-related files found on your system
 \end_layout
 
 \begin_layout Labeling
@@ -442,7 +492,9 @@ status collapsed
 status collapsed
 
 \begin_layout Plain Layout
-doc/LaTeXConfig.lyx
+doc/
+LaTeXConfig
+.lyx
 \end_layout
 
 \end_inset
@@ -452,13 +504,17 @@ doc/LaTeXConfig.lyx
 status collapsed
 
 \begin_layout Plain Layout
-LaTeXConfig.lyx.in
+
+LaTeXConfig
+.lyx.in
 \end_layout
 
 \end_inset
 
 .
- It contains information on your LaTeX configuration.
+ It contains information on your 
+LaTeX
+ configuration.
 \end_layout
 
 \begin_layout Subsection
@@ -471,6 +527,7 @@ These directories are duplicated between
 status collapsed
 
 \begin_layout Plain Layout
+
 LyXDir
 \end_layout
 
@@ -481,6 +538,7 @@ LyXDir
 status collapsed
 
 \begin_layout Plain Layout
+
 UserDir
 \end_layout
 
@@ -492,6 +550,7 @@ UserDir
 status collapsed
 
 \begin_layout Plain Layout
+
 UserDir
 \end_layout
 
@@ -521,7 +580,9 @@ status collapsed
 
 \end_inset
 
- that define the keybindings used in LyX.
+ that define the 
+keybindings
+ used in LyX.
  If there exists an internationalized version of the bind file named 
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -541,7 +602,9 @@ $LANG_xxx.bind
 status collapsed
 
 \begin_layout Plain Layout
-clipart/
+
+clipart
+/
 \end_layout
 
 \end_inset
@@ -567,13 +630,17 @@ doc/
 status collapsed
 
 \begin_layout Plain Layout
-LaTeXConfig.lyx
+
+LaTeXConfig
+.lyx
 \end_layout
 
 \end_inset
 
  deserves special attention, as noted above.
- The internationalized help docs are in subdirectories 
+ The internationalized help docs are in 
+subdirectories
 \begin_inset Flex CharStyle:Code
 status collapsed
 
@@ -599,7 +666,7 @@ xx
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "chap:i18n"
+reference "cha:Internationalizing-LyX"
 
 \end_inset
 
@@ -663,12 +730,16 @@ Document
 status collapsed
 
 \begin_layout Plain Layout
-kbd/
+
+kbd
+/
 \end_layout
 
 \end_inset
 
- contains keyboard keymapping files.
+ contains keyboard 
+keymapping
+ files.
  See Chapter
 \begin_inset space ~
 \end_inset
@@ -676,7 +747,7 @@ kbd/
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:keymap"
+reference "sec:International-Keymap-Stuff"
 
 \end_inset
 
@@ -701,7 +772,7 @@ layouts/
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "chap:textclass"
+reference "cha:Installing-New-Document"
 
 \end_inset
 
@@ -714,6 +785,7 @@ reference "chap:textclass"
 status collapsed
 
 \begin_layout Plain Layout
+
 lyx2lyx
 \end_layout
 
@@ -724,6 +796,7 @@ lyx2lyx
 status collapsed
 
 \begin_layout Plain Layout
+
 lyx2lyx
 \end_layout
 
@@ -781,7 +854,7 @@ templates/
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:templates"
+reference "sec:Creating-Templates"
 
 \end_inset
 
@@ -794,7 +867,9 @@ reference "sec:templates"
 status collapsed
 
 \begin_layout Plain Layout
-ui/
+
+ui
+/
 \end_layout
 
 \end_inset
@@ -804,7 +879,8 @@ ui/
 status collapsed
 
 \begin_layout Plain Layout
-.ui
+.
+ui
 \end_layout
 
 \end_inset
@@ -859,12 +935,17 @@ LyX
 status collapsed
 
 \begin_layout Plain Layout
-chkconfig.ltx
+
+chkconfig
+.
+ltx
 \end_layout
 
 \end_inset
 
- this is a LaTeX script used during the configuration process.
+ this is a 
+LaTeX
+ script used during the configuration process.
  Do not run directly.
 \end_layout
 
@@ -874,7 +955,8 @@ chkconfig.ltx
 status collapsed
 
 \begin_layout Plain Layout
-configure.py
+configure.
+py
 \end_layout
 
 \end_inset
@@ -893,13 +975,15 @@ Other files needing a line or two...
 status collapsed
 
 \begin_layout Plain Layout
+
 encodings
 \end_layout
 
 \end_inset
 
- this contains tables describing how different character encodings can be
- mapped to Unicode
+ this contains tables describing how different character 
+encodings
+ can be mapped to Unicode
 \end_layout
 
 \begin_layout Labeling
@@ -956,6 +1040,7 @@ Even if you are using LyX as an unprivileged user, you might want to change
 status collapsed
 
 \begin_layout Plain Layout
+
 UserDir
 \end_layout
 
@@ -991,6 +1076,7 @@ LyX
 status collapsed
 
 \begin_layout Plain Layout
+
 LyXDir
 \end_layout
 
@@ -1001,6 +1087,7 @@ LyXDir
 status collapsed
 
 \begin_layout Plain Layout
+
 UserDir
 \end_layout
 
@@ -1011,6 +1098,7 @@ UserDir
 status collapsed
 
 \begin_layout Plain Layout
+
 LyXDir
 \end_layout
 
@@ -1053,6 +1141,7 @@ preferences
 status collapsed
 
 \begin_layout Plain Layout
+
 UserDir
 \end_layout
 
@@ -1078,7 +1167,8 @@ Reconfigure
 status collapsed
 
 \begin_layout Plain Layout
-configure.py
+configure.
+py
 \end_layout
 
 \end_inset
@@ -1091,7 +1181,9 @@ configure.py
 status collapsed
 
 \begin_layout Plain Layout
-UserDir/layouts
+
+UserDir
+/layouts
 \end_layout
 
 \end_inset
@@ -1118,7 +1210,9 @@ If you get some updated documentation from LyX ftp site and cannot install
 status collapsed
 
 \begin_layout Plain Layout
-UserDir/doc/
+
+UserDir
+/doc/
 \end_layout
 
 \end_inset
@@ -1155,7 +1249,8 @@ Invoking LyX with the command line switch
 status collapsed
 
 \begin_layout Plain Layout
--userdir
+-
+userdir
 \end_layout
 
 \end_inset
@@ -1171,7 +1266,8 @@ status collapsed
 status collapsed
 
 \begin_layout Plain Layout
--userdir
+-
+userdir
 \end_layout
 
 \end_inset
@@ -1187,7 +1283,10 @@ status collapsed
 status collapsed
 
 \begin_layout Plain Layout
-LYX_USERDIR_VER
+LYX_
+USERDIR
+_
+VER
 \end_layout
 
 \end_inset
@@ -1202,7 +1301,9 @@ Having several configurations also requires more maintenance: if you want
 status collapsed
 
 \begin_layout Plain Layout
-NewUserDir/layouts
+
+NewUserDir
+/layouts
 \end_layout
 
 \end_inset
@@ -1210,10 +1311,15 @@ NewUserDir/layouts
  which you want available from all your configurations, you must add it
  to each directory separately.
  You can avoid this with the following trick: after LyX creates the additional
- directory, most of the subdirectories (see above) are empty.
+ directory, most of the 
+subdirectories
+ (see above) are empty.
  If you want the new configuration to mirror an existing one, replace the
- empty subdirectory with a symbolic link to the matching subdirectory in
- the existing configuration.
+ empty 
+subdirectory
+ with a symbolic link to the matching 
+subdirectory
+ in the existing configuration.
  Take care with the 
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -1224,8 +1330,10 @@ doc/
 
 \end_inset
 
- subdirectory, however, since it contains a file written by the configuration
- script (also accessible through 
+subdirectory
+, however, since it contains a file written by the configuration script
+ (also accessible through 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -1257,142 +1365,14 @@ User's Guide
 \end_layout
 
 \begin_layout Section
-Using the dialog for the first time
-\end_layout
-
-\begin_layout Standard
-The 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-UserDir/preferences
-\end_layout
-
-\end_inset
-
- file will contain only changes that you have made to the default behavior,
- some of which is hard-coded into LyX and some of which is contained in
- the system file 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-LyXDir/lyxrc.defaults
-\end_layout
-
-\end_inset
-
-.
- Note that in both files lines beginning with a 
-\begin_inset Quotes eld
-\end_inset
-
-#
-\begin_inset Quotes erd
-\end_inset
-
- are just comments and are not interpreted.
- However, only system administrators should edit 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-LyXDir/lyxrc.defaults
-\end_layout
-
-\end_inset
-
-.
- Users should use the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Tools\SpecialChar \menuseparator
-Preferences
-\end_layout
-
-\end_inset
-
- dialog to create and modify their own 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-UserDir/preferences
-\end_layout
-
-\end_inset
-
- file.
-\end_layout
-
-\begin_layout Standard
-We hope that the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Tools\SpecialChar \menuseparator
-Preferences
-\end_layout
-
-\end_inset
-
- dialog will be largely self-explanatory.
- Most things in the dialog have associated `tool tips': hover your mouse
- pointer over something for more information.
- Before we highlight a few of the more important commands below, however,
- a word of warning: Applying some of your changes (e.
-\begin_inset space \thinspace{}
-\end_inset
-
-g.
-\begin_inset space \space{}
-\end_inset
-
-screen fonts) will have an instant effect.
- Others (e.
-\begin_inset space \thinspace{}
-\end_inset
-
-g.
-\begin_inset space \space{}
-\end_inset
-
-changing the bind file) will not.
- If nothing appears to have changed, just 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Save
-\end_layout
-
-\end_inset
-
- the changes and restart LyX.
-\end_layout
-
-\begin_layout Section
-File Handling
-\end_layout
-
-\begin_layout Standard
-LyX has a powerful mechanism to convert to and from any file format using
- external programs.
-\end_layout
-
-\begin_layout Subsection
+Formats
 \begin_inset CommandInset label
 LatexCommand label
-name "sub:Formats"
+name "sec:Formats"
 
 \end_inset
 
-Formats
+
 \end_layout
 
 \begin_layout Standard
@@ -1442,7 +1422,7 @@ Format
 
 \end_inset
 
- field contains the named used to identify the format in the GUI.
+ field contains the name used to identify the format in the GUI.
  The 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
@@ -1502,7 +1482,7 @@ Viewer
 
 \end_inset
 
- and 
+ and an 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -1518,6 +1498,7 @@ Editor
 status collapsed
 
 \begin_layout Plain Layout
+
 Ghostview
 \end_layout
 
@@ -1539,37 +1520,18 @@ View
 \end_inset
 
  menu.
- The editor is for example launched when you press the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Edit
-\end_layout
-
-\end_inset
-
- button in the 
-\begin_inset Flex CharStyle:MenuItem
-status collapsed
-
-\begin_layout Plain Layout
-Graphics
-\end_layout
-
-\end_inset
-
- or the 
+ The editor is for example launched when you right-click on an image and
+ choose 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
-External material
+Edit externally
 \end_layout
 
 \end_inset
 
dialog.
in the appearing context menu.
 \end_layout
 
 \begin_layout Standard
@@ -1584,10 +1546,14 @@ Document format
 \end_inset
 
  option tells LyX that a format is suitable for document export.
- If this is is set and if a suitable conversion route exists (see 
+ If this is set and if a suitable conversion route exists (see sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:Converters"
+reference "sec:Converters"
 
 \end_inset
 
@@ -1619,6 +1585,7 @@ View
 status collapsed
 
 \begin_layout Plain Layout
+
 png
 \end_layout
 
@@ -1630,6 +1597,7 @@ png
 status collapsed
 
 \begin_layout Plain Layout
+
 pdf
 \end_layout
 
@@ -1656,6 +1624,7 @@ Vector graphics format
 status collapsed
 
 \begin_layout Plain Layout
+
 pdflatex
 \end_layout
 
@@ -1667,6 +1636,7 @@ pdflatex
 status collapsed
 
 \begin_layout Plain Layout
+
 pdf
 \end_layout
 
@@ -1677,6 +1647,7 @@ pdf
 status collapsed
 
 \begin_layout Plain Layout
+
 png
 \end_layout
 
@@ -1687,6 +1658,7 @@ png
 status collapsed
 
 \begin_layout Plain Layout
+
 jpg
 \end_layout
 
@@ -1697,6 +1669,7 @@ jpg
 status collapsed
 
 \begin_layout Plain Layout
+
 pdflatex
 \end_layout
 
@@ -1708,6 +1681,7 @@ pdflatex
 status collapsed
 
 \begin_layout Plain Layout
+
 pdf
 \end_layout
 
@@ -1718,6 +1692,7 @@ pdf
 status collapsed
 
 \begin_layout Plain Layout
+
 png
 \end_layout
 
@@ -1728,6 +1703,7 @@ png
 status collapsed
 
 \begin_layout Plain Layout
+
 jpg
 \end_layout
 
@@ -1738,6 +1714,7 @@ jpg
 status collapsed
 
 \begin_layout Plain Layout
+
 pdf
 \end_layout
 
@@ -1748,6 +1725,7 @@ pdf
 status collapsed
 
 \begin_layout Plain Layout
+
 png
 \end_layout
 
@@ -1756,7 +1734,7 @@ png
 .
 \end_layout
 
-\begin_layout Subsection
+\begin_layout Section
 Copiers
 \end_layout
 
@@ -1768,7 +1746,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
@@ -1854,11 +1832,18 @@ $$l
 
 \end_inset
 
- The `LaTeX name'
+ The `
+LaTeX
+name'
 \end_layout
 
 \begin_layout Standard
-The latter should be the filename as it would be used in a LaTeX's 
+The latter should be the 
+filename
+ as it would be used in a 
+LaTeX's
 \series bold
 
 \backslash
@@ -1870,13 +1855,16 @@ include
 
 \begin_layout Standard
 Copiers can be used to do almost anything with output files.
- For example, suppose you want generated pdf files to be copied to a special
- directory, 
+ For example, suppose you want generated 
+pdf
+ files to be copied to a special directory, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-/home/you/pdf/
+/home/you/
+pdf
+/
 \end_layout
 
 \end_inset
@@ -1912,17 +1900,19 @@ cp $FROMFILE /home/you/pdf/$TOFILE
 
 \end_inset
 
-Save that in your local LyX directory---say, 
+Save it in your local LyX directory—say, 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-/home/you/.lyx/scripts/pdfcopier.sh
+/home/you/.lyx/scripts/
+pdfcopier
+.sh
 \end_layout
 
 \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
@@ -1950,17 +1940,25 @@ File formats
 status collapsed
 
 \begin_layout Plain Layout
-PDF(pdflatex)
+
+PDF
+(
+pdflatex
+)
 \end_layout
 
 \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
 
 \begin_layout Plain Layout
-pdfcopier.sh $$i $$o
+
+pdfcopier
+.sh $$i $$o
 \end_layout
 
 \end_inset
@@ -2010,8 +2008,9 @@ HTML
  When these formats are exported, the copier sees that not just the main
  HTML file but various associated files (style files, images, etc.) are also
  copied.
- All these files are written to a subdirectory of the directory in which
- the original LyX file was found.
+ All these files are written to a 
+subdirectory
+ of the directory in which the original LyX file was found.
 \begin_inset Foot
 status collapsed
 
@@ -2045,6 +2044,7 @@ This copier can be customized.
 status collapsed
 
 \begin_layout Plain Layout
+
 LyXconv
 \end_layout
 
@@ -2059,7 +2059,9 @@ LyXconv
 status collapsed
 
 \begin_layout Plain Layout
-/path/to/filename.lyx
+/path/to/
+filename
+.lyx
 \end_layout
 
 \end_inset
@@ -2069,7 +2071,12 @@ status collapsed
 status collapsed
 
 \begin_layout Plain Layout
-/path/to/filename.html.LyXconv
+/path/to/
+filename
+.
+html
+.
+LyXconv
 \end_layout
 
 \end_inset
@@ -2083,14 +2090,15 @@ status collapsed
 
 \end_layout
 
-\begin_layout Subsection
+\begin_layout Section
+Converters
 \begin_inset CommandInset label
 LatexCommand label
-name "sub:Converters"
+name "sec:Converters"
 
 \end_inset
 
-Converters
+
 \end_layout
 
 \begin_layout Standard
@@ -2208,7 +2216,9 @@ $$b
 
 \end_inset
 
- The base filename of the input file (i.
+ The base 
+filename
+ of the input file (i.
 \begin_inset space \thinspace{}
 \end_inset
 
@@ -2229,6 +2239,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 a
+ chain of converters is called).
+\end_layout
+
 \begin_layout Standard
 In the 
 \begin_inset Flex CharStyle:MenuItem
@@ -2258,8 +2283,12 @@ latex
 
 \end_inset
 
- This converter runs some form of LaTeX.
- This will make LyX's LaTeX error logs available.
+ This converter runs some form of 
+LaTeX
+.
+ This will make LyX's 
+LaTeX
+ error logs available.
 \end_layout
 
 \begin_layout Labeling
@@ -2268,12 +2297,15 @@ latex
 status collapsed
 
 \begin_layout Plain Layout
+
 needaux
 \end_layout
 
 \end_inset
 
- Needs the LaTeX 
+ Needs the 
+LaTeX
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -2292,6 +2324,7 @@ status collapsed
 status collapsed
 
 \begin_layout Plain Layout
+
 xml
 \end_layout
 
@@ -2329,6 +2362,7 @@ value
 status collapsed
 
 \begin_layout Plain Layout
+
 parselog
 \end_layout
 
@@ -2339,7 +2373,9 @@ parselog
 status collapsed
 
 \begin_layout Plain Layout
-infile.out
+
+infile
+.out
 \end_layout
 
 \end_inset
@@ -2349,7 +2385,11 @@ infile.out
 status collapsed
 
 \begin_layout Plain Layout
-script <infile.out >infile.log
+script < 
+infile
+.out > 
+infile
+.log
 \end_layout
 
 \end_inset
@@ -2374,6 +2414,7 @@ $$s
 status collapsed
 
 \begin_layout Plain Layout
+
 resultdir
 \end_layout
 
@@ -2398,7 +2439,11 @@ $$b
 \begin_inset Newline newline
 \end_inset
 
-Note that resultdir and usetempdir make no sense together.
+Note that 
+resultdir
+ and 
+usetempdir
+ make no sense together.
  The latter will be ignored if the former is given.
 \end_layout
 
@@ -2408,6 +2453,7 @@ Note that resultdir and usetempdir make no sense together.
 status collapsed
 
 \begin_layout Plain Layout
+
 resultfile
 \end_layout
 
@@ -2424,8 +2470,11 @@ $$b
 \end_inset
 
 .
- Sensible only with resultdir and optional even then; if not given, it defaults
- to `index'.
+ Sensible only with 
+resultdir
+ and optional even then; if not given, it defaults to `
+index'
+.
 \end_layout
 
 \begin_layout Standard
@@ -2435,23 +2484,36 @@ None of these last three are presently used in any of the converters that
 \end_layout
 
 \begin_layout Standard
-You do not have to define converters between all the formats between which
- you want to convert.
- 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.
- LyX finds such `chains' of converters automatically, and it will always
- choose the shortest possible chain.
+You do not have to define converters for all formats between which you want
+ to convert.
+ For example, you will note that there is no `LyX to 
+PostScript'
+ converter, but LyX will export PostScript.
+ It does so by first creating a 
+LaTeX
+ file (no converter needs to be defined for this) which is then converted
+ to DVI using the `
+LaTeX
+ to 
+DVI'
+ converter, 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
  formats.
  For example, the standard LyX configuration provides three ways to convert
- LaTeX to PDF: Directly, using 
+LaTeX
+ to 
+PDF
+: Directly, using 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
 \begin_layout Plain Layout
+
 pdflatex
 \end_layout
 
@@ -2462,6 +2524,7 @@ pdflatex
 status collapsed
 
 \begin_layout Plain Layout
+
 ps2pdf
 \end_layout
 
@@ -2472,6 +2535,7 @@ ps2pdf
 status collapsed
 
 \begin_layout Plain Layout
+
 dvipdfm
 \end_layout
 
@@ -2479,10 +2543,12 @@ dvipdfm
 
 .
  To define such alternate chains, you must define multiple target `file
- formats', as described in section 
+formats'
+, as described in section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:Formats"
+reference "sec:Formats"
 
 \end_inset
 
@@ -2492,6 +2558,7 @@ reference "sub:Formats"
 status collapsed
 
 \begin_layout Plain Layout
+
 pdf
 \end_layout
 
@@ -2502,6 +2569,7 @@ pdf
 status collapsed
 
 \begin_layout Plain Layout
+
 pdf2
 \end_layout
 
@@ -2512,6 +2580,7 @@ pdf2
 status collapsed
 
 \begin_layout Plain Layout
+
 pdf3
 \end_layout
 
@@ -2522,7 +2591,8 @@ pdf3
 status collapsed
 
 \begin_layout Plain Layout
-.pdf
+.
+pdf
 \end_layout
 
 \end_inset
@@ -2534,7 +2604,7 @@ status collapsed
 Internationalizing LyX
 \begin_inset CommandInset label
 LatexCommand label
-name "chap:i18n"
+name "cha:Internationalizing-LyX"
 
 \end_inset
 
@@ -2602,6 +2672,7 @@ LyX uses the GNU
 status collapsed
 
 \begin_layout Plain Layout
+
 gettext
 \end_layout
 
@@ -2614,6 +2685,7 @@ gettext
 status collapsed
 
 \begin_layout Plain Layout
+
 po
 \end_layout
 
@@ -2647,6 +2719,7 @@ mo
 status collapsed
 
 \begin_layout Plain Layout
+
 gettext
 \end_layout
 
@@ -2656,8 +2729,9 @@ gettext
  It is possible to do this just for yourself, but if you're going to do
  it, you might as well share the results of your labors with the rest of
  the LyX community.
- Send a message to the LyX developers' list for more information about how
- to proceed.
+ Send a message to the LyX 
+developers'
+ list for more information about how to proceed.
 \end_layout
 
 \begin_layout Standard
@@ -2693,7 +2767,8 @@ lyx.pot
 status collapsed
 
 \begin_layout Plain Layout
-**.po
+**.
+po
 \end_layout
 
 \end_inset
@@ -2704,7 +2779,8 @@ status collapsed
 status collapsed
 
 \begin_layout Plain Layout
-xx.po
+xx.
+po
 \end_layout
 
 \end_inset
@@ -2730,8 +2806,9 @@ make lyx.pot
 
 \end_inset
 
- in that directory, or you can use an existing po-file for some other language
- as a template).
+ in that directory, or you can use an existing 
+po
+-file for some other language as a template).
 \end_layout
 
 \begin_layout Itemize
@@ -2740,7 +2817,8 @@ Edit
 status collapsed
 
 \begin_layout Plain Layout
-xx.po
+xx.
+po
 \end_layout
 
 \end_inset
@@ -2760,16 +2838,21 @@ Poedit
 \family typewriter
 KBabel
 \family default
- (for KDE).
+ (for 
+KDE
+).
  
 \family typewriter
 Emacs
 \family default
- contains a `mode' for editing 
+ contains a `
+mode'
+ for editing 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
+
 po
 \end_layout
 
@@ -2790,6 +2873,7 @@ po
 status collapsed
 
 \begin_layout Plain Layout
+
 po
 \end_layout
 
@@ -2820,7 +2904,10 @@ xx.mo
 status collapsed
 
 \begin_layout Plain Layout
-msgfmt -o xx.mo < xx.po
+
+msgfmt
+ -o xx.mo < xx.
+po
 \end_layout
 
 \end_inset
@@ -2883,6 +2970,7 @@ As said, however, it would be best if the new
 status collapsed
 
 \begin_layout Plain Layout
+
 po
 \end_layout
 
@@ -2890,8 +2978,9 @@ po
 
 -file could be added to the LyX distribution, so others can use it.
  Adding it involves making additional changes to LyX.
- So send an email to the developers' mailing list if you're interested in
- doing that.
+ So send an email to the 
+developers'
+ mailing list if you're interested in doing that.
 \end_layout
 
 \begin_layout Subsubsection
@@ -2933,6 +3022,7 @@ to
 status collapsed
 
 \begin_layout Plain Layout
+
 gettext
 \end_layout
 
@@ -2955,7 +3045,11 @@ To
 status collapsed
 
 \begin_layout Plain Layout
-To[[as in 'From format x to format y']]
+To[[as in 
+'From
+ format x to format 
+y'
+]]
 \end_layout
 
 \end_inset
@@ -2965,7 +3059,11 @@ To[[as in 'From format x to format y']]
 status collapsed
 
 \begin_layout Plain Layout
-To[[as in 'From page x to page y']].
+To[[as in 
+'From
+ page x to page 
+y'
+]].
 \end_layout
 
 \end_inset
@@ -2985,6 +3083,7 @@ To
 status collapsed
 
 \begin_layout Plain Layout
+
 gettext
 \end_layout
 
@@ -3753,13 +3852,14 @@ kinclude
 \end_layout
 
 \begin_layout Section
+International Keymap Stuff
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:keymap"
+name "sec:International-Keymap-Stuff"
 
 \end_inset
 
-International Keymap Stuff
+
 \end_layout
 
 \begin_layout Standard
@@ -3770,6 +3870,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
@@ -5347,10 +5448,10 @@ Preferences
 \end_layout
 
 \begin_layout Chapter
-Installing New Document Classes, Layouts, and Templates 
+Installing New Document Classes, Layouts, and Templates
 \begin_inset CommandInset label
 LatexCommand label
-name "chap:textclass"
+name "cha:Installing-New-Document"
 
 \end_inset
 
@@ -5432,7 +5533,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.
@@ -5812,7 +5913,7 @@ Reconfigure
 \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
 
@@ -5822,7 +5923,7 @@ slides (FoilTeX)
 
 \end_inset
 
----under 
+under 
 \begin_inset Flex CharStyle:MenuItem
 status collapsed
 
@@ -5981,13 +6082,14 @@ default
 \end_layout
 
 \begin_layout Subsection
+Layout modules
 \begin_inset CommandInset label
 LatexCommand label
 name "sub:Layout-modules"
 
 \end_inset
 
-Layout modules
+
 \end_layout
 
 \begin_layout Standard
@@ -5997,9 +6099,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
 
@@ -6009,7 +6111,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.
@@ -6044,9 +6146,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
@@ -6060,6 +6160,43 @@ Settings
 
 .
  
+\change_inserted 0 1243500588
+
+\end_layout
+
+\begin_layout Standard
+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.
+
+\change_inserted 0 1243500694
+ It is also possible to use the form 
+\begin_inset Flex CharStyle:MenuItem
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 0 1243500706
+from->to
+\end_layout
+
+\end_inset
+
+, which declares that the module can only be used when there exists a conversion
+ chain between formats `from' and `to'.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Standard
@@ -6259,7 +6396,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
@@ -6280,7 +6417,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
 
@@ -6377,7 +6514,7 @@ Settings
 
  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
 
@@ -6387,7 +6524,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
 
@@ -6791,8 +6928,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.
  
@@ -6849,7 +6986,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
@@ -6910,7 +7047,7 @@ ClassOptions
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:classoptions"
+reference "sub:ClassOptions"
 
 \end_inset
 
@@ -7001,7 +7138,7 @@ Counter
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -7045,7 +7182,7 @@ DefaultFont
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -7163,7 +7300,7 @@ string
 
 \end_inset
 
-] Indicates that the module in question---which should be specified by filename
+] Indicates that the module in questionwhich should be specified by filename
  without the 
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -7174,7 +7311,7 @@ status collapsed
 
 \end_inset
 
- extension---cannot be used with this document class.
+ extensioncannot 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
@@ -7220,7 +7357,7 @@ Float
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:floats"
+reference "sub:Floats"
 
 \end_inset
 
@@ -7299,7 +7436,7 @@ a new character style.
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:charstyle"
+reference "sub:Flex-insets-and"
 
 \end_inset
 
@@ -7390,6 +7527,55 @@ OutputType
  A string indicating what sort of output documents using this class will
  produce.
  At present, the options are: `docbook', `latex', and `literate'.
+\change_inserted 0 1243500198
+
+\end_layout
+
+\begin_layout Description
+
+\change_inserted 0 1243500505
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 0 1243500208
+OutputFormat
+\end_layout
+
+\end_inset
+
+ A string indicating the file format (as defined in the Preferences dialog)
+ produced by this class.
+ It is mainly useful when 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 0 1243500394
+OutputType
+\end_layout
+
+\end_inset
+
+ is `literate' and one wants to define a new type of literate document.
+ This string is reset to `docbook', `latex', or `literate' when the correspondin
+g 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted 0 1243500473
+OutputType
+\end_layout
+
+\end_inset
+
+ parameter is encountered.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Description
@@ -7604,7 +7790,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
 
@@ -7829,7 +8015,7 @@ Style
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:style"
+reference "sub:Paragraph-Styles"
 
 \end_inset
 
@@ -8036,15 +8222,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
@@ -8237,15 +8424,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
@@ -8704,171 +8892,447 @@ status collapsed
 
 \end_inset
 
-] With this parameter the 
-\begin_inset Flex CharStyle:MenuItem
+] With this parameter the 
+\begin_inset Flex CharStyle:MenuItem
+status collapsed
+
+\begin_layout Plain Layout
+Fill
+\end_layout
+
+\end_inset
+
+ value of the 
+\begin_inset Quotes eld
+\end_inset
+
+Vertical space above
+\begin_inset Quotes erd
+\end_inset
+
+ list of 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 can be set when initializing a paragraph with this style.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+Note from Jean-Marc:
+\emph default
+ I'm not sure that this setting has much use, and it should probably be
+ removed in later versions.
+\end_layout
+
+\end_inset
+
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Font
+\end_layout
+
+\end_inset
+
+ The font used for both the text body 
+\emph on
+and
+\emph default
+ the label.
+ See section
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Font-description"
+
+\end_inset
+
+.
+ Note that defining this font automatically defines the 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LabelFont
+\end_layout
+
+\end_inset
+
+ to the same value.
+ So you should define this one first if you also want to define 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LabelFont
+\end_layout
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+FreeSpacing
+\end_layout
+
+\end_inset
+
+\begin_inset CommandInset label
+LatexCommand label
+name "des:FreeSpacing"
+
+\end_inset
+
+[
+\emph on
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+0
+\end_layout
+
+\end_inset
+
+
+\emph default
+, 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
+\end_inset
+
+] Usually LyX doesn't allow you to insert more than one space between words,
+ since a space is considered as the separation between two words, not a
+ character or symbol of its own.
+ This is a very fine thing but sometimes annoying, for example, when typing
+ program code or plain LaTeX code.
+ For this reason, 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+FreeSpacing
+\end_layout
+
+\end_inset
+
+ can be enabled.
+ Note that LyX will create protected blanks for the additional blanks when
+ in another mode than LaTeX-mode.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+BabelPreamble
+\end_layout
+
+\end_inset
+
+ Language dependent information to be included in the LaTeX preamble when
+ this style is used.
+ Note that this will completely override any prior 
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+BabelPreamble
+\end_layout
+
+\end_inset
+
+ declarations.
+ Must end with 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+EndBabelPreamble
+\end_layout
+
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+.
+ The contents of this tag will occur once in the LaTeX preamble for each
+ language used by the document.
+ Each time, the following substitutions are made:
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+$$lang
+\end_layout
+
+\end_inset
+
+ is replaced by the language name (as used by the babel package).
+\end_layout
+
+\begin_layout Itemize
+The 
+\begin_inset Quotes eld
+\end_inset
+
+Function
+\begin_inset Quotes erd
+\end_inset
+
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+_()
+\end_layout
+
+\end_inset
+
+ replaces its argument by the translation of the argument to the current
+ language.
+\end_layout
+
+\begin_layout Standard
+This preamble snippet will only be used if the document contains more than
+ one language and the babel package is used.
+\end_layout
+
+\end_deeper
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+LangPreamble
+\end_layout
+
+\end_inset
+
+ Like 
+\begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Fill
+BabelPreamble
 \end_layout
 
 \end_inset
 
- value of the 
+, 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
 
-Vertical space above
-\begin_inset Quotes erd
-\end_inset
 
- list of the 
-\begin_inset Flex CharStyle:MenuItem
+\begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-Edit\SpecialChar \menuseparator
-Paragraph
-\begin_inset space ~
-\end_inset
-
-Settings
+EndLangPreamble
 \end_layout
 
 \end_inset
 
- dialog can be set when initializing a paragraph with this style.
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-
-\emph on
-Note from Jean-Marc:
-\emph default
- I'm not sure that this setting has much use, and it should probably be
- removed in later versions.
-\end_layout
 
+\begin_inset Quotes erd
 \end_inset
 
+.
 \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
-Font
+LangPreamble
 \end_layout
 
 \end_inset
 
- The font used for both the text body 
-\emph on
-and
-\emph default
- the label.
- See section
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sec:fonts"
-
-\end_inset
-
-.
- Note that defining this font automatically defines the 
+ and 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelFont
+BabelPreamble
 \end_layout
 
 \end_inset
 
- to the same value.
So you should define this one first if you also want to defin
+ to support non-english and even multilanguage documents correctly.
The following excerpt (from th
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-LabelFont
+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
-FreeSpacing
+\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_inset CommandInset label
-LatexCommand label
-name "des:FreeSpacing"
+\begin_layout LyX-Code
+EndPreamble
+\end_layout
 
-\end_inset
+\begin_layout LyX-Code
+LangPreamble
+\end_layout
 
-[
-\emph on
+\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
 
-\emph on
-0
+\backslash
+claimname
 \end_layout
 
 \end_inset
 
-
-\emph default
-, 
+ in the language preamble.
+ This command holds the name of the theorem that will appear in the output.
+ The 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-1
+BabelPreamble
 \end_layout
 
 \end_inset
 
-] Usually LyX doesn't allow you to insert more than one space between words,
- since a space is considered as the separation between two words, not a
- character or symbol of its own.
- This is a very fine thing but sometimes annoying, for example, when typing
- program code or plain LaTeX code.
- For this reason, 
+ then uses the commands offered by the babel package to redefine 
 \begin_inset Flex CharStyle:Code
 status collapsed
 
 \begin_layout Plain Layout
-FreeSpacing
+
+\backslash
+claimname
 \end_layout
 
 \end_inset
 
- can be enabled.
- Note that LyX will create protected blanks for the additional blanks when
- in another mode than LaTeX-mode.
+ for each used language in multilanguage documents.
 \end_layout
 
+\end_deeper
 \begin_layout Description
 \begin_inset Flex CharStyle:Code
 status collapsed
@@ -9100,7 +9564,7 @@ string=""
 The name of the counter for automatic numbering (see Section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -9146,7 +9610,7 @@ LabelFont
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -9235,7 +9699,7 @@ LabelCounter
  in Section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -9285,7 +9749,7 @@ style-name
  Section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -9564,7 +10028,7 @@ Counter
  See Section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:counter"
+reference "sub:Counters"
 
 \end_inset
 
@@ -10775,7 +11239,7 @@ TextFont
  See section 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -10826,15 +11290,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
@@ -11368,15 +11833,16 @@ type
 
 \begin_layout Subsection
 Flex insets and InsetLayout
-\end_layout
-
-\begin_layout Standard
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:charstyle"
+name "sub:Flex-insets-and"
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
 LyX has supported character styles since version 1.4.0; as of version 1.6.0,
  these are called Flex insets.
  
@@ -11990,7 +12456,7 @@ and
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -12108,6 +12574,46 @@ reference "des:FreeSpacing"
 \begin_inset Flex CharStyle:Code
 status collapsed
 
+\begin_layout Plain Layout
+InToc
+\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 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
+\begin_inset Flex CharStyle:Code
+status collapsed
+
 \begin_layout Plain Layout
 KeepEmpty
 \end_layout
@@ -12142,7 +12648,7 @@ LabelFont
 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:fonts"
+reference "sub:Font-description"
 
 \end_inset
 
@@ -12485,15 +12991,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
@@ -12910,15 +13417,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
 
@@ -13448,7 +13956,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
 
@@ -14215,7 +14723,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
 
@@ -15308,34 +15816,13 @@ status collapsed
 \end_layout
 
 \begin_layout Section
+Security discussion
 \begin_inset CommandInset label
 LatexCommand label
 name "sec:Security-discussion"
 
 \end_inset
 
-Security discussion
-\end_layout
-
-\begin_layout Standard
-\begin_inset Box Shadowbox
-position "t"
-hor_pos "c"
-has_inner_box 1
-inner_pos "t"
-use_parbox 0
-width "100col%"
-special "none"
-height "1in"
-height_special "totalheight"
-status open
-
-\begin_layout Plain Layout
-WARNING: This section is definitely outdated.
-\end_layout
-
-\end_inset
-
 
 \end_layout
 
@@ -15386,49 +15873,7 @@ This also implies that you are restricted in what command strings you can
  If you want to use some of the shell features, you should write a safe
  script to do this in a controlled manner, and then invoke the script from
  the command string.
- In the 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-lib/scripts
-\end_layout
-
-\end_inset
-
- directory of the LyX installation, you can find a safe wrapper script 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-general_command_wrapper.py
-\end_layout
-
-\end_inset
-
- that supports redirection of input and output.
- That can serve as an example for how to write safe template scripts.
- For a more advanced example that uses 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-fork
-\end_layout
-
-\end_inset
-
- and friends, take a look at the 
-\begin_inset Flex CharStyle:Code
-status collapsed
-
-\begin_layout Plain Layout
-pic2ascii.py
-\end_layout
-
-\end_inset
-
- converter script.
 \end_layout
 
 \begin_layout Standard