summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-03-10 22:20:40 +0000
committerKarl Berry <karl@freefriends.org>2021-03-10 22:20:40 +0000
commit3137a052691d37f1ec87f00109adcceedb6db0b6 (patch)
tree56d8f5a6873f29a92d73c0e630cf52e1f9ea938b
parent18dd7002cc4041d250905f6967866a43de6547cd (diff)
newverbs (10mar21)
git-svn-id: svn://tug.org/texlive/trunk@58256 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/newverbs/README2
-rw-r--r--Master/texmf-dist/doc/latex/newverbs/newverbs.pdfbin221177 -> 221688 bytes
-rw-r--r--Master/texmf-dist/source/latex/newverbs/newverbs.dtx27
-rw-r--r--Master/texmf-dist/tex/latex/newverbs/newverbs.sty8
4 files changed, 20 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/newverbs/README b/Master/texmf-dist/doc/latex/newverbs/README
index 09968f85849..8d6c410c79e 100644
--- a/Master/texmf-dist/doc/latex/newverbs/README
+++ b/Master/texmf-dist/doc/latex/newverbs/README
@@ -1,6 +1,6 @@
The 'newverbs' LaTeX package
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Copyright (c) 2010-2020 by Martin Scharrer <martin@scharrer-online.de>
+Copyright (c) 2010-2021 by Martin Scharrer <martin@scharrer-online.de>
Code repository: https://sourceforge.net/projects/newfloat/
This package allows the definition of \verb variants which add TeX code before
diff --git a/Master/texmf-dist/doc/latex/newverbs/newverbs.pdf b/Master/texmf-dist/doc/latex/newverbs/newverbs.pdf
index 6d914fab80c..2e8c79c6842 100644
--- a/Master/texmf-dist/doc/latex/newverbs/newverbs.pdf
+++ b/Master/texmf-dist/doc/latex/newverbs/newverbs.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/newverbs/newverbs.dtx b/Master/texmf-dist/source/latex/newverbs/newverbs.dtx
index efc74a3981e..8c22b0229d5 100644
--- a/Master/texmf-dist/source/latex/newverbs/newverbs.dtx
+++ b/Master/texmf-dist/source/latex/newverbs/newverbs.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%<=*COPYRIGHT>
-%% Copyright (C) 2012-2020 by Martin Scharrer <martin@scharrer-online.de>
+%% Copyright (C) 2012-2021 by Martin Scharrer <martin@scharrer-online.de>
%% --------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -23,10 +23,10 @@
%<*driver>
\ProvidesFile{newverbs.dtx}[%
%<=*DATE>
- 2010/09/02
+ 2021/01/06
%<=/DATE>
%<=*VERSION>
- v1.5
+ v1.6
%<=/VERSION>
newverbs DTX file]
\documentclass{ydoc}
@@ -70,6 +70,7 @@
% \changes{v1.3}{2011/07/24}{Added macros to collect verbatim arguments.}
% \changes{v1.4}{2019/09/09}{Added several suggested changes.}
% \changes{v1.5}{2020/09/02}{Added support for mathmode.}
+% \changes{v1.6}{2021/01/06}{Changed \cs{Verbdef} to define robust commands.}
%
% \DoNotIndex{\newcommand,\newenvironment,\providecommand}
%
@@ -88,13 +89,15 @@
%
% \subsection{Defining new variants of \cs{verb}}
%
-% \DescribeMacro\newverbcommand {<\textbackslash macro>}{<code before>}{<code after>}
-% \DescribeMacro\renewverbcommand {<\textbackslash macro>}{<code before>}{<code after>}
-% \DescribeMacro\provideverbcommand {<\textbackslash macro>}{<code before>}{<code after>}
-% This macros allow the definition of \cs{verb} variants. The verbatim content is processed using \cs{verb}, but the
-% variants can add \TeX\ code before and after it.
-% The three definition macros use |\newcommand*|, |\renewcommand*| and |\providecommand*| internally to define \meta{macro}, respectively.
-% Afterwards \meta{macro} can be used like \cs{verb}. The star version of \meta{macro} will use \cs{verb}|*|.
+% \DescribeMacro\newverbcommand {<\textbackslash macro>}[<\textbackslash verbmacro>]{<code before>}{<code after>}
+% \DescribeMacro\renewverbcommand {<\textbackslash macro>}[<\textbackslash verbmacro>]{<code before>}{<code after>}
+% \DescribeMacro\provideverbcommand {<\textbackslash macro>}[<\textbackslash verbmacro>]{<code before>}{<code after>}
+% This macros allow the definition of \cs{verb} variants.
+% The verbatim content is first processed using \meta{\textbackslash verbmacro} which defaults to \cs{verb}, then the
+% given \TeX\ code is added before and afterwards.
+% The three definition macros use |\newcommand*|, |\renewcommand*| and |\providecommand*| internally to define \meta{\textbackslash macro}, respectively.
+% Afterwards \meta{\textbackslash macro} can be used like \cs{verb}.
+% The star version of \meta{\textbackslash macro} will use \meta{\textbackslash verbmacro}|*| (default: \cs{verb}|*|).
%
% See the implementation of \cs{qverb} in section~\ref{sec:impl} for an example.
%
@@ -288,7 +291,7 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\new@verbcommand}[5]{underlying definition macro}{verb macro to be used}{macro to define}{code before}{code after}
+% \begin{macro}{\new@verbcommand}[5]{underlying definition macro}{macro to define}{verb macro to be used}{code before}{code after}
% The trailing code is inserted by patching \cs{verb@egroup} which is called by \cs{verb}
% after the verbatim content.
% \begin{macrocode}
@@ -760,7 +763,7 @@
% \begin{macro}{\@Verbdef}[2]{<star or empty>}{<macro to be defined>}
% \begin{macrocode}
\def\@Verbdef#1#2{%
- \Collectverb#1{\def#2}%
+ \Collectverb#1{\DeclareRobustCommand#2}%
}
% \end{macrocode}
% \end{macro}
diff --git a/Master/texmf-dist/tex/latex/newverbs/newverbs.sty b/Master/texmf-dist/tex/latex/newverbs/newverbs.sty
index 616ddb50466..1237d37d838 100644
--- a/Master/texmf-dist/tex/latex/newverbs/newverbs.sty
+++ b/Master/texmf-dist/tex/latex/newverbs/newverbs.sty
@@ -20,7 +20,7 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%% Copyright (C) 2012-2020 by Martin Scharrer <martin@scharrer-online.de>
+%% Copyright (C) 2012-2021 by Martin Scharrer <martin@scharrer-online.de>
%% --------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -37,8 +37,8 @@
%% This work consists of the files newverbs.dtx and newverbs.ins
%% and the derived file newverbs.sty.
\ProvidesPackage{newverbs}[%
- 2010/09/02
- v1.5
+ 2021/01/06
+ v1.6
Define new 'verb' commands and short verb. characters]
\newcommand*\newverbcommand{\new@verbcommand\newcommand}
\newcommand*\renewverbcommand{\new@verbcommand\renewcommand}
@@ -294,7 +294,7 @@
{\@Verbdef{}}%
}
\def\@Verbdef#1#2{%
- \Collectverb#1{\def#2}%
+ \Collectverb#1{\DeclareRobustCommand#2}%
}
\providecommand*\verbdef{%
\@ifstar