summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fancyvrb
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-05-04 03:02:37 +0000
committerNorbert Preining <norbert@preining.info>2020-05-04 03:02:37 +0000
commit47af91cb8475b7352015cf05ce881e6b8415112d (patch)
tree17afceb279a6187f83336bac3c72536ae1522a88 /macros/latex/contrib/fancyvrb
parentd78de17ddf0443233483fd98f40802cae5aa87c5 (diff)
CTAN sync 202005040302
Diffstat (limited to 'macros/latex/contrib/fancyvrb')
-rw-r--r--macros/latex/contrib/fancyvrb/Changes2
-rw-r--r--macros/latex/contrib/fancyvrb/README4
-rw-r--r--macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.pdfbin133221 -> 125081 bytes
-rw-r--r--macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.tex38
-rw-r--r--macros/latex/contrib/fancyvrb/latex/fancyvrb.sty11
5 files changed, 43 insertions, 12 deletions
diff --git a/macros/latex/contrib/fancyvrb/Changes b/macros/latex/contrib/fancyvrb/Changes
index c59dc316ec..83f18e56f9 100644
--- a/macros/latex/contrib/fancyvrb/Changes
+++ b/macros/latex/contrib/fancyvrb/Changes
@@ -1,4 +1,6 @@
--- fancyvrb.sty
+3.6 2020/05/03 - added optional argument reflabel for page references
+ to verbatim environments (hv)
3.5 2020/01/13 - use \verbvisiblespace instead of \textvisiblespace (hv)
3.4 2019/11/09 - use catcode change for space if \textvisiblespace doesn't exist (hv)
3.3 2019/10/22 - use \textvisiblespace for showspaces (hv)
diff --git a/macros/latex/contrib/fancyvrb/README b/macros/latex/contrib/fancyvrb/README
index e78fec959f..878c579897 100644
--- a/macros/latex/contrib/fancyvrb/README
+++ b/macros/latex/contrib/fancyvrb/README
@@ -20,8 +20,8 @@ font family and size, numbering lines, framing code examples, colouring text
and conditionally processing text.
`fancyvrb' was heavily used in the typesetting of the "LaTeX Graphics
-Companion", by Michel Goossens, Sebastian Rahtz and Frank Mittelbach, Addison
-Wesley, 1997.
+Companion", by Michel Goossens, Frank Mittelbach, Sebastian Rahtz,
+Denis Roegel, and Herbert Voß, Addison Wesley, 2007.
It was presented March 31, 1998 for EuroTeX'98. The original paper is
available on "Cahiers GUTenberg"
diff --git a/macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.pdf b/macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.pdf
index 7a929f1147..33799f3b3d 100644
--- a/macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.pdf
+++ b/macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.tex b/macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.tex
index e28dc41408..e64a86f3ba 100644
--- a/macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.tex
+++ b/macros/latex/contrib/fancyvrb/doc/fancyvrb-doc.tex
@@ -1,13 +1,12 @@
\documentclass{article}
%\usepackage[T1]{fontenc}
%\usepackage[charter]{mathdesign}
-\usepackage{libertinus-otf}
-%\usepackage[scaled=0.84]{beramono}
+\usepackage{libertinus}
\setmonofont[Scale=MatchLowercase,FakeStretch=0.9]{AnonymousPro-Regular.ttf}
-
+%\usepackage[scaled=0.88]{beramono}
\newif\ifChangeBar \ChangeBarfalse
\usepackage{fancyvrb}
-\usepackage[pstricks]{fancyvrb-ex}
+\usepackage{fancyvrb-ex}
\usepackage{xurl}
\usepackage[colorlinks,linktocpage]{hyperref}
\parskip=3pt plus 1pt minus 1pt
@@ -63,7 +62,7 @@
{\footnotesize and}\\[-2mm]
{\footnotesize Herbert Voß\ (FU Berlin -- DE)}
}
-\date{Version 3.5\\ \today}
+\date{Version 3.6\\ \today}
\fvset{frame=single,xrightmargin=0cm,numbers=left,numbersep=3pt,commentchar=Z}
@@ -83,6 +82,7 @@ Report bugs to \url{hvoss@tug.org}
\vfill
Thanks to
+Claudio Beccari,
Philippe Esperet, %\url{esperet@marie.polytechnique.fr},
Michael Friendly, %\url{friendly@hotspur.psych.yorku.ca},
Mario Hassler, %\url{HASSLER@ippnv2.ipp.kfa-juelich.de},
@@ -919,6 +919,25 @@ text:
This allows us to do some devious tricks: see the example in Section
\ref{sec:VerbatimInclude} on page~\pageref{sec:VerbatimInclude}.
+
+\subsubsection{Reference label}
+
+\begin{optlist}
+ \item[reflabel (<label>)]: A label for use of \verb|\pageref|.
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[reflabel=verb0]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+ See the verbatim on
+ page~\pageref{verb0}.
+\end{SideBySideExample}
+
+
+
+
\subsection{Different kinds of verbatim environments}
\subsubsection{Verbatim environment}
@@ -1291,6 +1310,12 @@ and output side by side or on top of each other. They are all used for this docu
Third verbatim line.
\end{SideBySideExample}
+
+
+\iffalse
+
+
+
\section{\texttt{PCenterExample} environment}
\begin{Verbatim}
@@ -1320,6 +1345,7 @@ and output side by side or on top of each other. They are all used for this docu
\end{PCenterExample}
}
+
\section{\texttt{PSideBySideExample} environment}
\begin{Verbatim}[gobble=2]
@@ -1365,7 +1391,7 @@ and output side by side or on top of each other. They are all used for this docu
}
-
+\fi
diff --git a/macros/latex/contrib/fancyvrb/latex/fancyvrb.sty b/macros/latex/contrib/fancyvrb/latex/fancyvrb.sty
index 8eb3564af7..5b64d153b6 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 <tvz@zandtwerk.kellogg.nwu.edu>
-%% 2010-2019, by Herbert Voss <hvoss@tug.org>
+%% -2020, 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.5}
-\def\filedate{2020/01/13}
-\ProvidesPackage{fancyvrb}[2020/01/13 v3.5 verbatim text (tvz,hv)]
+\def\fileversion{3.6}
+\def\filedate{2020/05/03}
+\ProvidesPackage{fancyvrb}[2020/05/03 v3.6 verbatim text (tvz,hv)]
%\message{Style option: `fancyvrb' v\fileversion \space <\filedate> (tvz)}
\csname fancyvrb@loaded\endcsname
\let\fancyvrb@loaded\endinput
@@ -1209,6 +1209,9 @@
Hit <return> to procede.}}
\define@key{FV}{aftersave}{\def\FancyVerbAfterSave{#1}}
\fvset{aftersave=}
+\define@key{FV}{reflabel}{\if$#1$\else\label{#1}\fi}
+%\fvset{reflabel=}
+
\def\FV@UseVerb#1{\mbox{\FV@UseKeyValues\FV@FormattingPrep#1}}
\DeclareRobustCommand\UseVerb{\FV@Command{}{UseVerb}}
\def\FVC@UseVerb#1{%