From 8379a45cf223651b1c06ebf5c680db900d83c6a5 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 11 Mar 2021 03:00:51 +0000 Subject: CTAN sync 202103110300 --- macros/latex/contrib/newverbs/README | 2 +- macros/latex/contrib/newverbs/newverbs.dtx | 27 +++++++++++++++------------ macros/latex/contrib/newverbs/newverbs.pdf | Bin 221177 -> 221688 bytes 3 files changed, 16 insertions(+), 13 deletions(-) (limited to 'macros/latex/contrib/newverbs') diff --git a/macros/latex/contrib/newverbs/README b/macros/latex/contrib/newverbs/README index 09968f8584..8d6c410c79 100644 --- a/macros/latex/contrib/newverbs/README +++ b/macros/latex/contrib/newverbs/README @@ -1,6 +1,6 @@ The 'newverbs' LaTeX package ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Copyright (c) 2010-2020 by Martin Scharrer +Copyright (c) 2010-2021 by Martin Scharrer Code repository: https://sourceforge.net/projects/newfloat/ This package allows the definition of \verb variants which add TeX code before diff --git a/macros/latex/contrib/newverbs/newverbs.dtx b/macros/latex/contrib/newverbs/newverbs.dtx index efc74a3981..8c22b0229d 100644 --- a/macros/latex/contrib/newverbs/newverbs.dtx +++ b/macros/latex/contrib/newverbs/newverbs.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment %<=*COPYRIGHT> -%% Copyright (C) 2012-2020 by Martin Scharrer +%% Copyright (C) 2012-2021 by Martin Scharrer %% -------------------------------------------------------------------- %% 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>}{}{} -% \DescribeMacro\renewverbcommand {<\textbackslash macro>}{}{} -% \DescribeMacro\provideverbcommand {<\textbackslash macro>}{}{} -% 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>]{}{} +% \DescribeMacro\renewverbcommand {<\textbackslash macro>}[<\textbackslash verbmacro>]{}{} +% \DescribeMacro\provideverbcommand {<\textbackslash macro>}[<\textbackslash verbmacro>]{}{} +% 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]{}{} % \begin{macrocode} \def\@Verbdef#1#2{% - \Collectverb#1{\def#2}% + \Collectverb#1{\DeclareRobustCommand#2}% } % \end{macrocode} % \end{macro} diff --git a/macros/latex/contrib/newverbs/newverbs.pdf b/macros/latex/contrib/newverbs/newverbs.pdf index 6d914fab80..2e8c79c684 100644 Binary files a/macros/latex/contrib/newverbs/newverbs.pdf and b/macros/latex/contrib/newverbs/newverbs.pdf differ -- cgit v1.2.3