File: pldocverb.tex

package info (click to toggle)
texlive-lang 2022.20230122-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,447,264 kB
  • sloc: perl: 61,377; xml: 53,781; makefile: 4,525; sh: 4,338; ansic: 2,892; python: 2,861; ruby: 1,031; lisp: 750; awk: 649; java: 159; sed: 142; csh: 25
file content (54 lines) | stat: -rw-r--r-- 1,647 bytes parent folder | download | duplicates (2)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
%# -*- coding: utf-8 -*-
\ifx\epTeXinputencoding\undefined\else % defined in e-pTeX (> TL2016)
  \epTeXinputencoding utf8    % ensure utf-8 encoding for platex
\fi

\documentclass[a4paper]{jsarticle}% supports \verb in \footnote
\usepackage{doc}
\usepackage{pldocverb}
\GetFileInfo{pldocverb.sty}
\title{Package \textsf{pldocverb} \fileversion}
\author{Hironobu Yamashita}
\date{\filedate}
\begin{document}

\maketitle

This package \textsf{pldocverb} provides small patches to
\textsf{doc} package of \textsf{latex(-base)} for use with
Japanese p\LaTeX/up\LaTeX.
Current package supports re-definition of \verb+\verb+ command.

This package is part of \textsf{platex-tools} bundle:
\begin{verbatim}
  https://github.com/aminophen/platex-tools
\end{verbatim}

\bigskip

この\textsf{pldocverb}パッケージは、
\textsf{latex(-base)}バンドルの\textsf{doc}パッケージによって
上書きされて無効化されてしまうp\LaTeX/up\LaTeX カーネルの修正点を
再有効化します。具体的には、\verb+\verb+コマンドの直前に
\verb+\xkanjiskip+挿入を許可するための修正に対応します。

\bigskip
\begin{minipage}{0.6\linewidth}
\noautoxspacing %% on purpose
\begin{verbatim}
  \documentclass{jarticle} % if you are using pLaTeX,
  \usepackage{pldocverb}   % load this!
  \usepackage{minijs}
  \begin{document}
  \setlength{\xkanjiskip}{10pt}
  これが\verb+test+で\verb+テスト+です。
  \end{document}
\end{verbatim}
\end{minipage}
\begin{minipage}{0.35\linewidth}
  \setlength{\xkanjiskip}{10pt}
  これが\verb+test+で\verb+テスト+です。
\end{minipage}
\bigskip

\end{document}