summaryrefslogtreecommitdiff
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
parent0a65f76266ebf273e6277efbdfbd62f0240c123f (diff)
skmath (25jun13)
git-svn-id: svn://tug.org/texlive/trunk@30941 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/skmath/README2
-rw-r--r--Master/texmf-dist/doc/latex/skmath/skmath.pdfbin220603 -> 223175 bytes
-rw-r--r--Master/texmf-dist/source/latex/skmath/skmath.tex60
-rw-r--r--Master/texmf-dist/tex/latex/skmath/skmath.sty35
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds14
5 files changed, 81 insertions, 30 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
index 9516b821d8c..0663d88192c 100644
--- a/Master/texmf-dist/doc/latex/skmath/skmath.pdf
+++ b/Master/texmf-dist/doc/latex/skmath/skmath.pdf
Binary files differ
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:}
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 70c631f88f7..b092c35e8af 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -1104,7 +1104,6 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'pgf-blur' => '&PREHOOK_pgfblur',
'pictex' => '&PREHOOK_pictex',
'skb' => '&PREHOOK_flatten1',
- 'skmath' => '&PREHOOK_savepdf',
'skrapport' => '&PREHOOK_savepdf',
'suftesi' => '&PREHOOK_suftesi',
'tui' => '&PREHOOK_tui',
@@ -1169,7 +1168,6 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'pst-geo' => '&POSTpstgeo',
'pxbase' => '&POSTpxbase',
'pxchfon' => '&POSTpxchfon',
- 'skmath' => '&POST_savepdf',
'skrapport' => '&POST_savepdf',
'splitindex' => '&POST_do_man',
'tipa-de' => '&POST_rmsymlink',
@@ -2119,7 +2117,6 @@ my $core_latex = "$Master/texmf-dist/tex/latex";
'schedule' => 'latex', # requires interaction
'silence' => 'latex -translate-file=empty.tcx', # no 8-bit
'skdoc' => 'tex',
- 'skmath' => 'pdflatex', # as with download
'skrapport' => 'pdflatex', # as with download
'svn-multi' => 'latex', # interaction for .pl
'teubner' => 'latex', # interaction
@@ -4705,17 +4702,6 @@ sub PREHOOK_pictex {
&SYSTEM ("$RM -rf addon/autoarea*");
}
-sub PREHOOK_savepdf {
- print "PREHOOK_savepdf - $package\n";
- &SYSTEM ("$CP $package.pdf $package-save.pdf");
-}
-
-sub POST_savepdf {
- print "POST_savepdf - $package\n";
- &SYSTEM ("$RM $package.pdf $package.bib");
- &SYSTEM ("$MV $package-save.pdf $package.pdf");
-}
-
sub PREHOOK_suftesi {
print "PREHOOK_$package - move doc/latex subdirs\n";
# not example/, then get logo.png clash