From 4a7cfffc15507745d4304e7870a1cd248ecc93d4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 2 Jun 2022 19:59:02 +0000 Subject: fancyvrb (2jun22) git-svn-id: svn://tug.org/texlive/trunk@63474 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/fancyvrb/Changes | 1 + .../texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf | Bin 141454 -> 143168 bytes .../texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex | 33 +++++++++++++++++++++ Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty | 22 ++------------ 4 files changed, 37 insertions(+), 19 deletions(-) diff --git a/Master/texmf-dist/doc/latex/fancyvrb/Changes b/Master/texmf-dist/doc/latex/fancyvrb/Changes index a90f370d89c..618ad952854 100644 --- a/Master/texmf-dist/doc/latex/fancyvrb/Changes +++ b/Master/texmf-dist/doc/latex/fancyvrb/Changes @@ -1,4 +1,5 @@ --- fancyvrb.sty +4.3 2022/06/02 - prevent pagebreak after top rule (hv) 4.2a 2022/05/26 - updated documentation (hv) 4.2 2022/04/12 - change option file_ext to fileext (hv) 4.1b 2021/12/21 - fix for ~ in message (hv) diff --git a/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf b/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf index 2850067b7a0..55919be98a5 100644 Binary files a/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf and b/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex b/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex index ec5cc930cee..43d355c4566 100644 --- a/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex +++ b/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex @@ -87,6 +87,7 @@ Report bugs to \url{hvoss@tug.org} \vfill Thanks to Claudio Beccari, +Karl Berry, Jean-François Burnol, Philippe Esperet, %\url{esperet@marie.polytechnique.fr}, Michael Friendly, %\url{friendly@hotspur.psych.yorku.ca}, @@ -807,6 +808,38 @@ interpreted (using tabs is in fact a rather old-fashioned style of coding): \end{Verbatim} \end{SideBySideExample} + +\subsubsection{Vertical space before and after} + +\begin{optlist} + \item[vspace (dimension)]: value to give to the usual + vertical list space . + (\emph{Default: \cs{topsep}} \Dash its current value just before the verbatim + command). +\end{optlist} + +\begin{SideBySideExample} + A line before Verbatim + \begin{Verbatim}[frame=lines,label=foo] + First verbatim line. + Second verbatim line. + \end{Verbatim} + A line after Verbatim +\end{SideBySideExample} + +\begin{SideBySideExample} + A line before Verbatim + \begin{Verbatim}[frame=lines,label=foo, + vspace=0pt] + First verbatim line. + Second verbatim line. + \end{Verbatim} + A line after Verbatim +\end{SideBySideExample} + + + + \subsubsection{Escape characters for inserting commands} \begin{optlist} diff --git a/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty b/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty index a8d4922c3d3..2651e59e305 100644 --- a/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty +++ b/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty @@ -13,8 +13,8 @@ %% verbatim environments and commands and extensive documentation. %% \NeedsTeXFormat{LaTeX2e} -\def\fileversion{4.2a} -\def\filedate{2022/05/26} +\def\fileversion{4.3} +\def\filedate{2022/06/02} \ProvidesPackage{fancyvrb}[\filedate\space \fileversion\space verbatim text (tvz,hv)] %\message{Style option: `fancyvrb' v\fileversion \space <\filedate> (tvz)} \csname fancyvrb@loaded\endcsname @@ -865,23 +865,16 @@ \def\FV@LabelPositionTopLine{\@ne}% \def\FV@LabelPositionBottomLine{\@ne}} \fvset{labelposition=topline} -%% DG/SR modification end -%% DG/SR modification begin - May. 19, 1998 -%% \def\FV@SingleFrameLine{% \def\FV@SingleFrameLine#1{% -%% DG/SR modification end \hbox to\z@{% \kern\leftmargin -%% DG/SR modification begin - Jun. 22, 1998 \ifnum#1=\z@ \let\FV@Label\FV@LabelBegin \else \let\FV@Label\FV@LabelEnd \fi \ifx\FV@Label\relax -%% DG/SR modification end \FancyVerbRuleColor{\vrule \@width\linewidth \@height\FV@FrameRule}% -%% DG/SR modification begin - Jun. 22, 1998 \else \ifnum#1=\z@ \setbox\z@\hbox{\strut\enspace\FV@LabelBegin\enspace\strut}% @@ -907,30 +900,21 @@ \fi \fi \fi -%% DG/SR modification end \hss}} -%% DG/SR modification begin - May. 19, 1998 \def\FV@FrameLineWithLabel{% \ht\z@\@tempdimb\dp\z@\@tempdimb% \FancyVerbRuleColor{% \vrule \@width\@tempdimc \@height\FV@FrameRule \raise\@tempdimb\box\z@ \vrule \@width\@tempdimc \@height\FV@FrameRule}} -%% DG/SR modification end \def\FV@BeginListFrame@Lines{% \begingroup \lineskip\z@skip -%% DG modification begin - June 18, 1997 (effect of \baselineskip too earlier) -%% \baselineskip\z@skip -%% \FV@SingleFrameLine -%% DG/SR modification begin - May. 19, 1998 -%% \FV@SingleFrameLine \FV@SingleFrameLine{\z@}% -%% DG/SR modification end \kern-0.5\baselineskip\relax \baselineskip\z@skip -%% DG modification end \kern\FV@FrameSep\relax + \penalty\@M% prevent a pagebreak after the line 20220602 (hv) \endgroup}% \def\FV@EndListFrame@Lines{% \begingroup -- cgit v1.2.3