summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gmverb
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-08-13 23:50:27 +0000
committerKarl Berry <karl@freefriends.org>2008-08-13 23:50:27 +0000
commit67c77772bfa73bd32f920aa07d15b4a9a4ca4445 (patch)
tree7a0b0999a6d245d110ab6949442b6760217af140 /Master/texmf-dist/tex/latex/gmverb
parent95c334e5b7d0129823f8c4afc2a73cf6817f98ff (diff)
gmverb update (13aug08)
git-svn-id: svn://tug.org/texlive/trunk@10315 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/gmverb')
-rw-r--r--Master/texmf-dist/tex/latex/gmverb/gmverb.sty47
1 files changed, 41 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/gmverb/gmverb.sty b/Master/texmf-dist/tex/latex/gmverb/gmverb.sty
index 2342cae62e6..57a3dd25d76 100644
--- a/Master/texmf-dist/tex/latex/gmverb/gmverb.sty
+++ b/Master/texmf-dist/tex/latex/gmverb/gmverb.sty
@@ -45,9 +45,10 @@
% \chschange{v0.84}{2007/11/13}{658}
% \chschange{v0.85}{2008/5/1}{673}
% \chschange{v0.87}{2008/8/6}{661}
+% \chschange{v0.88}{2008/8/13}{682}
%
-% \iffalse we skip the driver
+% \skiplines we skip the driver
\ifnum\catcode`\@=12
\documentclass [codespacesgrey,pagella] {gmdocc}
@@ -64,11 +65,11 @@
% (gmglo.ist should be put into some texmf/makeindex directory.)^^J}
\afterfi{\end{document}}
\fi
-%\fi
+%\endskiplines
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{gmverb}
- [2008/08/06 v0.87 After shortvrb (FM) but my way (GM)]
+ [2008/08/11 v0.88 After shortvrb (FM) but my way (GM)]
%
% \tableofcontents
@@ -158,7 +159,14 @@
% The \env{verbatim} environment inserts |\topsep| before and after
% itself, just as in standard version (as if it was a~\env{list}).
%
-%
+% In August 2008 Will Robertson suggested grey visible spaces for
+% \pk{gmdoc}. I~added a~respective option to \pk{gmdoc} but I~find
+% them so nice that I~want to make them available for all verbatim
+% environments so I~bring here the declaration
+% \TextUsage\VisSpacesGrey. It redefines only the visible spaces so
+% affects \cs{verb*} and \env{verbatim*} and not the unstarred
+% versions. The colour of the visible spaces is named |visspacesgrey|
+% and you can redefine it \pk{xcolor} way.
%
% \stanza
% As many good packages, this also does not support any options.
@@ -511,8 +519,8 @@
% F.\,Mittelbach says the below is copied almost verbatim from \LaTeX\
% source, modulo |\check@percent|.\Define\@verbatim
\def\@verbatim{%
- % \changes{v0.71}{06/09/04}{trivlist substituted with
- % chosen explicit macros. Analog. in endverbatim.}
+ % \changes{v0.71}{06/09/04}{\cs{trivlist} substituted with
+ % chosen explicit macros. Analogous in \cs{endverbatim}.}
%
% Originally here was just |\trivlist \item[]|, but it worked
% badly in my document(s), so let's take just highlights of if.
@@ -712,6 +720,33 @@
\def\eg@MakeShortVerb#1{\MakeShortVerb#1\endgroup}
+% \subdivision{Grey visible spaces}
+% In August 2008 Will Robertson suggested grey spaces for
+% \pk{gmdoc}. I~added a~respective option to that package but I~like
+% the grey spaces so much that I~want provide them for any verbatim
+% environments, so I~bring the definition here. The declaration, if
+% put in the preamble, postpones redefinition of \cs{visiblespace}
+% till |\begin{doument}| to recognize possible redefinition of
+% it when \pk{xltxtra} is loaded.
+
+\let\gmd@preambleABD\AtBeginDocument
+\AtBeginDocument{\let\gmd@preambleABD\firstofone}
+
+\RequirePackage{xcolor}% for \cs{providecolor}
+
+\def\VisSpacesGrey{% \changes{v0.88}{2008/08/11}{added, or rather
+ % moved here from \pk{gmdoc}}
+ \providecolor{visspacesgrey}{gray}{0.5}%
+ \gmd@preambleABD{%
+ \edef\visiblespace{%
+ \hbox{\@nx\textcolor{visspacesgrey}%
+ {\@xa\unexpanded\@xa{\visiblespace}}}}%
+ }}
+
+
+
+
+
\endinput% for the Tradition.