summaryrefslogtreecommitdiff
path: root/language/japanese/platex-tools/pldocverb.sty
blob: 816db56b95f1dfbe4b24ff2c03a962689bf7361b (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
35
36
37
38
39
40
41
%
% pldocverb.sty
% written by Hironobu Yamashita (@aminophen)
%
% This package is part of the plautopatch bundle.
% https://github.com/aminophen/plautopatch
%
% This package is expected to be compatible with
%   * doc.sty
%     (2004/02/09 v2.1b -- 2020/06/15 v2.1m)
%   * plcore.ltx in platex
%     (2001/09/26 v1.2a -- 2021/03/25 v1.3i)
%

%% package declaration
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{pldocverb}
  [2020/10/08 v0.2a doc package for pLaTeX/upLaTeX]
\RequirePackage{doc}
% doc.sty conditionally requires multicol.sty without passing options
\IfFileExists{pxmulticol.sty}{\RequirePackage{pxmulticol}}{}

%% enable \xkanjiskip insertion,
%% while preserving beginning space characters (pLaTeX2e 2017/10/28)
\@ifl@t@r{\pfmtversion}{2017/10/28}{\@firstoftwo}{\@secondoftwo}
{% = for pLaTeX2e 2017/10/28 or newer
\def\verb{\relax\ifmmode\hbox\else\leavevmode\vadjust{}\fi
  \bgroup \let\do\do@noligs \verbatim@nolig@list
    \ttfamily \verb@eol@error \let\do\@makeother \dospecials
    \@ifstar{\@sverb}{\@vobeyspaces \frenchspacing \@sverb}}
}% =
{% = for pLaTeX2e 2017/09/26 or older
\def\verb{\relax\ifmmode\hbox\else\leavevmode\fi
  \bgroup \let\do\do@noligs \verbatim@nolig@list
    \ttfamily \verb@eol@error \let\do\@makeother \dospecials
    \@ifstar{\@sverb}{\@vobeyspaces \frenchspacing \@sverb}}
}% =
%
%% done

\endinput