]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Math.lyx
Add to credit, sorry Edwin your 2c seem to be the only ones
[lyx.git] / lib / doc / Math.lyx
index 039633152985d717366ad4dd5d2cd4a2216829cd..a73aad2e1718c27a8bf7541674e571fa57c2ac01 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 1.6.0rc3 created this file. For more info see http://www.lyx.org/
-\lyxformat 341
+#LyX 1.6.5 created this file. For more info see http://www.lyx.org/
+\lyxformat 345
 \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
@@ -83,6 +82,9 @@
 % needed in sec. 19.4
 \usepackage{remreset}
 
+% for the Fourier transformation symbol
+\usepackage{mathrsfs}
+
 % center multirows (e.g. in sec. 13.3)
 \renewcommand{\multirowsetup}{\centering}
 
   \setboolean{eurosym}{true}}
  {\setboolean{eurosym}{false}}
 
-% needed in sec. 22.4
 % check for package braket
+% used for physical vectors
 \newboolean{braket}
 \IfFileExists{braket.sty}
  {\usepackage{braket}
   \setboolean{braket}{true}}
  {\setboolean{braket}{false}}
 
-% needed in sec. 22.10
 % check for package upgreek
 \newboolean{upgreek}
 \IfFileExists{upgreek.sty}
  {\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
@@ -247,7 +248,7 @@ author: Uwe Stöhr
 
 
 \family sans
-Version 1.6svn
+Version 1.6.x
 \end_layout
 
 \begin_layout Standard
@@ -264,21 +265,38 @@ LatexCommand tableofcontents
 status open
 
 \begin_layout Plain Layout
-To export this document to PDF, PS, or DVI the LaTeX-packages 
+To export this document to PDF, PS or DVI the LaTeX-packages 
 \series bold
 eurosym,
 \series default
  
 \series bold
-multirow,
+mhchem, multirow
 \series default
  and 
 \series bold
 was
 \series default
  must be installed.
- If they are not installed you can export the document anyway but the sections
- where the packages are required won't appear in the output.
+ If 
+\series bold
+eurosym,
+\series default
+\series bold
+multirow
+\series default
+ or 
+\series bold
+was
+\series default
+ are not installed you can export the document anyway but the sections where
+ the packages are required won't appear in the output.
+ If 
+\series bold
+mhchem
+\series default
+ is not installed, this file cannot be exported.
 \end_layout
 
 \begin_layout Plain Layout
@@ -463,10 +481,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
@@ -488,20 +508,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
@@ -639,9 +664,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
@@ -786,13 +813,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   "font-default"
 \end_inset
 
-m
-\family default
  or by the insertion of the command 
 \series bold
 
@@ -901,9 +926,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
 
@@ -2029,7 +2056,7 @@ cfrac
 \end_inset
 
  can be used.
- Here an example:
+ Here is an example:
 \begin_inset VSpace -3mm
 \end_inset
 
@@ -2055,29 +2082,62 @@ The command for the example above is:
 \series bold
 
 \backslash
-cfrac{A
-\begin_inset Formula $\to$
-\end_inset
+cfrac
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
 
 
 \backslash
-{B+
+spce 
+\end_layout
+
+\end_inset
+
+A
+\begin_inset Formula $\downarrow$
+\end_inset
+
+B+
 \backslash
-cfrac{C+
+cfrac
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
 \backslash
-cfrac{E
-\begin_inset Formula $\to$
+spce 
+\end_layout
+
 \end_inset
 
+C+
+\backslash
+cfrac
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
 
 \backslash
-{F
-\begin_inset Formula $\to\to$
+spce 
+\end_layout
+
 \end_inset
 
+E
+\begin_inset Formula $\downarrow$
+\end_inset
 
-\backslash
-{D
+F
+\begin_inset Formula $\downarrow$
+\end_inset
+
+D
 \end_layout
 
 \begin_layout Standard
@@ -2096,63 +2156,79 @@ cfrac
 \series default
  sets the fraction always in the size of a displayed formula, also when
  it is part of another fraction.
+\end_layout
+
+\begin_layout Standard
+It is possible to specify the alignment of the numerator.
+ The command 
+\series bold
+
+\backslash
+cfracleft
+\series default
+ is used to left align it, the command 
+\series bold
+
+\backslash
+cfracright
+\series default
+ to right-align it.
  
 \series bold
 
 \backslash
 cfrac
 \series default
- has the following command scheme:
+ centers the numerator.
+ These fractions demonstrate the different alignments:
 \end_layout
 
 \begin_layout Standard
+\begin_inset Formula $\cfrac[l]{A}{B+C}$
+\end_inset
+
+, 
+\begin_inset Formula $\cfrac{A}{B+C}$
+\end_inset
+
+, 
+\begin_inset Formula $\cfrac[r]{A}{B+C}$
+\end_inset
 
-\series bold
 
-\backslash
-cfrac[numerator position]{numerator}{denominator}
 \end_layout
 
 \begin_layout Standard
-The numerator position can be 
-\emph on
-l
-\emph default
- , 
-\emph on
-c
-\emph default
-, or 
-\emph on
-r
-\emph default
- .
- l or r aligns the numerator to the left or right, resp.
-\begin_inset space ~
-\end_inset
+\begin_inset Note Greyedout
+status open
 
-with the fraction stroke.
- When 
-\emph on
-c
-\emph default
- or no position is given, the numerator appears centered.
- These fractions demonstrate the different alignments:
-\begin_inset Newline newline
-\end_inset
+\begin_layout Plain Layout
 
+\series bold
+Note:
+\series default
+\series bold
 
+\backslash
+cfracleft
+\series default
+ and 
 \series bold
 
-\begin_inset Formula $\cfrac[l]{A}{B+C}$
-\end_inset
+\backslash
+cfracright
+\series default
+ are no real LaTeX commands but represent the command 
+\series bold
 
-, 
-\begin_inset Formula $\cfrac{A}{B+C}$
-\end_inset
+\backslash
+cfrac[alignment]{numerator}{denominator}
+\series default
+ .
+ Therefore you cannot use them in TeX code.
+\end_layout
 
-, 
-\begin_inset Formula $\cfrac[r]{A}{B+C}$
 \end_inset
 
 
@@ -2240,10 +2316,18 @@ unitfracthree
 \end_inset
 
 
-\begin_inset Newline newline
-\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
 
-Note that 
+\series bold
+Note:
+\series default
 \series bold
 
 \backslash
@@ -2259,7 +2343,13 @@ unitfracthree
 \backslash
 unitfrac[number]{numerator}{denominator}
 \series default
-, therefore you cannot use it in TeX code.
+ .
+ Therefore you cannot use it in TeX code.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -3114,7 +3204,13 @@ spce
 
 \end_inset
 
-Ctrl-Enter
+
+\begin_inset Info
+type  "shortcut"
+arg   "newline-insert newline"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -3156,9 +3252,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
@@ -3423,7 +3521,7 @@ When displaying e.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 isotopes
@@ -3431,7 +3529,7 @@ isotopes
 status collapsed
 
 \begin_layout Plain Layout
-More about chemical symbols is written in 
+Typesetting isotopes and chemical symbols is described in 
 \begin_inset CommandInset ref
 LatexCommand ref
 reference "sub:Chemical-Symbols-and"
@@ -4227,7 +4325,10 @@ To double underline e.
 \end_inset
 
 g.
- results, one uses 
+\begin_inset space \space{}
+\end_inset
+
+results, one uses 
 \series bold
 
 \backslash
@@ -5103,9 +5204,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
 
@@ -5152,11 +5255,11 @@ right
 
  (shortcut 
 \family sans
-Alt-m
+Alt+M
 \begin_inset space ~
 \end_inset
 
-parenthesis
+Parenthesis
 \family default
 ), see 
 \begin_inset CommandInset ref
@@ -5560,7 +5663,7 @@ When e.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 
@@ -5669,7 +5772,7 @@ arraystretch
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 the row separation, use the factor 2.
@@ -7040,11 +7143,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
@@ -7056,7 +7159,7 @@ The command for the last example would then be:
 \series bold
 
 \backslash
-ln Alt-m
+ln Alt+M
 \series default
  
 \series bold
@@ -7180,7 +7283,7 @@ middle
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 needed for physical vectors:
@@ -7764,7 +7867,7 @@ status collapsed
 \begin_inset CommandInset href
 LatexCommand href
 name "LyX-bug #1505"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=1505"
+target "http://www.lyx.org/trac/ticket/1505"
 
 \end_inset
 
@@ -8611,7 +8714,7 @@ Arrows used as accent like e.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 vector arrows are listed in 
@@ -10115,7 +10218,7 @@ in mathematical text
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 to italic or bold.
@@ -10908,16 +11011,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
@@ -10933,7 +11037,6 @@ spce
 \end_inset
 
 
-\series default
 \color inherit
 
 \begin_inset Quotes erd
@@ -11343,7 +11446,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: 
@@ -11596,9 +11699,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
 
@@ -11759,15 +11864,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
@@ -11782,18 +11883,54 @@ hspace
 \end_inset
 
 .
- For the length all units listed in 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Available-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
+
+
+\color inherit
+
+\begin_inset Quotes erd
 \end_inset
 
- are allowed, except of the unit 
+ 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
 
@@ -11840,7 +11977,9 @@ hfill
 \begin_inset Text
 
 \begin_layout Plain Layout
-Command
+Command (
+\backslash
+hspace length)
 \end_layout
 
 \end_inset
@@ -11862,13 +12001,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
@@ -11893,13 +12049,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
@@ -12035,7 +12208,7 @@ Horizontal
 
 Space
 \family default
-, what is not possible in formulas:
+:
 \end_layout
 
 \begin_layout Standard
@@ -12346,31 +12519,10 @@ fbox
 \series default
  an additional formula has to be created by 
 \family sans
-Ctrl-m
-\family default
- within this box
-\begin_inset Foot
-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
-LatexCommand href
-name "LyX-bug #1435"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=1435"
-
-\end_inset
-
-.
-\end_layout
-
-\end_inset
-
-, because the box content will otherwise be treated as mathematical text.
+ within this box, because the box content will otherwise be treated as mathemati
+cal text.
  When 
 \series bold
 
@@ -12387,7 +12539,7 @@ The command
 \backslash
 fbox
 \series default
- is not suitable to frame displayed formulas, because the formula will always
+ is not suitable to frame displayed formulas because the formula will always
  be set in the size of the text.
  
 \series bold
@@ -12496,31 +12648,6 @@ fbox
 
 \begin_layout Standard
 \align center
-\begin_inset Note Note
-status open
-
-\begin_layout Plain Layout
-The table has been set into a minipage to make the footnote appearing.
- Otherwise the footnote text would not be displayed.
-\end_layout
-
-\end_inset
-
-
-\begin_inset Box Frameless
-position "c"
-hor_pos "c"
-has_inner_box 1
-inner_pos "c"
-use_parbox 0
-width "100col%"
-special "none"
-height "1in"
-height_special "totalheight"
-status open
-
-\begin_layout Plain Layout
-\align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
 <features>
@@ -12532,28 +12659,6 @@ status open
 
 \begin_layout Plain Layout
 Command
-\begin_inset Foot
-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
-\family default
-, see 
-\begin_inset CommandInset href
-LatexCommand href
-name "LyX-bug #1435"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=1435"
-
-\end_inset
-
-.
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \end_inset
@@ -12606,7 +12711,7 @@ spce
 
 
 \family sans
-Ctrl-m
+Ctrl+M
 \family default
  
 \backslash
@@ -12632,7 +12737,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{\ensuremath{\int A=B}}\raisebox{-4mm}{}$
 \end_inset
 
 
@@ -12762,7 +12867,7 @@ spce
 
 
 \family sans
-Ctrl-m
+Ctrl+M
 \family default
  
 \backslash
 \end_inset
 
 
-\begin_inset Formula $\framebox[20mm][]{$\frac{A}{B}$}$
+\begin_inset Formula $\framebox[20mm][]{\ensuremath{\frac{A}{B}}}$
 \end_inset
 
 
 \end_inset
 
 
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
@@ -13088,6 +13188,39 @@ When the box should contain a formula, an extra formula is needed like for
 fbox
 \series default
 .
+\series medium
+
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ For 
+\series bold
+
+\backslash
+raisebox
+\series default
+ this extra formula is created by pressing 
+\family sans
+Ctrl+M
+\family default
+ twice instead of once because LyX doesn't yet support 
+\series bold
+
+\backslash
+raisebox
+\series default
+ directly.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -13202,7 +13335,11 @@ raisebox{-2mm
 \backslash
 {
 \family sans
-Ctrl-m
+Ctrl+M
+\family default
+\family sans
+Ctrl+M
 \family default
  
 \backslash
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-$A=
-\backslash
-raisebox{-2mm}{$
-\backslash
-sqrt{B}$}$
-\end_layout
-
+\begin_inset Formula $A=\raisebox{-2mm}{\mbox{\ensuremath{\sqrt{B}}}}$
 \end_inset
 
 
@@ -13253,29 +13379,6 @@ sqrt{B}$}$
 \end_inset
 
 
-\end_layout
-
-\begin_layout Standard
-The last formula can currently only be created using TeX-mode because LyX
- inserts a box instead of the needed extra formula.
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-see 
-\begin_inset CommandInset href
-LatexCommand href
-name "LyX-bug #1435"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=1435"
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
@@ -13438,11 +13541,11 @@ colorbox
 \series default
  can also be part of another box (see the 2nd and 3rd example).
  When the box should contain a formula, an extra formula has to be created,
- the same as for 
+ the same way as for 
 \series bold
 
 \backslash
-fbox
+raisebox
 \series default
 .
 \begin_inset Foot
@@ -13455,15 +13558,6 @@ This also applies for the command
 \backslash
 fcolorbox
 \series default
-.
- Thereby note 
-\begin_inset CommandInset href
-LatexCommand href
-name "LyX-bug #1435"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=1435"
-
-\end_inset
-
 .
 \end_layout
 
@@ -13658,7 +13752,30 @@ colorbox{green
 
 
 \backslash
-{A=B
+{
+\family sans
+Ctrl+M
+\family default
+\family sans
+Ctrl+M
+\family default
+\backslash
+int
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+C=D
 \end_layout
 
 \end_inset
@@ -13667,7 +13784,7 @@ colorbox{green
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}\fbox{\colorbox{green}{A=B}}\raisebox{-3mm}{}$
+\begin_inset Formula $\raisebox{7mm}{}\fbox{\colorbox{green}{\mbox{\ensuremath{\int C=D}}}}\raisebox{-5mm}{}$
 \end_inset
 
 
@@ -14361,7 +14478,7 @@ status collapsed
 \begin_inset CommandInset href
 LatexCommand href
 name "LyX-bug #4483"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=4483"
+target "http://www.lyx.org/trac/ticket/4483"
 
 \end_inset
 
@@ -14808,14 +14925,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
@@ -14829,7 +14946,7 @@ sum
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\sum$
+\begin_inset Formula $\int$
 \end_inset
 
 
@@ -14845,19 +14962,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
@@ -14866,7 +14971,7 @@ int
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\int$
+\begin_inset Formula $\oint$
 \end_inset
 
 
@@ -14882,7 +14987,7 @@ int
 \begin_layout Plain Layout
 
 \backslash
-intop
+ointctrclockwise
 \end_layout
 
 \end_inset
@@ -14891,7 +14996,7 @@ intop
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\intop$
+\begin_inset Formula $\ointctrclockwise$
 \end_inset
 
 
@@ -14907,7 +15012,7 @@ intop
 \begin_layout Plain Layout
 
 \backslash
-oint
+ointclockwise
 \end_layout
 
 \end_inset
@@ -14916,7 +15021,7 @@ oint
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\oint$
+\begin_inset Formula $\ointclockwise$
 \end_inset
 
 
@@ -14932,7 +15037,7 @@ oint
 \begin_layout Plain Layout
 
 \backslash
-ointop
+sqint
 \end_layout
 
 \end_inset
@@ -14941,7 +15046,7 @@ ointop
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\ointop$
+\begin_inset Formula $\sqint$
 \end_inset
 
 
@@ -14957,7 +15062,7 @@ ointop
 \begin_layout Plain Layout
 
 \backslash
-ointctrclockwise
+fint
 \end_layout
 
 \end_inset
@@ -14966,7 +15071,8 @@ ointctrclockwise
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\ointctrclockwise$
+\begin_inset Formula $\fint$
 \end_inset
 
 
@@ -14982,7 +15088,7 @@ ointctrclockwise
 \begin_layout Plain Layout
 
 \backslash
-ointclockwise
+landupint
 \end_layout
 
 \end_inset
@@ -14991,7 +15097,8 @@ ointclockwise
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\ointclockwise$
+\begin_inset Formula $\landupint$
 \end_inset
 
 
@@ -15007,7 +15114,7 @@ ointclockwise
 \begin_layout Plain Layout
 
 \backslash
-sqint
+landdownint
 \end_layout
 
 \end_inset
@@ -15016,7 +15123,8 @@ sqint
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\sqint$
+\begin_inset Formula $\landdownint$
 \end_inset
 
 
@@ -15085,7 +15193,7 @@ bigcup
 
 
 \begin_inset Tabular
-<lyxtabular version="3" rows="10" columns="2">
+<lyxtabular version="3" rows="11" columns="2">
 <features>
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top" width="0pt">
@@ -15115,6 +15223,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
@@ -15375,32 +15520,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
+op
+\series default
+: 
 \series bold
 
 \backslash
 intop
 \series default
- and 
+, 
 \series bold
 
 \backslash
 ointop
 \series default
- are different from 
+ etc..
+ These operators are different from 
 \series bold
 
 \backslash
 int
 \series default
- and 
-\series bold
-
-\backslash
-oint
-\series default
-, resp.
-\begin_inset space ~
+ etc.
+\begin_inset space \space{}
 \end_inset
 
 in the style the operator limits are displayed, see 
@@ -15415,7 +15560,7 @@ reference "sub:Operator-Limits"
 \end_layout
 
 \begin_layout Subsubsection*
-Advices for Integrals
+Advice for Integrals
 \end_layout
 
 \begin_layout Standard
 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
@@ -15870,7 +16013,7 @@ A(x)
 \begin_layout Standard
 Limits of inline formulas are set right beside the operator.
  Limits in displayed formulas are set above or below the operator, except
of integral limits.
for integral limits.
 \end_layout
 
 \begin_layout Standard
@@ -15889,13 +16032,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
@@ -15919,19 +16060,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
@@ -16051,9 +16196,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
@@ -16061,7 +16208,7 @@ Ctrl-Return
 
 
 \series bold
-0<k<1000 Ctrl-Return
+0<k<1000 Ctrl+Return
 \begin_inset Newline newline
 \end_inset
 
@@ -16254,7 +16401,7 @@ spce
 
 \end_inset
 
-0<k<1000 Ctrl-Enter
+0<k<1000 Ctrl+Return
 \end_layout
 
 \begin_layout Standard
@@ -16284,13 +16431,6 @@ 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
@@ -17630,7 +17770,7 @@ mathop
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 be used to use one limit for several operators:
@@ -17826,7 +17966,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
@@ -17877,7 +18022,12 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Ctrl-b
+\begin_inset Info
+type  "shortcut"
+arg   "font-bold"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -17928,7 +18078,12 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Alt-c b or Ctrl-Alt-b
+\begin_inset Info
+type  "shortcuts"
+arg   "font-boldsymbol"
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -17979,7 +18134,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
@@ -18176,7 +18336,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
@@ -18227,7 +18392,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
@@ -18278,7 +18448,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
@@ -18357,8 +18532,8 @@ status collapsed
 \begin_layout Plain Layout
 \begin_inset CommandInset href
 LatexCommand href
-name "LyX-bug #4091"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=4091"
+name "LyX-bug #4629"
+target "http://www.lyx.org/trac/ticket/4629"
 
 \end_inset
 
@@ -18635,7 +18810,7 @@ status collapsed
 \begin_inset CommandInset href
 LatexCommand href
 name "LyX-bug #5269"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=5269"
+target "http://www.lyx.org/trac/ticket/5269"
 
 \end_inset
 
@@ -18874,7 +19049,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
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
 \end_layout
 
 \begin_layout Section
@@ -24903,7 +25085,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
@@ -25176,13 +25358,7 @@ Result
 status collapsed
 
 \begin_layout Plain Layout
-
-\series bold
-
-\backslash
-hspace
-\series default
- and
+The space and
 \series bold
  
 \backslash
@@ -25306,6 +25482,13 @@ In an inline formula less space is set before the function names for all
  variants.
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Section
 Special Characters
 \begin_inset Index
@@ -25584,14 +25767,12 @@ command
 status collapsed
 
 \begin_layout Plain Layout
+The space of 0
+\begin_inset space \thinspace{}
+\end_inset
 
-\series bold
-
-\backslash
-hspace{0mm}
-\series default
- is used for separation, because otherwise the output will be ¡ and ¿ respective
-ly.
+mm is used for separation, because otherwise the output will be ¡ and ¿
+ respectively.
 \end_layout
 
 \end_inset
@@ -27203,6 +27384,13 @@ textdegree
 fi}
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Section
 Formula Styles
 \begin_inset CommandInset label
@@ -27389,10 +27577,14 @@ 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 either an 
@@ -27438,9 +27630,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
@@ -27508,7 +27702,7 @@ see
 \begin_inset CommandInset href
 LatexCommand href
 name "LyX-bug #1505"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=1505"
+target "http://www.lyx.org/trac/ticket/1505"
 
 \end_inset
 
@@ -27907,54 +28101,27 @@ Long formulas can be typeset using these methods:
 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
-
 \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}
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-smallskip
-\end_layout
-
-\end_inset
-
+ &  & -\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}
 
-\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
  from the fraction bar.
- To avoid this, space was inserted behind the minus sign with the command
+ To avoid this, 3
+\begin_inset space \thinspace{}
+\end_inset
+
+pt space was inserted behind the minus sign with the command 
 \series bold
 
 \backslash
-hspace{3pt}
+hspace
 \series default
-
+.
 \begin_inset Foot
 status collapsed
 
@@ -27989,7 +28156,7 @@ hspace
 
 \end_inset
 
-.
+
 \end_layout
 
 \begin_layout Itemize
@@ -28014,19 +28181,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 \\
@@ -28034,23 +28188,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
 
@@ -28060,35 +28197,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
 
 
@@ -28116,7 +28231,7 @@ The formula doesn't use the full page width.
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 the term 
@@ -28139,7 +28254,7 @@ status collapsed
 \begin_inset CommandInset href
 LatexCommand href
 name "LyX-bug #1429"
-target "http://bugzilla.lyx.org/show_bug.cgi?id=1429"
+target "http://www.lyx.org/trac/ticket/1429"
 
 \end_inset
 
@@ -28458,9 +28573,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
@@ -29024,7 +29141,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
 
@@ -29195,7 +29312,7 @@ intertext
  An example where the text was inserted at the beginning of the second line:
 \begin_inset Formula \begin{align}
 I & =a\sqrt{2}\int_{0}^{2\pi}\sqrt{1+\cos(\phi)}\;\mathrm{d}\phi\\
-\intertext{\text{integrand is symmetric to $\phi=\pi$, therefore}} & =2a\sqrt{2}\int_{0}^{\pi}\sqrt{1+\cos(\phi)}\;\mathrm{d}\phi\end{align}
+\intertext{\text{integrand is symmetric to \ensuremath{\phi=\pi}, therefore}} & =2a\sqrt{2}\int_{0}^{\pi}\sqrt{1+\cos(\phi)}\;\mathrm{d}\phi\end{align}
 
 \end_inset
 
@@ -29265,11 +29382,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 
@@ -29283,13 +29400,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
 
 \begin_layout Standard
-Except of inline formulas, all formulas can be numbered with two different
+Except for inline formulas, all formulas can be numbered with two different
  styles, see 
 \begin_inset CommandInset ref
 LatexCommand ref
@@ -29389,7 +29502,7 @@ equation
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 section labels.
@@ -30378,7 +30491,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,
@@ -30579,7 +30692,7 @@ theequation
 \backslash
 roman{equation}
 \series default
-
+.
 \begin_inset Foot
 status collapsed
 
@@ -30599,7 +30712,7 @@ newcommand
  that is described in 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:User-defined-Commands"
+reference "sub:The-Command-newcommand"
 
 \end_inset
 
@@ -30608,7 +30721,6 @@ reference "sec:User-defined-Commands"
 
 \end_inset
 
-.
  
 \series bold
 equation
@@ -30724,7 +30836,7 @@ Alph
 \series default
 
 \begin_inset Index
-status open
+status collapsed
 
 \begin_layout Plain Layout
 Commands ! A ! 
@@ -30754,6 +30866,13 @@ Note:
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage pagebreak
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -30778,7 +30897,7 @@ roman{equation}}
 
 \begin_layout Standard
 \begin_inset Formula \begin{equation}
-A=\textrm{small roman}\label{eq:rom}\end{equation}
+A=\textrm{small roman}\end{equation}
 
 \end_inset
 
@@ -30824,7 +30943,7 @@ alph{equation}}
 
 
 \begin_inset Formula \begin{equation}
-C=\textrm{small Latin}\label{eq:lat}\end{equation}
+C=\textrm{small Latin}\end{equation}
 
 \end_inset
 
@@ -30901,7 +31020,7 @@ arabic{equation}}
 
 
 \begin_inset Formula \begin{equation}
-E=\textrm{Arabic}\label{eq:arab}\end{equation}
+E=\textrm{Arabic}\end{equation}
 
 \end_inset
 
@@ -30926,7 +31045,8 @@ As you see, formulas are numbered serially independent from the numbering
  A description about this can be found in the file 
 \begin_inset CommandInset href
 LatexCommand href
-target "Formula-numbering.lyx"
+name "Formula-numbering.lyx"
+target "run:Formula-numbering.lyx"
 
 \end_inset
 
@@ -30934,10 +31054,10 @@ target "Formula-numbering.lyx"
 \end_layout
 
 \begin_layout Section
-User-defined Commands
+Chemical Symbols and Equations
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:User-defined-Commands"
+name "sub:Chemical-Symbols-and"
 
 \end_inset
 
@@ -30946,148 +31066,172 @@ name "sec:User-defined-Commands"
 status collapsed
 
 \begin_layout Plain Layout
-User-defined commands
+Chemical characters ! Symbols
 \end_layout
 
 \end_inset
 
 
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Chemical equations
 \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
+\end_inset
 
-\backslash
-newcommand
-\series default
 
 \begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-Commands ! N ! 
-\backslash
-newcommand
+Symbols ! chemical
 \end_layout
 
 \end_inset
 
- new shorter commands.
-\end_layout
-
-\begin_layout Standard
-The command scheme of 
-\series bold
 
-\backslash
-newcommand
-\series default
- is:
 \end_layout
 
 \begin_layout Standard
+An example text from chemistry:
+\end_layout
 
-\series bold
+\begin_layout Quote
+The 
+\begin_inset Formula $\mathrm{SO_{4}^{2-}}$
+\end_inset
 
-\backslash
-newcommand{new command name}[number of arguments][optional
-\series default
-\series bold
-value]
-\begin_inset Newline newline
+-ion reacts with two 
+\begin_inset Formula $\mathrm{Na^{+}}$
 \end_inset
 
+-ions to sodium sulfate 
+\begin_inset Formula $\left(\mathrm{Na_{2}SO_{4}}\right)$
+\end_inset
 
-\begin_inset ERT
-status collapsed
+.
+ The chemical equation for this is:
+\begin_inset Formula \begin{equation}
+\mathrm{2\, Na^{+}+SO_{4}^{2-}\longrightarrow Na_{2}SO_{4}}\label{eq:chem-reaction}\end{equation}
 
-\begin_layout Plain Layout
+\end_inset
 
 
-\backslash
-phantom{
 \end_layout
 
+\begin_layout Standard
+This chemical equation can directly be created as formula.
+ To avoid that the symbols appear italic, everything is highlighted and
+ changed by the shortcut 
+\begin_inset Info
+type  "shortcut"
+arg   "font-roman"
 \end_inset
 
-
-\backslash
-newcommand
-\begin_inset ERT
+ to the upright font style.
+\begin_inset Foot
 status collapsed
 
 \begin_layout Plain Layout
+font styles
+\series bold
+\series default
+see 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Font-Styles"
+
+\end_inset
+
 
-}
 \end_layout
 
 \end_inset
 
-{command definition}
+
 \end_layout
 
 \begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Plain Layout
-
-\series bold
-Note:
-\series default
- Assure that the name of the new command is not already used in your document
- or by LaTeX-packages that you use.
- When you for example define the command 
+A more convenient way to typeset chemical formulas is to use the command
 \series bold
 
 \backslash
-le
+ce
 \series default
- for 
-\series bold
 
-\backslash
-Leftarrow
-\series default
-, you get an error message because 
-\series bold
+\begin_inset Index
+status collapsed
 
+\begin_layout Plain Layout
+Commands ! C ! 
 \backslash
-le
-\series default
- is already defined as command for 
-\begin_inset Quotes eld
-\end_inset
-
+ce
+\end_layout
 
-\begin_inset Formula $\le$
 \end_inset
 
+ that is available when the LaTeX-package 
+\series bold
+mhchem
+\series default
 
-\begin_inset Quotes erd
-\end_inset
+\begin_inset Index
+status collapsed
 
-.
+\begin_layout Plain Layout
+Packages ! mhchem
 \end_layout
 
 \end_inset
 
+ is installed.
+ After inserting 
+\series bold
 
+\backslash
+ce
+\series default
+ to a formula a new blue box appears where chemical formulas can be inserted
+ in an intuitive way.
 \end_layout
 
 \begin_layout Standard
-\begin_inset Note Greyedout
-status open
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="9" columns="2">
+<features>
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Command
+\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
+Result
+\begin_inset Note Note
+status collapsed
 
 \begin_layout Plain Layout
 
 \series bold
-Note:
+
+\backslash
+raisebox
 \series default
The names of user-defined commands may only consist of Latin letters.
is only used as spacer.
 \end_layout
 
 \end_inset
@@ -31095,46 +31239,55 @@ Note:
 
 \end_layout
 
-\begin_layout Standard
-The number of arguments is an integer in the range 0
-\begin_inset space \thinspace{}
 \end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+ce
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
 
--
-\begin_inset space \thinspace{}
 \end_inset
 
-9 and specifies how many arguments the new command should have.
- With the optional value a value for an optional argument can be predefined.
- When this is done, the 
-\emph on
-first
-\emph default
-\emph on
-a
-\emph default
-rgument of the new command is automatically an optional one.
+H2CO3
 \end_layout
 
-\begin_layout Standard
-Here are some examples:
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Formula $\raisebox{4.5mm}{}\ce{H2CO3}\raisebox{-2mm}{}$
+\end_inset
+
+
 \end_layout
 
-\begin_layout Itemize
-To define the command 
-\series bold
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
-\backslash
-gr
-\series default
- for 
-\series bold
+\begin_layout Plain Layout
 
 \backslash
-Longrightarrow
-\series default
-, the LaTeX-preamble line is:
+ce
 \begin_inset ERT
 status collapsed
 
@@ -31142,41 +31295,37 @@ status collapsed
 
 
 \backslash
-medskip
+spce 
 \end_layout
 
 \end_inset
 
+SO4^2-
+\end_layout
 
-\series bold
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
 
-\begin_inset Newline newline
+\begin_layout Plain Layout
+\begin_inset Formula $\raisebox{5mm}{}\ce{SO4^{2-}}\raisebox{-2mm}{}$
 \end_inset
 
 
-\backslash
-newcommand{
-\backslash
-gr}{
-\backslash
-Longrightarrow}
 \end_layout
 
-\begin_layout Itemize
-To define the command 
-\series bold
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
 
-\backslash
-us
-\series default
- for 
-\series bold
+\begin_layout Plain Layout
 
 \backslash
-underline
-\series default
-, the argument (that should be underlined) must be taken into account.
- For this the preamble line is:
+ce
 \begin_inset ERT
 status collapsed
 
@@ -31184,26 +31333,37 @@ status collapsed
 
 
 \backslash
-medskip
+spce 
 \end_layout
 
 \end_inset
 
+(NH4)2S
+\end_layout
 
-\series bold
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
 
-\begin_inset Newline newline
+\begin_layout Plain Layout
+\begin_inset Formula $\raisebox{4.5mm}{}\ce{(NH4)2S}\raisebox{-2mm}{}$
 \end_inset
 
 
-\backslash
-newcommand{
-\backslash
-us}[1]{
-\backslash
-underline{#1}}
-\series default
+\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
+ce
 \begin_inset ERT
 status collapsed
 
@@ -31211,22 +31371,1211 @@ status collapsed
 
 
 \backslash
-medskip
+spce 
 \end_layout
 
 \end_inset
 
+KCr(SO4)2.12H2O
+\end_layout
 
-\series bold
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
 
-\begin_inset Newline newline
+\begin_layout Plain Layout
+\begin_inset Formula $\raisebox{4.5mm}{}\ce{KCr(SO4)2.12H2O}\raisebox{-2mm}{}$
 \end_inset
 
 
-\series default
-The character 
-\series bold
-#
+\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
+ce
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+A-B
+\backslash
+dbond
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+C
+\backslash
+tbond
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+D
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Formula $\raisebox{4.5mm}{}\ce{A-B\dbond C\tbond D}\raisebox{-2mm}{}$
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+ce
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+^227
+\begin_inset Formula $\downarrow$
+\end_inset
+
+_90
+\begin_inset Formula $\to$
+\end_inset
+
+Th+
+\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 $\raisebox{5mm}{}\ce{_{90}^{227}Th+}\raisebox{-2mm}{}$
+\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
+ce
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+CO2
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
++
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+C
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+<=>
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+2CO
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Formula $\raisebox{4.5mm}{}\ce{CO2 + C <=> 2CO}\raisebox{-2mm}{}$
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\backslash
+ce
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+CO2
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
++
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+C
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+->[
+\backslash
+alpha][
+\backslash
+beta]
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+2CO}
+\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 $\raisebox{5mm}{}\ce{CO2 + C ->[\alpha][\beta] 2CO}\raisebox{-4mm}{}$
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ Inserting a formula to a 
+\series bold
+
+\backslash
+ce
+\series default
+ box will lead to LaTeX errors.
+ In this case TeX code has to be used like for 
+\series bold
+
+\backslash
+ce{$
+\backslash
+mu
+\backslash
+hyphen$Cl}
+\series default
+: 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+ce{$
+\backslash
+mu
+\backslash
+hyphen$Cl}
+\end_layout
+
+\end_inset
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Using 
+\series bold
+
+\backslash
+ce
+\series default
+ the command for equation
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand eqref
+reference "eq:chem-reaction"
+
+\end_inset
+
+ is:
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+\backslash
+ce
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+2Na+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
++
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+SO4^2-
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+->
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+Na2SO4
+\end_layout
+
+\begin_layout Standard
+To create multiline chemical equations first a multiline formula is created
+ as described in 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Multiline-Formulas"
+
+\end_inset
+
+.
+ Afterwards the command 
+\series bold
+
+\backslash
+ce
+\series default
+ is used in every small blue box of the formula.
+\begin_inset CommandInset ref
+LatexCommand eqref
+reference "eq:TEOS-reaction-1"
+
+\end_inset
+
+ and 
+\begin_inset CommandInset ref
+LatexCommand eqref
+reference "eq:TEOS-reaction-2"
+
+\end_inset
+
+ are an example of a multi-stage chemical reaction where every equation
+ has its own number.
+\begin_inset Formula \begin{eqnarray}
+\ce{TEOS + 4O} & \ce{->} & \ce{Si(OH)4 + 4C2H4O}\label{eq:TEOS-reaction-1}\\
+\ce{Si(OH)4} & \ce{->} & \ce{SiO2 + 2H2O}\label{eq:TEOS-reaction-2}\end{eqnarray}
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Besides 
+\series bold
+
+\backslash
+ce
+\series default
+ the 
+\series bold
+mhchem
+\series default
+ package provides the command 
+\series bold
+
+\backslash
+cf
+\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! C ! 
+\backslash
+cf
+\end_layout
+
+\end_inset
+
+ that has to be used for special cases.
+ For more information about 
+\series bold
+
+\backslash
+cf
+\series default
+ and more examples have a look at the documentation of 
+\series bold
+mhchem
+\series default
+, 
+\begin_inset CommandInset citation
+LatexCommand cite
+key "mhchem"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Section
+Diagrams
+\end_layout
+
+\begin_layout Standard
+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\\
+F@<<<E@<<<D\end{CD}\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To get them, the command 
+\series bold
+
+\backslash
+CD
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! C ! 
+\backslash
+CD
+\end_layout
+
+\end_inset
+
+
+\series default
+ is inserted to a formula.
+ A blue box appears with two dashed lines where further commands can be
+ inserted.
+ With 
+\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
+
+\begin_layout Standard
+To create the relations there are the following commands:
+\end_layout
+
+\begin_layout Itemize
+
+\series bold
+@<<<
+\series default
+ creates a left arrow, 
+\series bold
+@>>>
+\series default
+ a right arrow, and 
+\series bold
+@=
+\series default
+ a long equal sign
+\end_layout
+
+\begin_layout Itemize
+
+\series bold
+@AAA
+\series default
+ creates an up arrow, 
+\series bold
+@VVV
+\series default
+ an down arrow, and 
+\series bold
+@|
+\series default
+ a vertical equal sign
+\end_layout
+
+\begin_layout Itemize
+
+\series bold
+@.
+
+\series default
+ is a placeholder for non-existent relations
+\end_layout
+
+\begin_layout Standard
+All arrows can be labeled as follows:
+\end_layout
+
+\begin_layout Itemize
+Is text inserted between the first and second < or >, resp., it is placed
+ above the arrow.
+ When it is inserted between the second and third one, it appears under
+ the arrow.
+\end_layout
+
+\begin_layout Itemize
+When text for vertical arrows is inserted between the first and second A
+ or V, resp., it is placed left beside the arrow.
+ When it is inserted between the second and third one, it appears right
+ beside the arrow.
+ If the text contains an A or V, these letters must be set into a TeX-brace.
+\end_layout
+
+\begin_layout Standard
+As example a diagram with all possible relations:
+\end_layout
+
+\begin_layout Standard
+\begin_inset Formula \[
+\begin{CD}A@>j>>B@>>k>C@=F\\
+@AmAA@.@VV{V}V@|\\
+D@<<j<E@>k>>F@=C\end{CD}\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The command for this is:
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+CD
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+A@>j>>B@>>k>C@=F Ctrl+Return
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+
+\backslash
+CD
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+@AmAA@.@VV
+\backslash
+{V
+\series default
+
+\begin_inset Formula $\to$
+\end_inset
+
+
+\series bold
+V@| Ctrl+Return
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+
+\backslash
+CD
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+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
+
+
+\end_layout
+
+\begin_layout Section
+User-defined Commands
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+User-defined 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 and macros may only consist of Latin
+ letters.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+The Command 
+\backslash
+newcommand
+\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
+
+\begin_layout Plain Layout
+Commands ! N ! 
+\backslash
+newcommand
+\end_layout
+
+\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
+
+\begin_layout Standard
+The command scheme of 
+\series bold
+
+\backslash
+newcommand
+\series default
+ is:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+newcommand{new command name}[number of arguments][optional
+\series default
+\series bold
+value]
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+phantom{
+\end_layout
+
+\end_inset
+
+
+\backslash
+newcommand
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+{command definition}
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ Assure that the name of the new command is not already used in your document
+ or by LaTeX-packages that you use.
+ When you for example define the command 
+\series bold
+
+\backslash
+le
+\series default
+ for 
+\series bold
+
+\backslash
+Leftarrow
+\series default
+, you get an error message because 
+\series bold
+
+\backslash
+le
+\series default
+ is already defined as command for 
+\begin_inset Quotes eld
+\end_inset
+
+
+\begin_inset Formula $\le$
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The number of arguments is an integer in the range 0
+\begin_inset space \thinspace{}
+\end_inset
+
+-
+\begin_inset space \thinspace{}
+\end_inset
+
+9 and specifies how many arguments the new command should have.
+ With the optional value a value for an optional argument can be predefined.
+ When this is done, the 
+\emph on
+first
+\emph default
+\emph on
+a
+\emph default
+rgument of the new command is automatically an optional one.
+\end_layout
+
+\begin_layout Standard
+Here are some examples:
+\end_layout
+
+\begin_layout Itemize
+To define the command 
+\series bold
+
+\backslash
+gr
+\series default
+ for 
+\series bold
+
+\backslash
+Longrightarrow
+\series default
+, the LaTeX-preamble line is:
+\begin_inset VSpace medskip
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+newcommand{
+\backslash
+gr}{
+\backslash
+Longrightarrow}
+\end_layout
+
+\begin_layout Itemize
+To define the command 
+\series bold
+
+\backslash
+us
+\series default
+ for 
+\series bold
+
+\backslash
+underline
+\series default
+, the argument (that should be underlined) must be taken into account.
+ For this the preamble line is:
+\begin_inset VSpace medskip
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+newcommand{
+\backslash
+us}[1]{
+\backslash
+underline{#1}}
+\series default
+
+\begin_inset VSpace medskip
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+The character 
+\series bold
+#
 \series default
  acts as argument placeholder, the 
 \series bold
@@ -31247,7 +32596,7 @@ framebox
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 define the command 
@@ -31257,25 +32606,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
@@ -31284,26 +32624,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
 
@@ -31329,25 +32656,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
@@ -31356,16 +32674,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
 
 
@@ -31648,29 +32957,23 @@ A=B
 
 \end_layout
 
-\begin_layout Section
-Diagrams
-\end_layout
+\begin_layout Subsection
+Math Macros
+\begin_inset Index
+status collapsed
 
-\begin_layout Standard
-LyX supports two types of commutative diagrams: 
-\series bold
-amscd
-\series default
- and 
-\series bold
-xymatrix
-\series default
- that are explained in the following.
+\begin_layout Plain Layout
+User-defined commands! Math macros
 \end_layout
 
-\begin_layout Subsection
-Amscd Diagrams
+\end_inset
+
+
 \begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-Diagrams ! amscd
+Macros
 \end_layout
 
 \end_inset
@@ -31679,12 +32982,18 @@ Diagrams ! amscd
 \end_layout
 
 \begin_layout Standard
-Diagrams of this type visualize relations by vertical and horizontal lines
- or arrows:
+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 \[
-\begin{CD}A@>>>B@>>>C\\
-@AAA@.@VVV\\
-F@<<<E@<<<D\end{CD}\]
+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
 
@@ -31692,156 +33001,602 @@ F@<<<E@<<<D\end{CD}\]
 \end_layout
 
 \begin_layout Standard
-To get them, the command 
+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
 
 \backslash
-CD
-\begin_inset Index
+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
-Commands ! C ! 
+
+
 \backslash
-CD
+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
+
+\backslash
+qG{
+\backslash
+lambda
+\begin_inset Formula $\to$
+\end_inset
+
+
+\backslash
+{p
+\begin_inset Formula $\to$
 \end_inset
 
 
+\backslash
+{q
 \series default
- is inserted to a formula.
- A blue box appears with two dashed lines where further commands can be
- inserted.
- With 
-\family sans
-Ctrl-Return
-\family default
- a new line is created.
- Horizontal relations are inserted in odd, vertical in even formula lines.
+ is inserted to a formula
+\series bold
+.
 \end_layout
 
 \begin_layout Standard
-To create the relations there are the following commands:
+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 Itemize
+\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
+
+\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
- creates a left arrow, 
+, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g
+\begin_inset space \space{}
+\end_inset
+
+
 \series bold
-@>>>
+
+\backslash
+#1
 \series default
- a right arrow, and 
+ 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
- a long equal sign
-\end_layout
+\series bold
+,
+\series default
+\series bold
 
-\begin_layout Itemize
+\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
-@AAA
+
+\backslash
+qG
 \series default
- creates an up arrow, 
+.
+ 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
+
+\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
+LyX offers in the menu 
+\family sans
+Tools\SpecialChar \menuseparator
+Preferences\SpecialChar \menuseparator
+Editing\SpecialChar \menuseparator
+Control
+\family default
+ different styles to edit macros.
+ To find the style that suits you the most, choose a style and set the cursor
+ in a macro formula to see the difference.
+\end_layout
+
+\begin_layout Standard
+A math macro is transformed internally to a 
 \series bold
-@VVV
+
+\backslash
+newcommand
 \series default
- an down arrow, and 
+ command when exporting the document.
+ The created 
 \series bold
-@|
+
+\backslash
+newcommand
 \series default
- a vertical equal sign
+ 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 Itemize
+\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
- is a placeholder for non-existent relations
+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
-All arrows can be labeled as follows:
+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 Itemize
-Is text inserted between the first and second < or >, resp., it is placed
- above the arrow.
- When it is inserted between the second and third one, it appears under
- the arrow.
+\begin_layout Standard
+When the cursor is in a macro definition box, you will see the macro toolbar
+ in LyX:
 \end_layout
 
-\begin_layout Itemize
-When text for vertical arrows is inserted between the first and second A
- or V, resp., it is placed left beside the arrow.
- When it is inserted between the second and third one, it appears right
- beside the arrow.
- If the text contains an A or V, these letters must be set into a TeX-brace.
+\begin_layout Standard
+\begin_inset VSpace defskip
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
-As example a diagram with all possible relations:
+\begin_inset Graphics
+       filename clipart/MacroToolbar.png
+
+\end_inset
+
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Macros ! Toolbar
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \[
-\begin{CD}A@>j>>B@>>k>C@=F\\
-@AmAA@.@VV{V}V@|\\
-D@<<j<E@>k>>F@=C\end{CD}\]
+\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">
+<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
 
-\begin_layout Standard
-The command for this is:
-\begin_inset Newline newline
 \end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
+\begin_layout Plain Layout
 
-\series bold
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
 
-\backslash
-CD
-\begin_inset ERT
-status collapsed
+Definition\SpecialChar \menuseparator
+Remove 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-add-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
+
+\end_inset
 
 
-\backslash
-spce 
 \end_layout
 
 \end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
-A@>j>>B@>>k>C@=F Ctrl-Enter
-\begin_inset Newline newline
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
 \end_inset
 
+Definition\SpecialChar \menuseparator
+Append Argument
+\end_layout
 
-\begin_inset ERT
-status collapsed
+\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
 
 
-\backslash
-hphantom{
 \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
 
 
-\backslash
-CD
 \begin_inset ERT
 status collapsed
 
@@ -31849,11 +33604,18 @@ status collapsed
 
 
 \backslash
-spce 
+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
@@ -31865,36 +33627,47 @@ status collapsed
 
 \end_inset
 
-@AmAA@.@VV
-\backslash
-{V
-\series default
+Optional Argument
+\end_layout
 
-\begin_inset Formula $\to$
 \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
 
-\series bold
-V@| Ctrl-Enter
-\begin_inset Newline newline
 \end_inset
 
 
-\begin_inset ERT
-status collapsed
+\end_layout
 
-\begin_layout Plain Layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
+\begin_layout Plain Layout
 
-\backslash
-hphantom{
-\end_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
 
 
-\backslash
-CD
 \begin_inset ERT
 status collapsed
 
@@ -31902,11 +33675,18 @@ status collapsed
 
 
 \backslash
-spce 
+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
@@ -31918,98 +33698,117 @@ status collapsed
 
 \end_inset
 
-D@<<j<E@>k>>F@=C
+Non-Optional Argument
 \end_layout
 
-\begin_layout Subsection
-Xymatrix Diagrams
-\begin_inset Index
-status collapsed
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
 \begin_layout Plain Layout
-Diagrams ! xymatrix
-\end_layout
+\begin_inset Graphics
+       filename ../images/math-macro-remove-optional-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
 
 \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
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
-\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"
+\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
 
-\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 this manual: 
-\begin_inset CommandInset href
-LatexCommand href
-target "http://wiki.lyx.org/LyX/XY-pic#xy-manual"
-
 \end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
-.
-\end_layout
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-add-optional-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
 
-\begin_layout Standard
-\begin_inset Newpage newpage
 \end_inset
 
 
 \end_layout
 
-\begin_layout Section
-Tips
-\begin_inset ERT
-status collapsed
+\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
 
-\backslash
-texorpdfstring{
+Definition\SpecialChar \menuseparator
+Insert Optional Argument
 \end_layout
 
 \end_inset
-
-
-\begin_inset Foot
-status collapsed
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
 \begin_layout Plain Layout
-Other useful math tips can be found in 
-\begin_inset CommandInset citation
-LatexCommand cite
-key "Voss"
+\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
@@ -32017,63 +33816,92 @@ 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 Note Note
+\begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
-\backslash
-texorpdfstring is used to avoid that the footnote appears in the PDF-bookmark.
+}
 \end_layout
 
-\begin_layout Plain Layout
-More about 
-\backslash
-texorpdfstring is in section 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sub:Formulas-in-Section"
-
 \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
 
-\begin_inset Index
-status collapsed
 
-\begin_layout Plain Layout
-Tips
 \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 Index
-status collapsed
 
-\begin_layout Plain Layout
-Ions|see
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
-{
+
+\backslash
+hphantom{
 \end_layout
 
 \end_inset
 
-Chemical characters
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
 \begin_inset ERT
 status collapsed
 
@@ -32084,110 +33912,104 @@ status collapsed
 
 \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
 
-
-\end_layout
-
-\begin_layout Subsection
-Chemical Symbols and Equations
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Chemical-Symbols-and"
+\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
 
 
-\begin_inset Index
-status collapsed
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
 \begin_layout Plain Layout
-Chemical characters ! Symbols
-\end_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 Index
+\begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
-Chemical equations
+
+
+\backslash
+hphantom{
 \end_layout
 
 \end_inset
 
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
 
-\begin_inset Index
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
-Symbols ! chemical
+
+}
 \end_layout
 
 \end_inset
 
-
-\end_layout
-
-\begin_layout Standard
-An example text from chemistry:
+Eating From The Right
 \end_layout
 
-\begin_layout Quote
-The 
-\begin_inset Formula $\mathrm{SO_{4}^{2-}}$
 \end_inset
+</cell>
+</row>
+</lyxtabular>
 
--ion reacts with two 
-\begin_inset Formula $\mathrm{Na^{+}}$
 \end_inset
 
--ions to sodium sulfate 
-\begin_inset Formula $\left(\mathrm{Na_{2}SO_{4}}\right)$
-\end_inset
 
-.
- The chemical equation for this is:
-\begin_inset Formula \[
-\mathrm{2\, Na^{+}+SO_{4}^{2-}\longrightarrow Na_{2}SO_{4}}\]
+\end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
 \end_inset
 
 
 \end_layout
 
-\begin_layout Standard
-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 ~
-\end_inset
-
-r
-\family default
- to the upright font style.
-\begin_inset Foot
+\begin_layout Section
+Tips
+\begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-font styles
-\series bold
-\series default
-see 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sub:Font-Styles"
-
-\end_inset
-
-
+Tips
 \end_layout
 
 \end_inset
@@ -32328,13 +34150,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
 
@@ -33108,13 +34928,7 @@ Result
 status collapsed
 
 \begin_layout Plain Layout
-
-\series bold
-
-\backslash
-hspace
-\series default
- and
+The space and
 \series bold
  
 \backslash
@@ -33730,6 +35544,8 @@ As example a multi-column text with a displayed formula:
 \end_layout
 
 \begin_layout Standard
+
+\lang german
 \begin_inset ERT
 status collapsed
 
@@ -33743,21 +35559,21 @@ begin{multicols}{2}
 \end_inset
 
 Das Spektrum wird fouriertransformiert.
the Fouriertransformation wird verwendet, um the überlagerten Signale (Netzwerk
Die Fouriertransformation wird verwendet, um die überlagerten Signale (Netzwerk
 , Lösungsmittel) zu trennen.
- Nachdem wir the Phasenverschiebung bestimmen konnten, interessiert uns
+ Nachdem wir die Phasenverschiebung bestimmen konnten, interessiert uns
  nun das Aussehen des Ausgangssignals.
- Im Experiment haben wir es with sehr vielen Teilchen zu tun, so that man
+ Im Experiment haben wir es mit sehr vielen Teilchen zu tun, so dass man
  über alle Phasen integrieren muss.
  Sei nun 
 \begin_inset Formula $S$
 \end_inset
 
- unser normiertes Ausgangssignal and 
+ unser normiertes Ausgangssignal und 
 \begin_inset Formula $P$
 \end_inset
 
the Phasenverteilungsfunktion, so ergibt sich the Beziehung
die Phasenverteilungsfunktion, so ergibt sich die Beziehung
 \begin_inset ERT
 status collapsed
 
@@ -33776,7 +35592,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
 
@@ -33797,13 +35613,13 @@ wobei
 \begin_inset Formula $S_{0}$
 \end_inset
 
- das Signal ohne Gradient ist and the Normierungsbedingung 
+ das Signal ohne Gradient ist und die Normierungsbedingung 
 \begin_inset Formula $\int_{-\infty}^{\infty}P(\phi,t)\,\mathrm{d}\phi=1$
 \end_inset
 
  gilt.
- Nun dürfen wir aber nicht the Relaxationsprozess außer Acht lassen.
- Direkt nach the 
+ Nun dürfen wir aber nicht den Relaxationsprozess außer Acht lassen.
+ Direkt nach dem 
 \begin_inset Formula $\nicefrac{\pi}{2}$
 \end_inset
 
@@ -33811,9 +35627,9 @@ wobei
 \begin_inset space \thinspace{}
 \end_inset
 
--rf-Puls beginnt sich the Magnetisierung zu entfokussieren, wodurch sich
+-rf-Puls beginnt sich die Magnetisierung zu entfokussieren, wodurch sich
  das Signal zusätzlich abschwächt.
- Diese Abschwächung verläuft exponentiell in Abhängigkeit the so genannten
+ Diese Abschwächung verläuft exponentiell in Abhängigkeit der so genannten
  
 \begin_inset Formula $T_{2}$
 \end_inset
@@ -33822,6 +35638,8 @@ wobei
 \end_layout
 
 \begin_layout Standard
+
+\lang german
 \begin_inset ERT
 status collapsed
 
@@ -33834,7 +35652,7 @@ end{multicols}
 
 \end_inset
 
+
 \end_layout
 
 \begin_layout Subsection
@@ -33897,7 +35715,7 @@ reference "sec:Matrices"
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 the command 
@@ -34133,7 +35951,7 @@ The following table will only be displayed when the LaTeX-package
 \series bold
 upgreek
 \series default
- is installed.
+ is installed:
 \end_layout
 
 \end_inset
@@ -34558,13 +36376,19 @@ cm the multiplication sign
 \end_inset
 
  is used.
- It is available with the LaTeX-command 
+ It is available either via the command 
 \series bold
 
 \backslash
-texttimes
+times
 \series default
-, but can also directly be inserted with some keyboard definitions.
+ or via the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Special Character\SpecialChar \menuseparator
+Symbols
+\family default
+.
 \end_layout
 
 \begin_layout Itemize
@@ -34601,6 +36425,92 @@ The differentiation/integration operator 'd', the Euler's number 'e', and
  other variables.
 \end_layout
 
+\begin_layout Itemize
+The character that denotes a 
+\noun on
+Fourier
+\noun default
+ transformation is inserted either by the command 
+\series bold
+
+\backslash
+mathscr
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce 
+\end_layout
+
+\end_inset
+
+
+\backslash
+{F
+\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! M ! 
+\backslash
+mathscr
+\end_layout
+
+\end_inset
+
+ or via the menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Special Character\SpecialChar \menuseparator
+Symbols\SpecialChar \menuseparator
+Letterlike
+\begin_inset space ~
+\end_inset
+
+Symbols
+\family default
+: 
+\begin_inset Formula $\mathscr{F}$
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+To be able to use the command 
+\series bold
+
+\backslash
+mathscr
+\series default
+, the LaTeX package 
+\series bold
+mathrsfs
+\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Packages ! mathrsfs
+\end_layout
+
+\end_inset
+
+ needs to be loaded with the LaTeX-preamble line 
+\series bold
+
+\backslash
+usepackage{mathrsfs}
+\series default
+.
+\end_layout
+
 \begin_layout Standard
 \begin_inset Newpage newpage
 \end_inset
@@ -35306,24 +37216,6 @@ target "ftp://ftp.dante.de/tex-archive/info/math/voss/mathmode/Mathmode.pdf"
  of LaTeX's math abilities
 \end_layout
 
-\begin_layout Bibliography
-\begin_inset CommandInset bibitem
-LatexCommand bibitem
-key "Voss"
-
-\end_inset
-
-LaTeX tips and tricks-
-\begin_inset CommandInset href
-LatexCommand href
-name "page"
-target "http://tug.org/TeXnik/"
-
-\end_inset
-
-
-\end_layout
-
 \begin_layout Bibliography
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
@@ -35403,6 +37295,38 @@ Packages ! hyperref
 \end_inset
 
 
+\end_layout
+
+\begin_layout Bibliography
+\begin_inset CommandInset bibitem
+LatexCommand bibitem
+key "mhchem"
+
+\end_inset
+
+
+\begin_inset CommandInset href
+LatexCommand href
+name "Documentation"
+target "http://www.ctan.org/tex-archive/macros/latex/contrib/mhchem/mhchem.pdf"
+
+\end_inset
+
+ of the LaTeX-package 
+\series bold
+mhchem
+\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Packages ! mhchem
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Bibliography
@@ -35464,7 +37388,7 @@ Duden Band 1
  Auflage, Duden 2001
 \end_layout
 
-\begin_layout Subsubsection*
+\begin_layout Standard
 \begin_inset CommandInset index_print
 LatexCommand printindex