Math.lyx: improve description of the \cancel commands

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40579 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2012-01-06 21:50:34 +00:00
parent 9e84d54b01
commit 74160055ba
5 changed files with 985 additions and 29 deletions

View File

@ -71,13 +71,13 @@
% provides caption formatting
\setkomafont{captionlabel}{\bfseries}
% used in sec. 23.6
% used in sec. 24.5
\usepackage[samesize]{cancel}
% enables calculation of values
\usepackage{calc}
% for multiple columns used in sec. 23.7
% for multiple columns used in sec. 24.7
\usepackage{multicol}
% needed in sec. 19.4
@ -31079,7 +31079,7 @@ Counter denotes what kind of numbering is affected, sectioning denotes what
\end_layout
\begin_layout Standard
Thus in our case the following LaTeX-preamble or TeX-Code line is used:
Thus in our case the following LaTeX-preamble or TeX code line is used:
\end_layout
\begin_layout Standard
@ -31140,7 +31140,7 @@ numberwithin{table}{part}
\begin_layout Standard
To go back to the standard numbering or to prevent this kind of numbering
when it is defined by the document class, the following command is inserted
as TeX-Code or to the LaTeX-preamble:
as TeX code or to the LaTeX-preamble:
\end_layout
\begin_layout Standard
@ -35545,6 +35545,13 @@ 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
@ -35596,7 +35603,7 @@ Packages ! cancel
\series bold
\backslash
usepackage[samesize]{cancel}
usepackage{cancel}
\end_layout
\begin_layout Standard
@ -35867,6 +35874,151 @@ cancelto
\end_layout
\begin_layout Standard
To change the size of
\series bold
\backslash
cancelto
\series default
's
\begin_inset Quotes eld
\end_inset
subscript
\begin_inset Quotes erd
\end_inset
value one can load the package
\series bold
cancel
\series default
with either the option
\series bold
samesize
\series default
which leads to the same size as for the canceled value or with the option
\series bold
Smaller
\series default
which makes is it a bit smaller than the size one gets without using a
package option.
In this document
\series bold
cancel
\series default
was loaded with this line:
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[samesize]{cancel}
\end_layout
\begin_layout Standard
To color the cancellation bar one adds this command as TeX code:
\end_layout
\begin_layout Standard
\series bold
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{red}}
\end_layout
\begin_layout Standard
\series bold
red
\series default
can be replaced by a color of your choice.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{red}}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
\frac{\left(x_{0}+bB\right)^{2}}{\left(1+b^{2}\right)^{\cancelto{2}{3}}}=\frac{x_{0}^{2}+B^{2}-r_{g}^{2}}{\cancel{1+b^{2}}}
\]
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{black}}
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
reset the color
\end_layout
\end_inset
\end_layout
\begin_layout Standard
For further customizations, see the documentation of the package
\series bold
cancel
\series default
,
\begin_inset CommandInset citation
LatexCommand cite
key "cancel"
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
@ -36844,6 +36996,13 @@ fi
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage newpage
\end_inset
\end_layout
\begin_layout Subsection
@ -38027,6 +38186,39 @@ target "ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf
of all symbols available with LaTeX-packages
\end_layout
\begin_layout Bibliography
\labelwidthstring References
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "cancel"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Documentation"
target "http://mirrors.ctan.org/macros/latex/contrib/cancel/cancel.pdf"
\end_inset
of the LaTeX-package
\series bold
cancel
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Packages ! cancel
\end_layout
\end_inset
\end_layout
\begin_layout Bibliography
\labelwidthstring References
\begin_inset CommandInset bibitem

View File

@ -71,13 +71,13 @@
% provides caption formatting
\setkomafont{captionlabel}{\bfseries}
% benutzt in Kap. 23.6
% benutzt in Kap. 24.5
\usepackage[samesize]{cancel}
% enables calculation of values
\usepackage{calc}
% für Mehrfachzeilen, benutzt in Kap. 23.7
% für Mehrfachzeilen, benutzt in Kap. 24.7
\usepackage{multicol}
% benutzt in Kap. 19.4
@ -35669,7 +35669,7 @@ Pakete ! cancel
\series bold
\backslash
usepackage[samesize]{cancel}
usepackage{cancel}
\end_layout
\begin_layout Standard
@ -35945,6 +35945,152 @@ cancelto
\end_layout
\begin_layout Standard
Um die Größe des
\begin_inset Quotes gld
\end_inset
hochgestellten
\begin_inset Quotes grd
\end_inset
Werts von
\series bold
\backslash
cancelto
\series default
zu ändern, kann man das Paket
\series bold
cancel
\series default
entweder mit der Option
\series bold
samesize
\series default
, die zur selben Größe wie die der durchgestrichenen Zeichen führt, oder
mit der Option
\series bold
Smaller
\series default
, die zu einer etwas kleineren Größe führt als es ohne Option der Fall ist.
In diesem Dokument wurde
\series bold
cancel
\series default
mit der Zeile
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[samesize]{cancel}
\end_layout
\begin_layout Standard
geladen.
Um den Durchstrich zu färben, verwendet man den Befehl
\end_layout
\begin_layout Standard
\series bold
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{red}}
\end_layout
\begin_layout Standard
als TeX-Code.
\series bold
red
\series default
kann durch eine Farbe der Wahl ersetzt werden.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{red}}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
\frac{\left(x_{0}+bB\right)^{2}}{\left(1+b^{2}\right)^{\cancelto{2}{3}}}=\frac{x_{0}^{2}+B^{2}-r_{g}^{2}}{\cancel{1+b^{2}}}
\]
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{black}}
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
Farbe zurücksetzen
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Für weitere Anpassungen siehe die Dokumentation des Pakets
\series bold
cancel
\series default
,
\begin_inset CommandInset citation
LatexCommand cite
key "cancel"
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
@ -38103,6 +38249,39 @@ target "ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf
aller über LaTeX-Pakete verfügbare Symbole
\end_layout
\begin_layout Bibliography
\labelwidthstring Referenzen
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "cancel"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Dokumentation"
target "http://mirrors.ctan.org/macros/latex/contrib/cancel/cancel.pdf"
\end_inset
des LaTeX-Pakets
\series bold
cancel
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Pakete ! cancel
\end_layout
\end_inset
\end_layout
\begin_layout Bibliography
\labelwidthstring Referenzen
\begin_inset CommandInset bibitem

View File

@ -71,13 +71,13 @@
% provides caption formatting
\setkomafont{captionlabel}{\bfseries}
% used in sec. 23.6
% used in sec. 24.5
\usepackage[samesize]{cancel}
% enables calculation of values
\usepackage{calc}
% for multiple columns used in sec. 23.7
% for multiple columns used in sec. 24.7
\usepackage{multicol}
% needed in sec. 19.4
@ -36139,7 +36139,7 @@ Paquetes ! cancel
\series bold
\backslash
usepackage[samesize]{cancel}
usepackage{cancel}
\end_layout
\begin_layout Standard
@ -36415,6 +36415,162 @@ cancelto
\end_layout
\begin_layout Standard
\lang english
To change the size of
\series bold
\backslash
cancelto
\series default
's
\begin_inset Quotes fld
\end_inset
subscript
\begin_inset Quotes frd
\end_inset
value one can load the package
\series bold
cancel
\series default
with either the option
\series bold
samesize
\series default
which leads to the same size as for the canceled value or with the option
\series bold
Smaller
\series default
which makes is it a bit smaller than the size one gets without using a
package option.
In this document
\series bold
cancel
\series default
was loaded with this line:
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[samesize]{cancel}
\end_layout
\begin_layout Standard
\lang english
To color the cancellation bar one adds this command as TeX code:
\end_layout
\begin_layout Standard
\series bold
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{red}}
\end_layout
\begin_layout Standard
\series bold
\lang english
red
\series default
can be replaced by a color of your choice.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{red}}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
\frac{\left(x_{0}+bB\right)^{2}}{\left(1+b^{2}\right)^{\cancelto{2}{3}}}=\frac{x_{0}^{2}+B^{2}-r_{g}^{2}}{\cancel{1+b^{2}}}
\]
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{black}}
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
\lang english
reset the color
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
For further customizations, see the documentation of the package
\lang spanish
\series bold
cancel
\series default
,
\begin_inset CommandInset citation
LatexCommand cite
key "cancel"
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
@ -36855,7 +37011,7 @@ Sangrado
\series default
,
\begin_inset Foot
status open
status collapsed
\begin_layout Plain Layout
véase estilos de ecuación en
@ -37386,6 +37542,13 @@ fi
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage newpage
\end_inset
\end_layout
\begin_layout Subsection
@ -37542,7 +37705,7 @@ i}
\start_of_appendix
Notas sobre tipografía
\begin_inset Index idx
status open
status collapsed
\begin_layout Plain Layout
Tipografía, normas
@ -37846,7 +38009,7 @@ Sinónimos
Algunos caracteres y símbolos se pueden componer con varios comandos sinónimos
como los que se recogen en esta lista:
\begin_inset Foot
status open
status collapsed
\begin_layout Plain Layout
véase también
@ -38596,6 +38759,39 @@ target "ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf
de todos los símbolos disponibles con paquetes LaTeX
\end_layout
\begin_layout Bibliography
\labelwidthstring Referencias
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "cancel"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Documentación"
target "http://mirrors.ctan.org/macros/latex/contrib/cancel/cancel.pdf"
\end_inset
del paquete LaTeX
\series bold
cancel
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Paquetes ! cancel
\end_layout
\end_inset
\end_layout
\begin_layout Bibliography
\labelwidthstring Referencias
\begin_inset CommandInset bibitem

View File

@ -71,13 +71,13 @@
% provides caption formatting
\setkomafont{captionlabel}{\bfseries}
% used in sec. 23.6
% used in sec. 24.5
\usepackage[samesize]{cancel}
% enables calculation of values
\usepackage{calc}
% for multiple columns used in sec. 23.7
% for multiple columns used in sec. 24.7
\usepackage{multicol}
% needed in sec. 19.4
@ -35861,7 +35861,7 @@ Paquetages ! cancel
\series bold
\backslash
usepackage[samesize]{cancel}
usepackage{cancel}
\end_layout
\begin_layout Standard
@ -36133,6 +36133,163 @@ cancelto
\end_layout
\begin_layout Standard
\lang english
To change the size of
\series bold
\backslash
cancelto
\series default
's
\begin_inset Quotes eld
\end_inset
subscript
\begin_inset Quotes erd
\end_inset
value one can load the package
\series bold
cancel
\series default
with either the option
\series bold
samesize
\series default
which leads to the same size as for the canceled value or with the option
\series bold
Smaller
\series default
which makes is it a bit smaller than the size one gets without using a
package option.
In this document
\series bold
cancel
\series default
was loaded with this line:
\end_layout
\begin_layout Standard
\series bold
\backslash
usepackage[samesize]{cancel}
\end_layout
\begin_layout Standard
\lang english
To color the cancellation bar one adds this command as TeX code:
\end_layout
\begin_layout Standard
\series bold
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{red}}
\end_layout
\begin_layout Standard
\series bold
\lang english
red
\series default
can be replaced by a color of your choice.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{red}}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Formula
\[
\frac{\left(x_{0}+bB\right)^{2}}{\left(1+b^{2}\right)^{\cancelto{2}{3}}}=\frac{x_{0}^{2}+B^{2}-r_{g}^{2}}{\cancel{1+b^{2}}}
\]
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
renewcommand{
\backslash
CancelColor}{
\backslash
color{black}}
\end_layout
\end_inset
\lang english
\begin_inset Note Note
status open
\begin_layout Plain Layout
\lang english
reset the color
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
For further customizations, see the documentation of the package
\series bold
cancel
\series default
\lang french
,
\begin_inset CommandInset citation
LatexCommand cite
key "cancel"
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
@ -36424,9 +36581,9 @@ texorpdfstring
Pour avoir la même mise en forme que les autres entêtes, toute l'entête
a été placée dans un environnement
\series bold
boldmath
boldmath
\series default
.
\begin_inset Foot
status collapsed
@ -36443,7 +36600,7 @@ reference "sub:Formules-en-gras"
\end_inset
.
\end_layout
\begin_layout Subsection
@ -36776,7 +36933,7 @@ reference "eq:within"
\begin_inset Formula $n$
\end_inset
variables utilisées
variables utilisées.
\begin_inset Foot
status collapsed
@ -36793,7 +36950,6 @@ reference "sec:Matrices"
\end_inset
.
Pour mettre la description en plus petits caractères, on peut insérer par
exemple la commande
\series bold
@ -36801,7 +36957,7 @@ reference "sec:Matrices"
\backslash
footnotesize
\series default
avant la matrice
avant la matrice.
\begin_inset Foot
status collapsed
@ -36818,7 +36974,7 @@ reference "sub:Tailles-polices"
\end_inset
.
\end_layout
\begin_layout Standard
@ -37259,7 +37415,7 @@ Typographiques, conseils
\begin_layout Standard
Ce paragraphe est un résumé des usages typographiques les plus importants,
documentés dans les normes ISO
documentés dans les normes ISO.
\begin_inset Foot
status collapsed
@ -37293,7 +37449,7 @@ key "Checklist"
\end_inset
.
\end_layout
\begin_layout Itemize
@ -38318,6 +38474,39 @@ target "ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf
de tous les symboles disponibles avec les paquetages LaTeX
\end_layout
\begin_layout Bibliography
\labelwidthstring Références
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "cancel"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Documentation"
target "http://mirrors.ctan.org/macros/latex/contrib/cancel/cancel.pdf"
\end_inset
paquetage LaTeX
\series bold
cancel
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Paquetages ! cancel
\end_layout
\end_inset
\end_layout
\begin_layout Bibliography
\labelwidthstring Références
\begin_inset CommandInset bibitem

View File

@ -74,13 +74,13 @@
% provides caption formatting
%\setkomafont{captionlabel}{\bfseries}
% used in sec. 23.6
% used in sec. 24.5
\usepackage[samesize]{cancel}
% enables calculation of values
\usepackage{calc}
% for multiple columns used in sec. 23.7
% for multiple columns used in sec. 24.7
\usepackage{multicol}
% needed in sec. 19.4
@ -33885,6 +33885,173 @@ status open
\end_layout
\begin_layout Section
\lang english
Computer Algebra Systems
\end_layout
\begin_layout Standard
\lang english
LyX offers the exchange between mathematical expressions written in LyX's
math editor and external applications or user defined scripts.
Currently supported applications are
\family sans
Maple
\family default
,
\family sans
Mathematica
\family default
,
\family sans
Maxima
\family default
and
\family sans
Octave
\family default
.
Note that the set of supported mathematical constructs is limited only
to very simple cases.
\end_layout
\begin_layout Subsection
\lang english
Usage
\end_layout
\begin_layout Standard
\lang english
Write some expression in a formula, go to the
\family sans
Edit\SpecialChar \menuseparator
Math\SpecialChar \menuseparator
Use Computer Algebra System
\family default
menu and choose the application you have installed on the computer.
After that the result of computation should show on the right side of the
expression together with the
\begin_inset Quotes eld
\end_inset
=
\begin_inset Quotes erd
\end_inset
operator.
\end_layout
\begin_layout Standard
\lang english
Here are few simple examples (with results from
\family typewriter
Maxima
\family default
) to show what kind of computations can be performed:
\end_layout
\begin_layout Itemize
\lang english
\begin_inset Formula $\frac{37}{3}*2-\sum_{i=1}^{3}i^{i}=-\frac{22}{3}$
\end_inset
\end_layout
\begin_layout Itemize
\lang english
\begin_inset Formula $\frac{37.0}{3}=12.33333333333333$
\end_inset
\end_layout
\begin_layout Itemize
\lang english
\begin_inset Formula $\int_{1}^{2}\sin(x)dx=\cos1-\cos2$
\end_inset
\end_layout
\begin_layout Itemize
\lang english
\begin_inset Formula $\det\left[\begin{array}{ccc}
1 & 6 & 7\\
2 & 5 & 8\\
3 & 4 & 17
\end{array}\right]=-56$
\end_inset
\end_layout
\begin_layout Itemize
\lang english
\begin_inset Formula $\lim_{x\rightarrow0}\left(\frac{\sin(x)}{x}\right)=1$
\end_inset
\end_layout
\begin_layout Subsection
\lang english
Keyboard shortcut
\end_layout
\begin_layout Standard
\lang english
Currently there is no keyboard shortcut for calling the algebra applications.
One can easily bind a shortcut to the
\family sans
math-extern
\family default
LyX function (see the
\family sans
\emph on
LyX Functions
\family default
\emph default
manual).
One could e.
\begin_inset space \thinspace{}
\end_inset
g.
\begin_inset space ~
\end_inset
bind the
\family sans
Return
\family default
key inside the math editor.
To bind it to
\family typewriter
Maxima
\family default
one would use this shortcut definition command:
\end_layout
\begin_layout Standard
\series bold
\lang english
command-alternatives break-paragraph;math-extern maxima
\end_layout
\begin_layout Standard
\begin_inset Newpage newpage
\end_inset
@ -34810,7 +34977,7 @@ status collapsed
\series bold
\backslash
usepackage[samesize]{cancel}
usepackage{cancel}
\end_layout
\begin_layout Standard
@ -37117,6 +37284,39 @@ target "ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf
\end_inset
\end_layout
\begin_layout Bibliography
\labelwidthstring 参考文献
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "cancel"
\end_inset
LaTeX
\series bold
cancel
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
ぱっけーじ@パッケージ ! cancel
\end_layout
\end_inset
パッケージの
\begin_inset CommandInset href
LatexCommand href
name "取扱説明書"
target "http://mirrors.ctan.org/macros/latex/contrib/cancel/cancel.pdf"
\end_inset
\end_layout
\begin_layout Bibliography