From 25fba613796cd9c1b2042e28152d451d8cddef4a Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 21 Nov 2021 03:01:17 +0000 Subject: CTAN sync 202111210301 --- macros/latex/contrib/fancyvrb/latex/fancyvrb.sty | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'macros/latex/contrib/fancyvrb/latex/fancyvrb.sty') diff --git a/macros/latex/contrib/fancyvrb/latex/fancyvrb.sty b/macros/latex/contrib/fancyvrb/latex/fancyvrb.sty index d256964b01..47ef7ea7ba 100644 --- a/macros/latex/contrib/fancyvrb/latex/fancyvrb.sty +++ b/macros/latex/contrib/fancyvrb/latex/fancyvrb.sty @@ -2,7 +2,7 @@ %% This is file `fancyvrb.sty', %% %% COPYRIGHT 1992-1999, by Timothy Van Zandt -%% -2021, by Herbert Voss +%% 2000-... , by Herbert Voss %% %% This package may be distributed under the terms of the LaTeX Project Public %% License, as described in lppl.txt in the base LaTeX distribution. @@ -13,9 +13,9 @@ %% verbatim environments and commands and extensive documentation. %% \NeedsTeXFormat{LaTeX2e} -\def\fileversion{3.9} -\def\filedate{2021/10/15} -\ProvidesPackage{fancyvrb}[2021/10/15 v3.9 verbatim text (tvz,hv)] +\def\fileversion{4.0} +\def\filedate{2021/11/19} +\ProvidesPackage{fancyvrb}[2021/11/18 v4.0 verbatim text (tvz,hv)] %\message{Style option: `fancyvrb' v\fileversion \space <\filedate> (tvz)} \csname fancyvrb@loaded\endcsname \let\fancyvrb@loaded\endinput @@ -168,6 +168,7 @@ \def\KV@FV@firstline@default{% \let\FancyVerbStartNum\z@ \let\FancyVerbStartString\relax} +\def\FancyVerbStopNum{1} \define@key{FV}{lastline}{% \afterassignment\FV@ParseStop\@tempcnta=0#1\relax\@nil{#1}} \def\FV@ParseStop#1\relax\@nil#2{% @@ -180,7 +181,7 @@ \def\KV@FV@lastline@default{% \let\FancyVerbStopNum\z@ \let\FancyVerbStopString\relax} -\fvset{firstline,lastline} +\fvset{firstline,lastline=\m@ne} \newcount\FV@CodeLineNo \def\FV@PreProcessLine{% \global\advance\FV@CodeLineNo\@ne @@ -221,7 +222,7 @@ %% SR modification end \def\FV@DefineFindStop{% \ifx\FancyVerbStopString\relax - \ifnum\FancyVerbStopNum<\@ne + \ifnum\FancyVerbStopNum<\z@ \let\FV@FindStartStop\FV@@PreProcessLine \else \let\FV@FindStartStop\FV@FindStopNum @@ -523,11 +524,12 @@ \catcode`\^^I=\active \gdef\FV@DefineWhiteSpace{\def {\FV@Space}\def^^I{\FV@Tab}}% \endgroup +\define@key{FV}{file_ext}[.tex]{\def\FancyVerbFileExtension{#1}} \define@key{FV}{defineactive}[]{\def\FancyVerbDefineActive{#1\relax}} \define@key{FV}{defineactive*}{% \expandafter\def\expandafter\FancyVerbDefineActive\expandafter{% \FancyVerbDefineActive#1\relax}} -\fvset{defineactive} +\fvset{defineactive,file_ext=.tex} \define@booleankey{FV}{showspaces}% {\def\FV@Space{{\FancyVerbSpace}}}% {\def\FV@Space{\ }} @@ -730,9 +732,11 @@ \penalty\interlinepenalty}% \box\@tempboxa \else - \ifx\FV@ProcessLine\FV@ListProcessLine@i - \FV@Error{Empty verbatim environment}{}% - \FV@ProcessLine{}% + \ifnum\FancyVerbStopNum>\@ne + \ifx\FV@ProcessLine\FV@ListProcessLine@i + \FV@Error{Empty verbatim environment}{}% + \FV@ProcessLine{}% + \fi \fi \fi \fi} -- cgit v1.2.3