]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Math.lyx
Minor doc update.
[lyx.git] / lib / doc / Math.lyx
index 5acf7921fb199c4999237135fb6c8ab35cdc18fd..3947cd25f4e36df214b480fd2231f73845d39b8d 100644 (file)
@@ -5826,44 +5826,6 @@ vmatrix
 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
@@ -10437,240 +10399,6 @@ In mathematical text, umlauts and other accented characters can directly
  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
@@ -11180,6 +10908,13 @@ A=B
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
 \end_layout
 
 \begin_layout Section
@@ -12861,6 +12596,13 @@ fbox
 .
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 \align center
 \begin_inset Tabular
@@ -15515,6 +15257,19 @@ status collapsed
 Commands ! P ! 
 \backslash
 prod
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+vspace{4mm}
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -16128,6 +15883,13 @@ dotsint
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
 \end_layout
 
 \begin_layout Subsection
@@ -16547,89 +16309,319 @@ To avoid this, the following macro can be used in the LaTeX-preamble:
 \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
@@ -16637,11 +16629,20 @@ reference "eq:substack"
 \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
 
@@ -16654,42 +16655,37 @@ spce
 
 \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
 
 
@@ -21202,13 +21198,6 @@ theta
 \end_inset
 
 
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
 \end_layout
 
 \begin_layout Section
@@ -27972,13 +27961,6 @@ textdegree
 fi}
 \end_layout
 
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
 \begin_layout Section
 Formula Styles
 \begin_inset CommandInset label
@@ -29946,13 +29928,6 @@ I & =a\sqrt{2}\int_{0}^{2\pi}\sqrt{1+\cos(\phi)}\;\mathrm{d}\phi\\
 \end_inset
 
 
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
 \end_layout
 
 \begin_layout Section
@@ -31720,6 +31695,13 @@ target "run:Formula-numbering.lyx"
 .
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Section
 Chemical Symbols and Equations
 \begin_inset CommandInset label
@@ -32384,7 +32366,27 @@ Note:
 \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
 
@@ -33041,6 +33043,13 @@ Manuals
 .
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Section
 User-defined Commands
 \begin_inset Index idx
@@ -34781,7 +34790,7 @@ LyX Functions
 \end_inset
 
 g.
-\begin_inset space ~
+\begin_inset space \space{}
 \end_inset
 
 bind the 
@@ -34802,20 +34811,13 @@ Maxima
 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
@@ -35358,6 +35360,19 @@ status collapsed
 Commands ! G ! 
 \backslash
 genfrac
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+vspace{4mm}
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -35618,13 +35633,6 @@ fracS}[3][]{
 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