texlive[61099] Master/texmf-dist: fancyvrb (20nov21)
commits+karl at tug.org
commits+karl at tug.org
Sat Nov 20 21:53:44 CET 2021
Revision: 61099
http://tug.org/svn/texlive?view=revision&revision=61099
Author: karl
Date: 2021-11-20 21:53:44 +0100 (Sat, 20 Nov 2021)
Log Message:
-----------
fancyvrb (20nov21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/fancyvrb/Changes
trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf
trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex
trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Modified: trunk/Master/texmf-dist/doc/latex/fancyvrb/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/Changes 2021-11-20 20:53:31 UTC (rev 61098)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/Changes 2021-11-20 20:53:44 UTC (rev 61099)
@@ -1,4 +1,5 @@
--- fancyvrb.sty
+4.0 2021/11/19 - added lastline=0 for no output (hv)
3.9 2021/10/15 - fix for \@currentcounter and \@currentlabel (hv)
3.8 2021/08/12 - fix for linenumbers and reused SaveVerbatim (hv)
(thanks to Ohad Kammar)
Modified: trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex 2021-11-20 20:53:31 UTC (rev 61098)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex 2021-11-20 20:53:44 UTC (rev 61099)
@@ -61,7 +61,7 @@
% {\footnotesize \url{tvz at Princeton.EDU}}\\[5mm]
{Packaging and documentation by}\\
{\footnotesize Denis Girou (CNRS/IDRIS -- France),}\\[-2mm]
- {\footnotesize Sebastian Rahtz (Elsevier -- GB)}\\[-2mm]
+ {\footnotesize Sebastian Rahtz\dagger\ (Elsevier -- GB)}\\[-2mm]
{\footnotesize and}\\[-2mm]
{\footnotesize Herbert Voß\ (FU Berlin -- DE)}
}
@@ -714,7 +714,7 @@
\begin{SideBySideExample}[gobble=2]
\newcommand*\FancyVerbStartString{FROM}
- \newcommand*\FancyVerbStopString{TO}
+ \renewcommand*\FancyVerbStopString{TO}
\begin{Verbatim}
First verbatim line.
FROM
@@ -726,6 +726,18 @@
\noindent To redefine the strings, you must use \cs{renewcommand*}.
+With the setting \texttt{lastline=} or \texttt{lastline=0} nothing will be printed.
+
+\begin{SideBySideExample}[gobble=2]
+ foo
+ \begin{Verbatim}[frame=none,lastline=]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Verbatim}
+ bar
+\end{SideBySideExample}
+
\subsubsection{Spaces and tab characters}
\begin{optlist}
@@ -736,7 +748,7 @@
\begin{SideBySideExample}[gobble=0]
\begin{Verbatim}[showspaces=true]
- Verbatim line.
+ Verbatim line.
\end{Verbatim}
\end{SideBySideExample}
Modified: trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty 2021-11-20 20:53:31 UTC (rev 61098)
+++ trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty 2021-11-20 20:53:44 UTC (rev 61099)
@@ -2,7 +2,7 @@
%% This is file `fancyvrb.sty',
%%
%% COPYRIGHT 1992-1999, by Timothy Van Zandt <tvz at zandtwerk.kellogg.nwu.edu>
-%% -2021, by Herbert Voss <hvoss at tug.org>
+%% 2000-... , by Herbert Voss <hvoss at 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 at loaded\endcsname
\let\fancyvrb at loaded\endinput
@@ -168,6 +168,7 @@
\def\KV at FV@firstline at default{%
\let\FancyVerbStartNum\z@
\let\FancyVerbStartString\relax}
+\def\FancyVerbStopNum{1}
\define at key{FV}{lastline}{%
\afterassignment\FV at ParseStop\@tempcnta=0#1\relax\@nil{#1}}
\def\FV at ParseStop#1\relax\@nil#2{%
@@ -180,7 +181,7 @@
\def\KV at FV@lastline at default{%
\let\FancyVerbStopNum\z@
\let\FancyVerbStopString\relax}
-\fvset{firstline,lastline}
+\fvset{firstline,lastline=\m at ne}
\newcount\FV at CodeLineNo
\def\FV at PreProcessLine{%
\global\advance\FV at CodeLineNo\@ne
@@ -221,7 +222,7 @@
%% SR modification end
\def\FV at DefineFindStop{%
\ifx\FancyVerbStopString\relax
- \ifnum\FancyVerbStopNum<\@ne
+ \ifnum\FancyVerbStopNum<\z@
\let\FV at FindStartStop\FV@@PreProcessLine
\else
\let\FV at FindStartStop\FV at FindStopNum
@@ -523,11 +524,12 @@
\catcode`\^^I=\active
\gdef\FV at DefineWhiteSpace{\def {\FV at Space}\def^^I{\FV at Tab}}%
\endgroup
+\define at key{FV}{file_ext}[.tex]{\def\FancyVerbFileExtension{#1}}
\define at key{FV}{defineactive}[]{\def\FancyVerbDefineActive{#1\relax}}
\define at key{FV}{defineactive*}{%
\expandafter\def\expandafter\FancyVerbDefineActive\expandafter{%
\FancyVerbDefineActive#1\relax}}
-\fvset{defineactive}
+\fvset{defineactive,file_ext=.tex}
\define at booleankey{FV}{showspaces}%
{\def\FV at Space{{\FancyVerbSpace}}}%
{\def\FV at Space{\ }}
@@ -730,9 +732,11 @@
\penalty\interlinepenalty}%
\box\@tempboxa
\else
- \ifx\FV at ProcessLine\FV at ListProcessLine@i
- \FV at Error{Empty verbatim environment}{}%
- \FV at ProcessLine{}%
+ \ifnum\FancyVerbStopNum>\@ne
+ \ifx\FV at ProcessLine\FV at ListProcessLine@i
+ \FV at Error{Empty verbatim environment}{}%
+ \FV at ProcessLine{}%
+ \fi
\fi
\fi
\fi}
More information about the tex-live-commits
mailing list.