summaryrefslogtreecommitdiff
path: root/language/japanese/BX/bxghost/bxghost.sty
blob: 8291e3a090e4ef10d705de2971f9bf5a65c80c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%%
%% This is file 'bxghost.sty'.
%%
%% Copyright 2019-2022 Takuto ASAKURA (wtsnjp)
%%   GitHub:   https://github.com/wtsnjp
%%   Twitter:  @wtsnjp
%%
%% This package is distributed under the MIT License.
%%

%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxghost}[2022/05/20 v0.5.0]

%% load the library
\RequirePackage{bxghost-lib}

%--------------------------------------- the verb option

\newif\ifbxqgg@verb \bxqgg@verbfalse
\DeclareOption{verb}{\bxqgg@verbtrue}
\DeclareOption{noverb}{\bxqgg@verbfalse}
\ProcessOptions\relax

% patch \verb
\ifbxqgg@verb
  \edef\verb{\noexpand\bxqgg@eghost\unexpanded\expandafter{\verb}}
  \edef\verb@egroup{%
    \unexpanded\expandafter{\verb@egroup}\noexpand\bxqgg@eghost}
\fi

%--------------------------------------- all done
\endinput
%% EOF