]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Math.lyx
Japanese Tutorial.lyx: update by Koji
[lyx.git] / lib / doc / Math.lyx
index 71a7a1716dc27864334e60cd0103dc59840339cb..674de2ea31d4aff24f0374771bb69f8c0d3471b7 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 337
+#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 348
 \begin_document
 \begin_header
 \textclass scrartcl
@@ -13,7 +13,6 @@
 % the documentation team
 % email: lyx-docs@lists.lyx.org
 
-
 % if pdflatex is used
 \usepackage{ifpdf}
 \ifpdf
 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
 
 % increase link area for cross-references and autoname them,
-% see sec. 22.18.1
 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
-%\renewcommand{\sectionautorefname}{sec.\negthinspace}
-\renewcommand{\subsectionautorefname}{sec.\negthinspace}
-\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
 \newlength{\abc}
 \settowidth{\abc}{\space}
-\renewcommand{\equationautorefname}{\hspace{-\abc}}
+\addto\extrasenglish{
+ \renewcommand{\equationautorefname}{\hspace{-\abc}}
+ \renewcommand{\sectionautorefname}{sec.\negthinspace}
+ \renewcommand{\subsectionautorefname}{sec.\negthinspace}
+ \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}}
 
 % don't load packages twice
 % see first footnote in sec. 9.3
@@ -54,7 +53,7 @@
 
 % the pages of the TOC are numbered roman
 % and a PDF-bookmark for the TOC is added
-\pagenumbering{Roman}
+\pagenumbering{roman}
 \let\myTOC\tableofcontents
 \renewcommand{\tableofcontents}{%
  \vspace{1cm}
  \pagenumbering{arabic}}
 
 % insert additional vertical space of 1.5 mm between footnotes,
-% see sec. 22.16
 \let\myFoot\footnote
 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
 
 % provides caption formatting
 \setkomafont{captionlabel}{\bfseries}
 
-% used in Kap. 22.4
-\usepackage{braket}
-
 % used in Kap. 22.6
 \usepackage[samesize]{cancel}
 
@@ -84,9 +79,6 @@
 \usepackage{multirow}
 \usepackage{multicol}
 
-% needed for diagrams
-\usepackage{amscd}
-
 % needed in sec. 19.4
 \usepackage{remreset}
 
 \renewenvironment{lyxgreyedout}
  {\textcolor{blue}\bgroup}{\egroup}
 
+% ------------------------------------
+% used to check for needed LaTeX packages
+\usepackage{ifthen}
+
 % check for package eurosym
 % used for the Euro symbol
 \newboolean{eurosym}
  {\setboolean{upgreek}{false}}
 \end_preamble
 \options bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
+\use_default_options false
 \language english
 \inputencoding auto
 \font_roman default
 \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 a4paper
@@ -250,7 +246,7 @@ author: Uwe Stöhr
 
 
 \family sans
-Version 1.6svn
+Version 2.0.x
 \end_layout
 
 \begin_layout Standard
@@ -308,13 +304,6 @@ http://wiki.lyx.org/LyX/DocumentationDevelopment#Math
 
 \begin_layout Section
 Introduction
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Introduction"
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
@@ -460,13 +449,6 @@ target "ftp://ctan.tug.org/tex-archive/macros/amstex/doc/amsguide.ps"
 
 \begin_layout Section
 General Instructions
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:General-Instructions"
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
@@ -480,10 +462,12 @@ Formula ! inline
 
 \end_inset
 
- that is embedded into a text line, press 
-\family sans
-Ctrl-m
-\family default
+ that is embedded into a text line, use one of the shortcuts 
+\begin_inset Info
+type  "shortcuts"
+arg   "math-mode"
+\end_inset
+
  or the toolbar button 
 \begin_inset Graphics
        filename ../images/math-mode.png
@@ -505,20 +489,25 @@ Formula ! display style
 
 \end_inset
 
- that will appear bigger and in an own paragraph, press 
-\family sans
-Ctrl-M
-\family default
+ that will appear bigger and in an own paragraph, use one of these shortcuts:
+\begin_inset Info
+type  "shortcuts"
+arg   "math-display"
+\end_inset
+
 .
 \end_layout
 
 \begin_layout Standard
 To change a display style formula to an inline formula, set the cursor into
- the formula and press 
-\family sans
-Ctrl-M
-\family default
- or use the menu 
+ the formula and use one of the shortcuts 
+\begin_inset Info
+type  "shortcuts"
+arg   "math-mode"
+\end_inset
+
+ or the menu 
 \family sans
 Edit\SpecialChar \menuseparator
 Math\SpecialChar \menuseparator
@@ -627,42 +616,7 @@ The TeX-mode
 status collapsed
 
 \begin_layout Plain Layout
-T@
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-TeX-mode
+T@TeX-mode
 \end_layout
 
 \end_inset
@@ -677,24 +631,13 @@ TeX-mode
  or by using the menu 
 \family sans
 Insert\SpecialChar \menuseparator
-T
+Te
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
-{
-\end_layout
-
-\end_inset
-
-e
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
+{}
 \end_layout
 
 \end_inset
@@ -702,9 +645,11 @@ status collapsed
 X Code
 \family default
  (shortcut 
-\family sans
-Ctrl-l
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "ert-insert"
+\end_inset
+
 ).
 \begin_inset Note Note
 status collapsed
@@ -723,8 +668,8 @@ proper names
 \end_layout
 
 \begin_layout Plain Layout
-To avoid that these names are recognized as proper names, TeX-braces are
set around one of the letters of the name.
+To avoid that these names are recognized as proper names, a TeX-brace pair
is inserted.
 \end_layout
 
 \end_inset
@@ -747,24 +692,13 @@ L@LaTeX-preamble
 \family sans
 Document\SpecialChar \menuseparator
 Settings\SpecialChar \menuseparator
-La
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-T
+LaT
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
-}
+{}
 \end_layout
 
 \end_inset
@@ -860,13 +794,11 @@ Mathematical text
 
  is used.
  This mode is invoked with the the shortcut 
-\family sans
-Alt-m
-\begin_inset space ~
+\begin_inset Info
+type  "shortcut"
+arg   "math-mode"
 \end_inset
 
-m
-\family default
  or by the insertion of the command 
 \series bold
 
@@ -939,42 +871,7 @@ A command starts always with a backslash
 status collapsed
 
 \begin_layout Plain Layout
-T@
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-TeX-braces
+T@TeX-braces
 \end_layout
 
 \end_inset
@@ -1010,9 +907,11 @@ always
 
 \begin_layout Standard
 A protected space is inserted with 
-\family sans
-Ctrl-Space
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "space-insert protected"
+\end_inset
+
 .
 \end_layout
 
@@ -1081,7 +980,7 @@ An arrow like
 \end_layout
 
 \begin_layout Subsection*
-Used units
+Available units
 \end_layout
 
 \begin_layout Standard
@@ -1099,11 +998,11 @@ status open
 \begin_layout Plain Layout
 \begin_inset CommandInset label
 LatexCommand label
-name "tab:Used-units"
+name "tab:Available-units"
 
 \end_inset
 
-Used units
+Available units
 \end_layout
 
 \end_inset
@@ -1115,7 +1014,7 @@ Used units
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="13" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -1623,7 +1522,7 @@ _
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -1907,7 +1806,7 @@ dfrac
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -2299,6 +2198,8 @@ For inline fractions with a sloped fraction stroke you can use the command
 
 \backslash
 nicefrac
+\series default
+
 \begin_inset Index
 status collapsed
 
@@ -2310,13 +2211,63 @@ nicefrac
 
 \end_inset
 
+: 
+\begin_inset Formula $\nicefrac{5}{31}$
+\end_inset
+
+ or 
+\series bold
 
+\backslash
+unitfrac
 \series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! U ! 
+\backslash
+unitfrac
+\end_layout
+
+\end_inset
+
 : 
-\begin_inset Formula $\nicefrac{5}{31}$
+\begin_inset Formula $\unitfrac{5}{31}$
+\end_inset
+
+ There is furthermore the command 
+\series bold
+
+\backslash
+unitfracthree
+\series default
+ that offers to write a fraction in combination with a number: 
+\begin_inset Formula $\unitfrac[2]{1}{3}$
 \end_inset
 
 
+\begin_inset Newline newline
+\end_inset
+
+Note that 
+\series bold
+
+\backslash
+unitfracthree
+\series default
+ is not a real LaTeX command but the command
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+unitfrac[number]{numerator}{denominator}
+\series default
+, therefore you cannot use it in TeX code.
 \end_layout
 
 \begin_layout Standard
@@ -2403,7 +2354,7 @@ root
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -2667,12 +2618,12 @@ produces a correct typeset formula:
 \end_layout
 
 \begin_layout Subsection
-Binomial coefficients 
+Binomial Coefficients
 \begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-Binomial coefficient s
+Binomial coefficients
 \end_layout
 
 \end_inset
@@ -2799,7 +2750,7 @@ brack
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="6" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -3056,7 +3007,7 @@ B
 \end_layout
 
 \begin_layout Subsection
-Case differentiations 
+Case Differentiations
 \begin_inset Index
 status collapsed
 
@@ -3073,7 +3024,7 @@ Case differentiations
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -3171,7 +3122,13 @@ spce
 
 \end_inset
 
-Ctrl-Enter
+
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -3213,9 +3170,11 @@ cases
 \end_inset
 
  you can create new lines with the shortcut 
-\family sans
-Ctrl-Return
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
  or the table toolbar button 
 \begin_inset Graphics
        filename ../images/tabular-feature_append-row.png
@@ -3283,7 +3242,7 @@ not
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -3480,7 +3439,7 @@ When displaying e.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 isotopes
@@ -3507,7 +3466,7 @@ reference "sub:Chemical-Symbols-and"
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -3645,7 +3604,7 @@ phantom
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -4063,7 +4022,7 @@ Formula ! underlined
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -4284,7 +4243,10 @@ To double underline e.
 \end_inset
 
 g.
- results, one uses 
+\begin_inset space \space{}
+\end_inset
+
+results, one uses 
 \series bold
 
 \backslash
@@ -4297,8 +4259,96 @@ underline
 It is possible to place up to 6 lines above or below characters.
 \end_layout
 
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+Custom lines can be created using the command 
+\series bold
+
+\backslash
+rule
+\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! R ! 
+\backslash
+rule
+\end_layout
+
+\end_inset
+
+ which has the following scheme:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+rule[vertical offset]{length}{thickness}
+\end_layout
+
+\begin_layout Standard
+The optional vertical offset shifts the line upwards (or downwards, when
+ the value is negative).
+ The units listed in 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Available-units"
+
+\end_inset
+
+ can be used for the values.
+ Here are two example lines created with the commands
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+rule[-2ex]{3cm}{2pt}
+\series default
+ and 
+\series bold
+
+\backslash
+rule{2cm}{1pt}
+\series default
+:
+\end_layout
+
+\begin_layout Standard
+This is a sentence 
+\begin_inset Formula $\rule[-2ex]{3cm}{2pt}\rule{2cm}{1pt}$
+\end_inset
+
+ with two lines.
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+rule
+\series default
+ can also be used for text when it is inserted in TeX-mode.
+\end_layout
+
 \begin_layout Subsection
 Ellipses
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Ellipses"
+
+\end_inset
+
+
 \begin_inset Index
 status collapsed
 
@@ -4392,7 +4442,7 @@ dots
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -5072,9 +5122,11 @@ Rows & Columns
 \family default
  can be used.
  New rows can also be created with 
-\family sans
-Ctrl-Return
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
 .
 \end_layout
 
@@ -5121,11 +5173,11 @@ right
 
  (shortcut 
 \family sans
-Alt-m
+Alt+M
 \begin_inset space ~
 \end_inset
 
-parenthesis
+Parenthesis
 \family default
 ), see 
 \begin_inset CommandInset ref
@@ -5148,7 +5200,7 @@ reference "sub:Automatic-Bracket-Size"
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -5342,7 +5394,7 @@ matrix
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -5529,7 +5581,7 @@ When e.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 
@@ -5638,7 +5690,7 @@ arraystretch
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 the row separation, use the factor 2.
@@ -5730,7 +5782,7 @@ Brackets ! vertical
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="9" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -5954,7 +6006,7 @@ lfloor
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="9" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -6330,7 +6382,7 @@ These commands are used to emphasize levels of brackets:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -6506,9 +6558,6 @@ Bigg)^0,5
 \end_layout
 
 \begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
 Besides the 
 \series bold
 
@@ -6588,7 +6637,7 @@ In the following table is a comparison of the variants:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="middle" width="0">
 <column alignment="center" valignment="middle" width="0">
 <row>
@@ -7012,11 +7061,11 @@ right
 \series default
  the shortcut 
 \family sans
-Alt-m
+Alt+M
 \begin_inset space ~
 \end_inset
 
-bracket
+Bracket
 \family default
  can be used.
  This has the advantage that you can see in LyX immediately the real bracket
@@ -7028,7 +7077,7 @@ The command for the last example would then be:
 \series bold
 
 \backslash
-ln Alt-m
+ln Alt+M
 \series default
  
 \series bold
@@ -7152,7 +7201,7 @@ middle
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 needed for physical vectors:
@@ -7189,7 +7238,7 @@ Brackets ! horizontal
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -7823,6 +7872,13 @@ Arrows can be inserted via the math toolbar button
  or the commands listed in the following subsections.
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Subsection
 Horizontal Arrows
 \begin_inset Index
@@ -7844,7 +7900,7 @@ Arrows ! horizontal
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -8053,7 +8109,7 @@ hookleftarrow
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -8269,7 +8325,7 @@ hookrightarrow
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="6" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -8433,7 +8489,7 @@ rightleftharpoons
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -8576,7 +8632,7 @@ Arrows used as accent like e.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 vector arrows are listed in 
@@ -8662,7 +8718,7 @@ vspace{4mm}
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -8831,7 +8887,7 @@ Arrows ! vertical
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="7" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -9015,7 +9071,7 @@ downarrow
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -9304,7 +9360,7 @@ Accents ! for one character
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -9617,7 +9673,7 @@ A
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="7" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -9883,7 +9939,13 @@ A
 \begin_inset VSpace bigskip
 \end_inset
 
-To create umlauts
+
+\end_layout
+
+\begin_layout Standard
+You can directly insert accents like é to formulas.
+ LyX will transform them to the corresponding accent command.
+ For umlauts
 \begin_inset Index
 status collapsed
 
@@ -9893,7 +9955,7 @@ Umlauts
 
 \end_inset
 
- in formulas, a quotation mark is inserted before the vowel.
+ it is better to insert a quotation mark before the vowel.
  These two characters are then treated by LaTeX as 
 \emph on
 one
@@ -9927,7 +9989,7 @@ real
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -9955,7 +10017,11 @@ status collapsed
 \backslash
 raisebox
 \series default
- is only used as spacer.
+ and the 0
+\begin_inset space \thinspace{}
+\end_inset
+
+pt space are only used as spacer.
 \end_layout
 
 \end_inset
 \begin_inset Text
 
 \begin_layout Plain Layout
+\begin_inset space \hspace{}
+\length 0pt
+\end_inset
+
 
 \lang ngerman
+
 \begin_inset Formula $"i$
 \end_inset
 
@@ -10065,7 +10136,7 @@ in mathematical text
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 to italic or bold.
@@ -10308,13 +10379,6 @@ sideset
 
 \begin_layout Subsection
 Accents for several Characters
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Accents-for-several"
-
-\end_inset
-
-
 \begin_inset Index
 status collapsed
 
@@ -10334,7 +10398,7 @@ Accents ! for several characters
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -10536,7 +10600,7 @@ A=B
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -10865,16 +10929,17 @@ Space ! horizontal ! predefined
 \begin_layout Standard
 Sometimes it is necessary to insert horizontal space to a formula.
  This is done by inserting a protected space (shortcut 
-\family sans
-Ctrl-Space
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "space-insert protected"
+\end_inset
+
 ).
- A blue 
+ A 
 \begin_inset Quotes eld
 \end_inset
 
 
-\series bold
 \color blue
 
 \begin_inset ERT
@@ -10890,7 +10955,6 @@ spce
 \end_inset
 
 
-\series default
 \color inherit
 
 \begin_inset Quotes erd
@@ -10926,7 +10990,7 @@ Space
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="7">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="middle" width="6.8cm">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
@@ -11181,7 +11245,7 @@ The last size seem to produce no space.
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="middle" width="6.8cm">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
@@ -11300,7 +11364,7 @@ Negative spaces can lead to characters overlapping each other.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 useful for summation operators: 
@@ -11310,7 +11374,7 @@ useful for summation operators:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -11448,7 +11512,7 @@ Relations like for example equal signs, are always surrounded by space.
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -11553,9 +11617,11 @@ Thin
 Space
 \family default
  (shortcut 
-\family sans
-Ctrl-Shift-Space
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "space-insert thin"
+\end_inset
+
 ).
 \end_layout
 
@@ -11566,7 +11632,7 @@ An example to visualize the difference:
 \begin_layout Standard
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="left" valignment="top" width="0">
 <column alignment="left" valignment="top" width="0">
 <row>
@@ -11716,15 +11782,11 @@ Space ! horizontal ! variable
 \end_layout
 
 \begin_layout Standard
-Space with a defined length can be inserted in LyX with the command
-\begin_inset Newline newline
-\end_inset
-
-
+Space with a defined length can be inserted with the command 
 \series bold
 
 \backslash
-hspace{length}
+hspace
 \series default
 
 \begin_inset Index
@@ -11739,18 +11801,54 @@ hspace
 \end_inset
 
 .
- For the length all units listed in 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Used-units"
+ Then a long 
+\begin_inset Quotes eld
+\end_inset
+
+
+\color blue
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
 
 \end_inset
 
- are allowed, except of the unit 
+
+\color inherit
+
+\begin_inset Quotes erd
+\end_inset
+
+ appears.
+ The length can be specified by left-clicking on the 
 \begin_inset Quotes eld
 \end_inset
 
-mu
+
+\color blue
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+
+\color inherit
+
 \begin_inset Quotes erd
 \end_inset
 
@@ -11789,7 +11887,7 @@ hfill
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -11797,7 +11895,9 @@ hfill
 \begin_inset Text
 
 \begin_layout Plain Layout
-Command
+Command (
+\backslash
+hspace length)
 \end_layout
 
 \end_inset
@@ -11819,13 +11919,30 @@ Result
 \begin_layout Plain Layout
 A=B
 \backslash
-hspace{3cm
+hspace
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+
 \begin_inset Formula $\to$
 \end_inset
 
 A
 \backslash
-not=C
+not=C (3
+\begin_inset space \thinspace{}
+\end_inset
+
+cm)
 \end_layout
 
 \end_inset
@@ -11850,13 +11967,30 @@ not=C
 \begin_layout Plain Layout
 A
 \backslash
-hspace{-1mm
+hspace
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+
 \begin_inset Formula $\to$
 \end_inset
 
 A
 \backslash
-not=A
+not=A (-1
+\begin_inset space \thinspace{}
+\end_inset
+
+mm)
 \end_layout
 
 \end_inset
@@ -11952,6 +12086,35 @@ reference "sec:Formula-Styles"
 .)
 \end_layout
 
+\begin_layout Standard
+Besides 
+\series bold
+
+\backslash
+hfill
+\series default
+, there are the commands 
+\series bold
+
+\backslash
+dotfill
+\series default
+ and 
+\series bold
+
+\backslash
+hrulefill
+\series default
+ that fill the space with a pattern, see 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Ellipses"
+
+\end_inset
+
+ for an example.
+\end_layout
+
 \begin_layout Standard
 For text, variable space can be inserted via the menu 
 \family sans
@@ -11963,7 +12126,7 @@ Horizontal
 
 Space
 \family default
-, what is not possible in formulas:
+:
 \end_layout
 
 \begin_layout Standard
@@ -12156,7 +12319,7 @@ Boxes
 status collapsed
 
 \begin_layout Plain Layout
-Frames | see 
+Frames | see
 \begin_inset ERT
 status collapsed
 
@@ -12274,7 +12437,7 @@ fbox
 \series default
  an additional formula has to be created by 
 \family sans
-Ctrl-m
+Ctrl+M
 \family default
  within this box
 \begin_inset Foot
@@ -12283,7 +12446,7 @@ status collapsed
 \begin_layout Plain Layout
 Due to a bug in LyX it is not possible to create a new formula with 
 \family sans
-Ctrl-m
+Ctrl+M
 \family default
 , see 
 \begin_inset CommandInset href
@@ -12451,7 +12614,7 @@ status open
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -12466,7 +12629,7 @@ status collapsed
 \begin_layout Plain Layout
 Due to a bug in LyX it is not possible to create a new formula with 
 \family sans
-Ctrl-m
+Ctrl+m
 \family default
 , see 
 \begin_inset CommandInset href
@@ -12534,7 +12697,7 @@ spce
 
 
 \family sans
-Ctrl-m
+Ctrl+M
 \family default
  
 \backslash
@@ -12560,8 +12723,7 @@ A=B
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \raisebox{6mm}{}\fbox{$\int A=B$}\raisebox{-4mm}{}
-
+\begin_inset Formula $\raisebox{6mm}{}\fbox{$\int A=B$}\raisebox{-4mm}{}$
 \end_inset
 
 
@@ -12691,7 +12853,7 @@ spce
 
 
 \family sans
-Ctrl-m
+Ctrl+M
 \family default
  
 \backslash
@@ -13023,7 +13185,7 @@ fbox
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -13131,7 +13293,7 @@ raisebox{-2mm
 \backslash
 {
 \family sans
-Ctrl-m
+Ctrl+M
 \family default
  
 \backslash
@@ -13443,7 +13605,7 @@ yellow
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -14707,7 +14869,7 @@ Options
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="11" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -14737,14 +14899,14 @@ Result
 \begin_layout Plain Layout
 
 \backslash
-sum
+int
 \begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-Commands ! S ! 
+Commands ! I ! 
 \backslash
-sum
+int
 \end_layout
 
 \end_inset
@@ -14758,7 +14920,7 @@ sum
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\sum$
+\begin_inset Formula $\int$
 \end_inset
 
 
@@ -14774,19 +14936,7 @@ sum
 \begin_layout Plain Layout
 
 \backslash
-int
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-Commands ! I ! 
-\backslash
-int
-\end_layout
-
-\end_inset
-
-
+oint
 \end_layout
 
 \end_inset
@@ -14795,7 +14945,7 @@ int
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\int$
+\begin_inset Formula $\oint$
 \end_inset
 
 
@@ -14811,7 +14961,7 @@ int
 \begin_layout Plain Layout
 
 \backslash
-intop
+ointctrclockwise
 \end_layout
 
 \end_inset
@@ -14820,7 +14970,7 @@ intop
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\intop$
+\begin_inset Formula $\ointctrclockwise$
 \end_inset
 
 
@@ -14836,7 +14986,7 @@ intop
 \begin_layout Plain Layout
 
 \backslash
-oint
+ointclockwise
 \end_layout
 
 \end_inset
@@ -14845,7 +14995,7 @@ oint
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\oint$
+\begin_inset Formula $\ointclockwise$
 \end_inset
 
 
@@ -14861,7 +15011,7 @@ oint
 \begin_layout Plain Layout
 
 \backslash
-ointop
+sqint
 \end_layout
 
 \end_inset
@@ -14870,7 +15020,7 @@ ointop
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\ointop$
+\begin_inset Formula $\sqint$
 \end_inset
 
 
@@ -14886,7 +15036,7 @@ ointop
 \begin_layout Plain Layout
 
 \backslash
-ointctrclockwise
+fint
 \end_layout
 
 \end_inset
@@ -14895,7 +15045,8 @@ ointctrclockwise
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\ointctrclockwise$
+\begin_inset Formula $\fint$
 \end_inset
 
 
@@ -14911,7 +15062,7 @@ ointctrclockwise
 \begin_layout Plain Layout
 
 \backslash
-ointclockwise
+landupint
 \end_layout
 
 \end_inset
@@ -14920,7 +15071,8 @@ ointclockwise
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\ointclockwise$
+\begin_inset Formula $\landupint$
 \end_inset
 
 
@@ -14936,7 +15088,7 @@ ointclockwise
 \begin_layout Plain Layout
 
 \backslash
-sqint
+landdownint
 \end_layout
 
 \end_inset
@@ -14945,7 +15097,8 @@ sqint
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\sqint$
+\begin_inset Formula $\landdownint$
 \end_inset
 
 
@@ -15014,8 +15167,8 @@ bigcup
 
 
 \begin_inset Tabular
-<lyxtabular version="3" rows="10" columns="2">
-<features>
+<lyxtabular version="3" rows="11" columns="2">
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -15044,6 +15197,43 @@ Result
 
 \begin_layout Plain Layout
 
+\backslash
+sum
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! S ! 
+\backslash
+sum
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Formula $\sum$
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
 \backslash
 prod
 \begin_inset Index
@@ -15304,32 +15494,32 @@ The operators are called big because they are bigger than the sometimes
 \end_layout
 
 \begin_layout Standard
-The operators 
+For all integral operators there is a second version available, ending on
 \series bold
-
-\backslash
-intop
+op
 \series default
- and 
+: 
 \series bold
 
 \backslash
-ointop
+intop,
 \series default
- are different from 
 \series bold
 
 \backslash
-int
+ointop
 \series default
- and 
+ etc..
+ These operators are different from 
 \series bold
 
 \backslash
-oint
+int
 \series default
-, resp.
-\begin_inset space ~
+ etc.
+\begin_inset space \space{}
 \end_inset
 
 in the style the operator limits are displayed, see 
 d
 \emph default
  and using the keyboard shortcut 
-\family sans
-Alt-c
-\begin_inset space ~
+\begin_inset Info
+type  "shortcut"
+arg   "font-roman"
 \end_inset
 
-r
-\family default
 
 \begin_inset Foot
 status collapsed
@@ -15439,7 +15627,7 @@ For multiple integrals there are the following commands:
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -15564,7 +15752,7 @@ sqiint
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -15702,7 +15890,7 @@ Limits are created by super- and subscripts:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -15818,13 +16006,11 @@ Inline
 \family default
 \series default
  (shortcut 
-\family sans
-Alt-m
-\begin_inset space ~
+\begin_inset Info
+type  "shortcut"
+arg   "math-limits"
 \end_inset
 
-l
-\family default
 ).
  An example:
 \end_layout
@@ -15848,19 +16034,23 @@ Inline
 
 \end_inset
 
-For integrals, except of 
+For integrals, except those ending with 
+\series bold
+op
+\series default
+ like 
 \series bold
 
 \backslash
 intop
 \series default
- and 
+, 
 \series bold
 
 \backslash
 ointop
 \series default
-, the limits are by default set beside the operator.
+ etc., the limits are by default set beside the operator.
  But for multiple integrals the limits are often set below the operator.
  In the following example the limits type was therefore set to 
 \series bold
@@ -15980,9 +16170,11 @@ spce
  The blue box is now within a purple box and now several lines can be written
  among each other.
  A new line is created by inserting a line break (
-\family sans
-Ctrl-Return
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
 ).
  When now
 \begin_inset Newline newline
@@ -15990,7 +16182,7 @@ Ctrl-Return
 
 
 \series bold
-0<k<1000 Ctrl-Return
+0<k<1000 Ctrl+Return
 \begin_inset Newline newline
 \end_inset
 
@@ -16183,7 +16375,7 @@ spce
 
 \end_inset
 
-0<k<1000 Ctrl-Enter
+0<k<1000 Ctrl+Return
 \end_layout
 
 \begin_layout Standard
@@ -16213,6 +16405,13 @@ reference "sub:Self-defined-Operators"
 .
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Subsection
 Binary Operators
 \begin_inset CommandInset label
@@ -16250,7 +16449,7 @@ Binary operators are surrounded by space when there is a character before
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="13" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -16617,7 +16816,7 @@ bullet
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="13" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -16951,7 +17150,7 @@ vee
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="13" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -17552,7 +17751,7 @@ mathop
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 be used to use one limit for several operators:
@@ -17670,7 +17869,7 @@ Latin letters in formulas can be set in one of the following font styles:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="6" columns="3">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
@@ -17748,7 +17947,12 @@ ABC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Alt-c c
+\begin_inset Info
+type  "shortcut"
+arg   "font-noun"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -17799,7 +18003,12 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
--
+\begin_inset Info
+type  "shortcut"
+arg   "font-bold"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -17850,7 +18059,12 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Alt-c b
+\begin_inset Info
+type  "shortcuts"
+arg   "font-boldsymbol"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -17901,7 +18115,12 @@ ABC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Alt-c e
+\begin_inset Info
+type  "shortcut"
+arg   "font-emph"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -17969,7 +18188,7 @@ AbC
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="3">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
@@ -18098,7 +18317,12 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Alt-c r
+\begin_inset Info
+type  "shortcut"
+arg   "font-roman"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -18149,7 +18373,12 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Alt-c s
+\begin_inset Info
+type  "shortcut"
+arg   "font-sans"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -18200,7 +18429,12 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Alt-c p
+\begin_inset Info
+type  "shortcut"
+arg   "font-typewriter"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -18440,6 +18674,133 @@ unboldmath
 \end_inset
 
 
+\end_layout
+
+\begin_layout Subsection
+Colored Formulas
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Formula ! colored
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Formulas can be colored like normal text: Highlight a formula or a formula
+ part and use the 
+\family sans
+Text Style
+\family default
+ dialog.
+ Here is a formula in magenta:
+\begin_inset Formula \[
+{\color{magenta}\int A\,\mathrm{d}x=\frac{\sqrt[5]{B}}{\ln\left(\frac{1}{3}\right)}}\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+You can also define your own colors as described in 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Colored-Boxes"
+
+\end_inset
+
+.
+ They can be used with the TeX code command 
+\series bold
+
+\backslash
+textcolor
+\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! T ! 
+\backslash
+textcolor
+\end_layout
+
+\end_inset
+
+ in the scheme
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+textcolor{color}{characters or formula}
+\end_layout
+
+\begin_layout Standard
+The following example was colored completely dark green and partly red:
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+textcolor{darkgreen}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset Formula \[
+\int A\,\mathrm{d}x=\frac{{\color{red}\sqrt[5]{B}}}{\ln\left(\frac{1}{3}\right)}\]
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Due to a bug in LyX only complete formulas can be colored with self-defined
+ colors.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset CommandInset href
+LatexCommand href
+name "LyX-bug #5269"
+target "http://bugzilla.lyx.org/show_bug.cgi?id=5269"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Subsection
@@ -18669,7 +19030,7 @@ spce
 
 \end_inset
 
-A Alt-m m 
+A Alt+M M 
 \backslash
 Large
 \begin_inset ERT
 \length 1cm
 \end_inset
 
-Alt-m
+Alt+M
 \series default
  
 \series bold
-m 
+M 
 \backslash
 tiny
 \begin_inset ERT
@@ -18815,13 +19176,6 @@ All Greek letters can also be inserted via the toolbar button
 
 \begin_layout Subsection
 Small Letters
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Small-Letters"
-
-\end_inset
-
-
 \begin_inset Index
 status collapsed
 
@@ -18841,7 +19195,7 @@ Greek letters ! small
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="11" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -19125,7 +19479,7 @@ vartheta
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="12" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -19432,7 +19786,7 @@ rho
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="11" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -19755,7 +20109,7 @@ Greek letters ! big
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="7" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -19939,7 +20293,7 @@ Pi
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="6" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -20163,7 +20517,7 @@ boldsymbol
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -20378,7 +20732,7 @@ Symbols ! mathematical
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -20637,7 +20991,7 @@ jmath
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -20936,7 +21290,7 @@ Bbbk
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -21193,13 +21547,6 @@ bot
 \end_inset
 
 
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
 \end_layout
 
 \begin_layout Subsection
@@ -21228,7 +21575,7 @@ Symbols ! miscellaneous
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -21734,7 +22081,7 @@ bullet
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -21996,7 +22343,7 @@ diagdown
 More symbols are listed in 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:Miscellaneous-Special-Characters"
+reference "sub:Miscellaneous-special-Characters"
 
 \end_inset
 
@@ -22030,6 +22377,9 @@ Symbols ! Euro-symbol
 status collapsed
 
 \begin_layout Plain Layout
+
+\backslash
+@
 \begin_inset ERT
 status collapsed
 
@@ -22175,7 +22525,7 @@ An overview about the different Euro symbols:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="3">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
@@ -22449,7 +22799,7 @@ All relations can also be inserted via the toolbar button
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="17" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -22881,7 +23231,7 @@ nmid
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="17" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -23313,7 +23663,7 @@ widehat=
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="17" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -23806,7 +24156,7 @@ stackrel
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -23987,7 +24337,7 @@ italic
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="4">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
@@ -24081,10 +24431,6 @@ sin(x)+B
 \end_inset
 
 
-\begin_inset Newpage pagebreak
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
@@ -24102,7 +24448,7 @@ The following functions are predefined:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="9" columns="4">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
@@ -24657,7 +25003,7 @@ In LyX self-defined functions are displayed red, predefined ones black.
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -24713,7 +25059,7 @@ sgn(x)+B
 A
 \backslash
 ,
-\begin_inset Formula $\underbrace{\textrm{sgn}}_{\textrm{Alt-m}\,\textrm{m}}$
+\begin_inset Formula $\underbrace{\textrm{sgn}}_{\textrm{Alt+M}\,\textrm{M}}$
 \end_inset
 
 (x)+B
@@ -24798,7 +25144,7 @@ limsup
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -24960,7 +25306,7 @@ The limit is created by inserting a subscript.
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -25145,7 +25491,7 @@ The following commands can only be used in mathematical text or in TeX-mode:
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="block" valignment="top" width="0">
 <column alignment="block" valignment="top" width="0">
 <row>
 status collapsed
 
 \begin_layout Plain Layout
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
 
 \backslash
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
 @
 \begin_inset ERT
 status collapsed
@@ -25347,86 +25661,9 @@ status collapsed
 
 
 \backslash
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-textrm
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
+textrm{
 \backslash
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-{
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-AA
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
+AA}
 \end_layout
 
 \end_inset
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="block" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -25822,7 +26059,7 @@ With the following commands all letters can be accented.
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="block" valignment="top" width="0">
 <column alignment="block" valignment="top" width="0">
 <row>
@@ -26150,7 +26387,7 @@ t ee
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="block" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -26660,7 +26897,7 @@ textcircled
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -26911,10 +27148,10 @@ oldstylenums{0123456789
 \end_layout
 
 \begin_layout Subsection
-Miscellaneous Special Characters
+Miscellaneous special Characters
 \begin_inset CommandInset label
 LatexCommand label
-name "sub:Miscellaneous-Special-Characters"
+name "sub:Miscellaneous-special-Characters"
 
 \end_inset
 
@@ -26939,7 +27176,7 @@ The following characters can only be inserted to formulas by using commands:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -27050,7 +27287,9 @@ circ
 status collapsed
 
 \begin_layout Plain Layout
+
+\backslash
+@°
 \end_layout
 
 \end_inset
@@ -27306,13 +27545,32 @@ General
 
 \begin_layout Standard
 In LyX multiline formulas are created by pressing 
-\family sans
 \series bold
-Ctrl-Return
-\family default
+
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
+
 \series default
  inside a formula.
- This creates an 
+ This creates either an 
+\series bold
+eqnarray environment
+\series default
+ that is described in 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Eqnarray-Environment"
+
+\end_inset
+
+ or, when the option 
+\family sans
+Use AMS math package
+\family default
+ in the document settings is selected, an 
 \series bold
 align environment
 \series default
@@ -27340,9 +27598,11 @@ Math
 \begin_layout Standard
 In all multiline formula environments a new line is created by pressing
  
-\family sans
-Ctrl-Return
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
 .
  To add or delete lines, the math toolbar buttons 
 \begin_inset Graphics
@@ -27808,43 +28068,13 @@ Long formulas can be typeset using these methods:
 \begin_layout Itemize
 When one side of the equation is much shorther than the line width, this
  one is chosen for the left side and the right side is typeset over two
- lines:
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
-\end_inset
-
+ lines: 
 \begin_inset Formula \begin{eqnarray}
 H & = & W_{SB}+W_{mv}+W_{D}-\frac{\hbar^{2}}{2m_{0}}\Delta-\frac{\hbar^{2}}{2m_{1}}\Delta_{1}-\frac{\hbar^{2}}{2m_{2}}\Delta_{2}-\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{r}-\mathbf{R}_{1}|}\nonumber \\
- &  & -\hspace{3pt}\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{r}-\mathbf{R}_{2}|}+\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{R}_{1}-\mathbf{R}_{2}|}\label{eq:kurzlang}\end{eqnarray}
+ &  & -\hspace{3pt}\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{r}-\mathbf{R}_{2}|}+\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{R}_{1}-\mathbf{R}_{2}|}\label{eq:shortlong}\end{eqnarray}
 
 \end_inset
 
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-smallskip
-\end_layout
-
-\end_inset
-
-
-\begin_inset Newline newline
-\end_inset
-
 The minus sign at the beginning of the second line does normally not appear
  as operator because it is the first character of the line.
  Thus it would not be surrounded by space and could not be distinguished
@@ -27916,19 +28146,6 @@ lefteqn
  is used.
  It is inserted to the first column of the first line and effects that all
  further insertions overwrite the following columns:
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
-\end_inset
-
-
 \begin_inset Formula \begin{eqnarray}
 \lefteqn{4x^{2}\left(B^{2}+x_{0}^{2}\right)+4x_{0}x\left(D-B^{2}\right)+B^{2}\left(B^{2}-2r_{g}^{2}+2x_{0}^{2}-2r_{k}^{2}\right)+D^{2}}\nonumber \\
  &  & -\hspace{3pt}B^{2}-2B\sqrt{r_{g}^{2}-x^{2}+2x_{0}x-x_{0}^{2}}+r_{g}^{2}-x^{2}+2x_{0}x-x_{0}^{2}\nonumber \\
@@ -27936,23 +28153,6 @@ medskip
 
 \end_inset
 
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-smallskip
-\end_layout
-
-\end_inset
-
-
-\begin_inset Newline newline
-\end_inset
-
 After the insertion of 
 \series bold
 
@@ -27962,35 +28162,13 @@ lefteqn
 , the cursor is in a purple box that is a bit shifted to the left from the
  blue one.
  In this the formula is inserted.
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
-\end_inset
-
-
 \begin_inset Newline newline
 \end_inset
 
 The content of the further lines is inserted to the second or another formula
  column.
  The greater the column number where it was inserted, the larger the indentation.
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
 \end_inset
 
 
@@ -28018,7 +28196,7 @@ The formula doesn't use the full page width.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 the term 
@@ -28360,9 +28538,11 @@ Formula ! multiline ! align environment
 
 \begin_layout Standard
 This Align environment is created by presssing 
-\family sans
-Ctrl-Return
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
  in a formula or by the menu 
 \family sans
 Insert\SpecialChar \menuseparator
@@ -28554,6 +28734,13 @@ pt space was inserted at the beginning of the first column.
 
 \begin_layout Subsection
 Eqnarray Environment
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Eqnarray-Environment"
+
+\end_inset
+
+
 \begin_inset Index
 status collapsed
 
@@ -28919,7 +29106,7 @@ The aligned environment is also suitable for long formulas whose lines are
  As example formula 
 \begin_inset CommandInset ref
 LatexCommand eqref
-reference "eq:kurzlang"
+reference "eq:shortlong"
 
 \end_inset
 
@@ -29160,11 +29347,11 @@ Formula
 \family default
  (shortcut 
 \family sans
-Ctrl-Alt
+Ctrl+Alt
 \begin_inset space ~
 \end_inset
 
-n
+N
 \family default
 ).
  Existing formulas can be numbered with the menu 
@@ -29178,13 +29365,11 @@ Toggle
 Numbering
 \family default
  (shortcut 
-\family sans
-Alt-m
-\begin_inset space ~
+\begin_inset Info
+type  "shortcut"
+arg   "math-number-toggle"
 \end_inset
 
-n
-\family default
 ).
  The formula number is displayed in LyX behind the formula as number sign
  in parentheses.
 
 Line
 \family default
- (shortcut 
-\family sans
-Alt-m
-\begin_inset space ~
+ (shortcut
+\begin_inset Info
+type  "shortcut"
+arg   "math-number-line-toggle"
 \end_inset
 
-N
-\family default
 ) for every line.
 \end_layout
 
@@ -29236,13 +29419,6 @@ reference "sec:Formula-Styles"
 
 \begin_layout Subsection
 Cross-References
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Cross-References"
-
-\end_inset
-
-
 \begin_inset Index
 status collapsed
 
@@ -29291,7 +29467,7 @@ equation
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 section labels.
@@ -30240,7 +30416,7 @@ Counter denotes what kind of numbering is affected, sectioning denotes what
 \end_layout
 
 \begin_layout Standard
-Thus in our case the following LaTeX-preamble or ERT line is used:
+Thus in our case the following LaTeX-preamble or TeX-Code line is used:
 \end_layout
 
 \begin_layout Standard
@@ -30280,7 +30456,7 @@ To number e.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 tables so that the number of the part is the sectioning,
@@ -30299,7 +30475,7 @@ numberwithin{table}{part}
 \begin_layout Standard
 To go back to the standard numbering or to prevent this kind of numbering
  when it is defined by the document class, the following command is inserted
- as ERT or to the LaTeX-preamble:
+ as TeX-Code or to the LaTeX-preamble:
 \end_layout
 
 \begin_layout Standard
@@ -30410,13 +30586,6 @@ makeatother
 
 \begin_layout Subsection
 Numbering with Roman Numbers and Letters
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Numbering-with-Roman"
-
-\end_inset
-
-
 \begin_inset Index
 status collapsed
 
@@ -30488,7 +30657,7 @@ theequation
 \backslash
 roman{equation}
 \series default
-
+.
 \begin_inset Foot
 status collapsed
 
@@ -30508,7 +30677,7 @@ newcommand
  that is described in 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:User-defined-commands"
+reference "sub:The-Command-newcommand"
 
 \end_inset
 
@@ -30517,7 +30686,6 @@ reference "sec:User-defined-commands"
 
 \end_inset
 
-.
  
 \series bold
 equation
@@ -30843,14 +31011,7 @@ target "Formula-numbering.lyx"
 \end_layout
 
 \begin_layout Section
-User-defined commands
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:User-defined-commands"
-
-\end_inset
-
-
+User-defined Commands
 \begin_inset Index
 status collapsed
 
@@ -30864,13 +31025,45 @@ User-defined commands
 \end_layout
 
 \begin_layout Standard
-Many LaTeX-commands are too long to be used frequently.
- But it is possible to define with the command 
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
 \series bold
+Note:
+\series default
+ The names of user-defined commands and macros may only consist of Latin
+ letters.
+\end_layout
 
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+The Command 
 \backslash
 newcommand
-\series default
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:The-Command-newcommand"
+
+\end_inset
+
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+User-defined commands ! 
+\backslash
+newcommand
+\end_layout
+
+\end_inset
+
 
 \begin_inset Index
 status collapsed
@@ -30883,6 +31076,17 @@ newcommand
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
+Many LaTeX-commands are too long to be used frequently.
+ But it is possible to define with the command 
+\series bold
+
+\backslash
+newcommand
+\series default
  new shorter commands.
 \end_layout
 
 \end_inset
 
 
-\end_layout
-
-\begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Plain Layout
-
-\series bold
-Note:
-\series default
- The names of user-defined commands may only consist of Latin letters.
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
 Longrightarrow
 \series default
 , the LaTeX-preamble line is:
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
 \end_inset
 
 
-\series bold
-
 \begin_inset Newline newline
 \end_inset
 
 
+\series bold
+
 \backslash
 newcommand{
 \backslash
@@ -31086,25 +31264,16 @@ underline
 \series default
 , the argument (that should be underlined) must be taken into account.
  For this the preamble line is:
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
 \end_inset
 
 
-\series bold
-
 \begin_inset Newline newline
 \end_inset
 
 
+\series bold
+
 \backslash
 newcommand{
 \backslash
@@ -31113,26 +31282,13 @@ us}[1]{
 underline{#1}}
 \series default
 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
 \end_inset
 
 
-\series bold
-
 \begin_inset Newline newline
 \end_inset
 
-
-\series default
 The character 
 \series bold
 #
@@ -31156,7 +31312,7 @@ framebox
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 define the command 
@@ -31166,25 +31322,16 @@ define the command
 fb
 \series default
 :
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
 \end_inset
 
 
-\series bold
-
 \begin_inset Newline newline
 \end_inset
 
 
+\series bold
+
 \backslash
 newcommand{
 \backslash
@@ -31193,26 +31340,13 @@ fb}[3]{
 framebox#1#2{$#3$}}
 \series default
 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
 \end_inset
 
 
-\series bold
-
 \begin_inset Newline newline
 \end_inset
 
-
-\series default
 The two Dollar signs creates the extra formula needed for 
 \series bold
 
@@ -31238,25 +31372,16 @@ fcolorbox
 \series default
  where the color for the box needn't to be specified, the argument for the
  color is defined optional:
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
 \end_inset
 
 
-\series bold
-
 \begin_inset Newline newline
 \end_inset
 
 
+\series bold
+
 \backslash
 newcommand{
 \backslash
@@ -31265,16 +31390,7 @@ cb}[3][white]{
 fcolorbox{#2}{#1}{$#3$}}
 \series default
 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
 \end_inset
 
 
@@ -31302,7 +31418,7 @@ A test of the new defined commands:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="6" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -31557,13 +31673,23 @@ A=B
 
 \end_layout
 
-\begin_layout Section
-Diagrams
+\begin_layout Subsection
+Math Macros
 \begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-Diagrams
+User-defined commands! Math macros
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Macros
 \end_layout
 
 \end_inset
@@ -31572,48 +31698,1051 @@ Diagrams
 \end_layout
 
 \begin_layout Standard
-To create diagrams, the LaTeX-package 
+User-defined commands are especially convenient for complex expressions.
+ When you are for example dealing in a document with quadratic equations,
+ the same solution type occurs several times.
+ The general form of a quadratic equation is
+\begin_inset Formula \[
+0=\lambda^{2}+p\lambda+q\]
+
+\end_inset
+
+The general form of the solution is
+\begin_inset Formula \[
+\lambda_{1,2}=-\frac{p}{2}\pm\sqrt{\frac{p²}{4}-q}\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To define a command for the solution formula where only the three parameters
+\begin_inset Formula $\lambda$
+\end_inset
+
+, 
+\begin_inset Formula $p$
+\end_inset
+
+, and 
+\begin_inset Formula $q$
+\end_inset
+
+ need to be specified and the index of 
+\begin_inset Formula $\lambda$
+\end_inset
+
+ can be given optionally, the LaTeX-preamble line is
+\begin_inset Newline newline
+\end_inset
+
+
 \series bold
-amscd
-\begin_inset Foot
+
+\backslash
+newcommand{
+\backslash
+qG}[4][1,
+\backslash
+,2]{#2_{#1}=-
+\backslash
+frac{#3}{2}
+\backslash
+pm
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+
+\backslash
+newcommand
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\backslash
+sqrt{
+\backslash
+frac{#3^{2}}{4}-#4}}
+\end_layout
+
+\begin_layout Standard
+To create with this the solution formula, the command
+\begin_inset Newline newline
+\end_inset
+
+
 \series bold
-amscd
+
+\backslash
+qG{
+\backslash
+lambda
+\begin_inset Formula $\to$
+\end_inset
+
+
+\backslash
+{p
+\begin_inset Formula $\to$
+\end_inset
+
+
+\backslash
+{q
 \series default
- is part of every LaTeX standard installation.
+ is inserted to a formula
+\series bold
+.
 \end_layout
 
+\begin_layout Standard
+The definition of the new command is unintuitive because one has to know
+ the schemes of all used LaTeX commands, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
 \end_inset
 
+that a fraction is inserted in LaTeX as 
+\series bold
 
+\backslash
+frac{numerator}{denominator}
 \series default
+.
+ Furthermore one can easily forget a brace in the definition and cannot
+ see in LyX what the new command is doing.
+ To avoid these problems LyX offers the possibility to use math macros instead
+ of the command 
+\series bold
+
+\backslash
+newcommand
+\series default
+.
+\end_layout
+
+\begin_layout Standard
+A math macro is created by using the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\family default
+ or the toolbar button 
+\begin_inset Graphics
+       filename ../images/math-macro_newmacroname_newcommand.png
+       scale 85
+
+\end_inset
+
+.
+ The math macro toolbar appears together with the following box where the
+ macro is defined:
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset space \hspace*{\fill}
+\end_inset
+
+
+\begin_inset Graphics
+       filename clipart/macrobox.png
+       lyxscale 90
+       scale 90
+
+\end_inset
+
+
+\begin_inset space \hspace*{\fill}
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset FormulaMacro
+\newcommand{\qG}[4][1,\,2]{#2_{#1}=-\frac{#3}{2}\pm\sqrt{\frac{#3^{2}}{4}-#4}}
+\end_inset
+
+
+\backslash
+newmacroname is the default name of the macro that should be changed to
+ something sensible.
+ The wanted formula is inserted in the first blue box.
+ An argument placeholder is inserted with the command 
+\series bold
+
+\backslash
+#argumentnumber
+\series default
+, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g
+\begin_inset space \space{}
+\end_inset
+
+
+\series bold
+
+\backslash
+#1
+\series default
+ or by using the macro toolbar button 
+\begin_inset Graphics
+       filename ../images/math-macro-add-param.png
+       scale 85
+
+\end_inset
+
+.
+ Argument placeholders are displayed red.
+ Maximum 9 arguments are possible.
+ Optional arguments are created with the toolbar button 
+\begin_inset Graphics
+       filename ../images/math-macro-add-optional-param.png
+       scale 85
+
+\end_inset
+
+.
+ The first non-optional argument can be transformed to an optional one with
+ the toolbar button 
+\begin_inset Graphics
+       filename ../images/math-macro-make-optional.png
+       scale 85
+
+\end_inset
+
+.
+ In the second blue box the appearance of the macro in LyX can be defined.
+ Normally you want to see it as it is defined, so the box is kept empty.
+ But when you have created a macro that needs lot of space on the screen,
+ you can insert in the box for example
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+qG: 
+\backslash
+#1
+\series default
+\series bold
+,
+\series default
+\series bold
+
+\backslash
+#2
+\series default
+\series bold
+,
+\series default
+\series bold
+
+\backslash
+#3, 
+\backslash
+#4
+\begin_inset Newline newline
+\end_inset
+
+
+\series default
+For the macro only the arguments with the macro name in front of them will
+ then be displayed in LyX, leading to a better overview.
+ The formula appears in the output as defined in the first box.
+\begin_inset Newline newline
+\end_inset
+
+The appearance of macros in formulas can furthermore be changed for single
+ macros by setting the cursor in the macro and using the menu 
+\family sans
+View\SpecialChar \menuseparator
+(Un)fold
+\begin_inset space ~
+\end_inset
+
+Math
+\begin_inset space ~
+\end_inset
+
+Macro
+\family default
+.
+\end_layout
+
+\begin_layout Standard
+To use a macro, the macro name is inserted as command to a formula, in our
+ case 
+\series bold
+
+\backslash
+qG
+\series default
+.
+ Our macro looks in LyX like this:
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset space \hspace*{\fill}
+\end_inset
+
+
+\begin_inset Graphics
+       filename clipart/macrouse.png
+       lyxscale 75
+       scale 75
+
+\end_inset
+
+
+\begin_inset space \hspace*{\fill}
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+Here is our macro example with the arguments 
+\begin_inset Formula $x$
+\end_inset
+
+, 
+\begin_inset Formula $\ln(x)$
+\end_inset
+
+, and 
+\begin_inset Formula $B$
+\end_inset
+
+:
+\end_layout
+
+\begin_layout Standard
+\begin_inset Formula \[
+\qG x{\ln(x)}B\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+A math macro is transformed internally to a 
+\series bold
+
+\backslash
+newcommand
+\series default
+ command when exporting the document.
+ The created 
+\series bold
+
+\backslash
+newcommand
+\series default
+ command is not placed in the LaTeX-preamble, therefore macros can only
+ be used in formulas that are in the document below the macro definition
+ box.
+\end_layout
+
+\begin_layout Standard
+Math macros can also be directly be created from a 
+\series bold
+
+\backslash
+newcommand
+\series default
+ command.
+ When writing for example the command
+\series bold
+
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+newcommand{
+\backslash
+larrow}[2]{
+\backslash
+xleftarrow[#2]{#1}}
+\begin_inset Newline newline
+\end_inset
+
+
+\series default
+in LyX as normal text, highlighting it completely and using then the shortcut
+\family sans
+Ctrl+M
+\family default
+, the command will be transformed to a math macro.
+ Using this method you need to be careful that the 
+\series bold
+
+\backslash
+newcommand
+\series default
+ command is typed correctly, otherwise you get a faulty macro leading to
+ LaTeX errors.
+\end_layout
+
+\begin_layout Standard
+Math macros currently yet have the problem that further formulas in macro
+ definitions are handled wrongly.
+ Therefore the example 
+\series bold
+
+\backslash
+fb
+\series default
+ from 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:The-Command-newcommand"
+
+\end_inset
+
+ cannot be created as macro.
+\end_layout
+
+\begin_layout Standard
+When the cursor is in a macro definition box, you will see the macro toolbar
+ in LyX:
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace defskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Graphics
+       filename clipart/MacroToolbar.png
+
+\end_inset
+
 
 \begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-Packages ! amscd
+Macros ! Toolbar
 \end_layout
 
 \end_inset
 
- is needed.
- It is loaded in the LaTeX-preamble with the line
+
 \end_layout
 
 \begin_layout Standard
+\begin_inset VSpace defskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The macro toolbar contains from left to right the following buttons:
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace defskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Tabular
+<lyxtabular version="3" rows="9" columns="2">
+<features islongtable="true" tabularvalignment="middle">
+<column alignment="left" valignment="top" width="0">
+<column alignment="left" valignment="top" width="85col%">
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-remove-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Remove Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-add-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Append Last Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-make-optional.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Make First Non-Optional into
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Optional Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-make-nonoptional.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Make Last Optional into
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Non-Optional Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-remove-optional-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Remove Optional Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-add-optional-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Insert Optional Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-remove-greedy-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Remove Last Argument
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Spitting Out To The Right
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-append-greedy-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Append Argument
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
 
-\series bold
 
 \backslash
-usepackage{amscd}
+hphantom{
+\end_layout
+
+\end_inset
+
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Eating From The Right
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-add-greedy-optional-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Append Optional Argument
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Eating From The Right
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Diagrams
 \end_layout
 
 \begin_layout Standard
-Diagrams visualize relations and look like this:
+LyX supports two types of commutative diagrams: 
+\series bold
+amscd
+\series default
+ and 
+\series bold
+xymatrix
+\series default
+ that are explained in the following.
+\end_layout
+
+\begin_layout Subsection
+Amscd Diagrams
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Diagrams ! amscd
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Diagrams of this type visualize relations by vertical and horizontal lines
+ or arrows:
 \begin_inset Formula \[
 \begin{CD}A@>>>B@>>>C\\
 @AAA@.@VVV\\
  A blue box appears with two dashed lines where further commands can be
  inserted.
  With 
-\family sans
-Ctrl-Return
-\family default
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
  a new line is created.
  Horizontal relations are inserted in odd, vertical in even formula lines.
 \end_layout
@@ -31755,7 +32886,7 @@ spce
 
 \end_inset
 
-A@>j>>B@>>k>C@=F Ctrl-Enter
+A@>j>>B@>>k>C@=F Ctrl+Return
 \begin_inset Newline newline
 \end_inset
 
@@ -31808,7 +32939,7 @@ status collapsed
 
 
 \series bold
-V@| Ctrl-Enter
+V@| Ctrl+Return
 \begin_inset Newline newline
 \end_inset
 
@@ -31854,6 +32985,69 @@ status collapsed
 D@<<j<E@>k>>F@=C
 \end_layout
 
+\begin_layout Subsection
+Xymatrix Diagrams
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Diagrams ! xymatrix
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To be able to use xymatrices, the LaTeX-package 
+\series bold
+xypic
+\series default
+ must be installed.
+ A xymatrix is created by inserting the command 
+\series bold
+
+\backslash
+xymatrix
+\series default
+ in a formula.
+ Then you are able to add new matrix columns and rows like for normal matrices,
+ see 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Matrices"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Standard
+In contrary to amscd diagrams, xymatrices supports diagonal and curved arrows,
+ and much more.
+ All possibilities to create commutative diagrams and decorations are explained
+ in detail in the 
+\emph on
+XY-pic manual
+\emph default
+ that you find in the menu 
+\family sans
+Help\SpecialChar \menuseparator
+Specific
+\begin_inset space ~
+\end_inset
+
+Manuals\SpecialChar \menuseparator
+XY-pic
+\begin_inset space ~
+\end_inset
+
+Manual
+\family default
+.
+\end_layout
+
 \begin_layout Standard
 \begin_inset Newpage newpage
 \end_inset
@@ -32045,13 +33239,11 @@ The
 This chemical equation can directly be created as formula.
  To avoid that the symbols appear italic, everything is highlighted and
  changed by the shortcut 
-\family sans
-Alt-c
-\begin_inset space ~
+\begin_inset Info
+type  "shortcut"
+arg   "font-roman"
 \end_inset
 
-r
-\family default
  to the upright font style.
 \begin_inset Foot
 status collapsed
@@ -32110,7 +33302,7 @@ An example to visualize the problem:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="right" valignment="top" width="0">
 <column alignment="left" valignment="top" width="0">
 <row>
@@ -32187,7 +33379,7 @@ solution:
 \end_layout
 
 \begin_layout Subsection
-Comma as Decimal Separator
+Comma as decimal Separator
 \begin_inset Index
 status collapsed
 
@@ -32209,13 +33401,11 @@ In LaTeX a comma inside a formula is used, according to the English convention,
 \begin_layout Standard
 To avoid this, the comma is highlighted and changed to mathematical text
  (shortcut 
-\family sans
-Alt-m
-\begin_inset space ~
+\begin_inset Info
+type  "shortcut"
+arg   "math-mode"
 \end_inset
 
-m
-\family default
 ).
 \end_layout
 
@@ -32382,7 +33572,7 @@ The following commands are defined:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -32690,7 +33880,7 @@ The style is a number in the range of 0
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -32907,13 +34097,6 @@ As one can see, the distance of the numerator and the denominator to the
 
 \begin_layout Subsection
 Canceled Formulas
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Canceled-Formulas"
-
-\end_inset
-
-
 \begin_inset Index
 status collapsed
 
@@ -32974,7 +34157,7 @@ There are four ways to cancel formulas:
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
 <row>
@@ -33421,9 +34604,9 @@ texorpdfstring
 To get the same formatting as for the other headings, the complete heading
  was set into a 
 \series bold
-boldmath environment
+boldmath
 \series default
-
+ environment
 \begin_inset Foot
 status collapsed
 
@@ -33664,7 +34847,7 @@ end{multicols}
 
 
 \begin_inset Formula \begin{equation}
-S(t)=S_{0}(t)\int_{-\infty}^{\infty}P(\phi,t)\mathrm{e}^{\mathrm{i}\phi}\,\mathrm{d}\phi\label{eq:fouriertrafo}\end{equation}
+S(t)=S_{0}(t)\int_{-\infty}^{\infty}P(\phi,t)\mathrm{e}^{\mathrm{i}\phi}\,\mathrm{d}\phi\end{equation}
 
 \end_inset
 
@@ -33785,7 +34968,7 @@ reference "sec:Matrices"
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 the command 
 
 \begin_layout Section
 \start_of_appendix
-Typographic Advises
+Typographic Advice
 \begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-Typographic Advises
+Typographic advice
 \end_layout
 
 \end_inset
@@ -34353,6 +35536,40 @@ reference "sub:Predefined-Space"
 \end_inset
 
 .
+\begin_inset Newline newline
+\end_inset
+
+This convention is automatically fulfilled when the command 
+\series bold
+
+\backslash
+unittwo
+\series default
+ is used.
+ When it is entered to a formula, two boxes appear.
+ In the first one the value is inserted, in the second one the unit, and
+ one gets as above: 
+\begin_inset Formula $\unit[30]{km/h}$
+\end_inset
+
+
+\begin_inset space \thinspace{}
+\end_inset
+
+.
+ Note that 
+\series bold
+
+\backslash
+unittwo
+\series default
+ is not a real LaTeX command but the command 
+\series bold
+
+\backslash
+unit[value]{unit}
+\series default
+, therefore you cannot use it in TeX code.
 \end_layout
 
 \begin_layout Itemize
@@ -34399,7 +35616,7 @@ In numbers with more than four digits the smallest space is inserted before
 \end_layout
 
 \begin_layout Itemize
-For dimensionings like 120×90×40
+For dimensions like 120×90×40
 \begin_inset space \thinspace{}
 \end_inset
 
@@ -34412,13 +35629,14 @@ cm the multiplication sign
 \end_inset
 
  is used.
- It is available with the LaTeX-command 
-\series bold
-
-\backslash
-texttimes
-\series default
-, but can also directly be inserted with some keyboard definitions.
+ It is available via the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Special Character\SpecialChar \menuseparator
+Symbols
+\family default
+.
+ With some keyboard definitions it can also be inserted directly.
 \end_layout
 
 \begin_layout Itemize
@@ -34492,7 +35710,7 @@ Some characters and symbols can be created with several commands.
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="12" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>
@@ -34819,7 +36037,7 @@ vert
 
 \begin_inset Tabular
 <lyxtabular version="3" rows="12" columns="2">
-<features>
+<features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
 <row>