texlive[53606] Master/texmf-dist: bxghost (30jan20)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 30 23:20:23 CET 2020


Revision: 53606
          http://tug.org/svn/texlive?view=revision&revision=53606
Author:   karl
Date:     2020-01-30 23:20:23 +0100 (Thu, 30 Jan 2020)
Log Message:
-----------
bxghost (30jan20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/bxghost/README.md
    trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty

Modified: trunk/Master/texmf-dist/doc/latex/bxghost/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxghost/README.md	2020-01-30 22:20:11 UTC (rev 53605)
+++ trunk/Master/texmf-dist/doc/latex/bxghost/README.md	2020-01-30 22:20:23 UTC (rev 53606)
@@ -7,15 +7,19 @@
 * TeX format: LaTeX
 * TeX engine: LuaTeX, XeTeX, pTeX, upTeX, and ApTeX (pTeX-ng)
 
-Since this package is intended to create documents in Japanese, it assumes appropriate classes and/or packages are loaded in some engines (e.g., LuaTeX-ja for LuaTeX and bxjscls for XeTeX). BXghost does not load any external packages automatically.
+Since this package is intended to be used for creating documents in Japanese, it assumes appropriate classes and/or packages are loaded in some engines (e.g., LuaTeX-ja for LuaTeX and bxjscls for XeTeX). BXghost does not load any external packages automatically.
 
 ## Usage
 
 This package provides following commands:
 
-* `\eghostguarded{<text>}` inserts *Europian ghost* (invisible and zero-width alphabets) before and after the `<text>`. In math mode, it outputs only `<text>` without the ghosts.
-* `\jghostguarded{<text>}` inserts *Japanese ghost* (invisible and zero-width Kanji) before and after the `<text>`. In math mode, it outputs only `<text>` without the ghosts.
+* `\eghostguarded{<text>}` inserts *European ghost* (invisible and zero-width alphabets) before and after the `<text>`. In math mode, it outputs only `<text>` without the ghosts.
+* `\jghostguarded{<text>}` inserts *Japanese ghost* (invisible and zero-width Japanese characters) before and after the `<text>`. In math mode, it outputs only `<text>` without the ghosts.
 
+In addition, the following package option is available:
+
+* `verb` patches the `\verb` command of LaTeX to be guarded by European ghost.
+
 ## Acknowledgements
 
 The logic and style of the code in this package is greatly inspired by [Package PXghost](https://gist.github.com/zr-tex8r/4461060) and various packages in [the BX series](http://zrbabbler.sp.land.to/package.html#ssec-bx). I would like to thank the author of the packages, Dr. Takayuki YATO (aka. [ZR](https://github.com/zr-tex8r)).
@@ -26,6 +30,8 @@
 
 ## Revision History
 
+* Version 0.3.0  ‹2020/01/31›
+  * Add the `verb` option
 * Version 0.2.0  ‹2019/09/17›
   * Add supports for XeTeX and ApTeX (pTeX-ng)
 * Version 0.1.0  ‹2019/09/16›

Modified: trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty	2020-01-30 22:20:11 UTC (rev 53605)
+++ trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty	2020-01-30 22:20:23 UTC (rev 53606)
@@ -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 at pkgname{bxghost}
@@ -34,6 +34,12 @@
   \expandafter\endinput
 \fi
 
+%--------------------------------------- the verb option
+
+\newif\ifbxqgg at verb \bxqgg at verbfalse
+\DeclareOption{verb}{\bxqgg at verbtrue}
+\ProcessOptions\relax
+
 %--------------------------------------- eghostguarded
 
 % use an arbitrary font available in T1 encoding
@@ -56,11 +62,17 @@
   \fi
 }
 \def\bxqgg at eghostguarded@a#1{%
-  {\bxqgg at TI\bxqgg at cwm}%
-  #1%
-  {\bxqgg at TI\bxqgg at cwm}%
-}
+  \bxqgg at eghost #1\bxqgg at eghost}
+\def\bxqgg at eghost{\bgroup
+  \bxqgg at TI\bxqgg at cwm\egroup}
 
+% patch \verb
+\ifbxqgg at verb
+  \edef\verb{\noexpand\bxqgg at eghost\unexpanded\expandafter{\verb}}
+  \edef\verb at egroup{%
+    \unexpanded\expandafter{\verb at egroup}\noexpand\bxqgg at eghost}
+\fi
+
 %--------------------------------------- jghostguarded
 
 %% \bxqgg at fwsp: a zenkaku space (U+3000)



More information about the tex-live-commits mailing list.