texlive[58259] branches/branch2020.0/Master/texmf-dist: newverbs

commits+karl at tug.org commits+karl at tug.org
Wed Mar 10 23:24:42 CET 2021


Revision: 58259
          http://tug.org/svn/texlive?view=revision&revision=58259
Author:   karl
Date:     2021-03-10 23:24:42 +0100 (Wed, 10 Mar 2021)
Log Message:
-----------
newverbs (10mar21) (branch)

Modified Paths:
--------------
    branches/branch2020.0/Master/texmf-dist/doc/latex/newverbs/README
    branches/branch2020.0/Master/texmf-dist/doc/latex/newverbs/newverbs.pdf
    branches/branch2020.0/Master/texmf-dist/source/latex/newverbs/newverbs.dtx
    branches/branch2020.0/Master/texmf-dist/tex/latex/newverbs/newverbs.sty

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/newverbs/README
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/latex/newverbs/README	2021-03-10 22:24:30 UTC (rev 58258)
+++ branches/branch2020.0/Master/texmf-dist/doc/latex/newverbs/README	2021-03-10 22:24:42 UTC (rev 58259)
@@ -1,6 +1,6 @@
 The 'newverbs' LaTeX package
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Copyright (c) 2010-2020 by Martin Scharrer <martin at scharrer-online.de>
+Copyright (c) 2010-2021 by Martin Scharrer <martin at scharrer-online.de>
 Code repository: https://sourceforge.net/projects/newfloat/
 
 This package allows the definition of \verb variants which add TeX code before

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/newverbs/newverbs.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/newverbs/newverbs.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/newverbs/newverbs.dtx	2021-03-10 22:24:30 UTC (rev 58258)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/newverbs/newverbs.dtx	2021-03-10 22:24:42 UTC (rev 58259)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %<=*COPYRIGHT>
-%% Copyright (C) 2012-2020 by Martin Scharrer <martin at scharrer-online.de>
+%% Copyright (C) 2012-2021 by Martin Scharrer <martin at 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 at verbcommand}[5]{underlying definition macro}{verb macro to be used}{macro to define}{code before}{code after}
+% \begin{macro}{\new at 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 at 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}

Modified: branches/branch2020.0/Master/texmf-dist/tex/latex/newverbs/newverbs.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/latex/newverbs/newverbs.sty	2021-03-10 22:24:30 UTC (rev 58258)
+++ branches/branch2020.0/Master/texmf-dist/tex/latex/newverbs/newverbs.sty	2021-03-10 22:24:42 UTC (rev 58259)
@@ -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 at scharrer-online.de>
+%% Copyright (C) 2012-2021 by Martin Scharrer <martin at 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 at verbcommand\newcommand}
 \newcommand*\renewverbcommand{\new at verbcommand\renewcommand}
@@ -294,7 +294,7 @@
         {\@Verbdef{}}%
 }
 \def\@Verbdef#1#2{%
-    \Collectverb#1{\def#2}%
+    \Collectverb#1{\DeclareRobustCommand#2}%
 }
 \providecommand*\verbdef{%
     \@ifstar



More information about the tex-live-commits mailing list.