diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty b/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty index d256964b01c..47ef7ea7bad 100644 --- a/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty +++ b/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty @@ -2,7 +2,7 @@ %% This is file `fancyvrb.sty', %% %% COPYRIGHT 1992-1999, by Timothy Van Zandt <tvz@zandtwerk.kellogg.nwu.edu> -%% -2021, by Herbert Voss <hvoss@tug.org> +%% 2000-... , by Herbert Voss <hvoss@tug.org> %% %% 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} |