summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bxghost
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-01-30 22:20:23 +0000
committerKarl Berry <karl@freefriends.org>2020-01-30 22:20:23 +0000
commit895ca6abce805cf84996ae25e4d3ce5b0eb6570e (patch)
tree475d0780f744dbe92a4f20a3663e3e7455b77d9c /Master/texmf-dist/tex/latex/bxghost
parent0030ac6ab90b222ffc518fc8f6e3d7849c08e934 (diff)
bxghost (30jan20)
git-svn-id: svn://tug.org/texlive/trunk@53606 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxghost')
-rw-r--r--Master/texmf-dist/tex/latex/bxghost/bxghost.sty22
1 files changed, 17 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/bxghost/bxghost.sty b/Master/texmf-dist/tex/latex/bxghost/bxghost.sty
index 552d28ad9cf..a00a4623ca7 100644
--- a/Master/texmf-dist/tex/latex/bxghost/bxghost.sty
+++ b/Master/texmf-dist/tex/latex/bxghost/bxghost.sty
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bxghost}[2019/09/17 v0.2.0]
+\ProvidesPackage{bxghost}[2020/01/31 v0.3.0]
%% preparations
\def\bxqgg@pkgname{bxghost}
@@ -34,6 +34,12 @@
\expandafter\endinput
\fi
+%--------------------------------------- the verb option
+
+\newif\ifbxqgg@verb \bxqgg@verbfalse
+\DeclareOption{verb}{\bxqgg@verbtrue}
+\ProcessOptions\relax
+
%--------------------------------------- eghostguarded
% use an arbitrary font available in T1 encoding
@@ -56,10 +62,16 @@
\fi
}
\def\bxqgg@eghostguarded@a#1{%
- {\bxqgg@TI\bxqgg@cwm}%
- #1%
- {\bxqgg@TI\bxqgg@cwm}%
-}
+ \bxqgg@eghost #1\bxqgg@eghost}
+\def\bxqgg@eghost{\bgroup
+ \bxqgg@TI\bxqgg@cwm\egroup}
+
+% patch \verb
+\ifbxqgg@verb
+ \edef\verb{\noexpand\bxqgg@eghost\unexpanded\expandafter{\verb}}
+ \edef\verb@egroup{%
+ \unexpanded\expandafter{\verb@egroup}\noexpand\bxqgg@eghost}
+\fi
%--------------------------------------- jghostguarded