diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/skmath/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/skmath/skmath.pdf | bin | 220603 -> 223175 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/skmath/skmath.tex | 60 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/skmath/skmath.sty | 35 |
4 files changed, 81 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/skmath/README b/Master/texmf-dist/doc/latex/skmath/README index 5055637e744..fbea3ff0f3a 100644 --- a/Master/texmf-dist/doc/latex/skmath/README +++ b/Master/texmf-dist/doc/latex/skmath/README @@ -17,7 +17,7 @@ %% This work consists of the file skmath.tex %% and the derived file skmath.sty. -This is version 0.3 of the skmath package, a package which provides +This is version 0.3a of the skmath package, a package which provides improved and new math commands for superior typesetting with lower effort. The following files are enclosed. diff --git a/Master/texmf-dist/doc/latex/skmath/skmath.pdf b/Master/texmf-dist/doc/latex/skmath/skmath.pdf Binary files differindex 9516b821d8c..0663d88192c 100644 --- a/Master/texmf-dist/doc/latex/skmath/skmath.pdf +++ b/Master/texmf-dist/doc/latex/skmath/skmath.pdf 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} diff --git a/Master/texmf-dist/tex/latex/skmath/skmath.sty b/Master/texmf-dist/tex/latex/skmath/skmath.sty index 382ee9c2365..b5e29a7c07f 100644 --- a/Master/texmf-dist/tex/latex/skmath/skmath.sty +++ b/Master/texmf-dist/tex/latex/skmath/skmath.sty @@ -20,7 +20,7 @@ \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} \cs_new:Nn\__skmath_define_common_sets:{ @@ -60,6 +60,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 @@ -96,6 +99,21 @@ \RenewDocumentCommand\arctan{m}{% \ensuremath{\__skmath_arctan:\left(#1\right)}% } +\RenewDocumentCommand\sinh{om}{% + \IfNoValueTF{#1} + {\ensuremath{\__skmath_sinh:\left(#2\right)}} + {\ensuremath{\__skmath_sinh:\c_math_superscript_token{#1}\left(#2\right)}}% +} +\RenewDocumentCommand\cosh{om}{% + \IfNoValueTF{#1} + {\ensuremath{\__skmath_cosh:\left(#2\right)}} + {\ensuremath{\__skmath_cosh:\c_math_superscript_token{#1}\left(#2\right)}}% +} +\RenewDocumentCommand\tanh{om}{% + \IfNoValueTF{#1} + {\ensuremath{\__skmath_tanh:\left(#2\right)}} + {\ensuremath{\__skmath_tanh:\c_math_superscript_token{#1}\left(#2\right)}}% +} \RenewDocumentCommand\ln{m}{% \ensuremath{\__skmath_ln:\left(#1\right)}% } @@ -104,11 +122,16 @@ {\ensuremath{\__skmath_log:\left(#2\right)}} {\ensuremath{\__skmath_log:\c_math_subscript_token{#1}\left(#2\right)}}% } -\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)} + } }} \cs_new_nopar:Npn\__skmath_minmax_backend:nnnn#1#2#3#4{% \use:c{__skmath_#1:} |