]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Math.lyx
- Math.lyx: describe the new support for chemical equations
[lyx.git] / lib / doc / Math.lyx
index a54bdb433505fbdc391f23843d3f261f1b81f01e..070122d981b2f131f2ab5822dae825b8e3ad690a 100644 (file)
@@ -1,4 +1,4 @@
-#LyX 1.6.2svn created this file. For more info see http://www.lyx.org/
+#LyX 1.6.4svn created this file. For more info see http://www.lyx.org/
 \lyxformat 345
 \begin_document
 \begin_header
@@ -2063,29 +2063,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
@@ -2104,63 +2137,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
 
 
@@ -2248,10 +2297,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
@@ -2267,7 +2324,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
@@ -3447,7 +3510,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"
@@ -7785,7 +7848,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
 
@@ -12439,29 +12502,8 @@ fbox
 \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
-\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
 
@@ -12478,7 +12520,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
@@ -12587,31 +12629,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>
@@ -12623,28 +12640,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
@@ -12723,7 +12718,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
 
 
 \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
@@ -13179,6 +13169,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
@@ -13296,6 +13319,10 @@ raisebox{-2mm
 Ctrl+M
 \family default
  
+\family sans
+Ctrl+M
+\family default
 \backslash
 sqrt
 \begin_inset ERT
 \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
 
 
@@ -13344,29 +13360,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
@@ -13529,11 +13522,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
@@ -13546,15 +13539,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
 
@@ -13749,7 +13733,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
@@ -13758,7 +13765,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
 
 
@@ -14452,7 +14459,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
 
@@ -18513,8 +18520,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
 
@@ -18791,7 +18798,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
 
@@ -27662,7 +27669,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
 
@@ -28214,7 +28221,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
 
@@ -29272,7 +29279,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
 
@@ -31006,44 +31013,10 @@ target "Formula-numbering.lyx"
 \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
+Chemical Symbols and Equations
 \begin_inset CommandInset label
 LatexCommand label
-name "sub:The-Command-newcommand"
+name "sub:Chemical-Symbols-and"
 
 \end_inset
 
@@ -31052,9 +31025,7 @@ name "sub:The-Command-newcommand"
 status collapsed
 
 \begin_layout Plain Layout
-User-defined commands ! 
-\backslash
-newcommand
+Chemical characters ! Symbols
 \end_layout
 
 \end_inset
@@ -31064,122 +31035,45 @@ newcommand
 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:
+Chemical equations
 \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
+\begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-
-
-\backslash
-phantom{
+Symbols ! chemical
 \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
+An example text from chemistry:
+\end_layout
 
-\backslash
-le
-\series default
- is already defined as command for 
-\begin_inset Quotes eld
+\begin_layout Quote
+The 
+\begin_inset Formula $\mathrm{SO_{4}^{2-}}$
 \end_inset
 
-
-\begin_inset Formula $\le$
+-ion reacts with two 
+\begin_inset Formula $\mathrm{Na^{+}}$
 \end_inset
 
-
-\begin_inset Quotes erd
+-ions to sodium sulfate 
+\begin_inset Formula $\left(\mathrm{Na_{2}SO_{4}}\right)$
 \end_inset
 
 .
-\end_layout
+ 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}
 
 \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{}
+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
 
-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
+ to the upright font style.
+\begin_inset Foot
+status collapsed
 
-\backslash
-gr
-\series default
- for 
+\begin_layout Plain Layout
+font styles
 \series bold
-
-\backslash
-Longrightarrow
 \series default
-, the LaTeX-preamble line is:
-\begin_inset VSpace medskip
-\end_inset
-
+see 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Font-Styles"
 
-\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
-1
-\series default
- behind it denotes that it is the placeholder for the first argument.
 \end_layout
 
-\begin_layout Itemize
-For 
-\series bold
-
-\backslash
-framebox
-\series default
- one can e.
-\begin_inset space \thinspace{}
-\end_inset
-
-g.
-\begin_inset space \space{}
-\end_inset
-
-define the command 
-\series bold
-
-\backslash
-fb
-\series default
-:
-\begin_inset VSpace medskip
-\end_inset
-
-
-\begin_inset Newline newline
-\end_inset
-
-
+\begin_layout Standard
+A more convenient way to typeset chemical formulas is to use the command
 \series bold
 
 \backslash
-newcommand{
-\backslash
-fb}[3]{
-\backslash
-framebox#1#2{$#3$}}
+ce
 \series default
 
-\begin_inset VSpace medskip
-\end_inset
-
-
-\begin_inset Newline newline
-\end_inset
-
-The two Dollar signs creates the extra formula needed for 
-\series bold
+\begin_inset Index
+status collapsed
 
+\begin_layout Plain Layout
+Commands ! C ! 
 \backslash
-framebox
-\series default
-, see 
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sub:Boxes-with-Frame"
-
-\end_inset
-
-.
+ce
 \end_layout
 
-\begin_layout Itemize
-To create a new command for 
-\series bold
-
-\backslash
-fcolorbox
-\series default
- where the color for the box needn't to be specified, the argument for the
- color is defined optional:
-\begin_inset VSpace medskip
-\end_inset
-
-
-\begin_inset Newline newline
 \end_inset
 
-
+ that is available when the LaTeX-package 
 \series bold
-
-\backslash
-newcommand{
-\backslash
-cb}[3][white]{
-\backslash
-fcolorbox{#2}{#1}{$#3$}}
+mhchem
 \series default
 
-\begin_inset VSpace medskip
-\end_inset
+\begin_inset Index
+status collapsed
 
+\begin_layout Plain Layout
+Packages ! mhchem
+\end_layout
 
-\begin_inset Newline newline
 \end_inset
 
-When the color is not specified when using 
+ is installed.
+ After inserting 
 \series bold
 
 \backslash
-cb
-\series default
-, the predefined color 
-\series bold
-white
+ce
 \series default
- will be used.
-\end_layout
-
-\begin_layout Standard
-A test of the new defined commands:
+ to a formula a new blue box appears where chemical formulas can be inserted
+ in an intuitive way.
 \end_layout
 
 \begin_layout Standard
 \align center
 \begin_inset Tabular
-<lyxtabular version="3" rows="6" columns="2">
+<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
+
+\backslash
+raisebox
+\series default
+ is only used as spacer.
+\end_layout
+
+\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
+
+H2CO3
+\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{H2CO3}\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
+
+SO4^2-
+\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{5mm}{}\ce{SO4^{2-}}\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
+
+(NH4)2S
+\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{(NH4)2S}\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
+
+KCr(SO4)2.12H2O
+\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{KCr(SO4)2.12H2O}\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
+
+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
+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
+1
+\series default
+ behind it denotes that it is the placeholder for the first argument.
+\end_layout
+
+\begin_layout Itemize
+For 
+\series bold
+
+\backslash
+framebox
+\series default
+ one can e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+define the command 
+\series bold
+
+\backslash
+fb
+\series default
+:
+\begin_inset VSpace medskip
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+newcommand{
+\backslash
+fb}[3]{
+\backslash
+framebox#1#2{$#3$}}
+\series default
+
+\begin_inset VSpace medskip
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+The two Dollar signs creates the extra formula needed for 
+\series bold
+
+\backslash
+framebox
+\series default
+, see 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Boxes-with-Frame"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Itemize
+To create a new command for 
+\series bold
+
+\backslash
+fcolorbox
+\series default
+ where the color for the box needn't to be specified, the argument for the
+ color is defined optional:
+\begin_inset VSpace medskip
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+newcommand{
+\backslash
+cb}[3][white]{
+\backslash
+fcolorbox{#2}{#1}{$#3$}}
+\series default
+
+\begin_inset VSpace medskip
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+When the color is not specified when using 
+\series bold
+
+\backslash
+cb
+\series default
+, the predefined color 
+\series bold
+white
+\series default
+ will be used.
+\end_layout
+
+\begin_layout Standard
+A test of the new defined commands:
+\end_layout
+
+\begin_layout Standard
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="6" columns="2">
 <features>
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
@@ -31868,8 +33074,6 @@ Macro
 
 \begin_inset Graphics
        filename clipart/macrobox.png
-       lyxscale 90
-       scale 90
 
 \end_inset
 
@@ -32020,8 +33224,6 @@ qG
 
 \begin_inset Graphics
        filename clipart/macrouse.png
-       lyxscale 75
-       scale 75
 
 \end_inset
 
@@ -32222,7 +33424,7 @@ Macro
 \end_inset
 
 Definition\SpecialChar \menuseparator
-Remove Argument
+Remove Last Argument
 \end_layout
 
 \end_inset
@@ -32258,7 +33460,7 @@ Macro
 \end_inset
 
 Definition\SpecialChar \menuseparator
-Append Last Argument
+Append Argument
 \end_layout
 
 \end_inset
@@ -32543,332 +33745,47 @@ status collapsed
 
 \end_inset
 
-Spitting Out To The Right
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row interlinespace="2.5mm">
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-\begin_inset Graphics
-       filename ../images/math-macro-append-greedy-param.png
-       BoundingBox 0bp 5bp 20bp 25bp
-       rotateOrigin center
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-
-\family sans
-Edit\SpecialChar \menuseparator
-Math\SpecialChar \menuseparator
-Macro
-\begin_inset space ~
-\end_inset
-
-Definition\SpecialChar \menuseparator
-Append Argument
-\begin_inset Newline newline
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-hphantom{
-\end_layout
-
-\end_inset
-
-Edit\SpecialChar \menuseparator
-Math\SpecialChar \menuseparator
-Macro
-\begin_inset space ~
-\end_inset
-
-Definition\SpecialChar \menuseparator
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-Eating From The Right
-\end_layout
-
-\end_inset
-</cell>
-</row>
-<row interlinespace="2.5mm">
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-\begin_inset Graphics
-       filename ../images/math-macro-add-greedy-optional-param.png
-       BoundingBox 0bp 5bp 20bp 25bp
-       rotateOrigin center
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-
-\family sans
-Edit\SpecialChar \menuseparator
-Math\SpecialChar \menuseparator
-Macro
-\begin_inset space ~
-\end_inset
-
-Definition\SpecialChar \menuseparator
-Append Optional Argument
-\begin_inset Newline newline
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-hphantom{
-\end_layout
-
-\end_inset
-
-Edit\SpecialChar \menuseparator
-Math\SpecialChar \menuseparator
-Macro
-\begin_inset space ~
-\end_inset
-
-Definition\SpecialChar \menuseparator
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-}
-\end_layout
-
-\end_inset
-
-Eating From The Right
+Spitting Out To The Right
 \end_layout
 
 \end_inset
 </cell>
 </row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
-\begin_layout Section
-Diagrams
-\end_layout
-
-\begin_layout Standard
-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
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
 \begin_layout Plain Layout
-Diagrams ! amscd
-\end_layout
+\begin_inset Graphics
+       filename ../images/math-macro-append-greedy-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
 
 \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
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
 \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}\]
 
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
 \end_inset
 
-
-\end_layout
-
-\begin_layout Standard
-The command for this is:
+Definition\SpecialChar \menuseparator
+Append Argument
 \begin_inset Newline newline
 \end_inset
 
 
-\series bold
-
-\backslash
-CD
 \begin_inset ERT
 status collapsed
 
@@ -32876,65 +33793,66 @@ status collapsed
 
 
 \backslash
-spce 
+hphantom{
 \end_layout
 
 \end_inset
 
-A@>j>>B@>>k>C@=F Ctrl+Return
-\begin_inset Newline newline
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
 \end_inset
 
+Definition\SpecialChar \menuseparator
 
 \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 
+Eating From The Right
 \end_layout
 
 \end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
+\begin_layout Plain Layout
+\begin_inset Graphics
+       filename ../images/math-macro-add-greedy-optional-param.png
+       BoundingBox 0bp 5bp 20bp 25bp
+       rotateOrigin center
 
-\begin_inset ERT
-status collapsed
+\end_inset
 
-\begin_layout Plain Layout
 
-}
 \end_layout
 
 \end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
 
-@AmAA@.@VV
-\backslash
-{V
-\series default
+\begin_layout Plain Layout
 
-\begin_inset Formula $\to$
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
 \end_inset
 
-
-\series bold
-V@| Ctrl+Return
+Definition\SpecialChar \menuseparator
+Append Optional Argument
 \begin_inset Newline newline
 \end_inset
 
@@ -32951,21 +33869,13 @@ hphantom{
 
 \end_inset
 
-
-\backslash
-CD
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-spce 
-\end_layout
-
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
 \end_inset
 
+Definition\SpecialChar \menuseparator
 
 \begin_inset ERT
 status collapsed
@@ -32977,70 +33887,17 @@ status collapsed
 
 \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
+Eating From The Right
 \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"
+</cell>
+</row>
+</lyxtabular>
 
 \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
@@ -33160,107 +34017,6 @@ status collapsed
 \end_inset
 
 
-\end_layout
-
-\begin_layout Subsection
-Chemical Symbols and Equations
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Chemical-Symbols-and"
-
-\end_inset
-
-
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-Chemical characters ! Symbols
-\end_layout
-
-\end_inset
-
-
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-Chemical equations
-\end_layout
-
-\end_inset
-
-
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-Symbols ! chemical
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-An example text from chemistry:
-\end_layout
-
-\begin_layout Quote
-The 
-\begin_inset Formula $\mathrm{SO_{4}^{2-}}$
-\end_inset
-
--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_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 
-\begin_inset Info
-type  "shortcut"
-arg   "font-roman"
-\end_inset
-
- 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
-
-
 \end_layout
 
 \begin_layout Subsection
@@ -36464,6 +37220,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