Note that decorated matrices ignore the vertical alignment.
\end_layout
-\begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Plain Layout
-
-\series bold
-Note:
-\series default
- LaTeX limits the number of matrix columns with decorations to 10.
- If you need more than 10
-\begin_inset space ~
-\end_inset
-
-columns, you have to add this line to the document preamble:
-\end_layout
-
-\begin_layout Plain Layout
-
-\series bold
-
-\backslash
-setcounter{MaxMatrixCols}{number}
-\end_layout
-
-\begin_layout Plain Layout
-where
-\emph on
-number
-\emph default
- is the number of columns between 11 and 99.
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
\begin_layout Standard
\begin_inset VSpace bigskip
\end_inset
be inserted.
\end_layout
-\begin_layout Subsection
-Accents for Operators
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Accents ! for operators
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-With the commands
-\series bold
-
-\backslash
-overset
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Commands ! O !
-\backslash
-overset
-\end_layout
-
-\end_inset
-
- and
-\series bold
-
-\backslash
-underset
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Commands ! U !
-\backslash
-underset
-\end_layout
-
-\end_inset
-
- characters can be placed above or below an operator, respectively, to accent
- it.
- With the command
-\series bold
-
-\backslash
-sideset
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Commands ! S !
-\backslash
-sideset
-\end_layout
-
-\end_inset
-
- characters can be set before and behind an operator.
- The command scheme is:
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-sideset{character
-\series default
-
-\series bold
-before}{character
-\series default
-
-\series bold
-behind}
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-sideset
-\series default
- must always be before the operator that should be accented.
- You can accent with several characters and even with other operators and
- symbols.
- To place with
-\series bold
-
-\backslash
-sideset
-\series default
- for example only characters behind an operator, write nothing between the
- first braces but don't omit the braces.
-\end_layout
-
-\begin_layout Standard
-For example the command
-\series bold
-
-\backslash
-sideset{
-\begin_inset Formula $\to$
-\end_inset
-
-
-\backslash
-{
-\series default
-'
-\series bold
-
-\begin_inset Formula $\to$
-\end_inset
-
-
-\backslash
-sum_k=1
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-spce
-\end_layout
-
-\end_inset
-
-
-\series default
-^
-\series bold
-n
-\series default
- produces:
-\begin_inset Formula
-\[
-\sideset{}{'}\sum_{k=1}^{n}
-\]
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-The command
-\series bold
-
-\backslash
-overset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-spce
-\end_layout
-
-\end_inset
-
-
-\backslash
-maltese
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-spce
-\end_layout
-
-\end_inset
-
-
-\series default
-
-\begin_inset Formula $\uparrow$
-\end_inset
-
-
-\series bold
-a
-\series default
- produces:
-\begin_inset Formula
-\[
-\overset{a}{\maltese}
-\]
-
-\end_inset
-
-As seen in the last example, with
-\series bold
-
-\backslash
-overset
-\series default
- and
-\series bold
-
-\backslash
-underset
-\series default
- symbols and characters can also be accented; with
-\series bold
-
-\backslash
-sideset
-\series default
- this is not possible.
-\end_layout
-
\begin_layout Subsection
Accents for several Characters
\begin_inset Index idx
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
\end_layout
\begin_layout Section
.
\end_layout
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
\begin_layout Standard
\align center
\begin_inset Tabular
Commands ! P !
\backslash
prod
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+vspace{4mm}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
\end_layout
\begin_layout Subsection
\series bold
\backslash
-def
-\backslash
-clap#1{
-\backslash
-hbox to 0pt{
-\backslash
-hss #1
-\backslash
-hss}}
-\begin_inset Newline newline
-\end_inset
+def
+\backslash
+clap#1{
+\backslash
+hbox to 0pt{
+\backslash
+hss #1
+\backslash
+hss}}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+def
+\backslash
+mathclap {
+\backslash
+mathpalette
+\backslash
+mathclapinternal}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+def
+\backslash
+mathclapinternal #1#2{
+\backslash
+clap{$
+\backslash
+mathsurround =0pt #1{#2}$}}
+\end_layout
+
+\begin_layout Standard
+This defines the command
+\series bold
+
+\backslash
+mathclap
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! M !
+\backslash
+mathclap
+\end_layout
+
+\end_inset
+
+ that sets the width of the limit to 0
+\begin_inset space \thinspace{}
+\end_inset
+
+pt.
+ The command scheme is
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+mathclap{limit}
+\end_layout
+
+\begin_layout Standard
+where the limit can consist of several conditions.
+\end_layout
+
+\begin_layout Standard
+Applied on formula
+\begin_inset CommandInset ref
+LatexCommand eqref
+reference "eq:substack"
+
+\end_inset
+
+, one uses the command
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+sum_
+\backslash
+mathclap{
+\backslash
+substack
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce
+\end_layout
+
+\end_inset
+
+0<k<1000 Ctrl+Return
+\end_layout
+
+\begin_layout Standard
+to create the lower limit.
+ The summand is now directly behind the summation operator:
+\begin_inset Formula
+\[
+\sum_{\mathclap{\substack{0<k<1000\\
+\\
+k\,\in\,\mathbb{N}
+}
+}}^{n}k^{-2}
+\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+How to use one limit for several operators is described in
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Self-defined-Operators"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Subsection
+Decoration for Operators
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Operators ! Decoration
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+With the commands
+\series bold
+
+\backslash
+overset
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! O !
+\backslash
+overset
+\end_layout
+
+\end_inset
+
+ and
+\series bold
+
+\backslash
+underset
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! U !
+\backslash
+underset
+\end_layout
+
+\end_inset
+
+ characters can be placed above or below an operator, respectively.
+ With the command
+\series bold
+
+\backslash
+sideset
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! S !
+\backslash
+sideset
+\end_layout
+
+\end_inset
+
+ characters can be set before and behind a big operator.
+ The command scheme is:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+sideset{character
+\series default
+
+\series bold
+before}{character
+\series default
+
+\series bold
+behind}
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+sideset
+\series default
+ must always be before the operator.
+ You can decorate with several characters and even with other operators
+ and symbols.
+ To place for example only characters behind a big operator, write nothing
+ between the first braces but don't omit the braces.
+\end_layout
+\begin_layout Standard
+For example the command
+\series bold
\backslash
-def
-\backslash
-mathclap {
-\backslash
-mathpalette
-\backslash
-mathclapinternal}
-\begin_inset Newline newline
+sideset{
+\begin_inset Formula $\to$
\end_inset
\backslash
-def
-\backslash
-mathclapinternal #1#2{
-\backslash
-clap{$
-\backslash
-mathsurround =0pt #1{#2}$}}
-\end_layout
-
-\begin_layout Standard
-This defines the command
+{
+\series default
+'
\series bold
-\backslash
-mathclap
-\series default
+\begin_inset Formula $\to$
+\end_inset
-\begin_inset Index idx
+
+\backslash
+sum_k=1
+\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-Commands ! M !
+
+
\backslash
-mathclap
+spce
\end_layout
\end_inset
- that sets the width of the limit to 0
-\begin_inset space \thinspace{}
+
+\series default
+^
+\series bold
+n
+\series default
+ produces:
+\begin_inset Formula
+\[
+\sideset{}{'}\sum_{k=1}^{n}
+\]
+
\end_inset
-pt.
- The command scheme is
+
\end_layout
\begin_layout Standard
+\begin_inset Note Greyedout
+status open
-\series bold
+\begin_layout Plain Layout
+\series bold
+Note:
\backslash
-mathclap{limit}
-\end_layout
-
-\begin_layout Standard
-where the limit can consist of several conditions.
+sideset
+\series default
+ can only be used to decorate big operators, binary operators are not allowed.
\end_layout
-\begin_layout Standard
-Applied on formula
-\begin_inset CommandInset ref
-LatexCommand eqref
-reference "eq:substack"
-
\end_inset
-, one uses the command
+
\end_layout
\begin_layout Standard
\series bold
\backslash
-sum_
+overset
+\series default
+ and
+\series bold
+
\backslash
-mathclap{
+underset
+\series default
+ can also be used to decorate symbols and characters.
+ For example, the command
+\series bold
+
\backslash
-substack
+overset
\begin_inset ERT
status collapsed
\end_inset
-0<k<1000 Ctrl+Return
-\end_layout
-\begin_layout Standard
-to create the lower limit.
- The summand is now directly behind the summation operator:
-\begin_inset Formula
-\[
-\sum_{\mathclap{\substack{0<k<1000\\
-\\
-k\,\in\,\mathbb{N}
-}
-}}^{n}k^{-2}
-\]
+\backslash
+maltese
+\begin_inset ERT
+status collapsed
-\end_inset
+\begin_layout Plain Layout
+\backslash
+spce
\end_layout
-\begin_layout Standard
-\begin_inset VSpace bigskip
\end_inset
-How to use one limit for several operators is described in
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sub:Self-defined-Operators"
+\series default
+
+\begin_inset Formula $\uparrow$
\end_inset
-.
-\end_layout
-\begin_layout Standard
-\begin_inset Newpage newpage
+\series bold
+a
+\series default
+ produces:
+\begin_inset Formula
+\[
+\overset{a}{\maltese}
+\]
+
\end_inset
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Section
fi}
\end_layout
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
\begin_layout Section
Formula Styles
\begin_inset CommandInset label
\end_layout
\begin_layout Standard
-This Align environment is created by presssing
+This Align environment is created by pressing
\begin_inset Info
type "shortcut"
arg "newline-insert newline"
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Section
.
\end_layout
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
\begin_layout Section
Chemical Symbols and Equations
\begin_inset CommandInset label
\backslash
ce
\series default
- box will lead to LaTeX errors.
+ box will lead to LaTeX errors due to a LyX bug.
+\color inherit
+
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset CommandInset href
+LatexCommand href
+name "LyX-bug #8566"
+target "http://www.lyx.org/trac/ticket/8566"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\color none
In this case TeX code has to be used like for
\series bold
.
\end_layout
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
\begin_layout Section
User-defined Commands
\begin_inset Index idx
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
bind the
command-alternatives break-paragraph;math-extern maxima
\end_layout
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
\begin_layout Section
-Tips
+Miscellaneous
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Tips
+Miscellaneous
\end_layout
\end_inset
Commands ! G !
\backslash
genfrac
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+vspace{4mm}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
genfrac{}{}{#1}{}{#2}{#3}}
\end_layout
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
\begin_layout Standard
A test:
\begin_inset Formula
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
\end_layout
\begin_layout Subsection
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Subsection