]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Math.lyx
documentation files: remove unused labels
[lyx.git] / lib / doc / Math.lyx
index 0a75d721126cb3691c30c866fc3ad2858a13146e..50455e01b4468bd8c329f85152f0e2d885fd4745 100644 (file)
@@ -1,5 +1,5 @@
 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 338
+\lyxformat 340
 \begin_document
 \begin_header
 \textclass scrartcl
@@ -70,9 +70,6 @@
 % provides caption formatting
 \setkomafont{captionlabel}{\bfseries}
 
-% used in Kap. 22.4
-\usepackage{braket}
-
 % used in Kap. 22.6
 \usepackage[samesize]{cancel}
 
@@ -83,9 +80,6 @@
 \usepackage{multirow}
 \usepackage{multicol}
 
-% needed for diagrams
-\usepackage{amscd}
-
 % needed in sec. 19.4
 \usepackage{remreset}
 
@@ -311,13 +305,6 @@ http://wiki.lyx.org/LyX/DocumentationDevelopment#Math
 
 \begin_layout Section
 Introduction
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Introduction"
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
@@ -463,13 +450,6 @@ target "ftp://ctan.tug.org/tex-archive/macros/amstex/doc/amsguide.ps"
 
 \begin_layout Section
 General Instructions
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:General-Instructions"
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
@@ -992,7 +972,7 @@ An arrow like
 \end_layout
 
 \begin_layout Subsection*
-Used units
+Available units
 \end_layout
 
 \begin_layout Standard
@@ -1010,11 +990,11 @@ status open
 \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
@@ -2210,6 +2190,8 @@ For inline fractions with a sloped fraction stroke you can use the command
 
 \backslash
 nicefrac
+\series default
+
 \begin_inset Index
 status collapsed
 
@@ -2221,13 +2203,63 @@ nicefrac
 
 \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
@@ -2578,12 +2610,12 @@ produces a correct typeset formula:
 \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
@@ -2967,7 +2999,7 @@ B
 \end_layout
 
 \begin_layout Subsection
-Case differentiations 
+Case Differentiations
 \begin_inset Index
 status collapsed
 
@@ -4208,8 +4240,96 @@ underline
 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
 
@@ -6417,9 +6537,6 @@ Bigg)^0,5
 \end_layout
 
 \begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
 Besides the 
 \series bold
 
@@ -7734,6 +7851,13 @@ Arrows can be inserted via the math toolbar button
  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
@@ -9866,7 +9990,11 @@ status collapsed
 \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
 
@@ -10219,13 +10352,6 @@ sideset
 
 \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
 
@@ -11653,7 +11779,7 @@ hspace
  For the length all units listed in 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "tab:Used-units"
+reference "tab:Available-units"
 
 \end_inset
 
@@ -11863,6 +11989,35 @@ reference "sec:Formula-Styles"
 .)
 \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
@@ -12471,8 +12626,7 @@ A=B
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \raisebox{6mm}{}\fbox{$\int A=B$}\raisebox{-4mm}{}
-
+\begin_inset Formula $\raisebox{6mm}{}\fbox{$\int A=B$}\raisebox{-4mm}{}$
 \end_inset
 
 
@@ -16124,6 +16278,13 @@ reference "sub:Self-defined-Operators"
 .
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Subsection
 Binary Operators
 \begin_inset CommandInset label
@@ -17710,7 +17871,7 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
--
+Ctrl-b
 \end_layout
 
 \end_inset
@@ -17761,7 +17922,7 @@ AbC
 \begin_inset Text
 
 \begin_layout Plain Layout
-Alt-c b
+Alt-c b or Ctrl-Alt-b
 \end_layout
 
 \end_inset
@@ -18351,6 +18512,133 @@ unboldmath
 \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
@@ -18726,13 +19014,6 @@ All Greek letters can also be inserted via the toolbar button
 
 \begin_layout Subsection
 Small Letters
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Small-Letters"
-
-\end_inset
-
-
 \begin_inset Index
 status collapsed
 
@@ -21104,13 +21385,6 @@ bot
 \end_inset
 
 
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
 \end_layout
 
 \begin_layout Subsection
@@ -21907,7 +22181,7 @@ diagdown
 More symbols are listed in 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:Miscellaneous-Special-Characters"
+reference "sub:Miscellaneous-special-Characters"
 
 \end_inset
 
@@ -21941,6 +22215,9 @@ Symbols ! Euro-symbol
 status collapsed
 
 \begin_layout Plain Layout
+
+\backslash
+@
 \begin_inset ERT
 status collapsed
 
@@ -23992,10 +24269,6 @@ sin(x)+B
 \end_inset
 
 
-\begin_inset Newpage pagebreak
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
 status collapsed
 
 \begin_layout Plain Layout
+
+\backslash
+@
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 
-\backslash
-@
 \backslash
 textrm{
 \backslash
@@ -26712,10 +26986,10 @@ oldstylenums{0123456789
 \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
 
@@ -26851,7 +27125,9 @@ circ
 status collapsed
 
 \begin_layout Plain Layout
+
+\backslash
+@°
 \end_layout
 
 \end_inset
@@ -27113,7 +27389,22 @@ Ctrl-Return
 \family default
 \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
@@ -28355,6 +28646,13 @@ pt space was inserted at the beginning of the first column.
 
 \begin_layout Subsection
 Eqnarray Environment
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Eqnarray-Environment"
+
+\end_inset
+
+
 \begin_inset Index
 status collapsed
 
@@ -29037,13 +29335,6 @@ reference "sec:Formula-Styles"
 
 \begin_layout Subsection
 Cross-References
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Cross-References"
-
-\end_inset
-
-
 \begin_inset Index
 status collapsed
 
@@ -30211,13 +30502,6 @@ makeatother
 
 \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
 
@@ -30309,7 +30593,7 @@ newcommand
  that is described in 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sec:User-defined-commands"
+reference "sec:User-defined-Commands"
 
 \end_inset
 
@@ -30644,10 +30928,10 @@ target "Formula-numbering.lyx"
 \end_layout
 
 \begin_layout Section
-User-defined commands
+User-defined Commands
 \begin_inset CommandInset label
 LatexCommand label
-name "sec:User-defined-commands"
+name "sec:User-defined-Commands"
 
 \end_inset
 
@@ -31360,61 +31644,37 @@ A=B
 
 \begin_layout Section
 Diagrams
-\begin_inset Index
-status collapsed
-
-\begin_layout Plain Layout
-Diagrams
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \begin_layout Standard
-To create diagrams, the LaTeX-package 
+LyX supports two types of commutative diagrams: 
 \series bold
 amscd
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-
+\series default
+ and 
 \series bold
-amscd
+xymatrix
 \series default
is part of every LaTeX standard installation.
that are explained in the following.
 \end_layout
 
-\end_inset
-
-
-\series default
-
+\begin_layout Subsection
+Amscd Diagrams
 \begin_inset Index
 status collapsed
 
 \begin_layout Plain Layout
-Packages ! amscd
+Diagrams ! amscd
 \end_layout
 
 \end_inset
 
- is needed.
- It is loaded in the LaTeX-preamble with the line
-\end_layout
-
-\begin_layout Standard
-
-\series bold
 
-\backslash
-usepackage{amscd}
 \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\\
@@ -31655,6 +31915,58 @@ status collapsed
 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 this manual: 
+\begin_inset CommandInset href
+LatexCommand href
+target "http://wiki.lyx.org/LyX/XY-pic#xy-manual"
+
+\end_inset
+
+.
+\end_layout
+
 \begin_layout Standard
 \begin_inset Newpage newpage
 \end_inset
@@ -31988,7 +32300,7 @@ solution:
 \end_layout
 
 \begin_layout Subsection
-Comma as Decimal Separator
+Comma as decimal Separator
 \begin_inset Index
 status collapsed
 
@@ -32708,13 +33020,6 @@ As one can see, the distance of the numerator and the denominator to the
 
 \begin_layout Subsection
 Canceled Formulas
-\begin_inset CommandInset label
-LatexCommand label
-name "sub:Canceled-Formulas"
-
-\end_inset
-
-
 \begin_inset Index
 status collapsed
 
 
 \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
@@ -34154,6 +34459,40 @@ reference "sub:Predefined-Space"
 \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
@@ -34200,7 +34539,7 @@ In numbers with more than four digits the smallest space is inserted before
 \end_layout
 
 \begin_layout Itemize
-For dimensionings like 120×90×40
+For dimensions like 120×90×40
 \begin_inset space \thinspace{}
 \end_inset