summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/skmath
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-06-25 22:58:24 +0000
committerKarl Berry <karl@freefriends.org>2013-06-25 22:58:24 +0000
commit1f7d05d169e788c036adaf7c528a55d1dc72174d (patch)
treea63941a7dba765bc4f8eeaae4fe1e22ec9c35860 /Master/texmf-dist/tex/latex/skmath
parent0a65f76266ebf273e6277efbdfbd62f0240c123f (diff)
skmath (25jun13)
git-svn-id: svn://tug.org/texlive/trunk@30941 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/skmath')
-rw-r--r--Master/texmf-dist/tex/latex/skmath/skmath.sty35
1 files changed, 29 insertions, 6 deletions
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:}