summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/withargs
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-11-05 03:01:03 +0000
committerNorbert Preining <norbert@preining.info>2019-11-05 03:01:03 +0000
commita78951f836b9edaab2dd593f38e33732f0d03cbd (patch)
tree2193c3bad6f85727c4d09d08941c437f4094537a /macros/latex/contrib/withargs
parent97106ae9313f56715ee9a7dd39d708158c1bedb9 (diff)
CTAN sync 201911050301
Diffstat (limited to 'macros/latex/contrib/withargs')
-rw-r--r--macros/latex/contrib/withargs/README4
-rw-r--r--macros/latex/contrib/withargs/withargs.pdfbin472590 -> 472309 bytes
-rw-r--r--macros/latex/contrib/withargs/withargs.sty5
-rw-r--r--macros/latex/contrib/withargs/withargs.tex17
4 files changed, 21 insertions, 5 deletions
diff --git a/macros/latex/contrib/withargs/README b/macros/latex/contrib/withargs/README
index 45cee67f25..9a5c837e9a 100644
--- a/macros/latex/contrib/withargs/README
+++ b/macros/latex/contrib/withargs/README
@@ -1,6 +1,6 @@
-LaTeX Package : withargs 0.2.0
+LaTeX Package : withargs 0.3.1
-Last Modified : 2016-12-19
+Last Modified : 2019-11-04
Author : Michiel Helvensteijn (www.mhelvens.net)
diff --git a/macros/latex/contrib/withargs/withargs.pdf b/macros/latex/contrib/withargs/withargs.pdf
index a3ea4e7f6d..b5d3c6fc05 100644
--- a/macros/latex/contrib/withargs/withargs.pdf
+++ b/macros/latex/contrib/withargs/withargs.pdf
Binary files differ
diff --git a/macros/latex/contrib/withargs/withargs.sty b/macros/latex/contrib/withargs/withargs.sty
index c7d715687a..ac86a4964e 100644
--- a/macros/latex/contrib/withargs/withargs.sty
+++ b/macros/latex/contrib/withargs/withargs.sty
@@ -17,7 +17,7 @@
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \fi %%%%
-% \CheckSum{117}
+% \CheckSum{116}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -46,7 +46,7 @@
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\ProvidesExplPackage{withargs}{2016/12/19}{0.2.0}
+\ProvidesExplPackage{withargs}{2019/11/04}{0.3.1}
{an inline construct for passing token lists as TeX parameters}
% \end{macrocode}
%
@@ -66,7 +66,6 @@
%
% \begin{macrocode}
\RequirePackage{xparse}
-\RequirePackage{l3regex}
% \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/macros/latex/contrib/withargs/withargs.tex b/macros/latex/contrib/withargs/withargs.tex
index a34e0dcda5..bbe63332bd 100644
--- a/macros/latex/contrib/withargs/withargs.tex
+++ b/macros/latex/contrib/withargs/withargs.tex
@@ -30,6 +30,20 @@
withargs:nn,withargs:cn
}
+% Ugly hack, because of the unfortunate deprecation of 'n' to 'c' conversion,
+% plus the fact that kernel errors, even non-fatal ones, cannot be redirected.
+% Will think of a better solution at some point, but not now.
+\ExplSyntaxOn
+\let\__withargs_docs_old_kernel_msg_error:nnnnnn\__kernel_msg_error:nnnnnn
+\def\__kernel_msg_error:nnnnnn#1#2{
+ \str_if_eq:nnTF { #1/#2 } { kernel/deprecated-variant }{
+ \__kernel_msg_warning:nnnnnn{#1}{#2}
+ }{
+ \__withargs_docs_old_kernel_msg_error:nnnnnn{#1}{#2}
+ }
+}
+\ExplSyntaxOff
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Global Changes %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -46,6 +60,9 @@
\changes{0.2.0}{2016/12/19}
{adjusted code to new version of expl3}
+\changes{0.3.1}{2019/11/04}
+ {adjusted code to new version of expl3}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document} %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%