diff options
author | Norbert Preining <norbert@preining.info> | 2019-11-05 03:01:03 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-11-05 03:01:03 +0000 |
commit | a78951f836b9edaab2dd593f38e33732f0d03cbd (patch) | |
tree | 2193c3bad6f85727c4d09d08941c437f4094537a /macros/latex/contrib/withargs/withargs.tex | |
parent | 97106ae9313f56715ee9a7dd39d708158c1bedb9 (diff) |
CTAN sync 201911050301
Diffstat (limited to 'macros/latex/contrib/withargs/withargs.tex')
-rw-r--r-- | macros/latex/contrib/withargs/withargs.tex | 17 |
1 files changed, 17 insertions, 0 deletions
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} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |