texlive[49045] Master/texmf-dist: fancyvrb (1nov18)
commits+karl at tug.org
commits+karl at tug.org
Thu Nov 1 23:10:32 CET 2018
Revision: 49045
http://tug.org/svn/texlive?view=revision&revision=49045
Author: karl
Date: 2018-11-01 23:10:32 +0100 (Thu, 01 Nov 2018)
Log Message:
-----------
fancyvrb (1nov18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/fancyvrb/Changes
trunk/Master/texmf-dist/doc/latex/fancyvrb/README
trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Added Paths:
-----------
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-ex.sty
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/fancyvrb/Makefile
trunk/Master/texmf-dist/doc/latex/fancyvrb/README.contrib
trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb.pdf
trunk/Master/texmf-dist/doc/latex/fancyvrb/fvrb-ex.pdf
trunk/Master/texmf-dist/doc/latex/fancyvrb/t-fvrbex.tex
trunk/Master/texmf-dist/source/latex/fancyvrb/
trunk/Master/texmf-dist/tex/latex/fancyvrb/fvrb-ex.sty
trunk/Master/texmf-dist/tex/latex/fancyvrb/hbaw.sty
trunk/Master/texmf-dist/tex/latex/fancyvrb/hcolor.sty
Modified: trunk/Master/texmf-dist/doc/latex/fancyvrb/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/Changes 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/Changes 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,4 +1,8 @@
--- fancyvrb.sty
+3.0 2018/11/01 - remove the example part from francyvrb (hv)
+2.9 2018/10/31 - made \UseVerb robust (hv)
+2.81 2011/04/06 - added optional argument vspace for the
+ vertical space (default \topsep) (hv)
2.8 2010/05/14 - fixed several trailing spaces (hv)
- changed license to LPPL
2.7a 2008/02/07 - NMM fixed lastline=firstline bug
@@ -9,3 +13,7 @@
v2.5 1998/01/28 - First public release.
v2.0 1994/03/30 - First version personally shown by Timothy
\textsc{van Zandt}
+
+
+--- fancyvrb-ex.sty
+0.01 2018/11/01 - first CTAN version
\ No newline at end of file
Deleted: trunk/Master/texmf-dist/doc/latex/fancyvrb/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/Makefile 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/Makefile 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,67 +0,0 @@
-
-# `Makefile' for `pst-3dplot.pdf', hv, 2007/03/17
-
-.SUFFIXES : .tex .ltx .dvi .ps .pdf .eps
-
-PACKAGE = fvrb-ex
-
-MAIN = $(PACKAGE)
-
-TDS = ~/PSTricks/PSTricks-TDS
-
-LATEX = latex
-
-ARCHNAME = $(MAIN)-$(shell date +%y%m%d)
-
-ARCHFILES = $(PACKAGE).sty $(PACKAGE).tex $(MAIN).tex README Changes Makefile
-
-all : doc clean
-doc: $(MAIN).pdf
-
-$(MAIN).pdf : $(MAIN).ps
- GS_OPTIONS=-dAutoRotatePages=/None ps2pdf $<
-
-$(MAIN).ps : $(MAIN).dvi
- dvips $<
-
-$(MAIN).dvi : $(MAIN).dtx
- $(LATEX) $<
- makeindex -s gind.ist $(basename $<)
- makeindex -s gglo.ist -o $(basename $<).gls $(basename $<).glo
-# bibtex $(basename $<)
- $(LATEX) $<
- $(LATEX) $<
-
-clean :
- $(RM) $(addprefix $(MAIN), .cb .cb? .log .aux .glg .glo .gls .ilg .idx .ind .tmp .toc .out .blg .bbl )
- $(RM) $(addprefix $(MAIN), .dvi .ps .xcp)
- $(RM) file.txt hello.f90
-
-veryclean : clean
- $(RM) $(addprefix $(MAIN), .pdf .bbl .blg)
-
-arch :
- zip $(ARCHNAME).zip $(ARCHFILES)
-
-tds:
- cp -u Changes $(TDS)/doc/generic/$(PACKAGE)/
- cp -u README $(TDS)/doc/generic/$(PACKAGE)/
- cp -u $(MAIN).pdf $(TDS)/doc/generic/$(PACKAGE)/
-#
- cp -u Changes $(TDS)/tex/latex/$(PACKAGE)/
- cp -u $(PACKAGE).sty $(TDS)/tex/latex/$(PACKAGE)/
-#
- cp -u Changes $(TDS)/tex/generic/$(PACKAGE)/
- cp -u $(PACKAGE).tex $(TDS)/tex/generic/$(PACKAGE)/
-#
- cp -u Changes $(TDS)/dvips/$(PACKAGE)/
- cp -u $(PACKAGE).pro $(TDS)/dvips/$(PACKAGE)/
- cp -u $(PACKAGE).pro ~/Links/dvips-local/
-#
- cp -u Changes $(TDS)/source/$(PACKAGE)/
- cp -u $(MAIN).tex $(TDS)/source/$(PACKAGE)/
- cp -u $(MAIN).bib $(TDS)/source/$(PACKAGE)/
- cp -u Makefile $(TDS)/source/$(PACKAGE)/
-
-
-# EOF
Modified: trunk/Master/texmf-dist/doc/latex/fancyvrb/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/README 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/README 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,8 +1,8 @@
--------------------------------------------------
| `fancyvrb' |
- | Version 2.6 |
- | July 17, 1998 |
+ | Version 2.9 |
+ | Oct 31, 2018 |
| |
| Timothy Van Zandt (Princeton University - USA) |
| <tvz at Princeton.EDU> |
@@ -11,7 +11,7 @@
| Denis Girou (CNRS/IDRIS - France) |
| <Denis.Girou at idris.fr> |
| Sebastian Rahtz (Elsevier - GB) |
- | <s.rahtz at elsevier.co.uk> |
+ | Herbert Voss, Berlin (hvoss at tug.org) |
--------------------------------------------------
@@ -32,35 +32,14 @@
typesetting of the "LaTeX Graphics Companion" provide in depth informations
on some usages of `fancyvrb' not described elsewhere.
- The "contrib" subdirectory contain the `fvrb-ex' package (from Denis Girou),
-built above `fancyvrb', which offer some "example" environments showing both
-the code in verbatim mode and the result of it normally formatted.
+ Comments, suggestions and bug reports (with version number and the
+keyword "fancyvrb" in the subject of the message) to <hvoss at tug.org>
- Warning!
- --------
+ The `fancyvrb-ex' package provides some example environments to
+show LaTeX code and output side by side or on top on each other.
- * Support is provided by Denis Girou and Sebastian Rahtz and not by
-Timothy Van Zandt. Do not bother him with questions relative to `fancyvrb'!
- * The standard `color' package must be available, with a correct "color.cfg"
-file defining the dvi converter that must be used.
- * If the `changebar' package is available on your platform, the changes
-since the preceding version will be marked by special gray bars printed
-in the margins. But the driver name must be hardcoded in the file.
-So, if you have `changebar' and are not using the "dvips" driver, change this
-name in the line
- {\ChangeBartrue\usepackage[dvips,rightbars]{changebar}}{}
-in fancyvrb.dtx (the other drivers supported by this package are "dvitoln03",
-"dvitops" and "emtex").
- If you really need to desactivate this feature (it must not be the case,
-as there will be no effect if you haven't `changebar', and, if you have it,
-it must work on your platform...) just change the two relevant lines to:
-\IfFileExists{changebar.sty}{}{}
-
-.............................................................................
-
- Comments, suggestions and bug reports (with version number and the
-keyword "fancyvrb" in the subject of the message) to <Denis.Girou at idris.fr>
-and <s.rahtz at elsevier.co.uk>
-
+%% This package may be distributed under the terms of the LaTeX Project Public
+%% License, as described in lppl.txt in the base LaTeX distribution.
+%% Either version 1.3 or, at your option, any later version.
Deleted: trunk/Master/texmf-dist/doc/latex/fancyvrb/README.contrib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/README.contrib 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/README.contrib 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,57 +0,0 @@
- -------------------------------------
- | `fvrb-ex' |
- | Version 1.7 |
- | March 27, 1998 |
- | |
- | Denis Girou (CNRS/IDRIS - France) |
- | <Denis.Girou at idris.fr> |
- -------------------------------------
-
-
- This package, built above the `fancyvrb' one (from Timothy van Zandt),
-offer several kinds of the so-called "example" environments to format some
-code both in "verbatim" mode and in the "normal" way, below or on the side.
-The advantage of such environments is that the code itself is included only
-one time in the source code, which allow to be sure of the consistence of the
-two versions shown.
-
- Some other kinds of such environments are specially devoted to graphics,
-allowing to give the size of them. It is also possible in this case to draw
-also a grid.
-
- Warning!
- --------
-
- * You must be aware that it has been reported that this package doesn't work
-at all on some platforms, due to the way the 8 bits characters are managed by
-some TeX systems.
- You can make first the following test (courtesy Sebastian Rahtz):
-
-\documentclass{article}
-\usepackage{moreverb} % CTAN/macros/latex/contrib/supported/moreverb
-\begin{document}
-\begin{verbatimwrite}{test.txt}
- \xA3hello
-\end{verbatimwrite}
-\end{document}
-
- If you got in the file "test.txt" not the exact input line but ^^a3 for
-the first character, this package has no change to really work for you...
-
- Just try to position (courtesy Thomas Esser) LC_CTYPE=C if your system
-accept it and retry the preceding test.
-
- * We suppose here that you already know the `fancyvrb' package. If not, look
-at it own documentation!
-
- * The standard `color' package must be available, with a correct "color.cfg"
-file defining the dvi converter that must be used.
-
- * Some environments, specially devoted to graphics, require PSTricks,
-but `fvrb-ex' desactivate them if PSTricks is not available so it can be used
-without it.
-
-.............................................................................
-
- Comments, suggestions and bug reports (with version number and the
-keyword "fancyvrb" in the subject of the message) to <Denis.Girou at idris.fr>
Added: trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf 2018-11-01 22:10:32 UTC (rev 49045)
Property changes on: trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex 2018-11-01 22:10:32 UTC (rev 49045)
@@ -0,0 +1,1393 @@
+\documentclass{article}
+%\usepackage[T1]{fontenc}
+%\usepackage[charter]{mathdesign}
+\usepackage{libertinus}
+%\usepackage[scaled=0.84]{beramono}
+\setmonofont[Scale=MatchLowercase,FakeStretch=0.9]{AnonymousPro}
+
+\newif\ifChangeBar \ChangeBarfalse
+\usepackage{fancyvrb}
+\usepackage[pstricks]{fancyvrb-ex}
+\usepackage{xurl}
+\usepackage[colorlinks,linktocpage]{hyperref}
+\parskip=3pt plus 1pt minus 1pt
+%
+
+\newcommand\FBoxPackage{`\textsf{fancybox}'}
+\newcommand\FVrbPackage{`\textsf{fancyvrb}'}
+\newcommand\cs[1]{\texttt{\textbackslash#1}}
+%
+% From ltugboat.cls
+%
+% Typeset the name of an environment
+\providecommand\env[1]{\textsf{#1}}
+\providecommand\clsname[1]{\textsf{#1}}
+\providecommand\pkgname[1]{\textsf{#1}}
+\providecommand\optname[1]{\textsf{#1}}
+\providecommand\progname[1]{\textsf{#1}}
+%
+% A list of options for a package/class
+\newenvironment{optlist}{\begin{description}%
+ \renewcommand\makelabel[1]{%
+ \descriptionlabel{\mdseries\optname{##1}}}%
+ \itemsep0.25\itemsep}%
+ {\end{description}}
+%
+% Utility macros
+%
+% Special dashes
+
+\makeatletter
+\def\thinskip{\hskip 0.16667em\relax}
+\def\endash{--}
+\def\emdash{\endash-}
+\def\d at sh#1#2{\unskip#1\thinskip#2\thinskip\ignorespaces}
+\def\dash{\d at sh\nobreak\endash}
+\def\Dash{\d at sh\nobreak\emdash}
+\makeatother
+\newif\ifPostScriptFonts \PostScriptFontstrue
+%
+\setlength{\columnseprule}{0.6pt}
+%
+\newif\ifmulticols
+%\IfFileExists{multicol.sty}{\multicolstrue}{}
+\newif\ifpstricks
+\pstrickstrue
+%
+\title{The `\textsf{fancyvrb}' package\\Fancy Verbatims in \LaTeX}
+\author{Timothy Van Zandt\\Princeton University\\Princeton -- USA\\
+ {\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 and}\\[-2mm]
+ {\footnotesize Herbert Voß\ (FU Berlin -- DE)}
+ }
+\date{Version 3.0\\ \today}
+
+\fvset{frame=single,xrightmargin=0cm,numbers=left,numbersep=3pt,commentchar=Z}
+
+\begin{document}
+\maketitle
+%
+\begin{abstract}
+ This package provides very sophisticated facilities for reading and
+ writing verbatim \TeX{} code. Users can perform common tasks like changing
+ font family and size, numbering lines, framing code examples, colouring
+ text and conditionally processing text.
+\end{abstract}
+
+\vfill
+Thanks to
+Philippe Esperet, %\url{esperet at marie.polytechnique.fr},
+Michael Friendly, %\url{friendly at hotspur.psych.yorku.ca},
+Mario Hassler, %\url{HASSLER at ippnv2.ipp.kfa-juelich.de},
+Mikhail Kolodin, %\url{myke at morrigan.spb.su},
+Andreas Matthias,
+Frank Mittelbach,
+Rolf Niepraschk, %\url{Rolf.Niepraschk at gmx.de},
+Ulrich M. Schwarz,
+Thomas Siegel,% \url{siegel at aix520.informatik.uni-leipzig.de},
+and
+Vladimir Volovich. %\url{vvv at vvv.vsu.ru}.
+\clearpage
+\tableofcontents
+\clearpage
+%\part{\texttt{fancyvrb} package by Timothy Van Zandt}
+
+
+\part{Package \texttt{fancyvrb}}
+
+
+\section{Introduction}
+%
+ \FVrbPackage{} is the development of the \emph{verbatim} macros of the
+\FBoxPackage{} package, Section 11 of \cite{FancyBox}. It offers six kinds
+of extended functionality, compared to the standard \LaTeX{}
+\textsf{verbatim} environment:
+
+\begin{enumerate}
+ \item verbatim commands can be used in footnotes,
+ \item several verbatim commands are enhanced,
+ \item a variety of verbatim environments are provided, with many
+ parameters to change the way the contents are printed; it is also possible
+ to define new customized verbatim environments,
+ \item a way is provided to save and restore verbatim text and environments,
+ \item there are macros to write and read files in verbatim mode, with the
+ usual versatility,
+ \item you can build \emph{example} environments (showing both result and
+ verbatim text), with the same versatility as normal verbatim.
+\end{enumerate}
+
+ The package works by scanning a line at a time from an environment or a
+file. This allows it to pre-process each line, rejecting it, removing
+spaces, numbering it, etc, before going on to execute the body of the line
+with the appropriate catcodes set.
+
+\section{Verbatim material in footnotes}
+
+ After a \cs{VerbatimFootnotes} macro declaration (to use after the
+preamble), it is possible to put verbatim commands and environments
+(the \LaTeX{} or \FVrbPackage{} ones) in footnotes, unlike in standard
+\LaTeX:
+
+\begin{Example}
+ \VerbatimFootnotes
+ We can put verbatim\footnote{\verb+_Yes!_+} text in footnotes.
+\end{Example}
+
+\section{Improved verbatim commands}
+%
+ The \cs{DefineShortVerb} macro allows us to define a special character as
+an abbreviation to enclose verbatim text and the \cs{UndefineShortVerb}
+macro suppresses the special meaning of the specified character (the same
+functionalities are provided in the \LaTeX{} `\textsf{shortvrb}' package):
+
+\fvset{xrightmargin=4.8cm}
+
+\begin{SideBySideExample}
+ \DefineShortVerb{\|}
+ We can simply write \Verb+_verbatim_+
+ material using a single |_delimiter_|
+ \UndefineShortVerb{\|}
+ \DefineShortVerb{\+}
+ And we can +_change_+ the character.
+\end{SideBySideExample}
+
+ To make matters more versatile, we can nominate \emph{escape} characters
+in verbatim text (using the \cs{Verb} macro or with a `shortverb' character
+defined), to perform formatting or similar tasks, using the
+\texttt{commandchars} parameter as shown for environments in paragraph
+\ref{sec:commandchars}.
+
+\section{Verbatim environments}
+
+Several verbatim environments are available, each with a lot of
+parameters to customize them. In the following examples we use the
+\texttt{Verbatim} environment, which is the equivalent of the standard
+\texttt{verbatim}. The parameters can be set globally using the \cs{fvset}
+macro or in an optional argument after the start of the
+environment\footnote{For clarification in this paper, note that we
+generally indent each verbatim line with two
+spaces.}$^,$\footnote{This mechanism uses the
+`\textbf{keyval}' package from the standard \LaTeX{} graphics
+distribution, written by David \textsc{Carlisle}.}.
+
+\begin{SideBySideExample}
+ \begin{Verbatim}
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\subsection{Customization of verbatim environments}
+
+ The appearance of verbatim environments can be changed in many and
+varied ways; here we list the keys that can be set.
+
+\subsubsection{Comments}
+
+\begin{optlist}
+ \item[commentchar (character)]: character to define comments in the
+ verbatim code, so that lines starting with this character will not be
+ printed (\emph{Default: empty}).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[commentchar=!]
+ A comment
+ Verbatim line.
+ ! A comment that you will not see
+ \end{Verbatim}
+\end{SideBySideExample}
+
+ Take care to a special effect if the comment character is not the first
+non blank one: it is because this character is in fact managed as the \TeX{}
+comment one, that is to say that it gobble the newline character too. So, in
+this case, the current line will be joined with the next one and, more, the
+last one will be lost if it contain a comment, as \FVrbPackage{} print a
+line only after finding it end character, which will never occured in this
+case...
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[commentchar=\%]
+ First line. % First line
+ Second.
+ Third line. % Third line lost...
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\subsubsection{Initial characters to suppress}
+
+\begin{optlist}
+ \item[gobble (integer)]: number of characters to suppress at the beginning
+ of each line (up to a maximum of 9), mainly useful when environments are
+ indented
+ (\emph{Default: empty} \Dash no character suppressed).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[gobble=2]
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[gobble=8]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\subsubsection{Customization of formatting}
+
+\begin{optlist}
+ \item[formatcom (command)]: command to execute before printing verbatim
+ text
+ (\emph{Default: empty}).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[formatcom=\color{red}]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\subsubsection{Changing individual line formatting}
+
+ The macro \cs{FancyVerbFormatLine} defines the way each line is formatted.
+Its default value is \verb+\def\FancyVerbFormatLine#1{#1}+, but we can
+redefine it at our convenience (\texttt{FancyVerbLine} is the name of the
+line counter):
+
+{\fvset{fontsize=\small}
+\begin{SideBySideExample}
+ Z\fvset{fontsize=\normalsize}
+ \renewcommand{\FancyVerbFormatLine}[1]{%
+ \makebox[0cm][l]{$\Rightarrow$}#1}
+ \begin{Verbatim}
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{SideBySideExample}
+ \renewcommand{\FancyVerbFormatLine}[1]{%
+ \ifodd\value{FancyVerbLine}%
+ \MakeUppercase{#1}\else#1\fi}
+ \begin{Verbatim}
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+}
+
+\subsubsection{Fonts}
+
+\begin{optlist}
+ \item[fontfamily (family name)]: font family to use.
+ \texttt{tt}, \texttt{courier} and \texttt{helvetica} are pre-defined
+ (\emph{Default:~tt}).
+\end{optlist}
+
+\ifPostScriptFonts We can guess that PostScript fonts are available
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[fontfamily=helvetica]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\else
+\begin{quote}
+ \textbf{\large Warning!} PostScript fonts seems not available on your
+ platform (we are looking for the file \texttt{times.sty}, so we will
+ not show the examplaes using such PostScript fonts.
+\end{quote}
+\fi
+
+\begin{optlist}
+ \item[fontsize (font size)]: size of the font to use
+ (\emph{Default: auto} \Dash the same as the current font). If you use the
+ `\textsf{relsize}' package too, you can require a change of the size
+ proportional to the current one (for instance:
+ \verb+fontsize=\relsize{-2}+).
+\end{optlist}
+
+\ifPostScriptFonts We can guess that PostScript fonts are available
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[fontsize=\small]
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[fontfamily=courier,
+ fontsize=\large]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\else
+\begin{SideBySideExample}
+ \begin{Verbatim}[fontsize=\small]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+\fi
+
+\begin{optlist}
+ \item[fontshape (font shape)]: font shape to use
+ (\emph{Default: auto} \Dash the same as the current font).
+\end{optlist}
+
+\ifPostScriptFonts We can guess that PostScript fonts are available
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[fontfamily=courier,
+ fontshape=it]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\else
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[fontshape=it]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+\fi
+
+\begin{optlist}
+ \item[fontseries (series name)]: \LaTeX{} font `series' to use
+ (\emph{Default: auto} \Dash the same as the current font).
+\end{optlist}
+
+\ifPostScriptFonts We can guess that PostScript fonts are available
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[fontfamily=courier,
+ fontseries=b]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\else
+\begin{SideBySideExample}
+ \begin{Verbatim}[fontseries=b]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+\fi
+
+\subsubsection{Types and characteristics of frames}
+
+\begin{optlist}
+ \item[frame
+ (none$\mid$leftline$\mid$topline$\mid$bottomline$\mid$lines$\mid$single)]:
+ type of frame around the verbatim environment
+ (\emph{Default: none} \Dash no frame). With \textsf{leftline} and
+ \textsf{single} modes, a space of a length given by the \LaTeX{}
+ \cs{fboxsep} macro is added between the left vertical line and the text.
+\end{optlist}
+
+ Problem at the top of a page...
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[frame=leftline]
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[frame=topline]
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[frame=bottomline]
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[frame=lines]
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[frame=single]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[framerule (dimension)]: width of the rule of the frame
+ (\emph{Default: 0.4pt if framing specified}).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[frame=single,
+ framerule=1mm]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[framesep (dimension)]: width of the gap between the frame and
+ the text (\emph{Default: \cs{fboxsep}}).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[frame=single,
+ framesep=5mm]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[rulecolor (color command)]: color of the frame rule, expressed
+ in the standard \LaTeX{} way
+ (\emph{Default: black}).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[frame=single,
+ rulecolor=\color{red}]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[fillcolor (color command)]: color used to fill the space
+ between the frame and the text (its thickness is given by
+ \texttt{framesep})
+ (\emph{Default: none} \Dash no color).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[frame=single,
+ framerule=1mm,framesep=3mm,
+ rulecolor=\color{red},
+ fillcolor=\color{yellow}]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\subsubsection{Label for the environment}
+
+\begingroup
+\newcommand\Vitem{\SaveVerb[aftersave={\item[\UseVerb{Vitem}]}]{Vitem}}
+\DefineShortVerb{\|}
+
+\begin{optlist}
+ \Vitem|label ({[string]string})|: label(s) to print on top, bottom or
+ both frame lines of the environment to describe it content
+ (\emph{Default: empty} \Dash no label).
+ If the label(s) contains special characters, as a comma or an equal sign,
+ it must be put inside a group. If only one string is given, it will be
+ used for both top and bottom lines (if the two are printed), but if an
+ optional first label is given too, this one will be used for the top line
+ and the second one for the bottom line. Note also that, if another value
+ than \textsf{topline}, \textsf{bottomline}, \textsf{lines} or
+ \textsf{single} is used for the \textsf{frame} parameter, the label(s)
+ will not be printed.
+\end{optlist}
+\endgroup
+
+ Problem at the top of a page...
+
+\begin{SideBySideExample}
+ \fvset{gobble=2}
+ \begin{Verbatim}[frame=single,
+ label=My text]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[frame=topline,
+ framesep=4mm,
+ label=\fbox{\Large\emph{The code}}]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[labelposition (none$\mid$topline$\mid$bottomline$\mid$all)]:
+ position where to print the label if one is defined, which must be
+ coherent with the kind of frame chosen
+ (\emph{Default: none if the label is empty, topline if one label is
+ defined and all if two are defined}).
+ Of course, some incompatible options (like
+ \textsf{frame=topline,labelposition=bottomline}) will not print the
+ label.
+\end{optlist}
+
+ Problem at the top of a page...
+
+\begin{SideBySideExample}
+ \fvset{gobble=2}
+ \begin{Verbatim}[frame=single,
+ framesep=2mm,
+ label=Text,labelposition=all]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[frame=lines,
+ label=Text,labelposition=topline]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[frame=bottomline,
+ framesep=3mm,
+ label=\textit{Code included},
+ labelposition=bottomline]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[frame=lines,
+ framesep=3mm,
+ label={[Beginning of code]End of code}]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\subsubsection{Line numbering}
+
+\begin{optlist}
+ \item[numbers (none$\mid$left$\mid$right)]: numbering of the verbatim lines
+ (\emph{Default: none} \Dash no numbering). If requested, this numbering is
+ done \emph{outside} the verbatim environment.
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[gobble=2,numbers=left]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[gobble=2,
+ numbers=right,numbersep=0pt]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[numbersep (dimension)]: gap between numbers and verbatim lines
+ (\emph{Default: 12pt}).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[gobble=2,
+ numbers=left,numbersep=2pt]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[firstnumber (auto$\mid$last$\mid$integer)]: number of the first line
+ (\emph{Default: auto} \Dash numbering starts from 1). \textsf{last} means
+ that the numbering is continued from the previous verbatim environment. If
+ an integer is given, its value will be used to start the numbering.
+\end{optlist}
+
+\begin{SideBySideExample}
+ \fvset{gobble=2,
+ numbers=left,numbersep=3pt}
+ \begin{Verbatim}
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[firstnumber=last]
+ Verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[firstnumber=100]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[stepnumber (integer)]: interval at which line numbers are printed
+ (\emph{Default:~1} \Dash all lines are numbered).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[gobble=2,numbers=left,
+ numbersep=3pt,stepnumber=2]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+ The macro \cs{theFancyVerbLine} defines the typesetting style of the
+numbering, and the counter used is \texttt{FancyVerbLine}:
+
+\begin{SideBySideExample}
+ \renewcommand{\theFancyVerbLine}{%
+ \textcolor{red}{\small
+ 8.\alph{FancyVerbLine}}}
+ \begin{Verbatim}[gobble=2,
+ numbers=left,numbersep=2pt]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\ifChangeBar\begin{changebar}\fi
+\begin{optlist}
+ \item[numberblanklines (boolean)]: to number or not the empty lines
+ (really empty or containing blank characters only)
+ (\emph{Default: true} \Dash all lines are numbered).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[gobble=2,numbers=left,
+ numbersep=3pt,
+ numberblanklines=false]
+ First verbatim line.
+
+
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+\ifChangeBar\end{changebar}\fi
+%
+\subsubsection{Selection of lines to print}
+
+\begin{optlist}
+ \item[firstline (integer)]: first line to print
+ (\emph{Default: empty} \Dash all lines from the first are printed).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[gobble=2,firstline=2,
+ numbers=left,numbersep=2pt]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[lastline (integer)]: last line to print
+ (\emph{Default: empty} \Dash all lines until the last one are printed).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[gobble=2,lastline=1,
+ numbers=left,numbersep=2pt]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+Instead of specifying a firstline at which to start printing a range
+of lines, you can define a start string; the start of the range is
+the first line that exactly equals the string. (The comparison is made
+before any characters are gobbled off the front of the line.) Similarly for a stop
+string. You can mix line-numbers and strings, e.g.\ start at
+firstline, and end at a stop string. Specifying the strings is a
+bit klunky. Initially you must define the strings with
+\cs{newcommand*} as in:
+
+\begin{SideBySideExample}[gobble=2]
+ \newcommand*\FancyVerbStartString{FROM}
+ \newcommand*\FancyVerbStopString{TO}
+ \begin{Verbatim}
+ First verbatim line.
+ FROM
+ Second verbatim line.
+ TO
+ Third verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\noindent To redefine the strings, you must use \cs{renewcommand*}.
+
+\subsubsection{Spaces and tab characters}
+
+\begin{optlist}
+ \item[showspaces (boolean)]: print a special character representing each
+ space
+ (\emph{Default: false} \Dash spaces not shown).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[showspaces=true]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+ In practice, all verbatim environments have a~\texttt{*} variant, which
+sets \texttt{showspaces=true}:
+
+\begin{SideBySideExample}
+ \begin{Verbatim*}
+ Verbatim line.
+ \end{Verbatim*}
+\end{SideBySideExample}
+
+ There are also some parameters to determine the way tab characters are
+interpreted (using tabs is in fact a rather old-fashioned style of coding):
+
+\begin{optlist}
+ \item[showtabs (boolean)]: explicitly show tab characters
+ (\emph{Default: false} \Dash tab characters not shown).
+\end{optlist}
+
+\begin{optlist}
+ \item[obeytabs (boolean)]: position characters according to the tabs
+ (\emph{Default: false} \Dash tab characters are added to the current
+ position).
+\end{optlist}
+
+\begin{optlist}
+ \item[tabsize (integer)]: number of spaces given by a tab character
+ (\emph{Default:~8}).
+\end{optlist}
+
+\subsubsection{Space between lines}
+
+\begin{optlist}
+ \item[baselinestretch (auto$\mid$dimension)]: value to give to the usual
+ `baselinestretch' \LaTeX{} parameter
+ (\emph{Default: auto} \Dash its current value just before the verbatim
+ command).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[baselinestretch=2]
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\subsubsection{Escape characters for inserting commands}
+
+\begin{optlist}
+ \item[commandchars (three characters)]: characters which define the
+ character which starts a macro and marks the beginning and end of a group;
+ thus lets us introduce \emph{escape} sequences in verbatim code. Of
+ course, it is better to choose special characters which are not used in
+ the verbatim text! (\emph{Default: empty}).
+ \label{sec:commandchars}
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[commandchars=\\\{\}]
+ \textit{This is a comment}
+ First verbatim line.
+ \fbox{Second} verbatim line.
+ \textcolor{red}{Third} verbatim line.
+ \end{Verbatim}
+
+ \begin{Verbatim}[commandchars=+\[\]]
+ +textit[\textbf{Verbatim} line].
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\ifChangeBar\begin{changebar}\fi
+ Using this way, it is also possible to put labels to be able, later, to
+make reference to some lines of the verbatim environments:
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[commandchars=\\\{\},
+ numbers=left,numbersep=2pt]
+ First verbatim line.
+ Second line.\label{vrb:Important}
+ Third verbatim line.
+ \end{Verbatim}
+
+ As I previously shown
+ line~\ref{vrb:Important}, it is...
+\end{SideBySideExample}
+\ifChangeBar\end{changebar}\fi
+
+\subsubsection{Margins}
+
+\begin{optlist}
+ \item[xleftmargin (dimension)]: indentation to add at the start of each
+ line
+ (\emph{Default:~0pt} \Dash no left margin).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[frame=single,
+ xleftmargin=5mm]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[xrightmargin (dimension)]: right margin to add after each line
+ (\emph{Default:~0pt} \Dash no right margin).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[frame=single,
+ xrightmargin=1cm]
+ Verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+\begin{optlist}
+ \item[resetmargins (boolean)]: reset the left margin, which is useful if
+ we are inside other indented environments (\emph{Default: false} \Dash no
+ reset of the margin).
+\end{optlist}
+
+{%
+\DefineVerbatimEnvironment{Verbatim}{Verbatim}{gobble=0,numbers=none}
+\begin{SideBySideExample}
+ \begin{itemize}
+ \item First item
+ \begin{Verbatim}[frame=single]
+ Verbatim line.
+ \end{Verbatim}
+ \item Second item
+ \begin{Verbatim}[frame=single,
+ resetmargins=true]
+ Verbatim line.
+ \end{Verbatim}
+ \end{itemize}
+\end{SideBySideExample}
+}
+
+\subsubsection{Overfull box messages}
+
+\begin{optlist}
+ \item[hfuzz (dimension)]: value to give to the \TeX{} \cs{hfuzz} dimension
+ for text to format. This can be used to avoid seeing some unimportant
+ \emph{Overfull box} messages (\emph{Default:~2pt}).
+\end{optlist}
+
+\subsubsection{Page breaks}
+
+\begin{optlist}
+ \item[samepage (boolean)]: in very special circumstances, we may want to
+ make sure that a verbatim environment is not broken, even if it does not
+ fit on the current page. To avoid a page break, we can set the
+ \texttt{samepage} parameter to \emph{true} (\emph{Default: false}).
+\end{optlist}
+
+\subsubsection{Catcode characters}
+
+\begin{optlist}
+ \item[codes (macro)]: to specify \emph{catcode} changes (\emph{Default:
+ empty}).
+\end{optlist}
+
+ For instance, this allows us to include formatted mathematics in verbatim
+text:
+
+{\fvset{fontsize=\small}
+\begin{SideBySideExample}
+ Z\fvset{fontsize=\normalsize}
+ \begin{Verbatim}[commandchars=\\\{\},
+ codes={\catcode`$=3\catcode`^=7}]
+ x=1/sqrt(z**2) ! $\frac{1}{\sqrt{z^2}}$
+ \end{Verbatim}
+\end{SideBySideExample}
+} %$
+
+
+\subsubsection{Active characters}
+
+\begin{optlist}
+ \item[defineactive (macro)]: to define the effect of \emph{active}
+ characters
+ (\emph{Default: empty}).
+\end{optlist}
+
+ This allows us to do some devious tricks: see the example in Section
+\ref{sec:VerbatimInclude} on page~\pageref{sec:VerbatimInclude}.
+
+\subsection{Different kinds of verbatim environments}
+
+\subsubsection{Verbatim environment}
+
+ This is the `normal' verbatim environment which we have been using up to
+now.
+
+\subsubsection{BVerbatim environment}
+
+ This environment puts the verbatim material in a \TeX{} box. Some
+parameters do not work inside this environment (notably the framing ones),
+but two new ones are available:
+
+\begin{optlist}
+ \item[boxwidth (auto$\mid$dimension)]: size of the box used
+ (\emph{Default: auto} \Dash the width of the longest line is used).
+\end{optlist}
+
+\begin{optlist}
+ \item[baseline (b$\mid$c$\mid$t)]: position of the baseline (on the
+ \texttt{baseline}, the \texttt{center} or the \texttt{top} of the box)
+ (\emph{Default: b}).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \fvset{gobble=2}
+ \begin{BVerbatim}
+ First
+ Second
+ \end{BVerbatim}
+ \begin{BVerbatim}[baseline=c]
+ First
+ Second
+ \end{BVerbatim}
+\end{SideBySideExample}
+
+\begin{SideBySideExample}
+ \begin{BVerbatim}[boxwidth=2cm]
+ First
+ Second
+ \end{BVerbatim}
+ \begin{BVerbatim}[boxwidth=2cm,
+ baseline=t]
+ First
+ Second
+ \end{BVerbatim}
+\end{SideBySideExample}
+
+\subsubsection{LVerbatim environment}
+
+ This environment puts verbatim material into \LaTeX{} `LR' mode (the
+so-called \emph{left-to-right} mode, which in fact is the same thing that
+\TeX{} itself calls \emph{restricted horizontal mode}).
+
+\subsubsection{Personalized environments}
+
+\ifChangeBar\begin{changebar}\fi
+\VerbatimFootnotes
+ It is easy to define personal customized environments. You can redefine
+the existing ones using the \cs{RecustomVerbatimEnvironment} macro or create
+your own ones, using the \cs{DefineVerbatimEnvironment} macro\footnote{%
+\ifChangeBar\begin{changebar}\fi
+For verbatim commands, the \cs{CustomVerbatimCommand} and
+\cs{RecustomVerbatimCommand} macros also exist; for instance:
+
+\noindent
+\verb+\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}{frame=lines}+
+\ifChangeBar\end{changebar}\fi}.
+In each case, you specify the name of the new environment, the type of
+environment on which it is based, and a set of initial option values. The
+options can be overridden with an optional argument in the normal way:
+
+\begin{SideBySideExample}
+ \RecustomVerbatimEnvironment
+ {Verbatim}{Verbatim}
+ {gobble=2,frame=single}
+ \begin{Verbatim}
+ First verbatim line.
+ Second verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+\ifChangeBar\end{changebar}\fi
+
+\begin{SideBySideExample}
+ \DefineVerbatimEnvironment%
+ {MyVerbatim}{Verbatim}
+ {gobble=2,numbers=left,numbersep=2mm,
+ frame=lines,framerule=0.8mm}
+ \begin{MyVerbatim}
+ First verbatim line.
+ Second verbatim line.
+ \end{MyVerbatim}
+
+ \begin{MyVerbatim}[numbers=none,
+ framerule=1pt]
+ First verbatim line.
+ Second verbatim line.
+ \end{MyVerbatim}
+\end{SideBySideExample}
+
+\section{Saving and restoring verbatim text and environments}
+
+ The \cs{SaveVerb} and \cs{UseVerb} macros allow us to save and restore
+verbatim material. \cs{UseVerb} itself is robust:
+
+% \DefineShortVerb{\|}
+% \SaveVerb{Verb}|_verbatim_|
+\begin{SideBySideExample}
+ \DefineShortVerb{\|}
+ \SaveVerb{Verb}|_verbatim_|
+ I have saved \UseVerb{Verb} and reuse
+ it later as many times as I want
+ \subsection*{Using \UseVerb{Verb}}
+ \UseVerb{Verb}.
+\end{SideBySideExample}
+
+ This also provides a solution to putting verbatim text inside \LaTeX{}
+commands which do not normally permit it: % (used package \texttt{marginnote}):
+
+{\fvset{frame=single,xrightmargin=0cm}
+\begin{Example}
+ \DefineShortVerb{\|}\SaveVerb{Verb}|_OK^| \marginpar{\UseVerb{Verb}}
+\end{Example}
+}
+
+ There is a useful ability to use verbatim text as the item text in a
+description list (something not normally permitted in \LaTeX), using the
+\texttt{aftersave} parameter:
+
+\begin{optlist}
+ \item[aftersave (macro)]: macro to dynamically save some verbatim material
+ (\emph{Default: empty}).
+\end{optlist}
+
+\begin{SideBySideExample}
+ \newcommand{\Vitem}{%
+ \SaveVerb[aftersave={%
+ \item[\UseVerb{Vitem}]}]{Vitem}}
+ \DefineShortVerb{\|}
+ \begin{description}
+ \Vitem|\MyCommand|: my command
+ \end{description}
+\end{SideBySideExample}
+
+ In the same way, we can use and restore (in normal, boxed and LR mode,
+using \cs{UseVerbatim}, \cs{BUseVerbatim} and \cs{LUseVerbatim} respectively)
+entire verbatim environments:
+
+\begin{SideBySideExample}
+ Z\fvset{gobble=0,numbers=none}
+ \begin{SaveVerbatim}{VerbEnv}
+ Verbatim line.
+ \end{SaveVerbatim}
+ \UseVerbatim{VerbEnv}
+ and \UseVerbatim{VerbEnv}
+\end{SideBySideExample}
+
+\begin{SideBySideExample}
+ Z\fvset{gobble=0,numbers=none}
+ \begin{SaveVerbatim}[gobble=5]{VerbEnv}
+ First
+ Second
+ \end{SaveVerbatim}
+
+ \fbox{\BUseVerbatim{VerbEnv}}
+ and \BUseVerbatim{VerbEnv}.
+
+ \LUseVerbatim{VerbEnv} and
+ \LUseVerbatim{VerbEnv}
+\end{SideBySideExample}
+
+\section{Writing and reading verbatim files}
+\label{sec:VerbatimInclude}
+
+ The command \cs{VerbatimInput} (the variants \cs{BVerbatimInput} and
+\cs{LVerbatimInput} also exist) allows inclusion of the contents of a file
+with verbatim formatting. Of course, the various parameters which we have
+described for customizing can still be used:
+
+%The file we will use for \VerbatimInput
+
+\typeout{*************************************}
+\typeout{* Created files: hello.f90, file.txt}
+\typeout{* See fancyhdr.dvi for an explanation}
+\typeout{*************************************}
+
+\begin{VerbatimOut}{hello.f90}
+ ! A "hello" program
+
+ program hello
+ print *,"Hello world"
+ end program hello
+\end{VerbatimOut}
+
+\begin{SideBySideExample}
+ Z\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}{gobble=4}
+ \fvset{fontsize=\small}
+ \VerbatimInput{hello.f90}
+
+ \fvset{frame=single,numbers=left,
+ numbersep=3pt}
+ \VerbatimInput{hello.f90}
+
+ \VerbatimInput[firstline=3,
+ rulecolor=\color{green}]
+ {hello.f90}
+
+ \VerbatimInput[frame=lines,
+ fontshape=sl,fontsize=\footnotesize]
+ {hello.f90}
+\end{SideBySideExample}
+
+ We can make use of the `defineactive' parameter to set the comment lines
+ in the program text in a different style:
+
+\begin{SideBySideExample}
+ Z\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}{gobble=4}
+ \def\ExclamationPoint{\char33}
+ \catcode`!=\active
+ \VerbatimInput%
+ [defineactive=%
+ \def!{\color{cyan}\itshape
+ \ExclamationPoint}]
+ {hello.f90}
+\end{SideBySideExample}
+
+ It is important to note that if the contents of the file does not fit on
+the page, it will be automatically broken across pages as needed (unless the
+\texttt{samepage} parameter has been set to \texttt{true}).
+
+ There is also a \verb+VerbatimOut+ environment to write verbatim text to an
+output file, in the same way:
+
+\begin{SideBySideExample}
+ \begin{VerbatimOut}{file.txt}
+ I write that.
+ And that too.
+ \end{VerbatimOut}
+
+ \VerbatimInput[frame=single,
+ numbers=left,numbersep=6pt]{file.txt}
+\end{SideBySideExample}
+
+\ifChangeBar\begin{changebar}\fi
+\section{Automatic pretty printing}
+
+ Obviously, automatic \emph{pretty printing} is outside the scope of this
+package. Nevertheless, this is specially interesting for verbatim
+inclusion of programming code files or fragments. In the \LaTeX{} world
+(not speaking of the \emph{literate programming} way), there are software
+for some special languages, as the `\textsf{C++2LaTeX}' package from Norbert
+\textsc{Kiesel}, but mainly two generic ones, which use completely different
+modes (an external preprocessor written in C and a \TeX{} based solution):
+the `\textsf{LGrind}'~\cite{LGrind} system, currently maintened by Michael
+\textsc{Piefel}, and the `\textsf{listings}'~\cite{Listings} package from
+Carsten \textsc{Heinz}.
+
+ Future versions of \FVrbPackage{} and `\textsf{listings}' packages are
+planned to cooperate, which will offer great advantages to both users of the
+two actual packages, and will allow \FVrbPackage{} users to have automatic
+pretty printing of programming codes.
+
+\section{Known problems}
+
+\begin{itemize}
+ \item Vladimir \textsc{Volovich} \verb+<vvv at vvv.vsu.ru>+ reported that the
+ special character \verb+\th+, available with T1 encoding, can't be
+ included as verbatim with \FVrbPackage. It can be true for other special
+ characters too.
+\end{itemize}
+
+\iffalse
+
+\section{Thanks}
+
+ For interesting comments and suggestions, we would like to thank specially
+(alphabetic order): Philippe \textsc{Esperet}
+\url{esperet at marie.polytechnique.fr}, Michael \textsc{Friendly}
+\url{friendly at hotspur.psych.yorku.ca}, Rolf \textsc{Niepraschk}
+\url{niepraschk at gmx.de} and for bug reports Mario \textsc{Hassler}
+\relax\unskip\break
+\url{HASSLER at ippnv2.ipp.kfa-juelich.de}, Mikhail \textsc{Kolodin}
+\relax\unskip\break
+\url{myke at morrigan.spb.su}, Andreas Matthias, Ulrich M. Schwarz, and Vladimir \textsc{Volovich}
+\verb+<vvv at vvv.vsu.ru>+.
+
+
+\fi
+\section{Conclusion}
+
+ There are a few other possibilities that we have not described here.
+Note specially that it is possible to define a customization file
+(\texttt{fancyvrb.cfg}) loaded at the end of the package, to store
+definitions of your customized commands and environments and to redefine
+the attributes of existing ones.
+
+
+\clearpage
+
+
+\part{Package \texttt{fancyvrb-ex}}
+This package defines some example environments which can write input code
+and output side by side or on top of each other. They are all used for this documentation of \texttt{fancyvrb}.
+
+\section{\texttt{Example} environment}
+
+\begin{Verbatim}[gobble=2]
+ \begin{Example}
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Example}
+\end{Verbatim}
+
+\begin{Example}
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+\end{Example}
+
+\begin{Verbatim}[gobble=2]
+ \begin{Example}[frame=lines,framerule=1mm,
+ numbers=left]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Example}
+\end{Verbatim}
+
+\begin{Example}[frame=lines,framerule=1mm,numbers=left]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+\end{Example}
+
+\newpage
+
+\section{\texttt{CenterExample} environment}
+
+\begin{Verbatim}[gobble=2]
+ \begin{CenterExample}[frame=single,
+ numbers=right]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{CenterExample}
+\end{Verbatim}
+
+\begin{CenterExample}[frame=single,numbers=right]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+\end{CenterExample}
+
+
+\section{\texttt{SideBySideExample} environment}
+
+\begin{Verbatim}[gobble=2]
+ \begin{SideBySideExample}[xrightmargin=5cm,
+ frame=lines, numbers=left]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{SideBySideExample}
+\end{Verbatim}
+
+\begin{SideBySideExample}[xrightmargin=5cm,frame=single,numbers=left]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+\end{SideBySideExample}
+
+\section{\texttt{PCenterExample} environment}
+
+\begin{Verbatim}
+ \fvset{frame=lines,framerule=0.5mm,numbers=left}
+
+ \begin{PCenterExample}(-0.5,-0.5)(0.5,0.5)
+ \setlength{\unitlength}{1cm}
+ \put(0,0){\circle{1}}
+ \end{PCenterExample}
+
+ \showgrid
+ \begin{PCenterExample}(-1,-1)(1,1)
+ \setlength{\unitlength}{1cm}
+ \put(0,0){\circle{1}}
+ \end{PCenterExample}
+\end{Verbatim}
+
+{\fvset{frame=lines,framerule=0.5mm,numbers=left}
+\begin{PCenterExample}(-0.5,-0.5)(0.5,0.5)
+ \setlength{\unitlength}{1cm}
+ \put(0,0){\circle{1}}
+\end{PCenterExample}
+\showgrid
+\begin{PCenterExample}(-1,-1)(1,1)
+ \setlength{\unitlength}{1cm}
+ \put(0,0){\circle{1}}
+\end{PCenterExample}
+}
+
+\section{\texttt{PSideBySideExample} environment}
+
+\begin{Verbatim}[gobble=2]
+ \fvset{frame=single,xrightmargin=5cm}
+ \begin{PSideBySideExample}(-2,-1)(2,1)
+ \psellipse*[linecolor=yellow](2,1)
+ \end{PSideBySideExample}
+ \showgrid
+ \begin{PSideBySideExample}(-2,-1)(2,1)
+ \psellipse[linestyle=dashed](2,1)
+ \end{PSideBySideExample}
+\end{Verbatim}
+
+{\fvset{frame=single,xrightmargin=5cm}
+\begin{PSideBySideExample}(-2,-1)(2,1)
+ \psellipse*[linecolor=yellow](2,1)
+\end{PSideBySideExample}
+
+\showgrid
+\begin{PSideBySideExample}(-2,-1)(2,1)
+ \psellipse[linestyle=dashed](2,1)
+\end{PSideBySideExample}
+}
+
+\begin{Verbatim}[gobble=2]
+ \fvset{frame=single,xrightmargin=5cm}
+ \begin{PSideBySideExample}(-2,-1)(2,1)
+ \psellipse[linestyle=dashed](2,1)
+ \end{PSideBySideExample}
+ \begin{PSideBySideExample}[numbers=right](-2,-1)(2,1)
+ \psellipse[linestyle=dotted](2,1)
+ \end{PSideBySideExample}
+\end{Verbatim}
+
+{\fvset{frame=single,xrightmargin=5cm}
+\begin{PSideBySideExample}(-2,-1)(2,1)
+ \psellipse[linestyle=dashed](2,1)
+\end{PSideBySideExample}
+
+\begin{PSideBySideExample}[numbers=right](-2,-1)(2,1)
+ \psellipse[linestyle=dotted](2,1)
+\end{PSideBySideExample}
+}
+
+
+
+
+
+
+
+\begin{thebibliography}{1}
+ \bibitem{FancyBox} Timothy \textsc{van Zandt},
+ \textit{Documentation for `fancybox': Box tips and tricks for \LaTeX}.
+ Available from \url{CTAN: macros/latex/contrib/supported/fancybox}, 1993.
+
+ \bibitem{FancyVrb} Timothy \textsc{van Zandt},
+ \textit{`fancyvrb': Fancy Verbatims in \LaTeX}.
+ Available from \url{CTAN: macros/latex/contrib/supported/fancyvrb}, 1998.
+
+ \bibitem{LGrind} Various authors (current maintainer: Michael
+ \textsc{Piefel}),
+ \textit{The `LGrind' package}.
+ Available from \url{CTAN: support/lgrind}, 1998.
+
+ \bibitem{Listings} Carsten \textsc{Heinz},
+ \textit{The `Listings' package}.
+ Available from \url{CTAN: macros/latex/contrib/supported/listings}, 1996-1997.
+\end{thebibliography}
+
+
+
+
+
+
+
+
+\end{document}
Property changes on: trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/fancyvrb/fvrb-ex.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/fancyvrb/t-fvrbex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fancyvrb/t-fvrbex.tex 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/doc/latex/fancyvrb/t-fvrbex.tex 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,220 +0,0 @@
-%%
-%% This is file `t-fvrbex.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% fvrb-ex.dtx (with options: `t-fvrbex')
-%%
-%% IMPORTANT NOTICE:
-%%
-%% For the copyright see the source file.
-%%
-%% Any modified versions of this file must be renamed
-%% with new filenames distinct from t-fvrbex.tex.
-%%
-%% For distribution of the original source see the terms
-%% for copying and modification in the file fvrb-ex.dtx.
-%%
-%% This generated file may be distributed as long as the
-%% original source files, as listed above, are part of the
-%% same distribution. (The sources need not necessarily be
-%% in the same archive or directory.)
-%%
-%% Package `fvrb-ex' (`fvrb-ex', `hbaw' and `hcolor')
-%%
-%% COPYING:
-%% This package may be distributed under the terms of the LaTeX Project Public
-%% License, as described in lppl.txt in the base LaTeX distribution.
-%% Either version 1.0 or, at your option, any later version.
-%%
-%% Denis Girou (CNRS/IDRIS - France) <Denis.Girou at idris.fr> March 27, 1998
-%%
-%% File `t-fvrbex'
-%%
-\documentclass{article}
-
-\usepackage[bawcolor,pstricks]{fvrb-ex}
-\pstrickstrue
-\usepackage[T1]{fontenc}
-\usepackage[latin1]{inputenc}
-\usepackage[charter]{mathdesign}
-\usepackage{url}
-\usepackage{xcolor}
-
-\begin{document}
-
-\title{Test file for the `\textsf{fvrb-ex}' package}
-\author{Denis Girou\\CNRS/IDRIS\\Orsay -- France\\
- {\footnotesize email: Denis.Girou at idris.fr}}
-\date{Version 1.2\\March 27, 1998}
-
-\maketitle
-
-\RecustomVerbatimEnvironment{Verbatim}{Verbatim}
- {gobble=2,commentchar=^^a3,numbers=left,numbersep=3pt,frame=single}
-
-\section{\texttt{Example} environment}
-
-\begin{Verbatim}
- \begin{Example}
- First verbatim line.
- Second verbatim line.
- Third verbatim line.
- \end{Example}
-\end{Verbatim}
-
-\begin{Example}
- First verbatim line.
- Second verbatim line.
- Third verbatim line.
-\end{Example}
-
-\begin{Verbatim}
- \begin{Example}[frame=lines,framerule=1mm,numbers=left]
- First verbatim line.
- Second verbatim line.
- Third verbatim line.
- \end{Example}
-\end{Verbatim}
-
-\begin{Example}[frame=lines,framerule=1mm,numbers=left]
- First verbatim line.
- Second verbatim line.
- Third verbatim line.
-\end{Example}
-
-\section{\texttt{CenterExample} environment}
-
-\begin{Verbatim}
- \begin{CenterExample}[frame=single,numbers=right]
- First verbatim line.
- Second verbatim line.
- Third verbatim line.
- \end{CenterExample}
-\end{Verbatim}
-
-\begin{CenterExample}[frame=single,numbers=right]
- First verbatim line.
- Second verbatim line.
- Third verbatim line.
-\end{CenterExample}
-
-\begin{Verbatim}
- \begin{CenterExample}[frame=lines,numbers=left]
- ^^a7HLa^^b5First^^b6 verbatim line.
- ^^a7HLb^^b5Second^^b6 verbatim line.
- ^^a7HLCBWz^^b5Third^^b6 verbatim line.
- \end{CenterExample}
-\end{Verbatim}
-
-\begin{CenterExample}[frame=lines,numbers=left]
- ^^a7HLa^^b5First^^b6 verbatim line.
- ^^a7HLb^^b5Second^^b6 verbatim line.
- ^^a7HLCBWz^^b5Third^^b6 verbatim line.
-\end{CenterExample}
-
-\section{\texttt{SideBySideExample} environment}
-
-\begin{Verbatim}
- \begin{SideBySideExample}[xrightmargin=5cm,frame=lines,
- numbers=left]
- First verbatim line.
- Second verbatim line.
- Third verbatim line.
- \end{SideBySideExample}
-\end{Verbatim}
-
-\begin{SideBySideExample}[xrightmargin=5cm,frame=single,numbers=left]
- First verbatim line.
- Second verbatim line.
- Third verbatim line.
-\end{SideBySideExample}
-
-\ifpstricks % If PSTricks is available
-
-\section{\texttt{PCenterExample} environment}
-
-\begin{Verbatim}
- \fvset{frame=lines,framerule=0.5mm,numbers=left}
-
- \begin{PCenterExample}(-0.5,-0.5)(0.5,0.5)
- \setlength{\unitlength}{1cm}
- \put(0,0){\circle{1}}
- \end{PCenterExample}
-
- \showgrid
- \begin{PCenterExample}(-1,-1)(1,1)
- \setlength{\unitlength}{1cm}
- \put(0,0){\circle{1}}
- \end{PCenterExample}
-\end{Verbatim}
-
-{\fvset{frame=lines,framerule=0.5mm,numbers=left}
-\begin{PCenterExample}(-0.5,-0.5)(0.5,0.5)
- \setlength{\unitlength}{1cm}
- \put(0,0){\circle{1}}
-\end{PCenterExample}
-\showgrid
-\begin{PCenterExample}(-1,-1)(1,1)
- \setlength{\unitlength}{1cm}
- \put(0,0){\circle{1}}
-\end{PCenterExample}
-}
-
-\section{\texttt{PSideBySideExample} environment}
-
-\begin{Verbatim}
- \fvset{frame=single,xrightmargin=5cm}
- \begin{PSideBySideExample}(-2,-1)(2,1)
- \psellipse*[linecolor=yellow](2,1)
- \end{PSideBySideExample}
- \showgrid
- \begin{PSideBySideExample}(-2,-1)(2,1)
- \psellipse[linestyle=dashed](2,1)
- \end{PSideBySideExample}
-\end{Verbatim}
-
-{\fvset{frame=single,xrightmargin=5cm}
-\begin{PSideBySideExample}(-2,-1)(2,1)
- \psellipse*[linecolor=yellow](2,1)
-\end{PSideBySideExample}
-
-\showgrid
-\begin{PSideBySideExample}(-2,-1)(2,1)
- \psellipse[linestyle=dashed](2,1)
-\end{PSideBySideExample}
-}
-
-\begin{Verbatim}
- \fvset{frame=single,xrightmargin=5cm}
- \begin{PSideBySideExample}(-2,-1)(2,1)
- \psellipse[linestyle=^^a7HLCBWe^^b5dashed^^b6](2,1)
- \end{PSideBySideExample}
- \begin{PSideBySideExample}[numbers=right](-2,-1)(2,1)
- \psellipse[linestyle=^^a7HLe^^b5dotted^^b6](2,1)
- \end{PSideBySideExample}
-\end{Verbatim}
-
-{\fvset{frame=single,xrightmargin=5cm}
-\begin{PSideBySideExample}(-2,-1)(2,1)
- \psellipse[linestyle=^^a7HLCBWe^^b5dashed^^b6](2,1)
-\end{PSideBySideExample}
-\begin{PSideBySideExample}[numbers=right](-2,-1)(2,1)
- \psellipse[linestyle=^^a7HLe^^b5dotted^^b6](2,1)
-\end{PSideBySideExample}
-
-\else % If PSTricks is not available
-\begin{quote}
- \section{\texttt{PCenterExample} and \texttt{PSideBySideExample}
-environments}
-
- \textbf{\large Warning!} These two environments are not demonstrated here,
-because PSTricks was not found on this platform.
-\end{quote}
-\fi
-
-\end{document}
-\endinput
-%%
-%% End of file `t-fvrbex.tex'.
Added: trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb-ex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb-ex.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb-ex.sty 2018-11-01 22:10:32 UTC (rev 49045)
@@ -0,0 +1,144 @@
+%%
+%% This is file `fancyvrb-ex.sty',
+%%
+%% COPYRIGHT 2018-, 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.
+%% Either version 1.3 or, at your option, any later version.
+%%
+%% DESCRIPTION:
+%% fancyvrb.sty is a LaTeX style option, containing flexible
+%% verbatim environments and commands and extensive documentation.
+%% it is based on the work of Denis Girou
+%%
+\NeedsTeXFormat{LaTeX2e}
+\def\fileversion{0.01}
+\def\filedate{2018/11/01}
+\ProvidesPackage{fancyvrb-ex}[\filedate]
+\message{Style option: `fancyvrb-ex' v\fileversion \space <\filedate> (tvz)}
+\csname fancyvrb-ex at loaded\endcsname
+\expandafter\let\csname fancyvrb-ex at loaded\endcsname\endinput
+\newif\ifEX at pstricks \EX at pstricksfalse
+\DeclareOption{pstricks}{\EX at pstrickstrue}
+\newif\ifEX at color\EX at colorfalse
+\DeclareOption{color}{\global\EX at colortrue}
+\ProcessOptions
+\RequirePackage{fancyvrb} % Standard LaTeX `color' package
+\RequirePackage{xcolor} % Standard LaTeX `color' package
+\def\FV at Error#1#2{%
+ \edef\@tempc{#2}\expandafter\errhelp\expandafter{\@tempc}%
+ \errmessage{FancyVerb Error:^^J\space\space #1^^J}}
+
+\def\FV at eha{Your command was ignored. Type <return> to continue.}
+
+% The exa part of fancyvrb
+%
+\def\Highlight at Attributes{} % Default=nothing
+\def\NoHighlight at Attributes{} % Default=nothing
+\ifEX at color
+ \RequirePackage{hcolor} % Color version
+\else
+ \RequirePackage{hbaw} % black and white version
+\fi
+\ifEX at pstricks\RequirePackage{pstricks}\fi
+%
+%\fvset{gobble=0}
+\newif\ifFvrbEx at Grid
+%
+\def\Example{%
+\catcode`\^^M=\active
+\@ifnextchar[{\catcode`\^^M=5\Example@}{\catcode`\^^M=5\Begin at Example}}
+%
+\def\endExample{%
+\end{VerbatimOut}%
+\Below at Example{\input{\jobname.tmp}}}
+%
+\def\Example@[#1]{\fvset{#1}\Begin at Example}
+%
+\def\CenterExample{%
+\catcode`\^^M=\active
+\@ifnextchar[{\catcode`\^^M=5\Example@}{\catcode`\^^M=5\Begin at Example}}
+%
+\def\endCenterExample{%
+\end{VerbatimOut}%
+\center
+\Below at Example{\input{\jobname.tmp}}
+\endcenter}
+%
+\def\SideBySideExample{%
+\catcode`\^^M=\active
+\@ifnextchar[{\catcode`\^^M=5\Example@}%
+ {\catcode`\^^M=5\Begin at Example}}
+\def\endSideBySideExample{%
+\end{VerbatimOut}%
+\SideBySide at Example{\input{\jobname.tmp}}}
+\newcommand\Begin at Example{%
+\parindent=0pt
+\multiply\topsep by 2
+\VerbatimEnvironment
+\begin{VerbatimOut}[codes={\catcode`\^^a3=12\catcode`\^^a7=12\catcode`\^^b5=12%
+ \catcode`\^^b6=12}]{\jobname.tmp}}
+\newcommand\Below at Example[1]{%
+\VerbatimInput[gobble=0,commentchar=^^a3,commandchars=^^a7^^b5^^b6,numbersep=3pt]%
+ {\jobname.tmp}
+\catcode`\^^a3=9\relax%
+\NoHighlight at Attributes % To suppress possible highlighting
+\ifFvrbEx at Grid\vspace{5pt}\fi
+#1%
+\ifFvrbEx at Grid\vspace{5pt}\fi
+\par}
+\newcommand{\SideBySide at Example}[1]{%
+\@tempdimb=\FV at XRightMargin
+\advance\@tempdimb -5mm
+\begin{minipage}[c]{\@tempdimb}
+ \fvset{xrightmargin=0pt}
+ \catcode`\^^a3=9\relax%
+ \NoHighlight at Attributes % To suppress possible highlighting
+ #1
+\end{minipage}%
+\@tempdimb=\textwidth
+\advance\@tempdimb -\FV at XRightMargin
+\advance\@tempdimb 5mm
+\begin{minipage}[c]{\@tempdimb}
+ \VerbatimInput[gobble=0,commentchar=^^a3,commandchars=^^a7^^b5^^b6,numbersep=3pt,
+ xleftmargin=5mm,xrightmargin=0pt]{\jobname.tmp}
+\end{minipage}}
+\ifx\PSTricksLoaded\endinput
+ \newcommand\showgrid{\FvrbEx at Gridtrue}
+ \newpsobject{FvrbExGrid}{psgrid}{subgriddiv=0,griddots=10,gridlabels=7pt}
+ \def\PCenterExample{\@ifnextchar[{\Pst at Example}{\Pst@@Example}}
+ \def\endPCenterExample{%
+ \end{VerbatimOut}%
+ \Below at Example{%
+ \center
+ \expandafter\pspicture\Picture at Size
+ \ifFvrbEx at Grid\FvrbExGrid\fi\relax
+ \input{\jobname.tmp}%
+ \endpspicture
+ \endcenter
+ \smallskip}}
+ \def\PSideBySideExample{\@ifnextchar[{\Pst at Example}{\Pst@@Example}}
+ \def\endPSideBySideExample{%
+ \end{VerbatimOut}%
+ \SideBySide at Example{%
+ \ifFvrbEx at Grid\vspace{5pt}\fi
+ \expandafter\pspicture\Picture at Size
+ \ifFvrbEx at Grid\FvrbExGrid\fi\relax
+ \input{\jobname.tmp}%
+ \endpspicture
+ \ifFvrbEx at Grid\vspace{5pt}\fi
+ \smallskip}}
+ \def\Pst at Example[#1]{\fvset{#1}\Pst@@Example}
+ \def\Pst@@Example#1(#2,#3){%
+ \catcode`\^^M=\active
+ \@ifnextchar({\catcode`\^^M=5\Pst@@@Example(#2,#3)}
+ {\catcode`\^^M=5\Pst@@@Example(0,0)(#2,#3)}}
+ \def\Pst@@@Example(#1,#2)(#3,#4){%
+ \def\Picture at Size{(#1,#2)(#3,#4)}%
+ \Begin at Example}
+\fi % End \ifx\PSTricksLoaded
+%%
+\endinput
+%%
+%% End of file `fancyvrb-ex.sty'.
Property changes on: trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb-ex.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,56 +1,26 @@
%%
%% This is file `fancyvrb.sty',
-%% generated with the docstrip utility.
%%
-%% The original source files were:
-%%
-%% fancyvrb.dtx (with options: `fancyvrb')
-%%
-%% IMPORTANT NOTICE:
-%%
-%% For the copyright see the source file.
-%%
-%% Any modified versions of this file must be renamed
-%% with new filenames distinct from fancyvrb.sty.
-%%
-%% For distribution of the original source see the terms
-%% for copying and modification in the file fancyvrb.dtx.
-%%
-%% This generated file may be distributed as long as the
-%% original source files, as listed above, are part of the
-%% same distribution. (The sources need not necessarily be
-%% in the same archive or directory.)
-%%
-%% Package `fancyvrb'
-%%
-%% COPYRIGHT 1992-2010, by Timothy Van Zandt <tvz at zandtwerk.kellogg.nwu.edu>
-%% 2010, 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.
-%% Either version 1.0 or, at your option, any later version.
-%%
-%%
-
%% COPYRIGHT 1992-1999, by Timothy Van Zandt <tvz at zandtwerk.kellogg.nwu.edu>
+%% 2010-2018, 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.
-%% Either version 1.0 or, at your option, any later version.
+%% Either version 1.3 or, at your option, any later version.
%%
%% DESCRIPTION:
%% fancyvrb.sty is a LaTeX style option, containing flexible
%% verbatim environments and commands and extensive documentation.
%%
-%% This is a companion to the `fancybox' package.
-%%
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{2.7a, with DG/SPQR fixes, and firstline=lastline fix}
-\def\filedate{2008/02/07}
+\def\fileversion{3.0}
+\def\filedate{2018/11/01}
\ProvidesPackage{fancyvrb}[\filedate]
\message{Style option: `fancyvrb' v\fileversion \space <\filedate> (tvz)}
\csname fancyvrb at loaded\endcsname
\let\fancyvrb at loaded\endinput
+%\ProcessOptions
+\RequirePackage{xcolor} % Standard LaTeX `color' package
\def\FV at Error#1#2{%
\edef\@tempc{#2}\expandafter\errhelp\expandafter{\@tempc}%
\errmessage{FancyVerb Error:^^J\space\space #1^^J}}
@@ -159,9 +129,12 @@
\expandafter\def\expandafter#1\expandafter{#1#2\relax}}
\define at key{FV}{codes}[]{\def\FancyVerbCodes{#1\relax}}
\define at key{FV}{codes*}{%
- \expandafter\def\expandafter\FancyVerbCodes\expandafter{%
- \FancyVerbCodes#1\relax}}
+ \expandafter\def\expandafter\FancyVerbCodes\expandafter{\FancyVerbCodes#1\relax}}
\fvset{codes}
+%
+\define at key{FV}{vspace}[\topsep]{\def\FancyVerbVspace{#1}}
+\fvset{vspace}
+%
\define at key{FV}{commandchars}[\\\{\}]%
{\def\@tempa{#1}%
\ifx\@tempa\FV at None
@@ -242,9 +215,7 @@
}
\def\FV@@FindStartString#1#2{%
\edef\@fooA{#1}\edef\@fooB{#2}%
- \ifx\@fooA\@fooB
- \FV at DefineFindStop
- \fi
+ \ifx\@fooA\@fooB\FV at DefineFindStop\fi
}
%% SR modification end
\def\FV at DefineFindStop{%
@@ -398,7 +369,7 @@
\def\FV at GetLine{\@noligs\expandafter\FV at CheckScan\FancyVerbGetLine}
%% DG/SR modification end
\begingroup
-\catcode`\^^M=\active
+\catcode`\^^M=\active%
\gdef\FancyVerbGetLine#1^^M{%
\@nil%
\FV at CheckEnd{#1}%
@@ -536,33 +507,16 @@
\def\FV at MakeUnActive{}
\begingroup
\catcode`\`=\active
-\gdef\FV at fontfamily@tt{%
- \def\FV at FontScanPrep{\FV at MakeActive\`}%
-%% SR modification begin - 1995
-%% \def\FV at FontFamily{\tt`{{\string`}}}}
- \def\FV at FontFamily{\ttfamily\edef`{{\string`}}}}
-%% SR modification end
-\gdef\FV at fontfamily@cmtt{%
- \def\FV at FontScanPrep{\FV at MakeActive\`}%
- \def\FV at FontFamily{\edef`{{\string`}}\fontfamily{cmtt}}}
+\gdef\FV at fontfamily@tt{\def\FV at FontScanPrep{\FV at MakeActive\`}\def\FV at FontFamily{\ttfamily\edef`{{\string`}}}}
+\gdef\FV at fontfamily@cmtt{\def\FV at FontScanPrep{\FV at MakeActive\`}\def\FV at FontFamily{\edef`{{\string`}}\fontfamily{cmtt}}}
\endgroup
-\@namedef{FV at fontfamily@cmtt-spanish}{%
- \def\FV at FontScanPrep{}%
- \def\FV at FontFamily{\fontfamily{cmtt}}}
-\@namedef{FV at fontfamily@courier}{%
- \def\FV at FontScanPrep{}%
-%% SR modification begin - 1995
-%% \def\FV at FontFamily{\fontfamily{rpcr}}}
- \def\FV at FontFamily{\fontfamily{pcr}}}
-%% SR modification end
-\@namedef{FV at fontfamily@helvetica}{%
- \def\FV at FontScanPrep{}%
-%% SR modification begin - 1995
-%% \def\FV at FontFamily{\fontfamily{rphv}}}
- \def\FV at FontFamily{\fontfamily{phv}}}
-%% SR modification end
-\fvset{fontfamily=tt,fontsize=auto,fontshape=auto,fontseries=auto,
- baselinestretch=auto}
+\@namedef{FV at fontfamily@cmtt-spanish}{\def\FV at FontScanPrep{}\def\FV at FontFamily{\fontfamily{cmtt}}}
+\@namedef{FV at fontfamily@courier}{\def\FV at FontScanPrep{}\def\FV at FontFamily{\fontfamily{pcr}}}
+\@namedef{FV at fontfamily@helvetica}{\def\FV at FontScanPrep{}\let\FV at FontFamily\sffamily}
+% \def\FV at FontFamily{\fontfamily{phv}}}
+\def\myFont{}
+\@namedef{FV at fontfamily@myFont}{\def\FV at FontScanPrep{}\def\FV at FontFamily{\myFont}}
+\fvset{fontfamily=tt,fontsize=auto,fontshape=auto,fontseries=auto,baselinestretch=auto}
\begingroup
\catcode`\ =\active
\catcode`\^^I=\active
@@ -684,7 +638,8 @@
\leftmargin\z@
\fi}
\def\FV at ListVSpace{%
- \@topsepadd\topsep
+% \@topsepadd\topsep
+ \@topsepadd=\FancyVerbVspace
\if at noparlist\advance\@topsepadd\partopsep\fi
\if at inlabel
\vskip\parskip
@@ -956,10 +911,7 @@
\begingroup
\baselineskip\z at skip
\kern\FV at FrameSep\relax
-%% DG/SR modification begin - May. 19, 1998
-%% \FV at SingleFrameLine
\FV at SingleFrameLine{\@ne}%
-%% DG/SR modification end
\endgroup}
\def\FV at SingleFrameSep{%
\hbox to \z@{%
@@ -966,11 +918,9 @@
\kern\leftmargin
\hbox to\linewidth{%
\FancyVerbRuleColor{%
-%% DG modification begin - June 18, 1997 (\FV at FrameSep missing)
\ifx\FancyVerbFillColor\relax
\vrule\@width 0pt\@height\FV at FrameSep\relax
\fi
-%% DG modification end
\vrule\@width\FV at FrameRule\relax
\ifx\FancyVerbFillColor\relax
\hfil
@@ -977,11 +927,9 @@
\else
{\FancyVerbFillColor\leaders\hrule\@height\FV at FrameSep\hfil}%
\fi
-%% DG modification begin - June 18, 1997 (\FV at FrameSep missing)
\ifx\FancyVerbFillColor\relax
\vrule\@width 0pt\@height\FV at FrameSep\relax
\fi
-%% DG modification end
\vrule\@width\FV at FrameRule\relax}}%
\hss}}
\def\FV at LeftListFrame@Single{%
@@ -988,17 +936,12 @@
\strut
{\FancyVerbRuleColor{\vrule \@width\FV at FrameRule}}%
\FV at FrameFillLine
-%% DG modification begin - June 18, 1997 (to fill color on left side)
-%% \kern\FV at FrameSep}
\ifx\FancyVerbFillColor\relax
\kern\FV at FrameSep
\else
{\noexpand\leavevmode\FancyVerbFillColor{\vrule\@width\FV at FrameSep}}%
\fi}
-%% DG modification end
\def\FV at RightListFrame@Single{%
-%% DG modification begin - June 18, 1997 (to fill color on right side)
-%% \kern\FV at FrameSep
\ifx\FancyVerbFillColor\relax
\kern\FV at FrameSep
\else
@@ -1005,15 +948,11 @@
{\noexpand\leavevmode\FancyVerbFillColor{\vrule\@width\FV at FrameSep}}%
\fi
{\noexpand\leavevmode\FancyVerbRuleColor{\vrule\@width\FV at FrameRule}}}
-%% DG modification end
\def\FV at EndListFrame@Single{%
\penalty\@M
\FV at SingleFrameSep
\penalty\@M
-%% DG/SR modification begin - May. 19, 1998
-%% \FV at SingleFrameLine}
\FV at SingleFrameLine{\@ne}}
-%% DG/SR modification end
\define at key{FV}{framerule}{%
\@tempdima=#1\relax
\edef\FV at FrameRule{\number\@tempdima sp\relax}}
@@ -1052,32 +991,26 @@
\def\@tempa{#1}\def\@tempb{auto}%
\ifx\@tempa\@tempb
\def\FV at SetLineNo{%
- \c at FancyVerbLine\FV at CodeLineNo
+ \c at FancyVerbLine\FV at CodeLineNo%
\advance\c at FancyVerbLine\m at ne}%
- \else
+ \else%
\def\@tempb{last}%
\ifx\@tempa\@tempb
- \let\FV at SetLineNo\relax
- \else
-%% DG/SR modification begin - Jan. 19, 1998
-%% \def\FV at SetLineNo{\c at FancyVerbLine#1}%
+ \let\FV at SetLineNo\relax%
+ \else%
\def\FV at SetLineNo{%
- \c at FancyVerbLine#1
+ \c at FancyVerbLine#1%
\advance\c at FancyVerbLine\m at ne}%
-%% DG/SR modification end
- \fi
+ \fi%
\fi}
\define at booleankey{FV}{numberblanklines}%
{\let\if at FV@NumberBlankLines\iftrue}
{\let\if at FV@NumberBlankLines\iffalse}
\fvset{numberblanklines=true}
-%% DG/SR modification begin - May. 20, 1998
-%%\def\refstepcounter#1{% Adapted from latex.ltx
\def\FV at refstepcounter#1{%
-%% DG/SR modification end
\stepcounter{#1}%
- \protected at edef\@currentlabel
- {\csname p@#1\endcsname\arabic{FancyVerbLine}}}
+ \protected at edef\@currentlabel{\csname p@#1\endcsname\arabic{FancyVerbLine}}%
+}
\def\FV at StepLineNo{%
\FV at SetLineNo%
\def\FV at StepLineNo{%
@@ -1090,16 +1023,11 @@
\fi%
\fi}%
\FV at StepLineNo}
-%% DG/SR modification begin - 1995
-%%\def\theFancyVerbLine{\rm\tiny\arabic{FancyVerbLine}}
\def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
-%% DG/SR modification end
\define at key{FV}{numbers}[none]{%
\@ifundefined{FV at Numbers@#1}%
{\FV at Error{Numbers style `#1' not defined.}\FV at eha}%
{\@nameuse{FV at Numbers@#1}}}
-%% DG modification begin - Dec. 20, 1995 and Jan. 28, 1998
-%%\def\FV at Numbers@none{\let\FV at LeftListNumber\relax}
\def\FV at Numbers@none{%
\let\FV at LeftListNumber\relax
\let\FV at RightListNumber\relax}
@@ -1107,14 +1035,8 @@
\define at key{FV}{stepnumber}{\FV at StepNumber#1}
\def\KV at FV@stepnumber at default{\FV at StepNumber\@ne}
\fvset{stepnumber}
-%% DG modification begin - Dec. 20, 1995
-%%\def\FV at Numbers@left{%
-%% \def\FV at LeftListNumber{\hbox to\z@{%
-%% \hss\theFancyVerbLine\kern\FV at NumberSep}}}
\def\FV at Numbers@left{%
-%% DG/SR modification begin - Apr. 28, 1998
\let\FV at RightListNumber\relax
-%% DG/SR modification end
\def\FV at LeftListNumber{%
\@tempcnta=\FV at CodeLineNo
\@tempcntb=\FV at CodeLineNo
@@ -1121,8 +1043,6 @@
\divide\@tempcntb\FV at StepNumber
\multiply\@tempcntb\FV at StepNumber
\ifnum\@tempcnta=\@tempcntb
-%% DG/SR modification begin - Apr. 28, 1998
-%% \hbox to\z@{\hss\theFancyVerbLine\kern\FV at NumberSep}%
\if at FV@NumberBlankLines
\hbox to\z@{\hss\theFancyVerbLine\kern\FV at NumberSep}%
\else
@@ -1131,12 +1051,9 @@
\hbox to\z@{\hss\theFancyVerbLine\kern\FV at NumberSep}%
\fi
\fi
-%% DG/SR modification end
\fi}}
\def\FV at Numbers@right{%
-%% DG/SR modification begin - Apr. 28, 1998
\let\FV at LeftListNumber\relax
-%% DG/SR modification end
\def\FV at RightListNumber{%
\@tempcnta=\FV at CodeLineNo
\@tempcntb=\FV at CodeLineNo
@@ -1281,7 +1198,7 @@
\define at key{FV}{aftersave}{\def\FancyVerbAfterSave{#1}}
\fvset{aftersave=}
\def\FV at UseVerb#1{\mbox{\FV at UseKeyValues\FV at FormattingPrep#1}}
-\def\UseVerb{\FV at Command{}{UseVerb}}
+\DeclareRobustCommand\UseVerb{\FV at Command{}{UseVerb}}
\def\FVC at UseVerb#1{%
\@ifundefined{FV at SV@#1}%
{\FV at Error{Short verbatim text never saved to name `#1'}\FV at eha}%
@@ -1413,11 +1330,10 @@
\ignorespaces}
\def\endlrbox{\unskip\egroup}
\fi
-%% DG/SR modification begin - Mar 21 2000
-%%\@input{fancyvrb.rc}
+%
+%%
\InputIfFileExists{fancyvrb.cfg}{}{}
-%% DG/SR modification end
-%%% \PrintIndex
+%%
\endinput
%%
%% End of file `fancyvrb.sty'.
Deleted: trunk/Master/texmf-dist/tex/latex/fancyvrb/fvrb-ex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fancyvrb/fvrb-ex.sty 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/tex/latex/fancyvrb/fvrb-ex.sty 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,173 +0,0 @@
-%%
-%% This is file `fvrb-ex.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% fvrb-ex.dtx (with options: `fvrb-ex')
-%%
-%% IMPORTANT NOTICE:
-%%
-%% For the copyright see the source file.
-%%
-%% Any modified versions of this file must be renamed
-%% with new filenames distinct from fvrb-ex.sty.
-%%
-%% For distribution of the original source see the terms
-%% for copying and modification in the file fvrb-ex.dtx.
-%%
-%% This generated file may be distributed as long as the
-%% original source files, as listed above, are part of the
-%% same distribution. (The sources need not necessarily be
-%% in the same archive or directory.)
-%%
-%% Package `fvrb-ex' (`fvrb-ex', `hbaw' and `hcolor')
-%%
-%% COPYING:
-%% This package may be distributed under the terms of the LaTeX Project Public
-%% License, as described in lppl.txt in the base LaTeX distribution.
-%% Either version 1.0 or, at your option, any later version.
-%%
-%% Denis Girou (CNRS/IDRIS - France) <Denis.Girou at idris.fr> March 27, 1998
-%%
-%% Package `fvrb-ex'
-%%
-\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.9}
-\def\filedate{2010/05/16}
-\ProvidesPackage{fvrb-ex}[\filedate]
-\message{`fvrb-ex' v\fileversion, \filedate\space (Denis Girou)}
-\newif\ifpstricks\pstricksfalse
-\let\LoadPStricks=\relax
-\DeclareOption{pstricks}{\def\LoadPStricks{\RequirePackage{pstricks}}\pstrickstrue}
-\DeclareOption{baw}{\def\ColorVersion{n}}
-\DeclareOption{color}{\def\ColorVersion{y}}
-\DeclareOption{bawcolor}{\def\ColorVersion{?}}
-\ProcessOptions\relax
-\LoadPStricks
-\ifpstricks\RequirePackage{pstricks}\fi
-\RequirePackage{fancyvrb}
-\newread\ttyin
-\def\iden#1{#1}
-\def\strip#1#2 \@gobble{\def #1{#2}}
-\def\@defpar{\par}
-\def\@gobble#1{}
-\def\Ask#1#2{%
-\message{#2}\read\ttyin to #1\ifx#1\@defpar\def#1{}\else
-\iden{\expandafter\strip\expandafter#1#1\@gobble\@gobble} \@gobble\fi}
-\def\Answer at Yes{y}
-\def\Answer at No{n}
-\def\Question at Mark{?}
-\def\Question at Color{Color version? (y=yes)}
-\def\Highlight at Attributes{} % Default=nothing
-\def\NoHighlight at Attributes{} % Default=nothing
-\ifx\ColorVersion\Answer at Yes
- \RequirePackage{color} % Standard LaTeX `color' package
- \RequirePackage{hcolor} % Color version
-\fi
-\ifx\ColorVersion\Answer at No
- \RequirePackage{color} % Standard LaTeX `color' package
- \RequirePackage{hbaw} % Black and white version
-\fi
-\ifx\ColorVersion\Question at Mark
- \Ask\ColorVersion{^^J\Question at Color}
- \ifx\ColorVersion\Answer at Yes
- \RequirePackage{color} % Standard LaTeX `color' package
- \RequirePackage{hcolor} % Color version
- \else
- \RequirePackage{color} % Standard LaTeX `color' package
- \RequirePackage{hbaw} % Black and white version
- \fi
-\fi
-\fvset{gobble=2}
-\newif\ifFvrbEx at Grid
-\def\Example{%
-\catcode`\^^M=\active
-\@ifnextchar[{\catcode`\^^M=5\Example@}{\catcode`\^^M=5\Begin at Example}}
-\def\endExample{%
-\end{VerbatimOut}%
-\Below at Example{\input{\jobname.tmp}}}
-\def\Example@[#1]{\fvset{#1}\Begin at Example}
-\def\CenterExample{%
-\catcode`\^^M=\active
-\@ifnextchar[{\catcode`\^^M=5\Example@}{\catcode`\^^M=5\Begin at Example}}
-\def\endCenterExample{%
-\end{VerbatimOut}%
-\center
-\Below at Example{\input{\jobname.tmp}}
-\endcenter}
-\def\SideBySideExample{%
-\catcode`\^^M=\active
-\@ifnextchar[{\catcode`\^^M=5\Example@}%
- {\catcode`\^^M=5\Begin at Example}}
-\def\endSideBySideExample{%
-\end{VerbatimOut}%
-\SideBySide at Example{\input{\jobname.tmp}}}
-\newcommand{\Begin at Example}{%
-\parindent=0pt
-\multiply\topsep by 2
-\VerbatimEnvironment
-\begin{VerbatimOut}[codes={\catcode`\^^a3=12\catcode`\^^a7=12\catcode`\^^b5=12%
- \catcode`\^^b6=12}]{\jobname.tmp}}
-\newcommand{\Below at Example}[1]{%
-\VerbatimInput[gobble=0,commentchar=^^a3,commandchars=^^a7^^b5^^b6,numbersep=3pt]%
- {\jobname.tmp}
-\catcode`\^^a3=9\relax%
-\NoHighlight at Attributes % To suppress possible highlighting
-\ifFvrbEx at Grid\vspace{5pt}\fi
-#1%
-\ifFvrbEx at Grid\vspace{5pt}\fi
-\par}
-\newcommand{\SideBySide at Example}[1]{%
-\@tempdimb=\FV at XRightMargin
-\advance\@tempdimb -5mm
-\begin{minipage}[c]{\@tempdimb}
- \fvset{xrightmargin=0pt}
- \catcode`\^^a3=9\relax%
- \NoHighlight at Attributes % To suppress possible highlighting
- #1
-\end{minipage}%
-\@tempdimb=\textwidth
-\advance\@tempdimb -\FV at XRightMargin
-\advance\@tempdimb 5mm
-\begin{minipage}[c]{\@tempdimb}
- \VerbatimInput[gobble=0,commentchar=^^a3,commandchars=^^a7^^b5^^b6,numbersep=3pt,
- xleftmargin=5mm,xrightmargin=0pt]{\jobname.tmp}
-\end{minipage}}
-\ifx\PSTricksLoaded\endinput
- \newcommand{\showgrid}{\FvrbEx at Gridtrue}
- \newpsobject{FvrbExGrid}{psgrid}{subgriddiv=0,griddots=10,gridlabels=7pt}
- \def\PCenterExample{\@ifnextchar[{\Pst at Example}{\Pst@@Example}}
- \def\endPCenterExample{%
- \end{VerbatimOut}%
- \Below at Example{%
- \center
- \expandafter\pspicture\Picture at Size
- \ifFvrbEx at Grid\FvrbExGrid\fi\relax
- \input{\jobname.tmp}%
- \endpspicture
- \endcenter
- \smallskip}}
- \def\PSideBySideExample{\@ifnextchar[{\Pst at Example}{\Pst@@Example}}
- \def\endPSideBySideExample{%
- \end{VerbatimOut}%
- \SideBySide at Example{%
- \ifFvrbEx at Grid\vspace{5pt}\fi
- \expandafter\pspicture\Picture at Size
- \ifFvrbEx at Grid\FvrbExGrid\fi\relax
- \input{\jobname.tmp}%
- \endpspicture
- \ifFvrbEx at Grid\vspace{5pt}\fi
- \smallskip}}
- \def\Pst at Example[#1]{\fvset{#1}\Pst@@Example}
- \def\Pst@@Example#1(#2,#3){%
- \catcode`\^^M=\active
- \@ifnextchar({\catcode`\^^M=5\Pst@@@Example(#2,#3)}
- {\catcode`\^^M=5\Pst@@@Example(0,0)(#2,#3)}}
- \def\Pst@@@Example(#1,#2)(#3,#4){%
- \def\Picture at Size{(#1,#2)(#3,#4)}%
- \Begin at Example}
-\fi % End \ifx\PSTricksLoaded
-\endinput
-%%
-%% End of file `fvrb-ex.sty'.
Deleted: trunk/Master/texmf-dist/tex/latex/fancyvrb/hbaw.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fancyvrb/hbaw.sty 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/tex/latex/fancyvrb/hbaw.sty 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,158 +0,0 @@
-%%
-%% This is file `hbaw.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% fvrb-ex.dtx (with options: `hbaw')
-%%
-%% IMPORTANT NOTICE:
-%%
-%% For the copyright see the source file.
-%%
-%% Any modified versions of this file must be renamed
-%% with new filenames distinct from hbaw.sty.
-%%
-%% For distribution of the original source see the terms
-%% for copying and modification in the file fvrb-ex.dtx.
-%%
-%% This generated file may be distributed as long as the
-%% original source files, as listed above, are part of the
-%% same distribution. (The sources need not necessarily be
-%% in the same archive or directory.)
-%%
-%% Package `fvrb-ex' (`fvrb-ex', `hbaw' and `hcolor')
-%%
-%% COPYING:
-%% This package may be distributed under the terms of the LaTeX Project Public
-%% License, as described in lppl.txt in the base LaTeX distribution.
-%% Either version 1.0 or, at your option, any later version.
-%%
-%% Denis Girou (CNRS/IDRIS - France) <Denis.Girou at idris.fr> March 27, 1998
-%%
-%% Package `hbaw'
-%%
-\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.4}
-\def\filedate{1998/03/19}
-\ProvidesPackage{hbaw}[\filedate]
-\message{`hbaw' v\fileversion, \filedate\space (Denis Girou)}
-\newcommand{\FvrbEx at ColoredBox}[3]{%
-\fboxsep=1pt\fcolorbox{#2}{#2}{\textcolor{#3}{\textbf{#1}}}}
-\def\Highlight at Attributes{%
-\def\HLa##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLb##1{\ifmmode\mathsl{##1}\else\textsl{##1}\fi}
-\def\HLc##1{##1}
-\def\HLd##1{##1}
-\def\HLe##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLf##1{##1}
-\def\HLq##1{##1}
-\def\HLr##1{##1}
-\def\HLz##1{##1}
-\def\HLBFa##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLBFb##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLBFc##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLBFd##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLBFe##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLBFf##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLBFz##1{\ifmmode\mathbf{##1}\else\textbf{##1}\fi}
-\def\HLITa##1{\ifmmode\mathnormal{##1}\else\textsl{##1}\fi}
-\def\HLITb##1{\ifmmode\mathnormal{##1}\else\textsl{##1}\fi}
-\def\HLITc##1{\ifmmode\mathnormal{##1}\else\textsl{##1}\fi}
-\def\HLITd##1{\ifmmode\mathnormal{##1}\else\textsl{##1}\fi}
-\def\HLITe##1{\ifmmode\mathnormal{##1}\else\textsl{##1}\fi}
-\def\HLITf##1{\ifmmode\mathnormal{##1}\else\textsl{##1}\fi}
-\def\HLITz##1{\ifmmode\mathnormal{##1}\else\textsl{##1}\fi}
-\def\HLSCa##1{\ifmmode\mathit{##1}\else\textsc{##1}\fi}
-\def\HLSCb##1{\ifmmode\mathit{##1}\else\textsc{##1}\fi}
-\def\HLSCc##1{\ifmmode\mathit{##1}\else\textsc{##1}\fi}
-\def\HLSCd##1{\ifmmode\mathit{##1}\else\textsc{##1}\fi}
-\def\HLSCe##1{\ifmmode\mathit{##1}\else\textsc{##1}\fi}
-\def\HLSCf##1{\ifmmode\mathit{##1}\else\textsc{##1}\fi}
-\def\HLSCz##1{\ifmmode\mathit{##1}\else\textsc{##1}\fi}
-\def\HLTTa##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLTTb##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLTTc##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLTTd##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLTTe##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLTTf##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLTTq##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLTTr##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLTTz##1{\ifmmode\mathtt{##1}\else\texttt{##1}\fi}
-\def\HLITTTa##1{\ifmmode\mathtt{##1}\else\textsl{\texttt{##1}}\fi}
-\def\HLITTTb##1{\ifmmode\mathtt{##1}\else\textsl{\texttt{##1}}\fi}
-\def\HLITTTc##1{\ifmmode\mathtt{##1}\else\textsl{\texttt{##1}}\fi}
-\def\HLITTTd##1{\ifmmode\mathtt{##1}\else\textsl{\texttt{##1}}\fi}
-\def\HLITTTe##1{\ifmmode\mathtt{##1}\else\textsl{\texttt{##1}}\fi}
-\def\HLITTTf##1{\ifmmode\mathtt{##1}\else\textsl{\texttt{##1}}\fi}
-\def\HLITTTz##1{\ifmmode\mathtt{##1}\else\textsl{\texttt{##1}}\fi}
-\def\HLCBBa##1{\FvrbEx at ColoredBox{##1}{blue}{black}}
-\def\HLCBBb##1{\FvrbEx at ColoredBox{##1}{cyan}{black}}
-\def\HLCBBc##1{\FvrbEx at ColoredBox{##1}{green}{black}}
-\def\HLCBBd##1{\FvrbEx at ColoredBox{##1}{magenta}{black}}
-\def\HLCBBe##1{\FvrbEx at ColoredBox{##1}{red}{black}}
-\def\HLCBBf##1{\FvrbEx at ColoredBox{##1}{yellow}{black}}
-\def\HLCBBz##1{\FvrbEx at ColoredBox{##1}{black}{black}}
-\def\HLCBWa##1{\FvrbEx at ColoredBox{##1}{blue}{white}}
-\def\HLCBWb##1{\FvrbEx at ColoredBox{##1}{green}{white}}
-\def\HLCBWc##1{\FvrbEx at ColoredBox{##1}{green}{white}}
-\def\HLCBWd##1{\FvrbEx at ColoredBox{##1}{magenta}{white}}
-\def\HLCBWe##1{\FvrbEx at ColoredBox{##1}{red}{white}}
-\def\HLCBWf##1{\FvrbEx at ColoredBox{##1}{green}{white}}
-\def\HLCBWz##1{\FvrbEx at ColoredBox{##1}{black}{white}}
-\def\HLSa##1{\underline{##1}}
-\def\HLSb##1{\underline{##1}}
-\def\HLSc##1{\underline{##1}}
-\def\HLSd##1{\underline{##1}}
-\def\HLSe##1{\underline{##1}}
-\def\HLSf##1{\underline{##1}}
-\def\HLSz##1{\underline{##1}}
-\def\HLSaa##1{\underline{##1}}
-\def\HLSbb##1{\underline{##1}}
-\def\HLScc##1{\underline{##1}}
-\def\HLSdd##1{\underline{##1}}
-\def\HLSee##1{\underline{##1}}
-\def\HLSef##1{\underline{##1}}
-\def\HLSez##1{\underline{##1}}
-}
-\def\NoHighlight at Attributes{%
-\catcode`\^^a7=0\relax%
-\catcode`\^^b5=1\relax%
-\catcode`\^^b6=2\relax%
-\def\HLa##1{##1}%
-\def\HLb##1{##1}%
-\def\HLc##1{##1}%
-\def\HLd##1{##1}%
-\def\HLe##1{##1}%
-\def\HLf##1{##1}%
-\def\HLBFa##1{##1}%
-\def\HLBFb##1{##1}%
-\def\HLBFc##1{##1}%
-\def\HLBFd##1{##1}%
-\def\HLBFe##1{##1}%
-\def\HLBFf##1{##1}%
-\def\HLITa##1{##1}%
-\def\HLITb##1{##1}%
-\def\HLITc##1{##1}%
-\def\HLITd##1{##1}%
-\def\HLITe##1{##1}%
-\def\HLITf##1{##1}%
-\def\HLCBBa##1{##1}%
-\def\HLCBBb##1{##1}%
-\def\HLCBBc##1{##1}%
-\def\HLCBBd##1{##1}%
-\def\HLCBBe##1{##1}%
-\def\HLCBBf##1{##1}%
-\def\HLCBBz##1{##1}%
-\def\HLCBWa##1{##1}%
-\def\HLCBWb##1{##1}%
-\def\HLCBWc##1{##1}%
-\def\HLCBWd##1{##1}%
-\def\HLCBWe##1{##1}%
-\def\HLCBWf##1{##1}%
-\def\HLCBWz##1{##1}%
-}
-\Highlight at Attributes
-\endinput
-%%
-%% End of file `hbaw.sty'.
Deleted: trunk/Master/texmf-dist/tex/latex/fancyvrb/hcolor.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fancyvrb/hcolor.sty 2018-11-01 22:08:53 UTC (rev 49044)
+++ trunk/Master/texmf-dist/tex/latex/fancyvrb/hcolor.sty 2018-11-01 22:10:32 UTC (rev 49045)
@@ -1,161 +0,0 @@
-%%
-%% This is file `hcolor.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% fvrb-ex.dtx (with options: `hcolor')
-%%
-%% IMPORTANT NOTICE:
-%%
-%% For the copyright see the source file.
-%%
-%% Any modified versions of this file must be renamed
-%% with new filenames distinct from hcolor.sty.
-%%
-%% For distribution of the original source see the terms
-%% for copying and modification in the file fvrb-ex.dtx.
-%%
-%% This generated file may be distributed as long as the
-%% original source files, as listed above, are part of the
-%% same distribution. (The sources need not necessarily be
-%% in the same archive or directory.)
-%%
-%% Package `fvrb-ex' (`fvrb-ex', `hbaw' and `hcolor')
-%%
-%% COPYING:
-%% This package may be distributed under the terms of the LaTeX Project Public
-%% License, as described in lppl.txt in the base LaTeX distribution.
-%% Either version 1.0 or, at your option, any later version.
-%%
-%% Denis Girou (CNRS/IDRIS - France) <Denis.Girou at idris.fr> March 27, 1998
-%%
-%% Package `hcolor'
-%%
-\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.4}
-\def\filedate{1998/03/19}
-\ProvidesPackage{hcolor}[\filedate]
-\message{`hcolor' v\fileversion, \filedate\space (Denis Girou)}
-\newcommand{\FvrbEx at ColoredUnderline}[3]{%
-$\setbox\z@\hbox{\begingroup#3\endgroup}%
-\dp\z@\z@\m at th\color{#1}\underline{\textcolor{#2}{\box\z@}}$}
-\newcommand{\FvrbEx at ColoredBox}[3]{%
-\fboxsep=1pt\fcolorbox{#2}{#2}{\textcolor{#3}{\textbf{#1}}}}
-\def\Highlight at Attributes{%
-\def\HLa##1{\textcolor{blue}{##1}}
-\def\HLb##1{\textcolor{cyan}{##1}}
-\def\HLc##1{\textcolor{green}{##1}}
-\def\HLd##1{\textcolor{magenta}{##1}}
-\def\HLe##1{\textcolor{red}{##1}}
-\def\HLf##1{\textcolor{yellow}{##1}}
-\def\HLq##1{\textcolor{PaleGreen}{##1}}
-\def\HLr##1{\textcolor{SlateBlue}{##1}}
-\def\HLz##1{\textcolor{black}{##1}}
-\def\HLBFa##1{\textcolor{blue}{\textbf{##1}}}
-\def\HLBFb##1{\textcolor{cyan}{\textbf{##1}}}
-\def\HLBFc##1{\textcolor{green}{\textbf{##1}}}
-\def\HLBFd##1{\textcolor{magenta}{\textbf{##1}}}
-\def\HLBFe##1{\textcolor{red}{\textbf{##1}}}
-\def\HLBFf##1{\textcolor{yellow}{\textbf{##1}}}
-\def\HLBFz##1{\textcolor{black}{\textbf{##1}}}
-\def\HLITa##1{\textcolor{blue}{\textsl{##1}}}
-\def\HLITb##1{\textcolor{cyan}{\textsl{##1}}}
-\def\HLITc##1{\textcolor{green}{\textsl{##1}}}
-\def\HLITd##1{\textcolor{magenta}{\textsl{##1}}}
-\def\HLITe##1{\textcolor{red}{\textsl{##1}}}
-\def\HLITf##1{\textcolor{yellow}{\textsl{##1}}}
-\def\HLITz##1{\textcolor{black}{\textsl{##1}}}
-\def\HLSCa##1{\textcolor{blue}{\textsc{##1}}}
-\def\HLSCb##1{\textcolor{cyan}{\textsc{##1}}}
-\def\HLSCc##1{\textcolor{green}{\textsc{##1}}}
-\def\HLSCd##1{\textcolor{magenta}{\textsc{##1}}}
-\def\HLSCe##1{\textcolor{red}{\textsc{##1}}}
-\def\HLSCf##1{\textcolor{yellow}{\textsc{##1}}}
-\def\HLSCz##1{\textcolor{black}{\textsc{##1}}}
-\def\HLTTa##1{\textcolor{blue}{\texttt{##1}}}
-\def\HLTTb##1{\textcolor{cyan}{\texttt{##1}}}
-\def\HLTTc##1{\textcolor{green}{\texttt{##1}}}
-\def\HLTTd##1{\textcolor{magenta}{\texttt{##1}}}
-\def\HLTTe##1{\textcolor{red}{\texttt{##1}}}
-\def\HLTTf##1{\textcolor{yellow}{\texttt{##1}}}
-\def\HLTTq##1{\textcolor{ForestGreen}{\texttt{##1}}}
-\def\HLTTr##1{\textcolor{PineGreen}{\texttt{##1}}}
-\def\HLTTz##1{\textcolor{black}{\texttt{##1}}}
-\def\HLITTTa##1{\textcolor{blue}{\textsl{\texttt{##1}}}}
-\def\HLITTTb##1{\textcolor{cyan}{\textsl{\texttt{##1}}}}
-\def\HLITTTc##1{\textcolor{green}{\textsl{\texttt{##1}}}}
-\def\HLITTTd##1{\textcolor{magenta}{\textsl{\texttt{##1}}}}
-\def\HLITTTe##1{\textcolor{red}{\textsl{\texttt{##1}}}}
-\def\HLITTTf##1{\textcolor{yellow}{\textsl{\texttt{##1}}}}
-\def\HLITTTz##1{\textcolor{black}{\textsl{\texttt{##1}}}}
-\def\HLCBBa##1{\FvrbEx at ColoredBox{##1}{blue}{black}}
-\def\HLCBBb##1{\FvrbEx at ColoredBox{##1}{cyan}{black}}
-\def\HLCBBc##1{\FvrbEx at ColoredBox{##1}{green}{black}}
-\def\HLCBBd##1{\FvrbEx at ColoredBox{##1}{magenta}{black}}
-\def\HLCBBe##1{\FvrbEx at ColoredBox{##1}{red}{black}}
-\def\HLCBBf##1{\FvrbEx at ColoredBox{##1}{yellow}{black}}
-\def\HLCBBz##1{\FvrbEx at ColoredBox{##1}{black}{black}}
-\def\HLCBWa##1{\FvrbEx at ColoredBox{##1}{blue}{white}}
-\def\HLCBWb##1{\FvrbEx at ColoredBox{##1}{cyan}{white}}
-\def\HLCBWc##1{\FvrbEx at ColoredBox{##1}{green}{white}}
-\def\HLCBWd##1{\FvrbEx at ColoredBox{##1}{magenta}{white}}
-\def\HLCBWe##1{\FvrbEx at ColoredBox{##1}{red}{white}}
-\def\HLCBWf##1{\FvrbEx at ColoredBox{##1}{yellow}{white}}
-\def\HLCBWz##1{\FvrbEx at ColoredBox{##1}{black}{white}}
-\def\HLSa##1{\color{blue}\underline{##1}}
-\def\HLSb##1{\color{cyan}\underline{##1}}
-\def\HLSc##1{\color{green}\underline{##1}}
-\def\HLSd##1{\color{magenta}\underline{##1}}
-\def\HLSe##1{\color{red}\underline{##1}}
-\def\HLSf##1{\color{yellow}\underline{##1}}
-\def\HLSz##1{\color{black}\underline{##1}}
-\def\HLSaa##1{\FvrbEx at ColoredUnderline{blue}{black}{##1}}
-\def\HLSbb##1{\FvrbEx at ColoredUnderline{cyan}{black}{##1}}
-\def\HLScc##1{\FvrbEx at ColoredUnderline{green}{black}{##1}}
-\def\HLSdd##1{\FvrbEx at ColoredUnderline{magenta}{black}{##1}}
-\def\HLSee##1{\FvrbEx at ColoredUnderline{red}{black}{##1}}
-\def\HLSef##1{\FvrbEx at ColoredUnderline{yellow}{black}{##1}}
-\def\HLSez##1{\FvrbEx at ColoredUnderline{black}{black}{##1}}
-}
-\def\NoHighlight at Attributes{%
-\catcode`\^^a7=0\relax%
-\catcode`\^^b5=1\relax%
-\catcode`\^^b6=2\relax%
-\def\HLa##1{##1}%
-\def\HLb##1{##1}%
-\def\HLc##1{##1}%
-\def\HLd##1{##1}%
-\def\HLe##1{##1}%
-\def\HLf##1{##1}%
-\def\HLBFa##1{##1}%
-\def\HLBFb##1{##1}%
-\def\HLBFc##1{##1}%
-\def\HLBFd##1{##1}%
-\def\HLBFe##1{##1}%
-\def\HLBFf##1{##1}%
-\def\HLITa##1{##1}%
-\def\HLITb##1{##1}%
-\def\HLITc##1{##1}%
-\def\HLITd##1{##1}%
-\def\HLITe##1{##1}%
-\def\HLITf##1{##1}%
-\def\HLCBBa##1{##1}%
-\def\HLCBBb##1{##1}%
-\def\HLCBBc##1{##1}%
-\def\HLCBBd##1{##1}%
-\def\HLCBBe##1{##1}%
-\def\HLCBBf##1{##1}%
-\def\HLCBBz##1{##1}%
-\def\HLCBWa##1{##1}%
-\def\HLCBWb##1{##1}%
-\def\HLCBWc##1{##1}%
-\def\HLCBWd##1{##1}%
-\def\HLCBWe##1{##1}%
-\def\HLCBWf##1{##1}%
-\def\HLCBWz##1{##1}%
-}
-\Highlight at Attributes
-\endinput
-%%
-%% End of file `hcolor.sty'.
More information about the tex-live-commits
mailing list