-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 338
+#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 348
\begin_document
\begin_header
\textclass scrartcl
% the documentation team
% email: lyx-docs@lists.lyx.org
-
% if pdflatex is used
\usepackage{ifpdf}
\ifpdf
% provides caption formatting
\setkomafont{captionlabel}{\bfseries}
-% used in Kap. 22.4
-\usepackage{braket}
-
% used in Kap. 22.6
\usepackage[samesize]{cancel}
\usepackage{multirow}
\usepackage{multicol}
-% needed for diagrams
-\usepackage{amscd}
-
% needed in sec. 19.4
\usepackage{remreset}
{\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
\family sans
-Version 1.6svn
+Version 2.0.x
\end_layout
\begin_layout Standard
\begin_layout Section
Introduction
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Introduction"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Section
General Instructions
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:General-Instructions"
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
\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
\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
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
is used.
This mode is invoked with the the shortcut
-\family sans
-Alt-m
-\begin_inset space ~
+\begin_inset Info
+type "shortcut"
+arg "math-mode"
\end_inset
-m
-\family default
or by the insertion of the command
\series bold
\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
\end_layout
\begin_layout Subsection*
-Used units
+Available units
\end_layout
\begin_layout Standard
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "tab:Used-units"
+name "tab:Available-units"
\end_inset
-Used units
+Available units
\end_layout
\end_inset
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="13" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\backslash
nicefrac
+\series default
+
\begin_inset Index
status collapsed
\end_inset
+:
+\begin_inset Formula $\nicefrac{5}{31}$
+\end_inset
+
+ or
+\series bold
+\backslash
+unitfrac
\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! U !
+\backslash
+unitfrac
+\end_layout
+
+\end_inset
+
:
-\begin_inset Formula $\nicefrac{5}{31}$
+\begin_inset Formula $\unitfrac{5}{31}$
\end_inset
+ There is furthermore the command
+\series bold
+\backslash
+unitfracthree
+\series default
+ that offers to write a fraction in combination with a number:
+\begin_inset Formula $\unitfrac[2]{1}{3}$
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+Note that
+\series bold
+
+\backslash
+unitfracthree
+\series default
+ is not a real LaTeX command but the command
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+unitfrac[number]{numerator}{denominator}
+\series default
+, therefore you cannot use it in TeX code.
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_layout
\begin_layout Subsection
-Binomial coefficients
+Binomial Coefficients
\begin_inset Index
status collapsed
\begin_layout Plain Layout
-Binomial coefficient s
+Binomial coefficients
\end_layout
\end_inset
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_layout
\begin_layout Subsection
-Case differentiations
+Case Differentiations
\begin_inset Index
status collapsed
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_inset
-Ctrl-Enter
+
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+
\end_layout
\end_inset
\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
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
isotopes
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_inset
g.
- results, one uses
+\begin_inset space \space{}
+\end_inset
+
+results, one uses
\series bold
\backslash
It is possible to place up to 6 lines above or below characters.
\end_layout
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+Custom lines can be created using the command
+\series bold
+
+\backslash
+rule
+\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! R !
+\backslash
+rule
+\end_layout
+
+\end_inset
+
+ which has the following scheme:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+rule[vertical offset]{length}{thickness}
+\end_layout
+
+\begin_layout Standard
+The optional vertical offset shifts the line upwards (or downwards, when
+ the value is negative).
+ The units listed in
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "tab:Available-units"
+
+\end_inset
+
+ can be used for the values.
+ Here are two example lines created with the commands
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+rule[-2ex]{3cm}{2pt}
+\series default
+ and
+\series bold
+
+\backslash
+rule{2cm}{1pt}
+\series default
+:
+\end_layout
+
+\begin_layout Standard
+This is a sentence
+\begin_inset Formula $\rule[-2ex]{3cm}{2pt}\rule{2cm}{1pt}$
+\end_inset
+
+ with two lines.
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+rule
+\series default
+ can also be used for text when it is inserted in TeX-mode.
+\end_layout
+
\begin_layout Subsection
Ellipses
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Ellipses"
+
+\end_inset
+
+
\begin_inset Index
status collapsed
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\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
(shortcut
\family sans
-Alt-m
+Alt+M
\begin_inset space ~
\end_inset
-parenthesis
+Parenthesis
\family default
), see
\begin_inset CommandInset ref
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
the row separation, use the factor 2.
\begin_inset Tabular
<lyxtabular version="3" rows="9" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="9" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_layout
\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
Besides the
\series bold
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="middle" width="0">
<column alignment="center" valignment="middle" width="0">
<row>
\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
\series bold
\backslash
-ln Alt-m
+ln Alt+M
\series default
\series bold
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
needed for physical vectors:
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
or the commands listed in the following subsections.
\end_layout
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
\begin_layout Subsection
Horizontal Arrows
\begin_inset Index
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
vector arrows are listed in
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="7" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="7" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset VSpace bigskip
\end_inset
-To create umlauts
+
+\end_layout
+
+\begin_layout Standard
+You can directly insert accents like é to formulas.
+ LyX will transform them to the corresponding accent command.
+ For umlauts
\begin_inset Index
status collapsed
\end_inset
- in formulas, a quotation mark is inserted before the vowel.
+ it is better to insert a quotation mark before the vowel.
These two characters are then treated by LaTeX as
\emph on
one
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\backslash
raisebox
\series default
- is only used as spacer.
+ and the 0
+\begin_inset space \thinspace{}
+\end_inset
+
+pt space are only used as spacer.
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
+\begin_inset space \hspace{}
+\length 0pt
+\end_inset
+
\lang ngerman
+
\begin_inset Formula $"i$
\end_inset
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
to italic or bold.
\begin_layout Subsection
Accents for several Characters
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Accents-for-several"
-
-\end_inset
-
-
\begin_inset Index
status collapsed
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\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
\end_inset
-\series default
\color inherit
\begin_inset Quotes erd
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="7">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="middle" width="6.8cm">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="middle" width="6.8cm">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
useful for summation operators:
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
Space
\family default
(shortcut
-\family sans
-Ctrl-Shift-Space
-\family default
+\begin_inset Info
+type "shortcut"
+arg "space-insert thin"
+\end_inset
+
).
\end_layout
\begin_layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="left" valignment="top" width="0">
<column alignment="left" valignment="top" width="0">
<row>
\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
\end_inset
.
- For the length all units listed in
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "tab:Used-units"
+ Then a long
+\begin_inset Quotes eld
+\end_inset
+
+
+\color blue
+
+\begin_inset ERT
+status collapsed
+\begin_layout Plain Layout
+
+
+\backslash
+spce
+\end_layout
+
+\end_inset
+
+
+\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
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_inset Text
\begin_layout Plain Layout
-Command
+Command (
+\backslash
+hspace length)
\end_layout
\end_inset
\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
\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
.)
\end_layout
+\begin_layout Standard
+Besides
+\series bold
+
+\backslash
+hfill
+\series default
+, there are the commands
+\series bold
+
+\backslash
+dotfill
+\series default
+ and
+\series bold
+
+\backslash
+hrulefill
+\series default
+ that fill the space with a pattern, see
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Ellipses"
+
+\end_inset
+
+ for an example.
+\end_layout
+
\begin_layout Standard
For text, variable space can be inserted via the menu
\family sans
Space
\family default
-, what is not possible in formulas:
+:
\end_layout
\begin_layout Standard
\series default
an additional formula has to be created by
\family sans
-Ctrl-m
+Ctrl+M
\family default
within this box
\begin_inset Foot
\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
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\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
\family sans
-Ctrl-m
+Ctrl+M
\family default
\backslash
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula \raisebox{6mm}{}\fbox{$\int A=B$}\raisebox{-4mm}{}
-
+\begin_inset Formula $\raisebox{6mm}{}\fbox{$\int A=B$}\raisebox{-4mm}{}$
\end_inset
\family sans
-Ctrl-m
+Ctrl+M
\family default
\backslash
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\backslash
{
\family sans
-Ctrl-m
+Ctrl+M
\family default
\backslash
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="11" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\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
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\sum$
+\begin_inset Formula $\int$
\end_inset
\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
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\int$
+\begin_inset Formula $\oint$
\end_inset
\begin_layout Plain Layout
\backslash
-intop
+ointctrclockwise
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\intop$
+\begin_inset Formula $\ointctrclockwise$
\end_inset
\begin_layout Plain Layout
\backslash
-oint
+ointclockwise
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\oint$
+\begin_inset Formula $\ointclockwise$
\end_inset
\begin_layout Plain Layout
\backslash
-ointop
+sqint
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\ointop$
+\begin_inset Formula $\sqint$
\end_inset
\begin_layout Plain Layout
\backslash
-ointctrclockwise
+fint
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\ointctrclockwise$
+
+\begin_inset Formula $\fint$
\end_inset
\begin_layout Plain Layout
\backslash
-ointclockwise
+landupint
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\ointclockwise$
+
+\begin_inset Formula $\landupint$
\end_inset
\begin_layout Plain Layout
\backslash
-sqint
+landdownint
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\sqint$
+
+\begin_inset Formula $\landdownint$
\end_inset
\begin_inset Tabular
-<lyxtabular version="3" rows="10" columns="2">
-<features>
+<lyxtabular version="3" rows="11" columns="2">
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\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
\end_layout
\begin_layout Standard
-The operators
+For all integral operators there is a second version available, ending on
+
\series bold
-
-\backslash
-intop
+op
\series default
- and
+:
\series bold
\backslash
-ointop
+intop,
\series default
- are different from
+
\series bold
\backslash
-int
+ointop
\series default
- and
+ etc..
+ These operators are different from
\series bold
\backslash
-oint
+int
\series default
-, resp.
-\begin_inset space ~
+ etc.
+\begin_inset space \space{}
\end_inset
in the style the operator limits are displayed, see
d
\emph default
and using the keyboard shortcut
-\family sans
-Alt-c
-\begin_inset space ~
+\begin_inset Info
+type "shortcut"
+arg "font-roman"
\end_inset
-r
-\family default
\begin_inset Foot
status collapsed
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\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
\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
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
\series bold
-0<k<1000 Ctrl-Return
+0<k<1000 Ctrl+Return
\begin_inset Newline newline
\end_inset
\end_inset
-0<k<1000 Ctrl-Enter
+0<k<1000 Ctrl+Return
\end_layout
\begin_layout Standard
.
\end_layout
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
\begin_layout Subsection
Binary Operators
\begin_inset CommandInset label
\begin_inset Tabular
<lyxtabular version="3" rows="13" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="13" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="13" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
be used to use one limit for several operators:
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
\begin_inset Text
\begin_layout Plain Layout
-Alt-c c
+\begin_inset Info
+type "shortcut"
+arg "font-noun"
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
--
+\begin_inset Info
+type "shortcut"
+arg "font-bold"
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-Alt-c b
+\begin_inset Info
+type "shortcuts"
+arg "font-boldsymbol"
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-Alt-c e
-\end_layout
-
+\begin_inset Info
+type "shortcut"
+arg "font-emph"
\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
-mathfrak
-\series bold
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-\backslash
-spce
-\end_layout
-
-\end_inset
-
-
-\series default
-AbC
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-\begin_inset Formula $\mathfrak{AbC}$
-\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
--
\end_layout
\end_inset
</cell>
</row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\align center
-\begin_inset Tabular
-<lyxtabular version="3" rows="5" columns="3">
-<features>
-<column alignment="center" valignment="top" width="0">
-<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" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-Result
-\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
-shortcut
-\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
-mathit
+mathfrak
+\series bold
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+spce
+\end_layout
+
+\end_inset
+
+
+\series default
+AbC
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Formula $\mathfrak{AbC}$
+\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
+-
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="5" columns="3">
+<features tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0">
+<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" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Result
+\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
+shortcut
+\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
+mathit
\series bold
\begin_inset ERT
\begin_inset Text
\begin_layout Plain Layout
-Alt-c r
+\begin_inset Info
+type "shortcut"
+arg "font-roman"
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-Alt-c s
+\begin_inset Info
+type "shortcut"
+arg "font-sans"
+\end_inset
+
+
\end_layout
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-Alt-c p
+\begin_inset Info
+type "shortcut"
+arg "font-typewriter"
+\end_inset
+
+
\end_layout
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Subsection
+Colored Formulas
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Formula ! colored
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Formulas can be colored like normal text: Highlight a formula or a formula
+ part and use the
+\family sans
+Text Style
+\family default
+ dialog.
+ Here is a formula in magenta:
+\begin_inset Formula \[
+{\color{magenta}\int A\,\mathrm{d}x=\frac{\sqrt[5]{B}}{\ln\left(\frac{1}{3}\right)}}\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+You can also define your own colors as described in
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Colored-Boxes"
+
+\end_inset
+
+.
+ They can be used with the TeX code command
+\series bold
+
+\backslash
+textcolor
+\series default
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! T !
+\backslash
+textcolor
+\end_layout
+
+\end_inset
+
+ in the scheme
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+textcolor{color}{characters or formula}
+\end_layout
+
+\begin_layout Standard
+The following example was colored completely dark green and partly red:
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+textcolor{darkgreen}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset Formula \[
+\int A\,\mathrm{d}x=\frac{{\color{red}\sqrt[5]{B}}}{\ln\left(\frac{1}{3}\right)}\]
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Due to a bug in LyX only complete formulas can be colored with self-defined
+ colors.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset CommandInset href
+LatexCommand href
+name "LyX-bug #5269"
+target "http://bugzilla.lyx.org/show_bug.cgi?id=5269"
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Subsection
\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
\begin_layout Subsection
Small Letters
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Small-Letters"
-
-\end_inset
-
-
\begin_inset Index
status collapsed
\begin_inset Tabular
<lyxtabular version="3" rows="11" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="12" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="11" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="7" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Subsection
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="10" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
More symbols are listed in
\begin_inset CommandInset ref
LatexCommand ref
-reference "sub:Miscellaneous-Special-Characters"
+reference "sub:Miscellaneous-special-Characters"
\end_inset
status collapsed
\begin_layout Plain Layout
+
+\backslash
+@
\begin_inset ERT
status collapsed
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="3">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
\begin_inset Tabular
<lyxtabular version="3" rows="17" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="17" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="17" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="4">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
\end_inset
-\begin_inset Newpage pagebreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="9" columns="4">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
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
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="block" valignment="top" width="0">
<column alignment="block" valignment="top" width="0">
<row>
status collapsed
\begin_layout Plain Layout
+
+\backslash
+@
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-\backslash
-@
\backslash
textrm{
\backslash
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="block" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="block" valignment="top" width="0">
<column alignment="block" valignment="top" width="0">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="8" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="block" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\end_layout
\begin_layout Subsection
-Miscellaneous Special Characters
+Miscellaneous special Characters
\begin_inset CommandInset label
LatexCommand label
-name "sub:Miscellaneous-Special-Characters"
+name "sub:Miscellaneous-special-Characters"
\end_inset
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
status collapsed
\begin_layout Plain Layout
-°
+
+\backslash
+@°
\end_layout
\end_inset
\begin_layout Standard
In LyX multiline formulas are created by pressing
-\family sans
\series bold
-Ctrl-Return
-\family default
+
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
+
\series default
inside a formula.
- This creates an
+ This creates either an
+\series bold
+eqnarray environment
+\series default
+ that is described in
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Eqnarray-Environment"
+
+\end_inset
+
+ or, when the option
+\family sans
+Use AMS math package
+\family default
+ in the document settings is selected, an
\series bold
align environment
\series default
\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
\begin_layout Itemize
When one side of the equation is much shorther than the line width, this
one is chosen for the left side and the right side is typeset over two
- lines:
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
-\end_inset
-
-
+ lines:
\begin_inset Formula \begin{eqnarray}
H & = & W_{SB}+W_{mv}+W_{D}-\frac{\hbar^{2}}{2m_{0}}\Delta-\frac{\hbar^{2}}{2m_{1}}\Delta_{1}-\frac{\hbar^{2}}{2m_{2}}\Delta_{2}-\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{r}-\mathbf{R}_{1}|}\nonumber \\
- & & -\hspace{3pt}\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{r}-\mathbf{R}_{2}|}+\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{R}_{1}-\mathbf{R}_{2}|}\label{eq:kurzlang}\end{eqnarray}
+ & & -\hspace{3pt}\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{r}-\mathbf{R}_{2}|}+\frac{e^{2}}{4\pi\varepsilon_{0}|\mathbf{R}_{1}-\mathbf{R}_{2}|}\label{eq:shortlong}\end{eqnarray}
\end_inset
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-smallskip
-\end_layout
-
-\end_inset
-
-
-\begin_inset Newline newline
-\end_inset
-
The minus sign at the beginning of the second line does normally not appear
as operator because it is the first character of the line.
Thus it would not be surrounded by space and could not be distinguished
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 \\
\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
, 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
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
the term
\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
\begin_layout Subsection
Eqnarray Environment
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Eqnarray-Environment"
+
+\end_inset
+
+
\begin_inset Index
status collapsed
As example formula
\begin_inset CommandInset ref
LatexCommand eqref
-reference "eq:kurzlang"
+reference "eq:shortlong"
\end_inset
\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
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 Subsection
Cross-References
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Cross-References"
-
-\end_inset
-
-
\begin_inset Index
status collapsed
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
section labels.
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
tables so that the number of the part is the sectioning,
\begin_layout Subsection
Numbering with Roman Numbers and Letters
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Numbering-with-Roman"
-
-\end_inset
-
-
\begin_inset Index
status collapsed
\backslash
roman{equation}
\series default
-
+.
\begin_inset Foot
status collapsed
that is described in
\begin_inset CommandInset ref
LatexCommand ref
-reference "sec:User-defined-commands"
+reference "sub:The-Command-newcommand"
\end_inset
\end_inset
-.
\series bold
equation
\end_layout
\begin_layout Section
-User-defined commands
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:User-defined-commands"
-
-\end_inset
-
-
+User-defined Commands
\begin_inset Index
status collapsed
\end_layout
\begin_layout Standard
-Many LaTeX-commands are too long to be used frequently.
- But it is possible to define with the command
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
\series bold
+Note:
+\series default
+ The names of user-defined commands and macros may only consist of Latin
+ letters.
+\end_layout
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+The Command
\backslash
newcommand
-\series default
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:The-Command-newcommand"
+
+\end_inset
+
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+User-defined commands !
+\backslash
+newcommand
+\end_layout
+
+\end_inset
+
\begin_inset Index
status collapsed
\end_inset
+
+\end_layout
+
+\begin_layout Standard
+Many LaTeX-commands are too long to be used frequently.
+ But it is possible to define with the command
+\series bold
+
+\backslash
+newcommand
+\series default
new shorter commands.
\end_layout
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Plain Layout
-
-\series bold
-Note:
-\series default
- The names of user-defined commands may only consist of Latin letters.
-\end_layout
-
-\end_inset
-
-
\end_layout
\begin_layout Standard
Longrightarrow
\series default
, the LaTeX-preamble line is:
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
\end_inset
-\series bold
-
\begin_inset Newline newline
\end_inset
+\series bold
+
\backslash
newcommand{
\backslash
\series default
, the argument (that should be underlined) must be taken into account.
For this the preamble line is:
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
\end_inset
-\series bold
-
\begin_inset Newline newline
\end_inset
+\series bold
+
\backslash
newcommand{
\backslash
underline{#1}}
\series default
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-medskip
-\end_layout
-
+\begin_inset VSpace medskip
\end_inset
-\series bold
-
\begin_inset Newline newline
\end_inset
-
-\series default
The character
\series bold
#
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
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
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
\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
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
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="6" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\end_layout
-\begin_layout Section
-Diagrams
+\begin_layout Subsection
+Math Macros
\begin_inset Index
status collapsed
\begin_layout Plain Layout
-Diagrams
+User-defined commands! Math macros
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+Macros
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-To create diagrams, the LaTeX-package
+User-defined commands are especially convenient for complex expressions.
+ When you are for example dealing in a document with quadratic equations,
+ the same solution type occurs several times.
+ The general form of a quadratic equation is
+\begin_inset Formula \[
+0=\lambda^{2}+p\lambda+q\]
+
+\end_inset
+
+The general form of the solution is
+\begin_inset Formula \[
+\lambda_{1,2}=-\frac{p}{2}\pm\sqrt{\frac{p²}{4}-q}\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To define a command for the solution formula where only the three parameters
+
+\begin_inset Formula $\lambda$
+\end_inset
+
+,
+\begin_inset Formula $p$
+\end_inset
+
+, and
+\begin_inset Formula $q$
+\end_inset
+
+ need to be specified and the index of
+\begin_inset Formula $\lambda$
+\end_inset
+
+ can be given optionally, the LaTeX-preamble line is
+\begin_inset Newline newline
+\end_inset
+
+
\series bold
-amscd
-\begin_inset Foot
+
+\backslash
+newcommand{
+\backslash
+qG}[4][1,
+\backslash
+,2]{#2_{#1}=-
+\backslash
+frac{#3}{2}
+\backslash
+pm
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
status collapsed
\begin_layout Plain Layout
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+
+\backslash
+newcommand
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\backslash
+sqrt{
+\backslash
+frac{#3^{2}}{4}-#4}}
+\end_layout
+
+\begin_layout Standard
+To create with this the solution formula, the command
+\begin_inset Newline newline
+\end_inset
+
+
\series bold
-amscd
+
+\backslash
+qG{
+\backslash
+lambda
+\begin_inset Formula $\to$
+\end_inset
+
+
+\backslash
+{p
+\begin_inset Formula $\to$
+\end_inset
+
+
+\backslash
+{q
\series default
- is part of every LaTeX standard installation.
+ is inserted to a formula
+\series bold
+.
\end_layout
+\begin_layout Standard
+The definition of the new command is unintuitive because one has to know
+ the schemes of all used LaTeX commands, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+that a fraction is inserted in LaTeX as
+\series bold
+
+\backslash
+frac{numerator}{denominator}
+\series default
+.
+ Furthermore one can easily forget a brace in the definition and cannot
+ see in LyX what the new command is doing.
+ To avoid these problems LyX offers the possibility to use math macros instead
+ of the command
+\series bold
+
+\backslash
+newcommand
+\series default
+.
+\end_layout
+
+\begin_layout Standard
+A math macro is created by using the menu
+\family sans
+Insert\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\family default
+ or the toolbar button
+\begin_inset Graphics
+ filename ../images/math-macro_newmacroname_newcommand.png
+ scale 85
+
+\end_inset
+
+.
+ The math macro toolbar appears together with the following box where the
+ macro is defined:
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset space \hspace*{\fill}
+\end_inset
+
+
+\begin_inset Graphics
+ filename clipart/macrobox.png
+ lyxscale 90
+ scale 90
+
+\end_inset
+
+
+\begin_inset space \hspace*{\fill}
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset FormulaMacro
+\newcommand{\qG}[4][1,\,2]{#2_{#1}=-\frac{#3}{2}\pm\sqrt{\frac{#3^{2}}{4}-#4}}
+\end_inset
+
+
+\backslash
+newmacroname is the default name of the macro that should be changed to
+ something sensible.
+ The wanted formula is inserted in the first blue box.
+ An argument placeholder is inserted with the command
+\series bold
+
+\backslash
+#argumentnumber
+\series default
+, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g
+\begin_inset space \space{}
\end_inset
+\series bold
+
+\backslash
+#1
\series default
+ or by using the macro toolbar button
+\begin_inset Graphics
+ filename ../images/math-macro-add-param.png
+ scale 85
+
+\end_inset
+
+.
+ Argument placeholders are displayed red.
+ Maximum 9 arguments are possible.
+ Optional arguments are created with the toolbar button
+\begin_inset Graphics
+ filename ../images/math-macro-add-optional-param.png
+ scale 85
+
+\end_inset
+
+.
+ The first non-optional argument can be transformed to an optional one with
+ the toolbar button
+\begin_inset Graphics
+ filename ../images/math-macro-make-optional.png
+ scale 85
+
+\end_inset
+
+.
+ In the second blue box the appearance of the macro in LyX can be defined.
+ Normally you want to see it as it is defined, so the box is kept empty.
+ But when you have created a macro that needs lot of space on the screen,
+ you can insert in the box for example
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+qG:
+\backslash
+#1
+\series default
+
+\series bold
+,
+\series default
+
+\series bold
+
+\backslash
+#2
+\series default
+
+\series bold
+,
+\series default
+
+\series bold
+
+\backslash
+#3,
+\backslash
+#4
+\begin_inset Newline newline
+\end_inset
+
+
+\series default
+For the macro only the arguments with the macro name in front of them will
+ then be displayed in LyX, leading to a better overview.
+ The formula appears in the output as defined in the first box.
+\begin_inset Newline newline
+\end_inset
+
+The appearance of macros in formulas can furthermore be changed for single
+ macros by setting the cursor in the macro and using the menu
+\family sans
+View\SpecialChar \menuseparator
+(Un)fold
+\begin_inset space ~
+\end_inset
+
+Math
+\begin_inset space ~
+\end_inset
+
+Macro
+\family default
+.
+\end_layout
+
+\begin_layout Standard
+To use a macro, the macro name is inserted as command to a formula, in our
+ case
+\series bold
+
+\backslash
+qG
+\series default
+.
+ Our macro looks in LyX like this:
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset space \hspace*{\fill}
+\end_inset
+
+
+\begin_inset Graphics
+ filename clipart/macrouse.png
+ lyxscale 75
+ scale 75
+
+\end_inset
+
+
+\begin_inset space \hspace*{\fill}
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+Here is our macro example with the arguments
+\begin_inset Formula $x$
+\end_inset
+
+,
+\begin_inset Formula $\ln(x)$
+\end_inset
+
+, and
+\begin_inset Formula $B$
+\end_inset
+
+:
+\end_layout
+
+\begin_layout Standard
+\begin_inset Formula \[
+\qG x{\ln(x)}B\]
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+A math macro is transformed internally to a
+\series bold
+
+\backslash
+newcommand
+\series default
+ command when exporting the document.
+ The created
+\series bold
+
+\backslash
+newcommand
+\series default
+ command is not placed in the LaTeX-preamble, therefore macros can only
+ be used in formulas that are in the document below the macro definition
+ box.
+\end_layout
+
+\begin_layout Standard
+Math macros can also be directly be created from a
+\series bold
+
+\backslash
+newcommand
+\series default
+ command.
+ When writing for example the command
+\series bold
+
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+newcommand{
+\backslash
+larrow}[2]{
+\backslash
+xleftarrow[#2]{#1}}
+\begin_inset Newline newline
+\end_inset
+
+
+\series default
+in LyX as normal text, highlighting it completely and using then the shortcut
+
+\family sans
+Ctrl+M
+\family default
+, the command will be transformed to a math macro.
+ Using this method you need to be careful that the
+\series bold
+
+\backslash
+newcommand
+\series default
+ command is typed correctly, otherwise you get a faulty macro leading to
+ LaTeX errors.
+\end_layout
+
+\begin_layout Standard
+Math macros currently yet have the problem that further formulas in macro
+ definitions are handled wrongly.
+ Therefore the example
+\series bold
+
+\backslash
+fb
+\series default
+ from
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:The-Command-newcommand"
+
+\end_inset
+
+ cannot be created as macro.
+\end_layout
+
+\begin_layout Standard
+When the cursor is in a macro definition box, you will see the macro toolbar
+ in LyX:
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace defskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Graphics
+ filename clipart/MacroToolbar.png
+
+\end_inset
+
\begin_inset Index
status collapsed
\begin_layout Plain Layout
-Packages ! amscd
+Macros ! Toolbar
\end_layout
\end_inset
- is needed.
- It is loaded in the LaTeX-preamble with the line
+
\end_layout
\begin_layout Standard
+\begin_inset VSpace defskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+The macro toolbar contains from left to right the following buttons:
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace defskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Tabular
+<lyxtabular version="3" rows="9" columns="2">
+<features islongtable="true" tabularvalignment="middle">
+<column alignment="left" valignment="top" width="0">
+<column alignment="left" valignment="top" width="85col%">
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+ filename ../images/math-macro-remove-param.png
+ BoundingBox 0bp 5bp 20bp 25bp
+ rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Remove Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+ filename ../images/math-macro-add-param.png
+ BoundingBox 0bp 5bp 20bp 25bp
+ rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Append Last Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+ filename ../images/math-macro-make-optional.png
+ BoundingBox 0bp 5bp 20bp 25bp
+ rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Make First Non-Optional into
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
-\series bold
\backslash
-usepackage{amscd}
+hphantom{
+\end_layout
+
+\end_inset
+
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Optional Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+ filename ../images/math-macro-make-nonoptional.png
+ BoundingBox 0bp 5bp 20bp 25bp
+ rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Make Last Optional into
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Non-Optional Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+ filename ../images/math-macro-remove-optional-param.png
+ BoundingBox 0bp 5bp 20bp 25bp
+ rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Remove Optional Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+ filename ../images/math-macro-add-optional-param.png
+ BoundingBox 0bp 5bp 20bp 25bp
+ rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Insert Optional Argument
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+ filename ../images/math-macro-remove-greedy-param.png
+ BoundingBox 0bp 5bp 20bp 25bp
+ rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Remove Last Argument
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{
+\end_layout
+
+\end_inset
+
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Spitting Out To The Right
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row interlinespace="2.5mm">
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Graphics
+ filename ../images/math-macro-append-greedy-param.png
+ BoundingBox 0bp 5bp 20bp 25bp
+ rotateOrigin center
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\family sans
+Edit\SpecialChar \menuseparator
+Math\SpecialChar \menuseparator
+Macro
+\begin_inset space ~
+\end_inset
+
+Definition\SpecialChar \menuseparator
+Append Argument
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\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
+\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
+
+\begin_layout Plain Layout
+Diagrams ! amscd
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
-Diagrams visualize relations and look like this:
+Diagrams of this type visualize relations by vertical and horizontal lines
+ or arrows:
\begin_inset Formula \[
\begin{CD}A@>>>B@>>>C\\
@AAA@.@VVV\\
A blue box appears with two dashed lines where further commands can be
inserted.
With
-\family sans
-Ctrl-Return
-\family default
+\begin_inset Info
+type "shortcut"
+arg "newline-insert newline"
+\end_inset
+
a new line is created.
Horizontal relations are inserted in odd, vertical in even formula lines.
\end_layout
\end_inset
-A@>j>>B@>>k>C@=F Ctrl-Enter
+A@>j>>B@>>k>C@=F Ctrl+Return
\begin_inset Newline newline
\end_inset
\series bold
-V@| Ctrl-Enter
+V@| Ctrl+Return
\begin_inset Newline newline
\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
This chemical equation can directly be created as formula.
To avoid that the symbols appear italic, everything is highlighted and
changed by the shortcut
-\family sans
-Alt-c
-\begin_inset space ~
+\begin_inset Info
+type "shortcut"
+arg "font-roman"
\end_inset
-r
-\family default
to the upright font style.
\begin_inset Foot
status collapsed
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="3" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="right" valignment="top" width="0">
<column alignment="left" valignment="top" width="0">
<row>
\end_layout
\begin_layout Subsection
-Comma as Decimal Separator
+Comma as decimal Separator
\begin_inset Index
status collapsed
\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
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\begin_layout Subsection
Canceled Formulas
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Canceled-Formulas"
-
-\end_inset
-
-
\begin_inset Index
status collapsed
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
\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
\end_inset
g.
-\begin_inset space ~
+\begin_inset space \space{}
\end_inset
the command
\begin_layout Section
\start_of_appendix
-Typographic Advises
+Typographic Advice
\begin_inset Index
status collapsed
\begin_layout Plain Layout
-Typographic Advises
+Typographic advice
\end_layout
\end_inset
\end_inset
.
+\begin_inset Newline newline
+\end_inset
+
+This convention is automatically fulfilled when the command
+\series bold
+
+\backslash
+unittwo
+\series default
+ is used.
+ When it is entered to a formula, two boxes appear.
+ In the first one the value is inserted, in the second one the unit, and
+ one gets as above:
+\begin_inset Formula $\unit[30]{km/h}$
+\end_inset
+
+
+\begin_inset space \thinspace{}
+\end_inset
+
+.
+ Note that
+\series bold
+
+\backslash
+unittwo
+\series default
+ is not a real LaTeX command but the command
+\series bold
+
+\backslash
+unit[value]{unit}
+\series default
+, therefore you cannot use it in TeX code.
\end_layout
\begin_layout Itemize
\end_layout
\begin_layout Itemize
-For dimensionings like 120×90×40
+For dimensions like 120×90×40
\begin_inset space \thinspace{}
\end_inset
\end_inset
is used.
- It is available with the LaTeX-command
-\series bold
-
-\backslash
-texttimes
-\series default
-, but can also directly be inserted with some keyboard definitions.
+ It is available via the menu
+\family sans
+Insert\SpecialChar \menuseparator
+Special Character\SpecialChar \menuseparator
+Symbols
+\family default
+.
+ With some keyboard definitions it can also be inserted directly.
\end_layout
\begin_layout Itemize
\begin_inset Tabular
<lyxtabular version="3" rows="12" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>
\begin_inset Tabular
<lyxtabular version="3" rows="12" columns="2">
-<features>
+<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt">
<row>