diff options
author | Karl Berry <karl@freefriends.org> | 2013-06-25 22:58:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-06-25 22:58:24 +0000 |
commit | 1f7d05d169e788c036adaf7c528a55d1dc72174d (patch) | |
tree | a63941a7dba765bc4f8eeaae4fe1e22ec9c35860 /Master/texmf-dist/source/latex/skmath/skmath.tex | |
parent | 0a65f76266ebf273e6277efbdfbd62f0240c123f (diff) |
skmath (25jun13)
git-svn-id: svn://tug.org/texlive/trunk@30941 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/skmath/skmath.tex')
-rw-r--r-- | Master/texmf-dist/source/latex/skmath/skmath.tex | 60 |
1 files changed, 51 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/skmath/skmath.tex b/Master/texmf-dist/source/latex/skmath/skmath.tex index 328f2d03fb5..faedf38e12a 100644 --- a/Master/texmf-dist/source/latex/skmath/skmath.tex +++ b/Master/texmf-dist/source/latex/skmath/skmath.tex @@ -53,7 +53,7 @@ % This is where the documentation begins \begin{document} % Change & version info - \version{0.3} + \version{0.3a} \changes{0.1}{Initial version} \changes{0.1c}{Moved package from \pkg{docstrip} to \pkg{skdoc}} \changes{0.1d}{Fixed fatal documentation and package errors} @@ -61,6 +61,7 @@ \changes{0.1g}{Documentation fixes} \changes{0.2}{Use \pkg{expl3} functionality throughout the package} \changes{0.3}{Added \cs{min}/\cs{max} and friends. Added \cs{pd}} + \changes{0.3a}{Added \cs{sinh}, \cs{cosh} and \cs{tanh}} % Metadata \package[ctan=skmath,vcs=https://github.com/urdh/skmath]{skmath} @@ -187,6 +188,9 @@ \DescribeMacro\tan[<power>]{<expression>} \DescribeMacro\arctan{<expression>} \DescribeMacro\cot[<power>]{<expression>} + \DescribeMacro\sinh[<power>]{<expression>} + \DescribeMacro\cosh[<power>]{<expression>} + \DescribeMacro\tanh[<power>]{<expression>} The trigonometric functions have been redefined to typeset more easily. They typeset \meta{expression} as an argument of the expression, and (if applicable) \meta{power} as @@ -201,13 +205,15 @@ accepts an optional argument denoting the base of the logarithm: \(\log[2]{x}\). - \DescribeMacro\exp{<expression>} + \DescribeMacro\exp*{<expression>} The exponential, \Macro\exp, is redefined to typeset its argument as a superscript of \(e\) in some display styles, and as an argument of \(\mathrm{exp}\) otherwise: \begin{equation*} \exp{\sqrt{2}\exp{x}} \end{equation*} + Additionally, it is possible to force the \(\mathrm{exp}\) mode by + using the starred variant. \DescribeMacro\min*[<domain>]{<expression>} \DescribeMacro\argmin*[<domain>]{<expression>} @@ -244,7 +250,7 @@ \section{Known issues} A list of current issues is available in the Github repository of this package\footnote{\url{https://github.com/urdh/skmath/issues}}, but as - of the release of \theversion, there are no known issues + of the release of \theversion, there are no known issues. %\begin{description} % \item[\#?] ??? %\end{description} @@ -261,7 +267,7 @@ \begin{MacroCode}{package} \RequirePackage{expl3,l3keys2e,xparse} \ProvidesExplPackage{skmath} - {2013/05/24}{0.3}{improved math commands} + {2013/06/24}{0.3a}{improved math commands} \PassOptionsToPackage{intlimits,sumlimits,namelimits}{amsmath} \RequirePackage{amssymb,mathtools,xfrac,isomath} \end{MacroCode} @@ -388,6 +394,9 @@ \cs_new_eq:NN\__skmath_arcsin:\arcsin \cs_new_eq:NN\__skmath_arccos:\arccos \cs_new_eq:NN\__skmath_arctan:\arctan +\cs_new_eq:NN\__skmath_sinh:\sinh +\cs_new_eq:NN\__skmath_cosh:\cosh +\cs_new_eq:NN\__skmath_tanh:\tanh \cs_new_eq:NN\__skmath_ln:\log \cs_new_eq:NN\__skmath_log:\log \cs_new_eq:NN\__skmath_exp:\exp @@ -453,6 +462,33 @@ } \end{MacroCode} \end{macro} + \begin{macro}{\sinh} +\begin{MacroCode}{package} +\RenewDocumentCommand\sinh{om}{% + \IfNoValueTF{#1} + {\ensuremath{\__skmath_sinh:\left(#2\right)}} + {\ensuremath{\__skmath_sinh:\c_math_superscript_token{#1}\left(#2\right)}}% +} +\end{MacroCode} + \end{macro} + \begin{macro}{\cosh} +\begin{MacroCode}{package} +\RenewDocumentCommand\cosh{om}{% + \IfNoValueTF{#1} + {\ensuremath{\__skmath_cosh:\left(#2\right)}} + {\ensuremath{\__skmath_cosh:\c_math_superscript_token{#1}\left(#2\right)}}% +} +\end{MacroCode} + \end{macro} + \begin{macro}{\tanh} +\begin{MacroCode}{package} +\RenewDocumentCommand\tanh{om}{% + \IfNoValueTF{#1} + {\ensuremath{\__skmath_tanh:\left(#2\right)}} + {\ensuremath{\__skmath_tanh:\c_math_superscript_token{#1}\left(#2\right)}}% +} +\end{MacroCode} + \end{macro} \begin{macro}{\ln} \begin{MacroCode}{package} \RenewDocumentCommand\ln{m}{% @@ -471,12 +507,18 @@ \end{macro} \begin{macro}{\exp} \changes{0.1b}{Moved to \textsf{xparse} command definition} + \changes{0.3a}{Added starred variant} \begin{MacroCode}{package} -\RenewDocumentCommand\exp{m}{\ensuremath{\mathchoice% - {e\c_math_superscript_token{#1}}% - {\__skmath_exp:\left(#1\right)}% - {\__skmath_exp:\left(#1\right)}% - {\__skmath_exp:\left(#1\right)}% +\RenewDocumentCommand\exp{sm}{\ensuremath{ + \IfBooleanTF{#1}{ + \__skmath_exp:\left(#2\right) + }{ + \mathchoice + {e\c_math_superscript_token{#2}} + {\__skmath_exp:\left(#2\right)} + {\__skmath_exp:\left(#2\right)} + {\__skmath_exp:\left(#2\right)} + } }} \end{MacroCode} \end{macro} |