MacOSでTeXがpdfを出力してくれなくなりました。

MacOSでTeXがpdfを出力してくれなくなりました。

- 颯介 北村 の投稿
返信数: 6
MacOSでTexShop(TeXworksでも状況は変わりません)を使って文書を作ろうとすると、以下のようなエラーメッセージが出てきてました。
This is ptex2pdf[.lua] version 20200520.0.
Processing test3.tex
This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.euc) (TeX Live 2020) (preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./test3.tex
pLaTeX2e <2020-10-01>+1 (based on LaTeX2e <2020-10-01> patch level 1)
L3 programming layer <2020-10-05> xparse <2020-03-03>
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/platex/jsclasses/jsa
rticle.cls
Document Class: jsarticle 2020/10/09 jsclasses (okumura, texjporg)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/platex/jsclasses/jsl
ogo.sty))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/tcolorbox/tcol
orbox.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/basiclayer
/pgf.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/utilities/
pgfrcs.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfutil-common.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfutil-common-lists.tex))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfutil-latex.def)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfrcs.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/pgf.revi
sion.tex)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/basiclayer
/pgfcore.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics/graph
icx.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics/keyva
l.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics/graph
ics.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics/trig.
sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics-cfg/g
raphics.cfg)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics-def/d
vipdfmx.def)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/systemlaye
r/pgfsys.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsys.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfkeys.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfkeysfiltered.code.tex))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgf.cfg)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsys-dvipdfmx.def
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsys-common-pdf.def)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsyssoftpath.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsysprotocol.code.tex))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/xcolor/xcolor.
sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics-cfg/c
olor.cfg))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcore.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
math.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathcalc.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathutil.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathparser.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.basic.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.trigonometric.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.random.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.comparison.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.base.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.round.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.misc.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.integerarithmetics.code.tex)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfloat.code.tex))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
int.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepoints.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepathconstruct.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepathusage.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorescopes.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoregraphicstate.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoretransformations.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorequick.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoreobjects.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepathprocessing.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorearrows.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoreshade.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoreimage.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoreexternal.code.tex))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorelayers.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoretransparency.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepatterns.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorerdf.code.tex)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/modules/
pgfmoduleshapes.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/modules/
pgfmoduleplot.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/compatibil
ity/pgfcomp-version-0-65.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/compatibil
ity/pgfcomp-version-1-18.sty))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/tools/verbatim
.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/environ/enviro
n.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/trimspaces/tri
mspaces.sty))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/etoolbox/etool
box.sty)) (./hoge.sty

LaTeX Warning: You have requested package `hoge',
but the package provides `mypreamble'.


(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/tcolorbox/tcbb
reakable.code.tex
Library (tcolorbox): 'tcbbreakable.code.tex' version '4.42'

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/oberdiek/pdf
col.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/ltxcmds/ltxc
mds.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/infwarerr/in
fwarerr.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/iftex/iftex.
sty)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/tcolorbox/tcbt
heorems.code.tex
Library (tcolorbox): 'tcbtheorems.code.tex' version '4.42'

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/amsmath/amsmat
h.sty
For additional information on amsmath, use the `?' option.

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/amsmath/amstex
t.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/amsmath/amsgen
.sty))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/amsmath/amsbsy
.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/amsmath/amsopn
.sty)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/tcolorbox/tcbs
kins.code.tex
Library (tcolorbox): 'tcbskins.code.tex' version '4.42'

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/frontendla
yer/tikz.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/utilities/
pgffor.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/utilities/
pgfkeys.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfkeys.code.tex))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/math/pgfma
th.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
math.code.tex))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgffor.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
math.code.tex)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/frontend
layer/tikz/tikz.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/librarie
s/pgflibraryplothandlers.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/modules/
pgfmodulematrix.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/frontend
layer/tikz/libraries/tikzlibrarytopaths.code.tex)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/tcolorbox/tcbs
kinsjigsaw.code.tex
Library (tcolorbox): 'tcbskinsjigsaw.code.tex' version '4.42'
))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/platex/japanese-otf-
uptex/otf.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/platex/japanese-otf/
ajmacros.sty))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/platex/pxchfon/pxchf
on.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pxufont/pxufon
t.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/ifptex/ifupt
ex.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/ifptex/ifpte
x.sty))))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/hyperref/hyper
ref.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pdftexcmds/p
dftexcmds.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/kvsetkeys/kv
setkeys.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/kvdefinekeys
/kvdefinekeys.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pdfescape/pd
fescape.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/hycolor/hycolo
r.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/letltxmacro/le
tltxmacro.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/auxhook/auxhoo
k.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/kvoptions/kvop
tions.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/hyperref/pd1en
c.def)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/intcalc/intc
alc.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/etexcmds/ete
xcmds.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/url/url.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/bitset/bitse
t.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/bigintcalc/b
igintcalc.sty))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/base/atbegshi-
ltx.sty))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/hyperref/hdvip
dfm.def
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/rerunfilecheck
/rerunfilecheck.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/base/atveryend
-ltx.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/uniquecounte
r/uniquecounter.sty))))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/l3backend/l3ba
ckend-dvipdfmx.def) (./test3.aux)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/hyperref/namer
ef.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/refcount/refco
unt.sty)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/gettitlestri
ng/gettitlestring.sty)) (./test3.out) (./test3.out) [1] (./test3.aux) )
Output written on test3.dvi (1 page, 9004 bytes).
SyncTeX written on test3.synctex.gz.
Transcript written on test3.log.
test3.dvi -> test3.pdf
[1
dvipdfmx:fatal: Failed to read UCS2/UCS4 TrueType cmap...

No output PDF file written.
ptex2pdf processing of test3.tex failed.
再起動もしてみましたが効果はありませんでした。直前までターミナルでごちゃごちゃしていたのが原因かもしれません。また一応TrueTypeの検索パスも調べてみました。
.:/Users/kitamurasatsusuke/TeXLive/texmf-config/fonts/truetype//:/Users/kitamurasatsusuke/TeXLive/texmf-var/fonts/truetype//:/Users/kitamurasatsusuke/TeXLive/texmf/fonts/truetype//:!!/Users/Shared/TeXLive/texmf/fonts/truetype//:!!/Users/Shared/TeXLive/texmf-config/fonts/truetype//:!!/Users/Shared/TeXLive/texmf-var/fonts/truetype//:!!/Applications/TeXLive/Library/texlive/2020/texmf-dist/fonts/truetype//:/Users/kitamurasatsusuke/TeXLive/texmf-config/fonts/opentype//:/Users/kitamurasatsusuke/TeXLive/texmf-var/fonts/opentype//:/Users/kitamurasatsusuke/TeXLive/texmf/fonts/opentype//:!!/Users/Shared/TeXLive/texmf/fonts/opentype//:!!/Users/Shared/TeXLive/texmf-config/fonts/opentype//:!!/Users/Shared/TeXLive/texmf-var/fonts/opentype//:!!/Applications/TeXLive/Library/texlive/2020/texmf-dist/fonts/opentype//:/please/set/osfontdir/in/the/environment//
颯介 北村 への返信

Re: MacOSでTeXがpdfを出力してくれなくなりました。

- 和田 勇 の投稿

dvipdfmx:fatal: Failed to read UCS2/UCS4 TrueType cmap...

上記で検索すると。かつて当フォーラムで似た話題がありました。

dvipdfmx:fatal: Failed to read UCS2/UCS4 TrueType cmap...の対処法

要約すると pxchfon.sty の第2040行が N8otoSerifCJK-Bold.ttc になっているのを NotoSerifCJK-Bold.ttc に書き換えれば良いかもしれません。

上記の懸念通りであればですが、2020 を使っていらっしゃるので、tlmgr update --self --all などとすると確か 2023 にアップグレードされてしまいますので、 pxchfon.styカレントディレクトリTEXMFHOME あるいは TEXMFLOCAL のいずれかにコピーして修正されれば良いかと思います。

もちろん、2020 にこだわりがなければ 2023 をインストールでも良いかと思います。

上記で解決できなければ、お試しになっている test3.tex 他いくつかのファイル情報が必要です。

最初の質問で貼り付けられたログ情報から test3.tex を再現すると以下のようになるかと思います。

    \documentclass{jsarticle}
    \usepackage{tcolorbox}
    \usepackage{hoge}%% ないし \input{hoge.sty}
    \begin{document}
    なんかテキスト
    \end{document}

なお  hoge.sty を読み込むと以下の警告メッセージが記録されていますのでその対処も検討したいと考えています。

    LaTeX Warning: You have requested package `hoge',
    but the package provides `mypreamble'.

今回は、pdf を作成する際にエラーが発生していますので、その情報を調べるために ptex2pdf -l -od '-v' test3 となるように dvipdfmx 処理時にデバッグ情報を出力するようにしてください。

以上から必要な情報

  1. test3.tex
  2. test3.log
  3. hoge.sty
  4. ptex2pdf -l -od '-v' test3 をターミナルで実行したときに表示される内容をコピペでテキストファイルに書きかんだもの
  5. pxchfon.sty のコピー

    パスは、 /Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/platex/pxchfon/pxchfon.sty です。

和田 勇 への返信

Re: MacOSでTeXがpdfを出力してくれなくなりました。

- 颯介 北村 の投稿
丁寧に返信ありがとうございます。pxchfon.styもみてみましたが、そのようなエラーは発見できませんでした。また、試しに\usepackage{hoge}の部分を消してみると、pdfは出力されたのですが全て黒塗りで何も読めないという別問題が発生しました。
1.test3.tex
¥documentclass[dvipdfmx]{jsarticle}
¥usepackage{tcolorbox}
¥usepackage{graphicx,xcolor}
¥begin{document}
¥begin{tcolorbox}[colframe=blue!50,colback=white,colbacktitle=blue!50,coltitle=white,fonttitle=¥bfseries¥sffamily,title=粋な枠]
ワクワクする枠
¥end{tcolorbox}
¥end{document}
2.test3.log
This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.euc) (TeX Live 2020) (preloaded format=platex 2023.8.1) 13 AUG 2023 22:03
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
%&-line parsing enabled.
**test3.tex
(./test3.tex
pLaTeX2e <2020-10-01>+1 (based on LaTeX2e <2020-10-01> patch level 1)
L3 programming layer <2020-10-05> xparse <2020-03-03> (/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/platex/jsclasses/jsa
rticle.cls
Document Class: jsarticle 2020/10/09 jsclasses (okumura, texjporg)
\jsc@mpt=\dimen154
\jsc@mmm=\dimen155
\jsc@smallskipamount=\skip47
LaTeX Info: Redefining \textmc on input line 497.
LaTeX Info: Redefining \textgt on input line 499.
\symmincho=\mathgroup4
LaTeX Font Info: Overwriting symbol font `mincho' in version `bold'
(Font) JY1/mc/m/n --> JY1/gt/m/n on input line 561.
LaTeX Font Info: Font shape `JT1/mc/m/n' will be
(Font) scaled to size 9.60999pt on input line 755.
LaTeX Font Info: Font shape `JY1/mc/m/n' will be
(Font) scaled to size 9.60999pt on input line 755.
\fullwidth=\dimen156
LaTeX Font Info: Font shape `JT1/mc/m/n' will be
(Font) scaled to size 7.68799pt on input line 908.
LaTeX Font Info: Font shape `JY1/mc/m/n' will be
(Font) scaled to size 7.68799pt on input line 908.
\c@part=\count174
\c@section=\count175
\c@subsection=\count176
\c@subsubsection=\count177
\c@paragraph=\count178
\c@subparagraph=\count179
\@abstractbox=\box64
\c@figure=\count180
\c@table=\count181
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\jsc@tocl@width=\dimen157
\@lnumwidth=\dimen158
\bibindent=\dimen159

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/platex/jsclasses/jsl
ogo.sty
Package: jslogo 2019/07/25 okumura, texjporg
LaTeX Info: Redefining \TeX on input line 82.
LaTeX Info: Redefining \LaTeX on input line 135.
LaTeX Info: Redefining \LaTeXe on input line 188.
)
\heisei=\count182
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/tcolorbox/tcol
orbox.sty
Package: tcolorbox 2020/10/09 version 4.42 text color boxes

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/basiclayer
/pgf.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/utilities/
pgfrcs.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfutil-common.tex
\pgfutil@everybye=\toks16
\pgfutil@tempdima=\dimen160
\pgfutil@tempdimb=\dimen161

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfutil-common-lists.tex))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfutil-latex.def
\pgfutil@abb=\box65
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfrcs.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/pgf.revi
sion.tex)
Package: pgfrcs 2020/10/01 v3.1.6a (3.1.6a)
))
Package: pgf 2020/10/01 v3.1.6a (3.1.6a)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/basiclayer
/pgfcore.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics/graph
icx.sty
Package: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics/keyva
l.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics/graph
ics.sty
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics/trig.
sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics-cfg/g
raphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: dvipdfmx.def on input line 105.

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics-def/d
vipdfmx.def
File: dvipdfmx.def 2020/08/26 v5.0h Graphics/color driver for dvipdfmx
))
\Gin@req@height=\dimen162
\Gin@req@width=\dimen163
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/systemlaye
r/pgfsys.sty
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsys.code.tex
Package: pgfsys 2020/10/01 v3.1.6a (3.1.6a)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfkeys.code.tex
\pgfkeys@pathtoks=\toks18
\pgfkeys@temptoks=\toks19

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/utilitie
s/pgfkeysfiltered.code.tex
\pgfkeys@tmptoks=\toks20
))
\pgf@x=\dimen164
\pgf@y=\dimen165
\pgf@xa=\dimen166
\pgf@ya=\dimen167
\pgf@xb=\dimen168
\pgf@yb=\dimen169
\pgf@xc=\dimen170
\pgf@yc=\dimen171
\pgf@xd=\dimen172
\pgf@yd=\dimen173
\w@pgf@writea=\write3
\r@pgf@reada=\read2
\c@pgf@counta=\count183
\c@pgf@countb=\count184
\c@pgf@countc=\count185
\c@pgf@countd=\count186
\t@pgf@toka=\toks21
\t@pgf@tokb=\toks22
\t@pgf@tokc=\toks23
\pgf@sys@id@count=\count187

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgf.cfg
File: pgf.cfg 2020/10/01 v3.1.6a (3.1.6a)
)
Driver file for pgf: pgfsys-dvipdfmx.def

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsys-dvipdfmx.def
File: pgfsys-dvipdfmx.def 2020/10/01 v3.1.6a (3.1.6a)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsys-common-pdf.def
File: pgfsys-common-pdf.def 2020/10/01 v3.1.6a (3.1.6a)
)
\pgfsys@objnum=\count188
))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsyssoftpath.code.tex
File: pgfsyssoftpath.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgfsyssoftpath@smallbuffer@items=\count189
\pgfsyssoftpath@bigbuffer@items=\count190
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/systemla
yer/pgfsysprotocol.code.tex
File: pgfsysprotocol.code.tex 2020/10/01 v3.1.6a (3.1.6a)
))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/xcolor/xcolor.
sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/graphics-cfg/c
olor.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: dvipdfmx.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcore.code.tex
Package: pgfcore 2020/10/01 v3.1.6a (3.1.6a)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
math.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathcalc.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathutil.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathparser.code.tex
\pgfmath@dimen=\dimen174
\pgfmath@count=\count191
\pgfmath@box=\box66
\pgfmath@toks=\toks24
\pgfmath@stack@operand=\toks25
\pgfmath@stack@operation=\toks26
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.code.tex
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.basic.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.trigonometric.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.random.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.comparison.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.base.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.round.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.misc.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfunctions.integerarithmetics.code.tex)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
mathfloat.code.tex
\c@pgfmathroundto@lastzeros=\count192
))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/math/pgf
int.code.tex)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepoints.code.tex
File: pgfcorepoints.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgf@picminx=\dimen175
\pgf@picmaxx=\dimen176
\pgf@picminy=\dimen177
\pgf@picmaxy=\dimen178
\pgf@pathminx=\dimen179
\pgf@pathmaxx=\dimen180
\pgf@pathminy=\dimen181
\pgf@pathmaxy=\dimen182
\pgf@xx=\dimen183
\pgf@xy=\dimen184
\pgf@yx=\dimen185
\pgf@yy=\dimen186
\pgf@zx=\dimen187
\pgf@zy=\dimen188
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepathconstruct.code.tex
File: pgfcorepathconstruct.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgf@path@lastx=\dimen189
\pgf@path@lasty=\dimen190
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepathusage.code.tex
File: pgfcorepathusage.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgf@shorten@end@additional=\dimen191
\pgf@shorten@start@additional=\dimen192
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorescopes.code.tex
File: pgfcorescopes.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgfpic=\box67
\pgf@hbox=\box68
\pgf@layerbox@main=\box69
\pgf@picture@serial@count=\count193
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoregraphicstate.code.tex
File: pgfcoregraphicstate.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgflinewidth=\dimen193
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoretransformations.code.tex
File: pgfcoretransformations.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgf@pt@x=\dimen194
\pgf@pt@y=\dimen195
\pgf@pt@temp=\dimen196
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorequick.code.tex
File: pgfcorequick.code.tex 2020/10/01 v3.1.6a (3.1.6a)
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoreobjects.code.tex
File: pgfcoreobjects.code.tex 2020/10/01 v3.1.6a (3.1.6a)
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepathprocessing.code.tex
File: pgfcorepathprocessing.code.tex 2020/10/01 v3.1.6a (3.1.6a)
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorearrows.code.tex
File: pgfcorearrows.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgfarrowsep=\dimen197
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoreshade.code.tex
File: pgfcoreshade.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgf@max=\dimen198
\pgf@sys@shading@range@num=\count194
\pgf@shadingcount=\count195
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoreimage.code.tex
File: pgfcoreimage.code.tex 2020/10/01 v3.1.6a (3.1.6a)

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoreexternal.code.tex
File: pgfcoreexternal.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgfexternal@startupbox=\box70
))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorelayers.code.tex
File: pgfcorelayers.code.tex 2020/10/01 v3.1.6a (3.1.6a)
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcoretransparency.code.tex
File: pgfcoretransparency.code.tex 2020/10/01 v3.1.6a (3.1.6a)
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorepatterns.code.tex
File: pgfcorepatterns.code.tex 2020/10/01 v3.1.6a (3.1.6a)
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/basiclay
er/pgfcorerdf.code.tex
File: pgfcorerdf.code.tex 2020/10/01 v3.1.6a (3.1.6a)
)))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/modules/
pgfmoduleshapes.code.tex
File: pgfmoduleshapes.code.tex 2020/10/01 v3.1.6a (3.1.6a)
\pgfnodeparttextbox=\box71
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/generic/pgf/modules/
pgfmoduleplot.code.tex
File: pgfmoduleplot.code.tex 2020/10/01 v3.1.6a (3.1.6a)
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/compatibil
ity/pgfcomp-version-0-65.sty
Package: pgfcomp-version-0-65 2020/10/01 v3.1.6a (3.1.6a)
\pgf@nodesepstart=\dimen199
\pgf@nodesepend=\dimen256
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/pgf/compatibil
ity/pgfcomp-version-1-18.sty
Package: pgfcomp-version-1-18 2020/10/01 v3.1.6a (3.1.6a)
))
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/tools/verbatim
.sty
Package: verbatim 2020-07-07 v1.5u LaTeX2e package for verbatim enhancements
\every@verbatim=\toks27
\verbatim@line=\toks28
\verbatim@in@stream=\read3
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/environ/enviro
n.sty
Package: environ 2014/05/04 v0.3 A new way to define environments

(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/trimspaces/tri
mspaces.sty
Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list
)
\@envbody=\toks29
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/etoolbox/etool
box.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count196
)
\tcb@titlebox=\box72
\tcb@upperbox=\box73
\tcb@lowerbox=\box74
\tcb@phantombox=\box75
\c@tcbbreakpart=\count197
\c@tcblayer=\count198
\c@tcolorbox@number=\count199
\tcb@temp=\box76
\tcb@temp=\box77
\tcb@temp=\box78
\tcb@temp=\box79
\tcb@out=\write4
\tcb@record@out=\write5
)
(/Applications/TeXLive/Library/texlive/2020/texmf-dist/tex/latex/l3backend/l3ba
ckend-dvipdfmx.def
File: l3backend-dvipdfmx.def 2020-09-24 L3 backend support: dvipdfmx
\g__graphics_track_int=\count266
\l__pdf_internal_box=\box80
\g__pdf_backend_object_int=\count267
\g__pdf_backend_annotation_int=\count268
) (./test3.aux)
\openout1 = `test3.aux'.

LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Font shape `JT1/mc/bx/n' in size <10> not available
(Font) Font shape `JT1/gt/m/n' tried instead on input line 5.
LaTeX Font Info: Font shape `JT1/gt/m/n' will be
(Font) scaled to size 9.60999pt on input line 5.
LaTeX Font Info: Font shape `JY1/mc/bx/n' in size <10> not available
(Font) Font shape `JY1/gt/m/n' tried instead on input line 5.
LaTeX Font Info: Font shape `JY1/gt/m/n' will be
(Font) scaled to size 9.60999pt on input line 5.
LaTeX Font Info: Font shape `JT1/gt/bx/n' in size <10> not available
(Font) Font shape `JT1/gt/m/n' tried instead on input line 5.
LaTeX Font Info: Font shape `JT1/gt/m/n' will be
(Font) scaled to size 9.60999pt on input line 5.
LaTeX Font Info: Font shape `JY1/gt/bx/n' in size <10> not available
(Font) Font shape `JY1/gt/m/n' tried instead on input line 5.
LaTeX Font Info: Font shape `JY1/gt/m/n' will be
(Font) scaled to size 9.60999pt on input line 5.
[1

] (./test3.aux) )
Here is how much of TeX's memory you used:
10960 strings out of 480388
231460 string characters out of 5887455
486311 words of memory out of 5000000
27600 multiletter control sequences out of 15000+600000
540703 words of font info for 55 fonts, out of 8000000 for 9000
934 hyphenation exceptions out of 8191
107i,5n,111p,446b,493s stack positions out of 5000i,500n,10000p,200000b,80000s

Output written on test3.dvi (1 page, 2956 bytes).


3.hoge.sty
¥ProvidesPackage{mypreamble}

%このファイルはプリアンブル部分と思ってください。必要最低限のみ読み込みます。
¥usepackage{tcolorbox}
¥tcbuselibrary{breakable,theorems,skins}
%%%日本語書体の追加
¥usepackage[deluxe]{otf}
¥usepackage[unicode,noto-otc]{pxchfon}
%%%ハイパーリンク
¥usepackage{hyperref}

%%%reidai環境
¥newcounter{reidaibangou}
¥newtcolorbox{reidai}[1][]{enhanced,boxrule=0.5mm,
top=2pt,left=44pt,right=4pt,bottom=2pt,arc=0mm,
colframe=blue!30!gray,
boxrule=1pt,
underlay={
¥node[inner sep=1pt,blue!50!black,fill=blue!10!white]at ([xshift=22pt,yshift=-9pt]interior.north west) {¥stepcounter{reidaibangou}¥bfseries¥gtfamily 例題¥thereidaibangou};},
segmentation code={%
¥draw[dashed] (segmentation.west)--(segmentation.east);
¥node[inner sep=1pt,blue!50!black,fill=blue!10!white] at ([xshift=22pt,yshift=-8pt]segmentation.south west) {¥bfseries¥gtfamily 解};},
before upper={¥setlength{¥parindent}{1zw}},
before lower={¥setlength{¥parindent}{1zw}},#1
}

%%%kousiki環境
¥definecolor{safecolor}{rgb}{0.2, 0.4, 0.8}
¥newtcolorbox{kousiki}[2][]{enhanced,left=22pt,right=22pt,
fonttitle=¥gtfamily¥bfseries¥large,coltitle=white,
colbacktitle=blue!50!black,arc=1mm,
attach boxed title to top left={},
boxed title style={skin=enhancedfirst jigsaw,
arc=1mm,bottom=1pt,top=1pt,boxrule=0mm},
boxrule=0.5pt,colback=safecolor!5!,
colframe=safecolor,sharp corners=northwest,
drop fuzzy shadow,title=#2,
fontupper=¥gtfamily,#1}%

%%%mytheo環境
¥definecolor{burgundy}{rgb}{0.5, 0.0, 0.13}
¥newtcbtheorem[number within=section]{mytheo}{定理}%
{fonttitle=¥gtfamily¥sffamily¥bfseries¥upshape,
colframe=burgundy,colback=burgundy!2!white,
rightrule=0pt,leftrule=0pt,bottomrule=2pt,
colbacktitle=burgundy,theorem style=standard,breakable,arc=0pt}{tha}

%%%myprop環境
¥newtcbtheorem[use counter from=mytheo]{myprop}{命題}%
{fonttitle=¥gtfamily¥sffamily¥bfseries¥upshape,
colframe=burgundy,colback=burgundy!2!white,
rightrule=0pt,leftrule=0pt,bottomrule=2pt,
colbacktitle=burgundy,theorem style=standard,breakable,arc=0pt}{pro}

%%%marker環境
¥newtcolorbox{marker}[1][]{enhanced,before skip=2mm,
after skip=3mm,fontupper=¥gtfamily¥sffamily,
boxrule=0.4pt,left=5mm,right=2mm,top=1mm,bottom=1mm,
colback=yellow!50,colframe=yellow!20!black,
sharp corners,rounded corners=southeast,
arc is angular,arc=3mm,underlay={%
¥path[fill=tcbcolback!80!black] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
¥path[draw=tcbcolframe,shorten <=-0.05mm,shorten >=-0.05mm] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
¥path[fill=yellow!50!black,draw=none] (interior.south west) rectangle node[white]{¥Huge¥bfseries !} ([xshift=4mm]interior.north west);
},
drop fuzzy shadow,#1
}

4.
This is ptex2pdf[.lua] version 20200520.0.
File cannot be found with kpathsea: test3[.tex, .ltx]

5.pxchfon.sty
%%
%% This is file 'pxchfon.sty'.
%%
%% Copyright (c) 2009-2020 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%

%% package declaration
¥NeedsTeXFormat{pLaTeX2e}
¥ProvidesPackage{pxchfon}[2020/10/04 v1.7e]
¥def¥pxcz@pkgname{pxchfon}

%--------------------------------------- general

%% variables
¥newif¥ifpxcz@ok
¥newif¥ifpxcz@utf
¥let¥pxcz@pre¥relax
¥let¥pxcz@post¥relax

%% unique tokens
¥def¥pxcz@end{¥pxcz@end@}
¥def¥pxcz@mt{¥pxcz@mt@}

%% ¥pxcz@csletcs{}{}
¥def¥pxcz@csletcs#1#2{%
¥expandafter¥let¥csname#1¥expandafter¥endcsname¥csname#2¥endcsname}

%% ¥pxcz@cond¥ifXXX...¥fi{}{}
¥@gobbletwo¥if¥if ¥def¥pxcz@cond#1¥fi{%
#1¥expandafter¥@firstoftwo¥else¥expandafter¥@secondoftwo¥fi}

%% ¥pxcz@onlypreamble@csdef{}
¥def¥pxcz@onlypreamble@csdef#1{%
¥expandafter¥pxcz@onlypreamble@def¥csname#1¥endcsname}
%% ¥pxcz@onlypreamble@def¥CS
¥def¥pxcz@onlypreamble@def#1{%
¥@onlypreamble#1¥def#1}
%% ¥pxcz@onlypreamble@let¥CS
¥def¥pxcz@onlypreamble@let#1{%
¥@onlypreamble#1¥let#1}

%% ¥pxcz@csuse@or{}{}
¥def¥pxcz@csuse@or#1#2{%
¥expandafter¥ifx¥csname#1¥endcsname¥relax ¥expandafter¥@firstoftwo
¥else ¥expandafter¥@secondoftwo
¥fi{#2}{¥csname#1¥endcsname}}

%% ¥pxcz@lower¥CS
¥def¥pxcz@lower#1{%
¥expandafter¥pxcz@lower@a#1¥pxcz@end#1}
¥def¥pxcz@lower@a#1¥pxcz@end#2{%
¥lowercase{¥def#2{#1}}}

%% ¥pxcz@split{}{}
¥def¥pxcz@split#1#2{%
¥edef¥pxcz@tmpx{{#1}{#2}}%
¥expandafter¥pxcz@split@a¥pxcz@tmpx}
¥def¥pxcz@split@a#1#2{%
¥def¥pxcz@tmpx##1#1##2¥pxcz@end{¥pxcz@split@b{##1}{##2}}%
¥pxcz@tmpx#2¥pxcz@mt#1¥pxcz@end}
¥def¥pxcz@split@b#1#2{%
¥let¥pxcz@pre¥relax ¥let¥pxcz@post¥relax
¥ifx¥pxcz@end#2¥pxcz@end¥else
¥pxcz@split@c#2¥pxcz@end{#1}%
¥fi}
¥def¥pxcz@split@c#1¥pxcz@mt#2¥pxcz@end#3{%
¥def¥pxcz@pre{#3}¥def¥pxcz@post{#1}}

%--------------------------------------- environment check

%% check for 'pxjafont' package
% if old version of pxjafont is loaded (probably this package is
% required from pxjafont), then I abort here with an error message.
¥@ifpackageloaded{pxjafont}{%
¥ifx¥pxAliasedPxjafont¥@undefined
¥PackageError¥pxcz@pkgname
{FATAL: Old 'pxjafont' is loaded}{¥@ehc}
¥expandafter¥@@end¥fi}{}

%% ¥ifpxcz@uptex
¥newif¥ifpxcz@uptex ¥pxcz@uptexfalse
¥edef¥pxcz@tmpa{¥string¥ucs}¥edef¥pxcz@tmpb{¥meaning¥ucs}
¥ifx¥pxcz@tmpa¥pxcz@tmpb ¥pxcz@uptextrue ¥fi

%% ¥pxcz@JYn
¥edef¥pxcz@JYn{%
¥ifpxcz@uptex JY2¥else JY1¥fi}

%% ¥ifpxcz@otf@deluxe
¥newif¥ifpxcz@otf@deluxe ¥pxcz@otf@deluxefalse
¥@ifpackagewith{otf}{deluxe}{¥pxcz@otf@deluxetrue}{}
¥@ifpackagewith{pxotf}{deluxe}{¥pxcz@otf@deluxetrue}{}

%% ¥ifpxcz@otf@multi
¥newif¥ifpxcz@otf@multi ¥pxcz@otf@multifalse
¥@ifpackagewith{otf}{multi}{¥pxcz@otf@multitrue}{}

%% ¥ifpxcz@otf@expert
¥newif¥ifpxcz@otf@expert ¥pxcz@otf@expertfalse
¥@ifpackagewith{otf}{expert}{¥pxcz@otf@experttrue}{}

%% ¥pxcz@pxufont@avail
¥IfFileExists{pxufont-ruby.sty}{¥chardef¥pxcz@pxufont@avail=2 }{%
¥IfFileExists{pxufont.sty}{¥chardef¥pxcz@pxufont@avail=1 }{%
¥chardef¥pxcz@pxufont@avail=0 }}

%% ¥pxcz@pxufont@loaded
¥@ifpackageloaded{pxufont}{%
¥ifx t¥pxufontUseRubyFont ¥chardef¥pxcz@pxufont@loaded=2
¥else ¥chardef¥pxcz@pxufont@loaded=1
¥fi
}{%else
¥chardef¥pxcz@pxufont@loaded=0
}

%% ¥ifpxcz@old@hook@system
¥newif¥ifpxcz@old@hook@system
¥@ifl@t@r¥fmtversion{2020/10/01}{}{¥pxcz@old@hook@systemtrue}

%--------------------------------------- custom presets

%% ¥pxcz@custom@presets
¥pxcz@onlypreamble@let¥pxcz@custom@presets¥@empty
%% ¥pxcz@custom@apply@opt@unicode
¥pxcz@onlypreamble@let¥pxcz@custom@apply@opt@unicode¥@empty
%% freeze
¥pxcz@onlypreamble@let¥pxcz@custom¥relax
¥let¥pxcz@uniweight¥relax
¥let¥pxcz@multiweight¥relax

%% ¥pxcz@check@avail@custom@presets
¥pxcz@onlypreamble@let¥pxcz@check@avail@custom@presets¥relax
¥AtEndOfPackage{%
¥def¥pxcz@check@avail@custom@presets#1#2#3{%
¥PackageError¥pxcz@pkgname
{Custom presets cannot be registered after¥MessageBreak
loading pxchfon package}%
{¥@eha}}}

%% ¥pxcz@declare@oneweight@preset{}{}{}
¥pxcz@onlypreamble@def¥pxcz@declare@oneweight@preset#1#2#3{%
¥pxcz@check@avail@custom@presets
¥xdef¥pxcz@custom@presets{¥pxcz@custom@presets
¥pxcz@custom{#1}{¥pxcz@uniweight{#2}{#3}}}}
%% ¥pxcz@declare@multiweight@preset{}{}...{}
¥pxcz@onlypreamble@def¥pxcz@declare@multiweight@preset#1#2#3#4#5#6#7#8#9{%
¥pxcz@check@avail@custom@presets
¥xdef¥pxcz@custom@presets{¥pxcz@custom@presets
¥pxcz@custom{#1}{¥pxcz@multiweight{#2}{#3}{#4}{#5}{#6}{#7}{#8}{#9}}}}
%%<+> ¥pxchfonDeclareOneWeightPreset{}{}{}
¥@onlypreamble¥pxchfonDeclareOneWeightPreset
¥newcommand*¥pxchfonDeclareOneWeightPreset[1]{%
¥pxcz@declare@oneweight@preset{user:#1}}
%%<+> ¥pxchfonDeclareMultiWeightPreset{}{}...{}
¥@onlypreamble¥pxchfonDeclareMultiWeightPreset
¥newcommand*¥pxchfonDeclareMultiWeightPreset[1]{%
¥pxcz@declare@multiweight@preset{user:#1}}

%% Load custom preset definitions
¥IfFileExists{pxchfon-extras.def}{% PXchfon-extras
¥PackageInfo¥pxcz@pkgname
{Extra preset settings are loaded¥@gobble}%
¥input{pxchfon-extras.def}%
}{}
¥IfFileExists{pxchfon.cfg}{% of user
¥PackageInfo¥pxcz@pkgname
{Custom preset settings are loaded¥@gobble}%
¥begingroup
¥makeatother¥input{pxchfon.cfg}%
¥endgroup
}{}

%--------------------------------------- handle options

%% variables
¥newif¥ifpxcz@enabled ¥pxcz@enabledtrue
¥let¥pxcz@alphabet=n
¥newif¥ifpxcz@otf ¥pxcz@otftrue
¥newif¥ifpxcz@cmap@alpha
¥newif¥ifpxcz@mmivjis
¥newif¥ifpxcz@everypage
¥newif¥ifpxcz@oneweight
¥newif¥ifpxcz@uniquify
¥newif¥ifpxcz@fullwidth
¥let¥pxcz@directunicode¥relax
¥let¥pxcz@main@preset¥relax
¥let¥pxcz@file@preset¥relax
¥newif¥ifpxcz@file@preset@tl
¥newif¥ifpxcz@alpha
¥newif¥ifpxcz@rel
¥newif¥ifpxcz@dumpmap
¥newif¥ifpxcz@dumpmap@tl
¥newif¥ifpxcz@switch@font ¥pxcz@switch@fonttrue
¥newif¥ifpxcz@switch@font@xwid
¥newif¥ifpxcz@switch@font@xjis
¥let¥pxcz@strict@csi¥relax
¥newif¥ifpxcz@directunicode@default
¥let¥pxcz@legacycode¥relax
¥let¥pxcz@expert¥relax
¥newif¥ifpxcz@glyphid

%% process options
% drivers
¥DeclareOption{nodvidriver}{¥pxcz@enabledfalse}
¥DeclareOption{dvips}{¥pxcz@enabledfalse}
¥DeclareOption{dviout}{¥pxcz@enabledfalse}
¥DeclareOption{xdvi}{¥pxcz@enabledfalse}
¥DeclareOption{dvipdfmx}{¥pxcz@enabledtrue}
% (no)alphabet / relfont
¥DeclareOption{alphabet}{¥let¥pxcz@alphabet=t}
¥DeclareOption{noalphabet}{¥let¥pxcz@alphabet=f}
¥DeclareOption{relfont}{¥let¥pxcz@alphabet=r}
% (no)otf
¥DeclareOption{otf}{¥pxcz@otftrue}
¥DeclareOption{nootf}{¥pxcz@otffalse}
¥DeclareOption{utf}{¥pxcz@otftrue}
¥DeclareOption{noutf}{¥pxcz@otffalse}
% (no)usecmapforalphabet
¥DeclareOption{usecmapforalphabet}{¥pxcz@cmap@alphatrue}
¥DeclareOption{nousecmapforalphabet}{¥pxcz@cmap@alphafalse}
% (no)prefer2004jis / (no)jis2004
¥DeclareOption{prefer2004jis}{¥pxcz@mmivjistrue}
¥DeclareOption{noprefer2004jis}{¥pxcz@mmivjisfalse}
¥DeclareOption{jis2004}{¥pxcz@mmivjistrue}
¥DeclareOption{nojis2004}{¥pxcz@mmivjisfalse}
% (no)everypage
¥DeclareOption{everypage}{¥pxcz@everypagetrue}
¥DeclareOption{noeverypage}{¥pxcz@everypagefalse}
% (no)oneweight
¥DeclareOption{oneweight}{¥pxcz@oneweighttrue}
¥DeclareOption{nooneweight}{¥pxcz@oneweightfalse}
% (no)directunicode / directunicode*
¥chardef¥pxcz@directunicode@none=0
¥chardef¥pxcz@directunicode@otf=1
¥chardef¥pxcz@directunicode@all=2
¥chardef¥pxcz@directunicode@full=3
¥DeclareOption{directunicode*}{¥let¥pxcz@directunicode¥pxcz@directunicode@all}
¥DeclareOption{directunicode}{¥let¥pxcz@directunicode¥pxcz@directunicode@otf}
¥DeclareOption{nodirectunicode}{¥let¥pxcz@directunicode¥pxcz@directunicode@none}
% (no)dumpmap
¥DeclareOption{dumpmap}{¥pxcz@dumpmaptrue}
¥DeclareOption{nodumpmap}{¥pxcz@dumpmapfalse}
% (no)dumpmaptl
¥DeclareOption{dumpmaptl}{¥pxcz@dumpmap@tltrue}
¥DeclareOption{nodumpmaptl}{¥pxcz@dumpmap@tlfalse}
% (no)switchfont
¥DeclareOption{switchfont}{¥pxcz@switch@fonttrue}
¥DeclareOption{noswitchfont}{¥pxcz@switch@fontfalse}
% (no)strictcsi
¥DeclareOption{strictcsi}{¥let¥pxcz@strict@csi=t}
¥DeclareOption{nostrictcsi}{¥let¥pxcz@strict@csi=f}
% XXXXX-legacycode
¥chardef¥pxcz@legacycode@apply=0
¥chardef¥pxcz@legacycode@ignore=1
¥chardef¥pxcz@legacycode@suppress=2
¥chardef¥pxcz@legacycode@replace=3
¥DeclareOption{apply-legacycode}{¥let¥pxcz@legacycode¥pxcz@legacycode@apply}
¥DeclareOption{ignore-legacycode}{¥let¥pxcz@legacycode¥pxcz@legacycode@ignore}
¥DeclareOption{suppress-legacycode}{¥let¥pxcz@legacycode¥pxcz@legacycode@suppress}
¥DeclareOption{replace-legacycode}{¥let¥pxcz@legacycode¥pxcz@legacycode@replace}
% (no)expert
¥DeclareOption{expert}{¥let¥pxcz@expert=t}
¥DeclareOption{noexpert}{¥let¥pxcz@expert=f}
% (no)glyphid
¥DeclareOption{glyphid}{¥pxcz@glyphidtrue}
¥DeclareOption{noglyphid}{¥pxcz@glyphidfalse}
% preset spec options
¥pxcz@onlypreamble@def¥pxcz@all@main@preset{%
noembed,%
%(uniweight)
ms,ipa,ipaex,%
%(multiweight)
ms-hg,ipa-hg,ipaex-hg,moga-mobo,moga-mobo-ex,moga-maruberi,ume,%
kozuka-pro,kozuka-pr6,kozuka-pr6n,hiragino-pro,hiragino-pron,%
hiragino-elcapitan-pro,hiragino-elcapitan-pron,%
morisawa-pro,morisawa-pr6n,yu-win,yu-win10,yu-win10+,yu-osx,%
sourcehan-otc,sourcehan,sourcehan-jp,noto-otc,noto,noto-jp,%
haranoaji,%
sourcehan-otc+,sourcehan+,noto-otc+,noto+,%
%(alias)
hiragino,noto-otf,%
noEmbed,kozuka,hiragino-elcapitan,morisawa}
¥pxcz@onlypreamble@def¥pxcz@all@abolished@preset{%
ipa-otf,ipa-otf-dx,kozuka4,kozuka6,kozuka6n,
ms-dx,ipa-ttf,ipa-ttf-dx,ipav2,ipav2-dx,ipa-dx,hiragino-dx}
% But note, 'hiragino' != 'hiragino-pro'
¥def¥pxcz@do#1{¥DeclareOption{#1}{¥def¥pxcz@main@preset{#1}}}
¥@for¥pxcz@x:=¥pxcz@all@main@preset¥do{%
¥expandafter¥pxcz@do¥expandafter{¥pxcz@x}}
¥@for¥pxcz@x:=¥pxcz@all@abolished@preset¥do{%
¥expandafter¥pxcz@do¥expandafter{¥pxcz@x}}
¥def¥pxcz@custom#1#2{¥pxcz@do{#1}}
¥pxcz@custom@presets
% others
% The 'unicode' option means a Unicode-oriented mapping, and requires
% dvipdfmx of version 20170627 or later. The 'unicode-fwid' is a variant.
% The 'unicode*(-fwid)' option is a transitional (deteriorated) version
% of 'unicode(-fwid)' and can work with dvipdfmx of version 20170318.
¥pxcz@onlypreamble@csdef{pxcz@POPT/unicode}{%
¥let¥pxcz@directunicode¥pxcz@directunicode@full}
¥pxcz@onlypreamble@csdef{pxcz@POPT/unicode*}{%
¥pxcz@uniquifytrue
¥let¥pxcz@directunicode¥pxcz@directunicode@full}
¥pxcz@onlypreamble@csdef{pxcz@POPT/unicode-fwid}{%
¥pxcz@fullwidthtrue
¥let¥pxcz@directunicode¥pxcz@directunicode@full}
¥pxcz@onlypreamble@csdef{pxcz@POPT/unicode*-fwid}{%
¥pxcz@fullwidthtrue ¥pxcz@uniquifytrue
¥let¥pxcz@directunicode¥pxcz@directunicode@full}
¥DeclareOption*{%
¥pxcz@csuse@or{pxcz@POPT/¥CurrentOption}{%
¥pxcz@parse@opt¥CurrentOption
¥ifpxcz@ok¥else ¥@unknownoptionerror ¥fi}}
¥pxcz@onlypreamble@def¥pxcz@parse@opt#1{%
¥pxcz@okfalse
¥pxcz@parse@opt@a{+}{#1}{¥pxcz@file@preset@tltrue}%
¥pxcz@parse@opt@a{*}{#1}{¥pxcz@file@preset@tlfalse}%
¥pxcz@parse@opt@a{tl:}{#1}{¥pxcz@file@preset@tltrue}%
¥pxcz@parse@opt@a{file:}{#1}{¥pxcz@file@preset@tlfalse}}
¥pxcz@onlypreamble@def¥pxcz@parse@opt@a#1#2#3{%
¥ifpxcz@ok¥else
¥pxcz@split{#1}{#2}¥ifx¥pxcz@pre¥@empty
#3¥let¥pxcz@file@preset¥pxcz@post ¥pxcz@oktrue
¥fi
¥fi}
% dispatch
¥ProcessOptions*

%% 'unicode*' and 'unicode*-fwid' are DEPRECATED
¥ifpxcz@uniquify
¥PackageWarningNoLine¥pxcz@pkgname
{IMPORTANT: Option 'unicode*¥ifpxcz@fullwidth -fwid¥fi'
is DEPRECATED!¥MessageBreak
This option invokes a transitional setting that¥MessageBreak
is specially tailored for TL2017, and will be¥MessageBreak
abolished in near future.¥MessageBreak
You should update to TL2018 or later and use¥MessageBreak
option 'unicode¥ifpxcz@fullwidth -fwid¥fi' instead}
¥fi

%% 'everypage' needs 'atbegshi' package
¥ifpxcz@everypage ¥ifpxcz@old@hook@system
¥RequirePackage{atbegshi}
¥fi¥fi

%% apply default value for ¥pxcz@directunicode
¥ifx¥pxcz@directunicode¥relax
¥let¥pxcz@directunicode¥pxcz@directunicode@none
¥ifnum¥pxcz@pxufont@loaded>0
¥PackageWarningNoLine¥pxcz@pkgname
{Option 'unicode' is enabled, since the package¥MessageBreak
'pxufont' is already loaded}
¥let¥pxcz@directunicode¥pxcz@directunicode@full
¥fi
¥pxcz@directunicode@defaulttrue
¥fi

%% set 'pxcz@alpha'
¥@tempswafalse
¥if¥pxcz@main@preset¥relax
¥if¥pxcz@file@preset¥relax ¥@tempswatrue ¥fi
¥fi
¥if t¥pxcz@alphabet ¥pxcz@alphatrue
¥else¥if f¥pxcz@alphabet ¥pxcz@alphafalse
¥else¥if r¥pxcz@alphabet ¥pxcz@alphafalse
¥else¥if@tempswa ¥pxcz@alphatrue
¥else ¥pxcz@alphafalse
¥fi¥fi¥fi¥fi
¥ifpxcz@alpha
¥IfFileExists{pxchfon0.def}{}{%else
¥PackageError¥pxcz@pkgname
{Option 'alphabet' not available in Lite edition}%
{You must install full edition of PXchfon bundle, or specify
'noalphabet'¥MessageBreak as package option.}%
¥pxcz@alphafalse}
¥fi

%% set 'pxcz@rel'
¥if r¥pxcz@alphabet ¥pxcz@reltrue
¥else ¥pxcz@relfalse
¥fi
¥ifpxcz@rel
¥IfFileExists{pxchfon0.def}{}{%else
¥PackageError¥pxcz@pkgname
{Option 'relfont' not available in Lite edition}%
{You must install full edition of PXchfon bundle.}%
¥pxcz@relfalse}
¥fi

%% ¥ifpxcz@alphafont
% Whether or not alphabet fonts are used.
¥newif¥ifpxcz@alphafont
¥ifpxcz@alpha ¥pxcz@alphafonttrue
¥else¥ifpxcz@rel ¥pxcz@alphafonttrue
¥else ¥pxcz@alphafontfalse
¥fi¥fi

%% apply default for ¥pxcz@strict@csi
¥ifx¥pxcz@strict@csi¥relax
% 'dumpmap(tl)' changes the 'strictcsi' default to true.
¥let¥pxcz@strict@csi=f
¥ifpxcz@dumpmap ¥let¥pxcz@strict@csi=t ¥fi
¥ifpxcz@dumpmap@tl ¥let¥pxcz@strict@csi=t ¥fi
¥fi
¥if t¥pxcz@strict@csi
% 'strictcsi' requires some pdfTeX feature.
¥ifx¥pdffiledump¥@undefined
¥PackageWarningNoLine¥pxcz@pkgname
{The option 'strictcsi' cannot be used, because¥MessageBreak
the engine does not support '¥string¥pdffiledump'}
¥let¥pxcz@strict@csi=f
¥fi
¥fi

%% apply 'switch@font'
¥ifpxcz@switch@font
¥pxcz@switch@font@xjistrue
¥else
¥let¥pxcz@switch@font@xwidtrue¥pxcz@switch@font@xwidfalse
¥let¥pxcz@switch@font@xjistrue¥pxcz@switch@font@xjisfalse
¥fi

%--------------------------------------- preset-dependent setup

%% variables
¥newif¥ifpxcz@warn@unless@all@defined
¥newif¥ifpxcz@warn@unless@all@embedded

%% ¥pxcz@apply@opt@unicode
% Forces the 'unicode' setup (unless a directunicode option was given).
¥pxcz@onlypreamble@def¥pxcz@apply@opt@unicode{%
¥ifpxcz@directunicode@default % default -> unicode
¥pxcz@warn@unicode
¥let¥pxcz@directunicode¥pxcz@directunicode@full
¥pxcz@uniquifyfalse
¥else¥ifnum¥pxcz@directunicode=¥pxcz@directunicode@full
¥ifpxcz@uniquify % unicode* -> unicode+
¥pxcz@switch@font@xwidtrue ¥pxcz@uniquifyfalse
¥fi % unicode -> (unchanged)
¥else ¥pxcz@uniquifyfalse % otherwise, enable switch-font
¥fi¥fi}
%% ¥pxcz@apply@opt@unicodeP
% Forces the 'unicode+' setup, which is a 'unicode' with switch-font
% enabled on the width features.
¥pxcz@onlypreamble@def¥pxcz@apply@opt@unicodeP{%
¥pxcz@uniquifyfalse
¥pxcz@switch@font@xwidtrue % 'unicode+'
¥ifnum¥pxcz@directunicode=¥pxcz@directunicode@full¥else
¥pxcz@warn@unicode
¥let¥pxcz@directunicode¥pxcz@directunicode@full
¥fi}
%% ¥pxcz@warn@unicode
¥pxcz@onlypreamble@def¥pxcz@warn@unicode{%
¥PackageWarningNoLine¥pxcz@pkgname
{The option 'unicode' is enforced, because the¥MessageBreak
preset '¥pxcz@main@preset' is selected.}}

%% the setup
¥def¥pxcz@do#1{%
¥edef¥pxcz@tmpa{#1}%
¥pxcz@cond¥ifx¥pxcz@main@preset¥pxcz@tmpa¥fi
{¥@firstofone}{¥@gobble}}
% A 'XXXX+' preset forces 'unicode+' setting.
% 'sourcehan(-otc)' and 'noto(-otc)' should force 'unicode', but currently
% equivalent to the corresponding 'XXXX+' preset.
¥pxcz@do{sourcehan}{¥pxcz@apply@opt@unicode}
¥pxcz@do{sourcehan-otc}{¥pxcz@apply@opt@unicode}
¥pxcz@do{sourcehan-jp}{¥pxcz@apply@opt@unicode}
¥pxcz@do{noto}{¥pxcz@apply@opt@unicode}
¥pxcz@do{noto-otf}{¥pxcz@apply@opt@unicode}
¥pxcz@do{noto-otc}{¥pxcz@apply@opt@unicode}
¥pxcz@do{noto-jp}{¥pxcz@apply@opt@unicode}
¥pxcz@do{sourcehan+}{¥pxcz@apply@opt@unicodeP}
¥pxcz@do{sourcehan-otc+}{¥pxcz@apply@opt@unicodeP}
¥pxcz@do{noto+}{¥pxcz@apply@opt@unicodeP}
¥pxcz@do{noto-otc+}{¥pxcz@apply@opt@unicodeP}
¥pxcz@do{yu-win10+}{¥pxcz@apply@opt@unicodeP}
¥pxcz@custom@apply@opt@unicode
% No-embed is not supported under the 'unicode' setup
¥ifnum¥pxcz@directunicode=¥pxcz@directunicode@full
¥pxcz@warn@unless@all@embeddedtrue
¥fi

%% apply default for ¥pxcz@legacycode
¥ifx¥pxcz@legacycode¥relax
¥ifnum¥pxcz@directunicode=¥pxcz@directunicode@full
¥let¥pxcz@legacycode¥pxcz@legacycode@replace
¥else ¥let¥pxcz@legacycode¥pxcz@legacycode@apply
¥fi
¥fi

%% 'replace-lecacycode' requires the 'pxufont' package
¥ifnum¥pxcz@legacycode=¥pxcz@legacycode@replace
¥ifnum¥pxcz@pxufont@avail<1
¥PackageError¥pxcz@pkgname
{The option 'replace-lecacycode' requires the 'pxufont'¥MessageBreak
package, but it is not installed}%
{The option 'suprress-lecacycode' is applied as fallback.¥MessageBreak
¥@ehc}
¥let¥pxcz@legacycode¥pxcz@legacycode@suppress
¥fi
¥fi

%% check requirements for 'glyphid'
¥ifpxcz@glyphid
¥pxcz@oktrue
¥ifnum¥pxcz@legacycode=¥pxcz@legacycode@replace¥else ¥pxcz@okfalse ¥fi
¥ifpxcz@uptex¥else ¥pxcz@okfalse ¥fi
¥ifnum¥pxcz@pxufont@avail<2 ¥pxcz@okfalse ¥fi
¥ifpxcz@ok¥else
¥PackageError¥pxcz@pkgname
{The option 'glyphid' cannot be used here. You must¥MessageBreak
use upLaTeX and the 'unicode' option, and package¥MessageBreak
'pxufont' of v0.5 or later must be installed}
{¥@ehc}
¥pxcz@glyphidfalse
¥fi
¥fi

%% check requirements for 'expert'
¥pxcz@oktrue
¥ifnum¥pxcz@legacycode=¥pxcz@legacycode@replace¥else ¥pxcz@okfalse ¥fi
¥ifnum¥pxcz@directunicode=¥pxcz@directunicode@full¥else ¥pxcz@okfalse ¥fi
¥ifpxcz@uniquify ¥pxcz@okfalse ¥fi % no 'unicode*'
¥ifpxcz@switch@font@xwid ¥pxcz@okfalse ¥fi % no 'unicode+'
¥ifnum¥pxcz@pxufont@avail<2 ¥pxcz@okfalse ¥fi
¥ifpxcz@ok¥else
¥if t¥pxcz@expert % explicitly given
¥PackageError¥pxcz@pkgname
{The option 'expert' cannot be used here. You must¥MessageBreak
use upLaTeX and the 'unicode' option, and package¥MessageBreak
'pxufont' of v0.5 or later must be installed}
{¥@ehc}
¥fi
¥let¥pxcz@expert=f
¥fi

%% apply default for ¥pxcz@expert
¥ifpxcz@otf@expert
¥ifx¥pxcz@expert¥relax
¥let¥pxcz@expert=t
¥fi
¥else
¥if t¥pxcz@expert
¥PackageWarningNoLine¥pxcz@pkgname
{The 'expert' option will be ignored, since the¥MessageBreak
expert mode of the 'otf' package is not enabled}
¥fi
¥let¥pxcz@expert=f
¥fi
¥if t¥pxcz@expert
¥pxcz@warn@unless@all@definedtrue
¥fi

%--------------------------------------- user interface

%% ¥pxcz@sym@list
¥def¥pxcz@sym@list{%
mnl,mnr,mnb,gtr,gtb,gtx,gtu,mgr,kom,kog,scm,scg,tcm,tcg}

%%<*> ¥setminchofont/¥setgothicfont/etc.
¥newcommand*¥setminchofont{¥pxcz@setfont{mnl,mnr,mnb}}
¥newcommand*¥setgothicfont{¥pxcz@setfont{gtr,gtb,gtx,gtu}}
¥newcommand*¥setlightminchofont{¥pxcz@setfont{mnl}}
¥newcommand*¥setmediumminchofont{¥pxcz@setfont{mnr}}
¥newcommand*¥setboldminchofont{¥pxcz@setfont{mnb}}
¥newcommand*¥setmediumgothicfont{¥pxcz@setfont{gtr}}
¥newcommand*¥setboldgothicfont{¥pxcz@setfont{gtb}}
¥newcommand*¥setxboldgothicfont{¥pxcz@setfont{gtx}}
¥newcommand*¥setoneweightgothicfont{¥pxcz@setfont{gtu}}
¥newcommand*¥setmarugothicfont{¥pxcz@setfont{mgr}}
¥newcommand*¥setkoreanminchofont{¥pxcz@setfont{kom}}
¥newcommand*¥setkoreangothicfont{¥pxcz@setfont{kog}}
¥newcommand*¥setschineseminchofont{¥pxcz@setfont{scm}}
¥newcommand*¥setschinesegothicfont{¥pxcz@setfont{scg}}
¥newcommand*¥settchineseminchofont{¥pxcz@setfont{tcm}}
¥newcommand*¥settchinesegothicfont{¥pxcz@setfont{tcg}}
¥pxcz@onlypreamble@def¥pxcz@setfont#1{¥@ifnextchar[%]
{¥pxcz@setfont@a{#1}}{¥pxcz@setfont@a{#1}[0]}}
¥pxcz@onlypreamble@def¥pxcz@setfont@a#1[#2]#3{%
¥edef¥pxcz@tmpa{#3}¥pxcz@lower¥pxcz@tmpa
¥pxcz@split{?:}{?¥pxcz@tmpa}%
¥ifx¥pxcz@pre¥relax
¥pxcz@split{tc?}{¥pxcz@tmpa?}%
¥ifx¥pxcz@pre¥relax ¥pxcz@setfont@b{#1}{#3}%
¥else ¥pxcz@setfont@b{#1}{:#2:#3}%
¥fi
¥else ¥pxcz@setfont@b{#1}{#3}%
¥fi}
¥pxcz@onlypreamble@def¥pxcz@setfont@b#1#2{%
¥@for¥pxcz@tmpx:=#1¥do{%
¥@namedef{pxcz@FS/¥pxcz@tmpx}{#2}}}
¥@for¥pxcz@x:=¥pxcz@sym@list¥do{%
¥@namedef{pxcz@FS/¥pxcz@x}{}}

%--------------------------------------- '¥asUTF'
% NB. This feature is superseded by the ¥diruni command.
¥ifpxcz@uptex

%%<*> ¥asUTF{}
¥AtBeginDocument{%
¥@ifpackageloaded{otf}{%
¥providecommand*¥asUTF{¥pxcz@asutf@a}%
}{}%
}
¥def¥pxcz@asutf@a#1{%
¥pxcz@warn@depre@asutf
¥kchardef¥pxcz@tmpa=`#1¥relax
¥expandafter¥pxcz@asutf@b¥meaning¥pxcz@tmpa¥relax
}
¥def¥pxcz@asutf@b#1"#2¥relax{%
¥UTF{#2}%
}
¥def¥pxcz@warn@depre@asutf{%
¥PackageWarningNoLine¥pxcz@pkgname
{Important: Command '¥string¥asUTF' is DEPRECATED}%
¥global¥let¥pxcz@warn@depre@asutf¥relax
}

¥fi
%--------------------------------------- fontmap internals

%% ¥pxcz@noembed
% The value given to ¥set...font to mean 'no-embed'.
¥def¥pxcz@noembed{*}

%% ¥pxcz@kill@mapping
¥def¥pxcz@kill@mapping{!}

%% ¥pxcz@cmap@directuni
% CMap symbol for "direct unicode".
¥def¥pxcz@cmap@directuni{unicode}

%% ¥pxcz@cmap@hwuni
% CMap name for halfwidth fonts.
¥def¥pxcz@cmap@hwuni{UniJIS-UCS2-HW-H}

%%<*> ¥usecmapforalphabet/¥nousecmapforalphabet
¥newcommand*¥usecmapforalphabet{%
¥global¥pxcz@cmap@alphatrue}
¥newcommand*¥nousecmapforalphabet{%
¥global¥pxcz@cmap@alphafalse}

%% ¥pxcz@NEF/ ¥def¥pxcz@do#1#2{%
¥def¥pxcz@tmpb{#2}%
¥@for¥pxcz@tmpa:=#1¥do{%
¥expandafter¥let¥csname pxcz@NEF/¥pxcz@tmpa¥endcsname¥pxcz@tmpb
}}
¥pxcz@do{mnl,mnr,mnb}{Ryumin-Light}
¥pxcz@do{gtr,gtb,gtx,gtu,mgr}{GothicBBB-Medium}
¥pxcz@do{kom}{HYSMyeongJo-Medium}
¥pxcz@do{kog}{HYGoThic-Medium}
¥pxcz@do{scm}{STSong-Light}
¥pxcz@do{scg}{STHeiti-Regular}
¥pxcz@do{tcm}{MSung-Light}
¥pxcz@do{tcg}{MHei-Medium}

%%<+> ¥JaFontReplacementFor{}
¥newcommand*¥JaFontReplacementFor[1]{%
¥csname pxcz@FS/#1¥endcsname}

%%<+> ¥JaFontReplacementHook{}
¥@onlypreamble¥JaFontReplacementHook
¥newcommand*¥JaFontReplacementHook{%
¥g@addto@macro¥pxcz@user@hook}
¥let¥pxcz@user@hook¥@empty

%%<+> ¥JaFontUserDefinedMap
¥@onlypreamble¥JaFontUserDefinedMap
¥newcommand*¥JaFontUserDefinedMap{%
¥g@addto@macro¥pxcz@user@map}
¥let¥pxcz@user@map¥@empty
¥@namedef{pxcz@FS/*}{¥pxcz@empty}

%%<+> ¥usefontmapline{}
¥@onlypreamble¥usefontmapline
¥newcommand*¥usefontmapline[1]{%
¥JaFontUserDefinedMap{¥pxcz@addtospec@alt¥pxcz@mapline{#1}}}

%%<+> ¥usefontmapfile{}
¥@onlypreamble¥usefontmapfile
¥newcommand*¥usefontmapfile[1]{%
¥JaFontUserDefinedMap{¥pxcz@addtospec@alt¥pxcz@mapfile{#1}}}

%% ¥pxcz@check@extra
% Executed at the begin-document hook.
¥@onlypreamble¥pxcz@check@extra
¥let¥pxcz@check@extra¥@empty

%--------------------------------------- map entry handling

%%<*> ¥setnewglyphcmapprefix{}
¥def¥pxcz@pfx@jis@dflt{2004-}
¥def¥pxcz@pfx@jis@star{JISX0213-2004-}
¥@onlypreamble¥setnewglyphcmapprefix
¥newcommand*¥setnewglyphcmapprefix{%
¥@ifstar{¥pxcz@set@pfx@jis¥pxcz@pfx@jis@star}%
{¥pxcz@set@pfx@jis}}
¥def¥pxcz@set@pfx@jis#1{%
¥edef¥pxcz@pfx@jis{#1}}
¥setnewglyphcmapprefix{¥pxcz@pfx@jis@dflt}

%% variables
¥let¥pxcz@sym¥relax
¥let¥pxcz@cmap¥relax
¥let¥pxcz@font¥relax
¥let¥pxcz@csi¥relax
¥newif¥ifpxcz@vert
¥newif¥ifpxcz@retain
¥newif¥ifpxcz@retain@csi
¥let¥pxcz@lopts¥relax
¥let¥pxcz@mopts¥relax
¥let¥pxcz@font@tribe¥relax
¥newif¥ifpxcz@noembed@used

%% ¥pxcz@@jpXX
¥edef¥pxcz@@jpXX{%
¥ifpxcz@mmivjis jp04¥else jp90¥fi}
%% ¥pxcz@add@lopt
¥pxcz@onlypreamble@def¥pxcz@add@lopt#1{%
¥edef¥pxcz@lopts{%
¥ifx¥pxcz@lopts¥@empty¥else ¥pxcz@lopts:¥fi#1}}
%% ¥pxcz@uniquify@lopts
¥pxcz@onlypreamble@def¥pxcz@uniquify@lopts#1#2{%
¥pxcz@oktrue
¥def¥pxcz@tmpb{jp90}¥ifx¥pxcz@tmpb¥pxcz@lopts¥pxcz@okfalse¥fi
¥def¥pxcz@tmpb{jp04}¥ifx¥pxcz@tmpb¥pxcz@lopts¥pxcz@okfalse¥fi
¥ifx¥@empty¥pxcz@lopts¥if t#1¥pxcz@okfalse¥fi¥fi
¥ifpxcz@ok
¥edef¥pxcz@lopts{#2}%
¥fi}

%% ¥pxcz@is@jis@cmap
¥pxcz@onlypreamble@def¥pxcz@is@jis@cmap{%
¥pxcz@okfalse
¥expandafter¥pxcz@is@jis@cmap@a¥pxcz@cmap¥pxcz@end}
¥pxcz@onlypreamble@def¥pxcz@is@jis@cmap@a#1#2¥pxcz@end{%
¥ifx¥pxcz@mt#2¥pxcz@mt ¥pxcz@oktrue ¥fi}

%% ¥pxcz@force@mmiv@cmap
¥pxcz@onlypreamble@def¥pxcz@force@mmiv@cmap{%
¥pxcz@is@jis@cmap ¥ifpxcz@ok
¥edef¥pxcz@cmap{¥pxcz@pfx@jis¥pxcz@cmap}%
¥else
¥pxcz@split{UniJIS-}¥pxcz@cmap
¥ifx¥pxcz@pre¥relax¥else
¥edef¥pxcz@cmap{UniJIS2004-¥pxcz@post}%
¥fi
¥fi}

%% ¥pxcz@inspect@font@tribe
¥pxcz@onlypreamble@def¥pxcz@inspect@font@tribe{%
¥let¥pxcz@font@tribe¥@empty
¥ifx¥pxcz@font¥@empty
¥else¥ifx¥pxcz@font¥pxcz@noembed
¥else
¥pxcz@inspect@font@tribe@a{?SourceHanSerif-}{.otf?}{sourcehan}%
¥pxcz@inspect@font@tribe@a{?SourceHanSans-}{.otf?}{sourcehan}%
¥pxcz@inspect@font@tribe@a{?:0:SourceHanSerif-}{.ttc?}{sourcehanC}%
¥pxcz@inspect@font@tribe@a{?:0:SourceHanSans-}{.ttc?}{sourcehanC}%
¥pxcz@inspect@font@tribe@a{?NotoSerifCJKjp-}{.otf?}{noto}%
¥pxcz@inspect@font@tribe@a{?NotoSansCJKjp-}{.otf?}{noto}%
¥pxcz@inspect@font@tribe@a{?:0:NotoSerifCJK-}{.ttc?}{notoC}%
¥pxcz@inspect@font@tribe@a{?:0:NotoSansCJK-}{.ttc?}{notoC}%
¥pxcz@inspect@font@tribe@a{?yumin}{.ttf?}{yumin}%
¥pxcz@inspect@font@tribe@a{?YUMIN}{.TTF?}{yuminU}%
¥pxcz@inspect@font@tribe@a{:YuGoth}{.ttc?}{yugoth}%
¥pxcz@inspect@font@tribe@a{:YUGOTH}{.TTC?}{yugoth}%
¥pxcz@inspect@font@tribe@a{:moga}{.ttc?}{mogamobo}%
¥pxcz@inspect@font@tribe@a{:mobo}{.ttc?}{mogamobo}%
¥fi¥fi
¥ifx¥pxcz@font@tribe¥@empty¥else
¥PackageInfo¥pxcz@pkgname
{Font tribe is '¥pxcz@font@tribe':¥MessageBreak
¥@spaces¥pxcz@font¥@gobble}%
¥fi}
¥pxcz@onlypreamble@def¥pxcz@inspect@font@tribe@a#1#2#3{%
¥pxcz@split{#1}{?¥pxcz@font}%
¥ifx¥pxcz@pre¥relax¥else
¥pxcz@split{#2}{¥pxcz@font?}%
¥ifx¥pxcz@pre¥relax¥else
¥def¥pxcz@font@tribe{#3}%
¥fi
¥fi}

%% ¥pxcz@switch@font@for{}
% Modifies ¥pxcz@font, assuming ¥pxcz@font@tribe is properly set.
¥pxcz@onlypreamble@def¥pxcz@switch@font@for#1{%
¥pxcz@csletcs{pxcz@tmpb}{pxcz@switch@font@@¥pxcz@font@tribe @#1}%
¥ifx¥pxcz@tmpb¥relax¥else
%¥typeout{#1:¥pxcz@font-->¥expandafter¥pxcz@tmpb¥pxcz@font}%
¥edef¥pxcz@font{¥expandafter¥pxcz@tmpb¥pxcz@font}%
¥fi}
% entries
¥ifpxcz@switch@font@xwid
¥def¥pxcz@switch@font@@sourcehanC@fwid#1:0:{:2:}
¥def¥pxcz@switch@font@@sourcehanC@hwid#1:0:{:1:}
¥def¥pxcz@switch@font@@sourcehan@fwid#1-{#1SC-}
¥def¥pxcz@switch@font@@sourcehan@hwid#1-{#1K-}
¥def¥pxcz@switch@font@@notoC@fwid#1:0:{:2:}
¥def¥pxcz@switch@font@@notoC@hwid#1:0:{:1:}
¥def¥pxcz@switch@font@@noto@fwid#1jp{#1sc}
¥def¥pxcz@switch@font@@noto@hwid#1jp{#1kr}
¥def¥pxcz@switch@font@@yugoth@fwid#1:0:{:1:}
¥def¥pxcz@switch@font@@yumin@fwid#1.ttf{%
¥@nameuse{pxcz@SFYM/#1.ttf}}
¥def¥pxcz@switch@font@@yuminU@fwid#1.TTF{%
¥@nameuse{pxcz@SFYM/#1.TTF}}
¥def¥pxcz@do#1{¥@namedef{pxcz@SFYM/#1}}
¥pxcz@do{yuminl.ttf}{:1:YuGothL.ttc}
¥pxcz@do{yumin.ttf}{:1:YuGothR.ttc}
¥pxcz@do{yumindb.ttf}{:1:YuGothM.ttc}
¥pxcz@do{YUMINL.TTF}{:1:YUGOTHL.TTC}
¥pxcz@do{YUMIN.TTF}{:1:YUGOTHR.TTC}
¥pxcz@do{YUMINDB.TTF}{:1:YUGOTHM.TTC}
¥fi
¥ifpxcz@switch@font@xjis
¥@namedef{pxcz@switch@font@@mogamobo@jp90}#1.ttc{%
¥pxcz@csuse@or{pxcz@SFMG/#1.ttc}{#1.ttc}}
¥def¥pxcz@do#1#2#3{¥@namedef{pxcz@SFMG/:#1:#3}{:#2:#3}}
¥pxcz@do{0}{3}{mogam.ttc}
¥pxcz@do{1}{4}{mogam.ttc}
¥pxcz@do{0}{3}{mogamb.ttc}
¥pxcz@do{1}{4}{mogamb.ttc}
¥pxcz@do{0}{2}{mogag.ttc}
¥pxcz@do{1}{3}{mogag.ttc}
¥pxcz@do{0}{2}{mogagb.ttc}
¥pxcz@do{1}{3}{mogagb.ttc}
¥pxcz@do{0}{2}{mobog.ttc}
¥pxcz@do{1}{3}{mobog.ttc}
¥pxcz@do{0}{2}{mobogb.ttc}
¥pxcz@do{1}{3}{mobogb.ttc}
¥fi

%% ¥pxcz@declare@entry@modifier{}
¥pxcz@onlypreamble@def¥pxcz@declare@entry@modifier#1{%
¥pxcz@onlypreamble@csdef{pxcz@MEM/#1}}

%% entry modifiers
% Uni: Changes cmap to 'unicode' if directunicode.
¥pxcz@declare@entry@modifier{Uni}{%
¥ifnum¥pxcz@directunicode<¥pxcz@directunicode@otf¥else
¥ifx¥pxcz@font¥pxcz@noembed¥else
¥let¥pxcz@cmap¥pxcz@cmap@directuni
¥fi
¥fi}
% Uni*: Changes cmap to 'unicode' if directunicode*.
¥pxcz@declare@entry@modifier{Uni*}{%
¥ifnum¥pxcz@directunicode<¥pxcz@directunicode@all¥else
¥ifx¥pxcz@font¥pxcz@noembed¥else
¥let¥pxcz@cmap¥pxcz@cmap@directuni
¥fi
¥fi}
% Switch: Selects 90 or 04 (according to mmivjis)
¥pxcz@declare@entry@modifier{Switch}{%
¥ifpxcz@mmivjis
¥pxcz@force@mmiv@cmap
¥else
¥pxcz@switch@font@for{jp90}%
¥fi
¥pxcz@add@lopt{¥pxcz@@jpXX}}
% 04
¥pxcz@declare@entry@modifier{04}{%
¥pxcz@add@lopt{jp04}}
% 90
¥pxcz@declare@entry@modifier{90}{%
¥pxcz@switch@font@for{jp90}%
¥pxcz@add@lopt{jp90}}
% HWid
¥pxcz@declare@entry@modifier{HWid}{%
¥ifx¥pxcz@font¥pxcz@noembed ¥pxcz@okfalse
¥else¥ifnum¥pxcz@directunicode=¥pxcz@directunicode@full ¥pxcz@oktrue
¥else¥ifpxcz@cmap@alpha ¥pxcz@okfalse
¥else ¥pxcz@oktrue
¥fi¥fi¥fi
¥ifpxcz@ok
¥let¥pxcz@cmap¥pxcz@cmap@directuni
¥pxcz@switch@font@for{hwid}%
¥else ¥let¥pxcz@cmap¥pxcz@cmap@hwuni
¥fi
¥pxcz@add@lopt{hwid}}
% FWid
¥pxcz@declare@entry@modifier{FWid}{%
¥pxcz@switch@font@for{fwid}%
¥pxcz@add@lopt{fwid}}
% AJ16/AK12/AG14/AC14
¥pxcz@declare@entry@modifier{AJ16}{¥def¥pxcz@csi{AJ16}}
¥pxcz@declare@entry@modifier{AK12}{¥def¥pxcz@csi{AK12}¥pxcz@retaintrue}
¥pxcz@declare@entry@modifier{AG14}{¥def¥pxcz@csi{AG14}¥pxcz@retaintrue}
¥pxcz@declare@entry@modifier{AC14}{¥def¥pxcz@csi{AC14}¥pxcz@retaintrue}
% V: Adds '-w 1' if cmap is 'unicode'.
¥pxcz@declare@entry@modifier{V}{%
¥pxcz@verttrue
¥ifx¥pxcz@cmap¥pxcz@cmap@directuni
¥edef¥pxcz@mopts{ -w 1¥pxcz@mopts}%
¥fi}
% Exp: Adds 'hkna/vkna' if cmap is 'unicode'.
¥pxcz@declare@entry@modifier{Exp}{%
¥if t¥pxcz@expert ¥ifx¥pxcz@cmap¥pxcz@cmap@directuni
¥ifpxcz@vert ¥pxcz@add@lopt{vkna}%
¥else ¥pxcz@add@lopt{hkna}%
¥fi
¥fi¥fi}
% Ruby
¥pxcz@declare@entry@modifier{Ruby}{%
¥if t¥pxcz@expert
¥let¥pxcz@cmap¥pxcz@cmap@directuni
¥pxcz@add@lopt{ruby}%
¥fi}
% I
¥pxcz@declare@entry@modifier{I}{%
¥def¥pxcz@csi{I}%
¥pxcz@retaintrue ¥pxcz@retain@csitrue}
% Fin: final step
¥pxcz@declare@entry@modifier{Fin}{%
¥ifx¥pxcz@csi¥relax¥else
¥ifpxcz@retain@csi
¥edef¥pxcz@mopts{/¥pxcz@csi}%
¥else¥expandafter¥ifx¥csname pxcz@OT/¥pxcz@sym¥endcsname¥relax
¥edef¥pxcz@mopts{/¥pxcz@csi}%
¥else % omit CSI part for CFF fonts
¥let¥pxcz@mopts¥@empty
¥fi¥fi
¥fi}

%% ¥pxcz@spec
¥let¥pxcz@spec¥@empty

%% ¥pxcz@addtospec{}
¥pxcz@onlypreamble@def¥pxcz@addtospec#1{%
¥begingroup
¥let¥Entry¥pxcz@Entry
¥@nameuse{pxcz@ME/#1}%
¥endgroup}
%% ¥Entry{}{}{}{,...}
¥pxcz@onlypreamble@def¥pxcz@Entry#1#2#3#4{%
¥def¥pxcz@sym{#1}¥def¥pxcz@cmap{#3}%
¥let¥pxcz@csi¥relax ¥let¥pxcz@mopts¥@empty ¥let¥pxcz@lopts¥@empty
¥pxcz@retainfalse ¥pxcz@retain@csifalse ¥pxcz@vertfalse
¥edef¥pxcz@font{¥@nameuse{pxcz@FS/¥pxcz@sym}}%
¥pxcz@inspect@font@tribe
% apply modifiers
¥@for¥pxcz@tmpx:=#4,Fin¥do{%
¥ifx¥pxcz@font¥@empty¥else
¥@nameuse{pxcz@MEM/¥pxcz@tmpx}%
¥fi}%
% resolve no-embed font spec
¥ifx¥pxcz@font¥pxcz@noembed
¥edef¥pxcz@font{!¥@nameuse{pxcz@NEF/¥pxcz@sym}}%
¥pxcz@retaintrue
¥global¥pxcz@noembed@usedtrue
¥fi
% apply layout options when using 'unicode'
¥ifnum¥pxcz@directunicode<¥pxcz@directunicode@full¥else
¥ifx¥pxcz@cmap¥pxcz@cmap@directuni
¥ifpxcz@uniquify
¥pxcz@uniquify@lopts{t}{¥pxcz@@jpXX}%
¥ifpxcz@fullwidth
¥pxcz@add@lopt{fwid}%
¥fi
¥else
¥ifpxcz@fullwidth
¥pxcz@split{wid}¥pxcz@lopts¥ifx¥pxcz@pre¥relax
¥pxcz@add@lopt{fwid}%
¥fi
¥fi
¥fi
¥ifx¥pxcz@lopts¥@empty¥else
¥edef¥pxcz@mopts{¥pxcz@mopts¥space -l ¥pxcz@lopts}%
¥fi
¥fi
¥fi
% suppress legacy-code mappings unless 'apply-legacycode'
¥ifx¥pxcz@cmap¥pxcz@cmap@directuni¥else ¥ifpxcz@retain¥else
¥ifnum¥pxcz@legacycode=¥pxcz@legacycode@apply % no-op
¥else¥ifnum¥pxcz@legacycode=¥pxcz@legacycode@ignore
¥let¥pxcz@font¥@empty % skip
¥else¥ifx¥pxcz@font¥@empty¥else
¥let¥pxcz@font¥pxcz@kill@mapping % kill
¥fi¥fi¥fi
¥fi¥fi
% output it
¥ifx¥pxcz@font¥pxcz@kill@mapping
¥xdef¥pxcz@spec{¥pxcz@spec¥noexpand¥special{%
¥pxcz@mapline{-#2}}}%
¥else¥ifx¥pxcz@font¥@empty¥else
¥xdef¥pxcz@spec{¥pxcz@spec¥noexpand¥special{%
¥pxcz@mapline{#2 ¥pxcz@cmap¥space¥pxcz@font¥pxcz@mopts}}}%
¥fi¥fi}

%% ¥pxcz@do@file@preset
¥pxcz@onlypreamble@def¥pxcz@do@file@preset{%
¥ifpxcz@file@preset@tl
¥pxcz@do@file@preset@a{ptex-}%
¥ifpxcz@uptex ¥pxcz@do@file@preset@a{uptex-}¥fi
¥ifpxcz@otf
¥pxcz@do@file@preset@a{otf-}%
¥ifpxcz@uptex ¥pxcz@do@file@preset@a{otf-up-}¥fi
¥fi
¥else
¥pxcz@do@file@preset@a{}%
¥fi}
¥pxcz@onlypreamble@def¥pxcz@do@file@preset@a#1{%
¥pxcz@addtospec@alt¥pxcz@mapfile{#1¥pxcz@file@preset.map}}

%% ¥pxcz@addtospec@alt
¥def¥pxcz@addtospec@alt#1#2{%
¥xdef¥pxcz@spec{¥pxcz@spec¥noexpand¥special{#1{#2}}}}
¥def¥pxcz@mapfile#1{pdf:mapfile #1}
¥def¥pxcz@mapline#1{pdf:mapline #1}

%--------------------------------------- map entry definitions

%% ¥pxcz@mapentry{}{}
¥pxcz@onlypreamble@def¥pxcz@mapentry#1{%
¥pxcz@onlypreamble@csdef{pxcz@ME/#1}}

%% map entries
¥pxcz@mapentry{STD}{%
¥Entry{mnr}{rml} {H} {Switch}%
¥Entry{mnr}{rmlv} {V} {Switch,V}%
¥Entry{gtu}{gbm} {H} {Switch}%
¥Entry{gtu}{gbmv} {V} {Switch,V}%
}
¥pxcz@mapentry{ALPHA}{%
¥Entry{mnl}{r-cfjar-l-@PXcjk0@}{unicode} {HWid}%
¥Entry{mnl}{r-cfjar-lz-@PXcjk0@}{UniJIS-UCS2-H} {Uni*,FWid}%
¥Entry{mnr}{r-cfjar-r-@PXcjk0@}{unicode} {HWid}%
¥Entry{mnr}{r-cfjar-rz-@PXcjk0@}{UniJIS-UCS2-H} {Uni*,FWid}%
¥Entry{mnb}{r-cfjar-b-@PXcjk0@}{unicode} {HWid}%
¥Entry{mnb}{r-cfjar-bz-@PXcjk0@}{UniJIS-UCS2-H} {Uni*,FWid}%
¥Entry{gtr}{r-cfjas-r-@PXcjk0@}{unicode} {HWid}%
¥Entry{gtr}{r-cfjas-rz-@PXcjk0@}{UniJIS-UCS2-H} {Uni*,FWid}%
¥Entry{gtb}{r-cfjas-b-@PXcjk0@}{unicode} {HWid}%
¥Entry{gtb}{r-cfjas-bz-@PXcjk0@}{UniJIS-UCS2-H} {Uni*,FWid}%
¥Entry{gtx}{r-cfjas-x-@PXcjk0@}{unicode} {HWid}%
¥Entry{gtx}{r-cfjas-xz-@PXcjk0@}{UniJIS-UCS2-H} {Uni*,FWid}%
¥Entry{mgr}{r-cfjam-r-@PXcjk0@}{unicode} {HWid}%
¥Entry{mgr}{r-cfjam-rz-@PXcjk0@}{UniJIS-UCS2-H} {Uni*,FWid}%
}
¥pxcz@mapentry{UTF}{%
¥Entry{mnr}{unijmin-h} {UniJIS-UTF16-H} {Uni*,Switch}%
¥Entry{mnr}{unijmin-v} {UniJIS-UTF16-V} {Uni*,Switch,V}%
¥Entry{mnr}{cidmin-h} {Identity-H} {AJ16}%
¥Entry{mnr}{cidmin-v} {Identity-V} {AJ16,V}%
¥Entry{mnr}{hmr} {H} {Switch}%
¥Entry{mnr}{hmrv} {V} {Switch,V}%
¥Entry{gtu}{unijgoth-h} {UniJIS-UTF16-H} {Uni*,Switch}%
¥Entry{gtu}{unijgoth-v} {UniJIS-UTF16-V} {Uni*,Switch,V}%
¥Entry{gtu}{cidgoth-h} {Identity-H} {AJ16}%
¥Entry{gtu}{cidgoth-v} {Identity-V} {AJ16,V}%
¥Entry{gtu}{hkb} {H} {Switch}%
¥Entry{gtu}{hkbv} {V} {Switch,V}%
}
¥pxcz@mapentry{OTF}{%
¥Entry{mnl}{otf-ujml-h} {UniJIS-UTF16-H} {Uni,90,FWid}%
¥Entry{mnl}{otf-ujml-v} {UniJIS-UTF16-V} {Uni,90,FWid,V}%
¥Entry{mnl}{otf-cjml-h} {Identity-H} {AJ16}%
¥Entry{mnl}{otf-cjml-v} {Identity-V} {AJ16,V}%
¥Entry{mnl}{hminl-h} {H} {90}%
¥Entry{mnl}{hminl-v} {V} {90,V}%
¥Entry{mnl}{otf-ujmln-h} {UniJIS2004-UTF16-H} {Uni,04,FWid}%
¥Entry{mnl}{otf-ujmln-v} {UniJIS2004-UTF16-V} {Uni,04,FWid,V}%
¥Entry{mnl}{hminln-h} {H} {}%
¥Entry{mnl}{hminln-v} {V} {V}%
¥Entry{mnr}{otf-ujmr-h} {UniJIS-UTF16-H} {Uni,90,FWid}%
¥Entry{mnr}{otf-ujmr-v} {UniJIS-UTF16-V} {Uni,90,FWid,V}%
¥Entry{mnr}{otf-cjmr-h} {Identity-H} {AJ16}%
¥Entry{mnr}{otf-cjmr-v} {Identity-V} {AJ16,V}%
¥Entry{mnr}{hminr-h} {H} {90}%
¥Entry{mnr}{hminr-v} {V} {90,V}%
¥Entry{mnr}{otf-ujmrn-h} {UniJIS2004-UTF16-H} {Uni,04,FWid}%
¥Entry{mnr}{otf-ujmrn-v} {UniJIS2004-UTF16-V} {Uni,04,FWid,V}%
¥Entry{mnr}{hminrn-h} {H} {}%
¥Entry{mnr}{hminrn-v} {V} {V}%
¥Entry{mnb}{otf-ujmb-h} {UniJIS-UTF16-H} {Uni,90,FWid}%
¥Entry{mnb}{otf-ujmb-v} {UniJIS-UTF16-V} {Uni,90,FWid,V}%
¥Entry{mnb}{otf-cjmb-h} {Identity-H} {AJ16}%
¥Entry{mnb}{otf-cjmb-v} {Identity-V} {AJ16,V}%
¥Entry{mnb}{hminb-h} {H} {90}%
¥Entry{mnb}{hminb-v} {V} {90,V}%
¥Entry{mnb}{otf-ujmbn-h} {UniJIS2004-UTF16-H} {Uni,04,FWid}%
¥Entry{mnb}{otf-ujmbn-v} {UniJIS2004-UTF16-V} {Uni,04,FWid,V}%
¥Entry{mnb}{hminbn-h} {H} {}%
¥Entry{mnb}{hminbn-v} {V} {V}%
¥Entry{gtr}{otf-ujgr-h} {UniJIS-UTF16-H} {Uni,90,FWid}%
¥Entry{gtr}{otf-ujgr-v} {UniJIS-UTF16-V} {Uni,90,FWid,V}%
¥Entry{gtr}{otf-cjgr-h} {Identity-H} {AJ16}%
¥Entry{gtr}{otf-cjgr-v} {Identity-V} {AJ16,V}%
¥Entry{gtr}{hgothr-h} {H} {90}%
¥Entry{gtr}{hgothr-v} {V} {90,V}%
¥Entry{gtr}{otf-ujgrn-h} {UniJIS2004-UTF16-H} {Uni,04,FWid}%
¥Entry{gtr}{otf-ujgrn-v} {UniJIS2004-UTF16-V} {Uni,04,FWid,V}%
¥Entry{gtr}{hgothrn-h} {H} {}%
¥Entry{gtr}{hgothrn-v} {V} {V}%
¥Entry{gtb}{otf-ujgb-h} {UniJIS-UTF16-H} {Uni,90,FWid}%
¥Entry{gtb}{otf-ujgb-v} {UniJIS-UTF16-V} {Uni,90,FWid,V}%
¥Entry{gtb}{otf-cjgb-h} {Identity-H} {AJ16}%
¥Entry{gtb}{otf-cjgb-v} {Identity-V} {AJ16,V}%
¥Entry{gtb}{hgothb-h} {H} {90}%
¥Entry{gtb}{hgothb-v} {V} {90,V}%
¥Entry{gtb}{otf-ujgbn-h} {UniJIS2004-UTF16-H} {Uni,04,FWid}%
¥Entry{gtb}{otf-ujgbn-v} {UniJIS2004-UTF16-V} {Uni,04,FWid,V}%
¥Entry{gtb}{hgothbn-h} {H} {}%
¥Entry{gtb}{hgothbn-v} {V} {V}%
¥Entry{gtx}{otf-ujge-h} {UniJIS-UTF16-H} {Uni,90,FWid}%
¥Entry{gtx}{otf-ujge-v} {UniJIS-UTF16-V} {Uni,90,FWid,V}%
¥Entry{gtx}{otf-cjge-h} {Identity-H} {AJ16}%
¥Entry{gtx}{otf-cjge-v} {Identity-V} {AJ16,V}%
¥Entry{gtx}{hgotheb-h} {H} {90}%
¥Entry{gtx}{hgotheb-v} {V} {90,V}%
¥Entry{gtx}{otf-ujgen-h} {UniJIS2004-UTF16-H} {Uni,04,FWid}%
¥Entry{gtx}{otf-ujgen-v} {UniJIS2004-UTF16-V} {Uni,04,FWid,V}%
¥Entry{gtx}{hgothebn-h} {H} {}%
¥Entry{gtx}{hgothebn-v} {V} {V}%
¥Entry{mgr}{otf-ujmgr-h} {UniJIS-UTF16-H} {Uni,90,FWid}%
¥Entry{mgr}{otf-ujmgr-v} {UniJIS-UTF16-V} {Uni,90,FWid,V}%
¥Entry{mgr}{otf-cjmgr-h} {Identity-H} {AJ16}%
¥Entry{mgr}{otf-cjmgr-v} {Identity-V} {AJ16,V}%
¥Entry{mgr}{hmgothr-h} {H} {90}%
¥Entry{mgr}{hmgothr-v} {V} {90,V}%
¥Entry{mgr}{otf-ujmgrn-h} {UniJIS2004-UTF16-H} {Uni,04,FWid}%
¥Entry{mgr}{otf-ujmgrn-v} {UniJIS2004-UTF16-V} {Uni,04,FWid,V}%
¥Entry{mgr}{hmgothrn-h} {H} {}%
¥Entry{mgr}{hmgothrn-v} {V} {V}%
%
¥ifpxcz@otf@multi
¥Entry{kom}{otf-ukmr-h} {UniKS-UTF16-H} {Uni,FWid}%
¥Entry{kom}{otf-ukmr-v} {UniKS-UTF16-V} {Uni,FWid,V}%
¥Entry{kom}{otf-ckmr-h} {Identity-H} {AK12}%
¥Entry{kom}{otf-ckmr-v} {Identity-V} {AK12,V}%
¥Entry{kog}{otf-ukgr-h} {UniKS-UTF16-H} {Uni,FWid}%
¥Entry{kog}{otf-ukgr-v} {UniKS-UTF16-V} {Uni,FWid,V}%
¥Entry{kog}{otf-ckgr-h} {Identity-H} {AK12}%
¥Entry{kog}{otf-ckgr-v} {Identity-V} {AK12,V}%
¥Entry{scm}{otf-ucmr-h} {UniGB-UTF16-H} {Uni,FWid}%
¥Entry{scm}{otf-ucmr-v} {UniGB-UTF16-V} {Uni,FWid,V}%
¥Entry{scm}{otf-ccmr-h} {Identity-H} {AG14}%
¥Entry{scm}{otf-ccmr-v} {Identity-V} {AG14,V}%
¥Entry{scg}{otf-ucgr-h} {UniGB-UTF16-H} {Uni,FWid}%
¥Entry{scg}{otf-ucgr-v} {UniGB-UTF16-V} {Uni,FWid,V}%
¥Entry{scg}{otf-ccgr-h} {Identity-H} {AG14}%
¥Entry{scg}{otf-ccgr-v} {Identity-V} {AG14,V}%
¥Entry{tcm}{otf-utmr-h} {UniCNS-UTF16-H} {Uni,FWid}%
¥Entry{tcm}{otf-utmr-v} {UniCNS-UTF16-V} {Uni,FWid,V}%
¥Entry{tcm}{otf-ctmr-h} {Identity-H} {AC14}%
¥Entry{tcm}{otf-ctmr-v} {Identity-V} {AC14,V}%
¥Entry{tcg}{otf-utgr-h} {UniCNS-UTF16-H} {Uni,FWid}%
¥Entry{tcg}{otf-utgr-v} {UniCNS-UTF16-V} {Uni,FWid,V}%
¥Entry{tcg}{otf-ctgr-h} {Identity-H} {AC14}%
¥Entry{tcg}{otf-ctgr-v} {Identity-V} {AC14,V}%
¥fi
}
¥pxcz@mapentry{UPSTD}{%
¥Entry{mnr}{uprml-h} {UniJIS-UTF16-H} {Uni*,Switch}%
¥Entry{mnr}{uprml-v} {UniJIS-UTF16-V} {Uni*,Switch,V}%
¥Entry{mnr}{uprml-hq} {UniJIS-UCS2-H} {Uni*,FWid}%
¥Entry{gtu}{upgbm-h} {UniJIS-UTF16-H} {Uni*,Switch}%
¥Entry{gtu}{upgbm-v} {UniJIS-UTF16-V} {Uni*,Switch,V}%
¥Entry{gtu}{upgbm-hq} {UniJIS-UCS2-H} {Uni*,FWid}%
¥Entry{mnr}{urml} {UniJIS-UTF16-H} {Uni*,Switch}%
¥Entry{mnr}{urmlv} {UniJIS-UTF16-V} {Uni*,Switch,V}%
¥Entry{gtu}{ugbm} {UniJIS-UTF16-H} {Uni*,Switch}%
¥Entry{gtu}{ugbmv} {UniJIS-UTF16-V} {Uni*,Switch,V}%
%
¥Entry{kom}{uphysmjm-h} {UniKS-UTF16-H} {Uni*}%
¥Entry{kom}{uphysmjm-v} {UniKS-UTF16-V} {Uni*,V}%
¥Entry{kog}{uphygt-h} {UniKS-UTF16-H} {Uni*}%
¥Entry{kog}{uphygt-v} {UniKS-UTF16-V} {Uni*,V}%
¥Entry{scm}{upstsl-h} {UniGB-UTF16-H} {Uni*}%
¥Entry{scm}{upstsl-v} {UniGB-UTF16-V} {Uni*,V}%
¥Entry{scg}{upstht-h} {UniGB-UTF16-H} {Uni*}%
¥Entry{scg}{upstht-v} {UniGB-UTF16-V} {Uni*,V}%
¥Entry{tcm}{upmsl-h} {UniCNS-UTF16-H} {Uni*}%
¥Entry{tcm}{upmsl-v} {UniCNS-UTF16-V} {Uni*,V}%
¥Entry{tcg}{upmhm-h} {UniCNS-UTF16-H} {Uni*}%
¥Entry{tcg}{upmhm-v} {UniCNS-UTF16-V} {Uni*,V}%
}
¥pxcz@mapentry{UPOTF}{%
¥Entry{mnl}{uphminl-h} {UniJIS-UTF16-H} {Uni*,90,Exp}%
¥Entry{mnl}{uphminl-v} {UniJIS-UTF16-V} {Uni*,90,V,Exp}%
¥Entry{mnl}{uphminln-h} {UniJIS2004-UTF16-H} {Uni*,04,Exp}%
¥Entry{mnl}{uphminln-v} {UniJIS2004-UTF16-V} {Uni*,04,V,Exp}%
¥Entry{mnr}{uphminr-h} {UniJIS-UTF16-H} {Uni*,90,Exp}%
¥Entry{mnr}{uphminr-v} {UniJIS-UTF16-V} {Uni*,90,V,Exp}%
¥Entry{mnr}{uphminrn-h} {UniJIS2004-UTF16-H} {Uni*,04,Exp}%
¥Entry{mnr}{uphminrn-v} {UniJIS2004-UTF16-V} {Uni*,04,V,Exp}%
¥Entry{mnb}{uphminb-h} {UniJIS-UTF16-H} {Uni*,90,Exp}%
¥Entry{mnb}{uphminb-v} {UniJIS-UTF16-V} {Uni*,90,V,Exp}%
¥Entry{mnb}{uphminbn-h} {UniJIS2004-UTF16-H} {Uni*,04,Exp}%
¥Entry{mnb}{uphminbn-v} {UniJIS2004-UTF16-V} {Uni*,04,V,Exp}%
¥Entry{gtr}{uphgothr-h} {UniJIS-UTF16-H} {Uni*,90,Exp}%
¥Entry{gtr}{uphgothr-v} {UniJIS-UTF16-V} {Uni*,90,V,Exp}%
¥Entry{gtr}{uphgothrn-h} {UniJIS2004-UTF16-H} {Uni*,04,Exp}%
¥Entry{gtr}{uphgothrn-v} {UniJIS2004-UTF16-V} {Uni*,04,V,Exp}%
¥Entry{gtb}{uphgothb-h} {UniJIS-UTF16-H} {Uni*,90,Exp}%
¥Entry{gtb}{uphgothb-v} {UniJIS-UTF16-V} {Uni*,90,V,Exp}%
¥Entry{gtb}{uphgothbn-h} {UniJIS2004-UTF16-H} {Uni*,04,Exp}%
¥Entry{gtb}{uphgothbn-v} {UniJIS2004-UTF16-V} {Uni*,04,V,Exp}%
¥Entry{gtx}{uphgotheb-h} {UniJIS-UTF16-H} {Uni*,90,Exp}%
¥Entry{gtx}{uphgotheb-v} {UniJIS-UTF16-V} {Uni*,90,V,Exp}%
¥Entry{gtx}{uphgothebn-h} {UniJIS2004-UTF16-H} {Uni*,04,Exp}%
¥Entry{gtx}{uphgothebn-v} {UniJIS2004-UTF16-V} {Uni*,04,V,Exp}%
¥Entry{mgr}{uphmgothr-h} {UniJIS-UTF16-H} {Uni*,90,Exp}%
¥Entry{mgr}{uphmgothr-v} {UniJIS-UTF16-V} {Uni*,90,V,Exp}%
¥Entry{mgr}{uphmgothrn-h} {UniJIS2004-UTF16-H} {Uni*,04,Exp}%
¥Entry{mgr}{uphmgothrn-v} {UniJIS2004-UTF16-V} {Uni*,04,V,Exp}%
}
¥pxcz@mapentry{GID}{%
¥Entry{mnl}{zur-gjml-h} {Identity-H} {I}%
¥Entry{mnl}{zur-gjml-v} {Identity-V} {I,V}%
¥Entry{mnr}{zur-gjmr-h} {Identity-H} {I}%
¥Entry{mnr}{zur-gjmr-v} {Identity-V} {I,V}%
¥Entry{mnb}{zur-gjmb-h} {Identity-H} {I}%
¥Entry{mnb}{zur-gjmb-v} {Identity-V} {I,V}%
¥Entry{gtr}{zur-gjgr-h} {Identity-H} {I}%
¥Entry{gtr}{zur-gjgr-v} {Identity-V} {I,V}%
¥Entry{gtb}{zur-gjgb-h} {Identity-H} {I}%
¥Entry{gtb}{zur-gjgb-v} {Identity-V} {I,V}%
¥Entry{gtx}{zur-gjge-h} {Identity-H} {I}%
¥Entry{gtx}{zur-gjge-v} {Identity-V} {I,V}%
¥Entry{mgr}{zur-gjmgr-h} {Identity-H} {I}%
¥Entry{mgr}{zur-gjmgr-v} {Identity-V} {I,V}%
}
¥pxcz@mapentry{EXPERT}{%
¥Entry{mnl}{zur-rjml-h} {unicode} {Ruby}%
¥Entry{mnl}{zur-rjml-v} {unicode} {V,Ruby}%
¥Entry{mnr}{zur-rjmr-h} {unicode} {Ruby}%
¥Entry{mnr}{zur-rjmr-v} {unicode} {V,Ruby}%
¥Entry{mnb}{zur-rjmb-h} {unicode} {Ruby}%
¥Entry{mnb}{zur-rjmb-v} {unicode} {V,Ruby}%
¥Entry{gtr}{zur-rjgr-h} {unicode} {Ruby}%
¥Entry{gtr}{zur-rjgr-v} {unicode} {V,Ruby}%
¥Entry{gtb}{zur-rjgb-h} {unicode} {Ruby}%
¥Entry{gtb}{zur-rjgb-v} {unicode} {V,Ruby}%
¥Entry{gtx}{zur-rjge-h} {unicode} {Ruby}%
¥Entry{gtx}{zur-rjge-v} {unicode} {V,Ruby}%
¥Entry{mgr}{zur-rjmgr-h} {unicode} {Ruby}%
¥Entry{mgr}{zur-rjmgr-v} {unicode} {V,Ruby}%
}
¥pxcz@mapentry{PXOTF}{%
}

% user-defined map
¥pxcz@mapentry{USR}{%
¥pxcz@user@map
}

%--------------------------------------- '¥diruni'

%% variables
¥newif¥ifpxcz@diruni@ok
¥let¥pxcz@otf@weight¥relax

%% check if ¥diruni is available
¥ifpxcz@uptex
¥@ifpackageloaded{otf}{% directunicode needs otf
¥ifnum¥pxcz@directunicode>¥z@ ¥pxcz@diruni@oktrue ¥fi
}{%else
¥ifnum¥pxcz@directunicode<¥pxcz@directunicode@all¥else
¥pxcz@diruni@oktrue % directunicode* does not need otf
¥AtBeginDocument{% to laod otf later causes inconsistency
¥@ifpackageloaded{otf}{¥pxcz@diruni@okfalse}{}}%
¥fi
}
¥fi

%%<*> ¥diruni
¥@ifdefinable{¥diruni}{%
¥DeclareRobustCommand*{¥diruni}{%
¥not@math@alphabet¥diruni¥relax
¥ifx¥cy@encoding¥pxcz@JYn % if in standard Japanese encoding
¥expandafter¥let¥csname UTF ¥endcsname¥pxcz@du@UTF
¥kanjishape{diruni}¥selectfont
¥fi
}}

%%<*> ¥textdiruni{}
¥@ifdefinable{¥textdiruni}{%
¥DeclareRobustCommand*{¥textdiruni}[1]{%
¥relax¥ifmmode¥hbox¥fi{¥diruni#1}%
}}

%% ¥pxcz@du@UTF
¥def¥pxcz@du@UTF#1{%
¥kchar"#1¥relax}

%% redefinition in PDF-strings
¥providecommand*¥pdfstringdefPreHook{}
¥g@addto@macro¥pdfstringdefPreHook{%
¥let¥diruni¥@empty
¥let¥textdiruni¥@firstofone
}

¥ifpxcz@diruni@ok %---- <*diruni-ok>
%% ¥pxcz@otf@weight: otf weight mode
% watch out for priority...
¥@ifpackagewith{otf}{deluxe}{%
¥let¥pxcz@otf@weight=d
}{¥@ifpackagewith{otf}{bold}{%
¥let¥pxcz@otf@weight=b
}{¥@ifpackagewith{otf}{expert}{%
¥let¥pxcz@otf@weight=r % 'expert' cancels 'noreplace'
}{¥@ifpackagewith{otf}{noreplace}{%
¥let¥pxcz@otf@weight=n
}{¥@ifpackageloaded{otf}{%
¥let¥pxcz@otf@weight=r
}{%else
¥let¥pxcz@otf@weight=n
}}}}}
%% ¥pxcz@otf@mmivjis: otf jis2004
¥@ifpackagewith{otf}{jis2004}{%
¥let¥pxcz@otf@mmivjis=t%
}{%else
¥let¥pxcz@otf@mmivjis=f%
}
%% ¥pxcz@du@scale
¥let¥pxcz@du@scale¥utf@sc@le
¥ifx¥pxcz@du@scale¥@undefined
¥let¥pxcz@du@scale¥Cjascale
¥fi
¥ifx¥pxcz@du@scale¥@undefined
¥edef¥pxcz@du@scale{¥ifx¥jsc@JYn¥@undefined 0.962216¥else 0.924715¥fi}%
¥fi

%% ¥pxcz@du@decl@shape{}{}{}{}
¥pxcz@onlypreamble@def¥pxcz@du@decl@shape#1#2#3#4#5{%
¥DeclareFontShape{JY2}{#1}{#2}{diruni}{<->%
¥pxcz@du@shape@spec{#3}{#4}{#5}{h}}{}%
¥DeclareFontShape{JT2}{#1}{#2}{diruni}{<->%
¥pxcz@du@shape@spec{#3}{#4}{#5}{v}}{}}
¥pxcz@onlypreamble@def¥pxcz@du@shape@spec#1#2#3#4{%
¥if#1t%
s*[¥pxcz@du@scale]#2¥if t¥pxcz@otf@mmivjis#3¥fi-#4%
¥else#2¥fi}

¥if d¥pxcz@otf@weight % deluxe
¥pxcz@du@decl@shape{hmc}{l}t{otf-ujml}{n}%
¥pxcz@du@decl@shape{hmc}{m}t{otf-ujmr}{n}%
¥pxcz@du@decl@shape{hmc}{bx}t{otf-ujmb}{n}%
¥pxcz@du@decl@shape{hgt}{m}t{otf-ujgr}{n}%
¥pxcz@du@decl@shape{hgt}{bx}t{otf-ujgb}{n}%
¥pxcz@du@decl@shape{hgt}{eb}t{otf-ujge}{n}%
¥pxcz@du@decl@shape{mg}{m}t{otf-ujmgr}{n}%
¥else¥if b¥pxcz@otf@weight % bold
¥pxcz@du@decl@shape{hmc}{m}t{otf-ujmr}{n}%
¥pxcz@du@decl@shape{hmc}{bx}f{ssub*hgt/m/diruni}{}%
¥pxcz@du@decl@shape{hgt}{m}t{otf-ujgb}{n}%
¥pxcz@du@decl@shape{hgt}{bx}f{ssub*hgt/m/diruni}{}%
¥else¥if r¥pxcz@otf@weight % default
¥pxcz@du@decl@shape{hmc}{m}t{otf-ujmr}{n}%
¥pxcz@du@decl@shape{hmc}{bx}f{ssub*hgt/m/diruni}{}%
¥pxcz@du@decl@shape{hgt}{m}t{otf-ujgr}{n}%
¥pxcz@du@decl@shape{hgt}{bx}f{ssub*hgt/m/diruni}{}%
¥else % noreplace
¥ifnum¥pxcz@directunicode>¥@ne % (directunicode*)
¥pxcz@du@decl@shape{mc}{m}t{uprml}{}%
¥pxcz@du@decl@shape{mc}{bx}f{ssub*gt/m/diruni}{}%
¥pxcz@du@decl@shape{gt}{m}t{upgbm}{}%
¥pxcz@du@decl@shape{gt}{bx}f{ssub*gt/m/diruni}{}%
¥else % (directunicode)
¥pxcz@du@decl@shape{mc}{m}t{otf-ujmr}{n}%
¥pxcz@du@decl@shape{mc}{bx}f{ssub*gt/m/diruni}{}%
¥pxcz@du@decl@shape{gt}{m}t{otf-ujgr}{n}%
¥pxcz@du@decl@shape{gt}{bx}f{ssub*gt/m/diruni}{}%
¥fi
¥fi¥fi¥fi

¥AtBeginDocument{%
¥def¥pxcz@do#1#2#3{%
¥DeclareFontShape{#1}{#2}{#3}{diruni}{<->ssub*#2/#3/n}{}}%
¥@for¥pxcz@tmpa:={¥rmdefault,¥sfdefault,¥ttdefault}¥do{%
¥pxcz@force@load@font@fam¥pxcz@tmpa
¥@for¥pxcz@tmpb:={m,bx}¥do{%
¥edef¥pxcz@tmpb{{¥f@encoding}{¥pxcz@tmpa}{¥pxcz@tmpb}}%
¥expandafter¥pxcz@do¥pxcz@tmpb}}%
}
¥pxcz@onlypreamble@def¥pxcz@force@load@font@fam#1{%
¥begingroup
¥edef¥f@family{#1}¥def¥f@series{m}¥def¥f@shape{n}%
¥xdef¥font@name{¥csname¥curr@fontshape/¥f@size¥endcsname}%
¥let¥extract@font¥relax
¥pickup@font
¥endgroup
}

¥ifpxcz@glyphid %---- <*glyphid>
%%<*> ¥gid{}
¥DeclareRobustCommand*{¥gid}[1]{%
¥begingroup
¥kanjishape{dirgid}¥selectfont
¥kchar#1¥relax
¥endgroup}
¥def¥pxcz@hy@gid#1{?}
¥g@addto@macro¥pdfstringdefPreHook{%
¥let¥gid¥pxcz@hy@gid
}

%% ¥pxcz@dg@decl@shape{}{}{}
¥pxcz@onlypreamble@def¥pxcz@dg@decl@shape#1#2#3#4{%
¥DeclareFontShape{JY2}{#1}{#2}{dirgid}{<->%
¥pxcz@dg@shape@spec{#3}{#4}{h}}{}%
¥DeclareFontShape{JT2}{#1}{#2}{dirgid}{<->%
¥pxcz@dg@shape@spec{#3}{#4}{v}}{}}
¥pxcz@onlypreamble@def¥pxcz@dg@shape@spec#1#2#3{%
¥if#1t%
s*[¥pxcz@du@scale]#2-#3%
¥else#2¥fi}

¥if d¥pxcz@otf@weight % deluxe
¥pxcz@dg@decl@shape{hmc}{l}t{zur-gjml}%
¥pxcz@dg@decl@shape{hmc}{m}t{zur-gjmr}%
¥pxcz@dg@decl@shape{hmc}{bx}t{zur-gjmb}%
¥pxcz@dg@decl@shape{hgt}{m}t{zur-gjgr}%
¥pxcz@dg@decl@shape{hgt}{bx}t{zur-gjgb}%
¥pxcz@dg@decl@shape{hgt}{eb}t{zur-gjge}%
¥pxcz@dg@decl@shape{mg}{m}t{zur-gjmgr}%
¥else¥if b¥pxcz@otf@weight % bold
¥pxcz@dg@decl@shape{hmc}{m}t{zur-gjmr}%
¥pxcz@dg@decl@shape{hmc}{bx}f{ssub*hgt/m/dirgid}{}%
¥pxcz@dg@decl@shape{hgt}{m}t{zur-gjgb}%
¥pxcz@dg@decl@shape{hgt}{bx}f{ssub*hgt/m/dirgid}{}%
¥else¥if r¥pxcz@otf@weight % default
¥pxcz@dg@decl@shape{hmc}{m}t{zur-gjmr}%
¥pxcz@dg@decl@shape{hmc}{bx}f{ssub*hgt/m/dirgid}{}%
¥pxcz@dg@decl@shape{hgt}{m}t{zur-gjgr}%
¥pxcz@dg@decl@shape{hgt}{bx}f{ssub*hgt/m/dirgid}{}%
¥else % noreplace
¥pxcz@dg@decl@shape{mc}{m}t{zur-gjmr}%
¥pxcz@dg@decl@shape{mc}{bx}f{ssub*gt/m/dirgid}{}%
¥pxcz@dg@decl@shape{gt}{m}t{zur-gjgr}%
¥pxcz@dg@decl@shape{gt}{bx}f{ssub*gt/m/dirgid}{}%
¥fi¥fi¥fi

¥fi %----
¥fi %----
%% ¥pxcz@err@diruni
¥ifcase¥pxcz@directunicode
¥def¥pxcz@errhelp@diruni{%
You must use upLaTeX and load pxchfon with 'directunicode(*)' option.}
¥else
¥def¥pxcz@errhelp@diruni{%
You must use upLaTeX and load pxchfon after 'otf' package.}
¥fi
¥def¥pxcz@err@diruni{%
¥PackageError¥pxcz@pkgname
{Command '¥string¥diruni' not available}%
{¥pxcz@errhelp@diruni¥MessageBreak¥@ehc}%
¥global¥let¥pxcz@err@diruni¥relax}
¥AtBeginDocument{%
¥ifpxcz@diruni@ok
¥let¥pxcz@err@diruni¥relax
¥let¥pxcz@errhelp@diruni¥relax
¥else
¥let¥diruni¥pxcz@err@diruni
¥fi}

%--------------------------------------- 'alphabet' option

%% check for textcomp
¥newif¥ifpxcz@textcomp
¥ifx¥DeclareEncodingSubset¥@undefined¥else
¥expandafter¥ifx¥csname T@TS1¥endcsname¥relax¥else
¥pxcz@textcomptrue
¥fi¥fi

%% ¥pxcz@afont@enc@list
¥def¥pxcz@afont@enc@list{OT1,T1}
¥ifpxcz@textcomp ¥g@addto@macro¥pxcz@afont@enc@list{,TS1}¥fi
%% ¥pxcz@decl@family{}
¥pxcz@onlypreamble@def¥pxcz@decl@family#1{%
¥ifpxcz@textcomp ¥DeclareEncodingSubset{TS1}{#1}{3}¥fi
¥@for¥pxcz@x:=¥pxcz@afont@enc@list¥do{%
¥DeclareFontFamily{¥pxcz@x}{#1}{}}}
%% ¥pxcz@decl@shape{}{}{}
¥pxcz@onlypreamble@def¥pxcz@decl@shape#1#2#3#4{%
¥if s#3%
¥@for¥pxcz@x:=¥pxcz@afont@enc@list¥do{%
¥DeclareFontShape{¥pxcz@x}{#1}{#2}{n}{<->ssub*#4}{}}%
¥else
¥DeclareFontShape{OT1}{#1}{#2}{n}{<->#4-l5j}{}%
¥DeclareFontShape {T1}{#1}{#2}{n}{<->#4-t1}{}%
¥ifpxcz@textcomp
¥DeclareFontShape{TS1}{#1}{#2}{n}{<->#4-ts1}{}%
¥fi
¥fi
¥@for¥pxcz@x:=¥pxcz@afont@enc@list¥do{%
¥DeclareFontShape{¥pxcz@x}{#1}{#2}{it}{<->ssub*#1/#2/n}{}%
¥DeclareFontShape{¥pxcz@x}{#1}{#2}{sl}{<->ssub*#1/#2/n}{}}}

¥ifpxcz@alphafont %---- <*alphabet> ¥ifpxcz@otf@deluxe %---- <*otfdx> : otf with deluxe option
% define families cfjar & cfjas
¥pxcz@decl@family{cfjar}%
¥pxcz@decl@shape{cfjar}{l}n{cfjar-l}%
¥pxcz@decl@shape{cfjar}{m}n{cfjar-r}%
¥pxcz@decl@shape{cfjar}{bx}n{cfjar-b}%
¥pxcz@decl@family{cfjas}%
¥pxcz@decl@shape{cfjas}{m}n{cfjas-r}%
¥pxcz@decl@shape{cfjas}{bx}n{cfjas-b}%
¥pxcz@decl@shape{cfjas}{eb}n{cfjas-x}%
¥pxcz@decl@family{cfjam}%
¥pxcz@decl@shape{cfjam}{m}n{cfjam-r}%
% redefine ¥ltseries & ¥ebseries so they affect roman font
¥let¥ltseries¥relax ¥let¥ebseries¥relax
¥DeclareRobustCommand¥ltseries{%
¥not@math@alphabet¥ltseries¥relax
¥fontseries¥ltdefault¥selectfont}%
¥DeclareRobustCommand¥ebseries{%
¥not@math@alphabet¥ebseries¥relax
¥fontseries¥ebdefault¥selectfont}%
¥else %---- <*!otfdx> ¥pxcz@decl@family{cfjar}%
¥pxcz@decl@shape{cfjar}{m}n{cfjar-r}%
¥pxcz@decl@shape{cfjar}{bx}s{cfjas/m/n}%
¥pxcz@decl@family{cfjas}%
¥pxcz@decl@shape{cfjas}{m}n{cfjas-r}%
¥pxcz@decl@shape{cfjas}{bx}s{cfjas/m/n}%
¥pxcz@onlypreamble@def¥pxcz@err@dxotf#1{%
¥PackageError¥pxcz@pkgname
{Loaded before '#1' with 'deluxe'}%
{This package must be loaded after '#1' with 'deluxe' option
when using both.}}
¥g@addto@macro¥pxcz@check@extra{%
¥expandafter¥let¥expandafter¥pxcz@x¥csname pxcz@FS/mnr¥endcsname
¥ifx¥pxcz@x¥@empty¥else
% if mnr is replaced but gtr is not then ...
¥expandafter¥ifx¥csname pxcz@FS/gtr¥endcsname¥@empty
{¥expandafter¥let¥csname pxcz@FS/gtr¥endcsname¥pxcz@x
¥pxcz@Entry{gtr}{r-cfjas-r-@PXcjk0@}{unicode}{HWid}}%
¥fi¥fi
¥@ifpackagewith{otf}{deluxe}{¥pxcz@err@dxotf{otf}}{}%
¥@ifpackagewith{pxotf}{deluxe}{¥pxcz@err@dxotf{pxotf}}{}%
}
¥fi %---- ¥fi %----
%--------------------------------------- begin-document hook

%% variables
¥let¥pxcz@afont@enc¥relax

%% ¥pxcz@mgfamily@hook
¥def¥pxcz@mgfamily@hook{¥romanfamily{cfjam}}

%% ¥pxcz@set@page@hook{}
¥ifpxcz@old@hook@system %----
¥ifpxcz@everypage
¥pxcz@onlypreamble@def¥pxcz@set@page@hook#1{%
¥AtBeginShipout{¥setbox¥AtBeginShipoutBox=¥vbox{%
¥baselineskip¥z@skip¥lineskip¥z@skip¥lineskiplimit¥z@
#1¥copy¥AtBeginShipoutBox}}}
¥else
¥pxcz@onlypreamble@def¥pxcz@set@page@hook#1{%
% this is ¥AtBeginDvi with forcing of yoko-dir added
¥global¥setbox¥@begindvibox¥vbox{¥yoko¥unvbox¥@begindvibox#1}}
¥fi
¥else %----
¥ifpxcz@everypage
¥pxcz@onlypreamble@def¥pxcz@set@page@hook#1{%
¥AddToHook{shipout/background}{¥hb@xt@¥z@{#1¥hss}}}
¥else
¥pxcz@onlypreamble@def¥pxcz@set@page@hook#1{%
¥AtBeginDvi{#1}}
¥fi
¥fi %----

%% ¥pxcz@check@alldefined{,...}
¥pxcz@onlypreamble@def¥pxcz@check@alldefined#1{%
¥pxcz@oktrue
¥@for¥pxcz@x:={#1}¥do{%
¥expandafter¥ifx¥csname pxcz@FS/¥pxcz@x¥endcsname¥@empty
¥pxcz@okfalse ¥fi}}

%% ¥pxcz@decl@relfont{}{}{,...}
¥pxcz@onlypreamble@def¥pxcz@decl@relfont#1#2#3{%
¥@for¥pxcz@x:={#3}¥do{%
¥expandafter¥ifx¥csname¥k@encoding/#1/¥pxcz@x/n¥endcsname¥relax¥else
¥edef¥pxcz@tmpa{¥noexpand¥DeclareRelationFont
{¥k@encoding}{#1}{¥pxcz@x}{}{¥pxcz@afont@enc}{#2}{¥pxcz@x}{}%
}¥pxcz@tmpa
¥fi}%
¥PackageInfo¥pxcz@pkgname
{Relation font set for ¥k@encoding/#1}}

%% ¥pxcz@check@afont@enc
¥pxcz@onlypreamble@def¥pxcz@check@afont@enc{%
¥pxcz@oktrue % OT1 is always okay
¥expandafter¥ifx¥csname¥pxcz@afont@enc+cfjar¥endcsname¥relax
¥pxcz@okfalse ¥fi
% if not okay, use OT1 instead
¥ifpxcz@ok¥else ¥def¥pxcz@afont@enc{OT1}¥fi}

%% ¥pxcz@set@bfdefault@to@bx{}
¥pxcz@onlypreamble@let¥pxcz@set@bfdefault@to@bx¥@gobble
¥ifx¥DeclareFontSeriesDefault¥@undefined¥else
¥def¥pxcz@set@bfdefault@to@bx#1{%
¥DeclareFontSeriesDefault[#1]{bf}{bx}}
¥fi

%% the begin-document hook
¥pxcz@onlypreamble@def¥pxcz@doc@hook{%
¥pxcz@user@hook
¥ifx¥pxcz@file@preset¥relax¥else
¥pxcz@do@file@preset
¥fi
¥ifx t¥pxcz@strict@csi
¥pxcz@inspect@flavor@all
¥fi
¥ifpxcz@alpha % 'alphabet'
¥pxcz@check@alldefined{mnl,mnr,mnb}¥ifpxcz@ok
¥renewcommand¥rmdefault{cfjar}%
¥pxcz@set@bfdefault@to@bx{rm}%
¥fi
¥pxcz@check@alldefined{gtr,gtb,gtx}¥ifpxcz@ok
¥renewcommand¥sfdefault{cfjas}%
¥pxcz@set@bfdefault@to@bx{sf}%
¥fi
% attach hook to ¥mgfamily if mgr font is defined
¥pxcz@check@alldefined{mgr}¥ifpxcz@ok¥ifpxcz@otf@deluxe
¥begingroup
¥def¥pxcz@x##1{¥toks@¥expandafter{##1}%
¥xdef##1{¥noexpand¥pxcz@mgfamily@hook¥the¥toks@}%
}¥expandafter¥pxcz@x¥csname mgfamily ¥endcsname
¥endgroup
¥fi¥fi
% decide alphabet font encoding
¥edef¥pxcz@afont@enc{¥encodingdefault}%
¥pxcz@check@afont@enc¥ifpxcz@ok¥else
¥PackageWarningNoLine¥pxcz@pkgname
{Default encoding is changed to 'OT1' because%
¥MessageBreak'alphabet' option is in effect}%
¥renewcommand¥encodingdefault{OT1}%
¥fi
¥normalfont
¥pxcz@addtospec{ALPHA}%
¥fi
¥ifpxcz@rel % 'relfont'
¥edef¥pxcz@afont@enc{¥encodingdefault}%
¥pxcz@check@afont@enc
¥pxcz@check@alldefined{mnl,mnr,mnb}%
¥ifpxcz@ok ¥pxcz@decl@relfont¥mcdefault{cfjar}{m,bx,l}¥fi
¥pxcz@check@alldefined{gtr,gtb,gtx}%
¥ifpxcz@ok ¥pxcz@decl@relfont¥gtdefault{cfjas}{m,bx,eb}¥fi
¥pxcz@check@alldefined{mgr}%
¥ifpxcz@ok¥ifpxcz@otf@deluxe
¥pxcz@decl@relfont¥mgdefault{cfjam}{m}%
¥fi¥fi
¥pxcz@addtospec{ALPHA}%
¥fi
¥ifpxcz@uptex¥else
¥pxcz@addtospec{STD}%
¥fi
¥ifnum0¥ifnum¥pxcz@legacycode=¥pxcz@legacycode@replace 1¥fi
¥ifpxcz@uptex 1¥fi >¥z@
¥pxcz@addtospec{UPSTD}%
¥fi
¥ifpxcz@otf
¥@ifpackageloaded{otf}{¥pxcz@otftrue}{¥pxcz@otffalse}%
¥@ifpackageloaded{utf}{¥pxcz@utftrue}{¥pxcz@utffalse}%
¥fi
¥ifpxcz@otf
¥ifnum0¥ifnum¥pxcz@legacycode=¥pxcz@legacycode@replace 1¥fi
¥ifpxcz@uptex 1¥fi >¥z@
¥pxcz@addtospec{UPOTF}%
¥fi
¥pxcz@addtospec{OTF}%
¥fi
¥ifpxcz@glyphid ¥pxcz@addtospec{GID}%
¥fi
¥ifx t¥pxcz@expert ¥pxcz@addtospec{EXPERT}%
¥fi
¥ifpxcz@utf ¥pxcz@addtospec{UTF}%
¥fi
¥@ifpackageloaded{pxotf}{¥pxcz@oktrue}{¥pxcz@okfalse}%
¥@ifpackageloaded{pxfontenc}{¥pxcz@oktrue}{}%
¥ifpxcz@ok ¥pxcz@addtospec{PXOTF}%
¥fi
% warn if some weights are not substituted, and if necessaty
¥ifpxcz@warn@unless@all@defined
¥ifpxcz@otf@deluxe
¥pxcz@check@alldefined{mnl,mnr,mnb,gtr,gtb,gtx,mgr}%
¥else ¥pxcz@check@alldefined{mnr,mnb,gtr,gtb}%
¥fi
¥ifpxcz@ok¥else
¥PackageWarningNoLine¥pxcz@pkgname
{Some font weights are not substituted.¥MessageBreak
So some features of pxchfon might not work¥MessageBreak
properly when applied to such weights}%
¥fi
¥fi
% warn if some weights are not embedded, and if necessaty
¥ifpxcz@warn@unless@all@embedded ¥ifpxcz@noembed@used
¥PackageWarningNoLine¥pxcz@pkgname
{Some font weights have no-embed setting.¥MessageBreak
So some features of pxchfon might not work¥MessageBreak
properly when applied to such weights}%
¥fi¥fi
%
¥pxcz@check@extra
¥pxcz@addtospec{USR}%
¥ifpxcz@enabled
¥pxcz@set@page@hook{¥pxcz@spec}%
¥else¥ifx¥pxcz@spec¥@empty¥else
¥PackageWarningNoLine¥pxcz@pkgname
{Font mapping is disabled, since the driver in use¥MessageBreak
is not dvipdfmx}%
¥fi¥fi
¥ifpxcz@dumpmap
¥pxcz@do@dumpmap
¥fi
¥ifpxcz@dumpmap@tl
¥pxcz@do@dumpmap@tl
¥fi
}
¥AtBeginDocument{¥pxcz@doc@hook}

%--------------------------------------- strict-CSI mode
¥ifx t¥pxcz@strict@csi
% In this section, the e-TeX extension plus ¥pdffiledump and
% ¥pdffilesize is assumed to be available.

%% variables
¥newcount¥pxcz@cntr
¥let¥pxcz@insf@file¥relax
¥let¥pxcz@insf@idx¥relax
¥let¥pxcz@insf@nfont¥relax
¥let¥pxcz@kpse@dir¥relax

%% constants
¥def¥pxcz@insf@@OTTO{"4F54544F }
¥def¥pxcz@insf@@IZ{"00010000 }
¥def¥pxcz@insf@@ttcf{"74746366 }

%% ¥pxcz@insf@read@word{}
% Reads a 32-bit integer from ¥pxcz@insf@file at the given offset,
% and sets the value (or -1 on error) to ¥pxcz@cntr.
¥pxcz@onlypreamble@def¥pxcz@insf@read@word#1{%
¥pxcz@cntr=#1¥relax
¥edef¥pxcz@tmpa{¥pdffiledump offset¥pxcz@cntr length1{¥pxcz@insf@file}}%
¥ifnum"0¥pxcz@tmpa<"80
¥advance¥pxcz@cntr¥@ne
¥edef¥pxcz@tmpb{¥pdffiledump offset¥pxcz@cntr length3{¥pxcz@insf@file}}%
¥ifnum"1¥pxcz@tmpb<"1000000 ¥pxcz@cntr¥m@ne % truncated
¥else ¥pxcz@cntr"¥pxcz@tmpa¥pxcz@tmpb¥relax % the value
¥fi
¥else ¥pxcz@cntr¥m@ne % overflow
¥fi}

%% ¥pxcz@inspect@flavor{}{}
% Sets the result to ¥pxcz@cntr.
% 1=CFF, 0=TTF, <0 if error.
¥pxcz@onlypreamble@def¥pxcz@inspect@flavor#1#2{%
¥edef¥pxcz@insf@file{#1}%
¥mathchardef¥pxcz@insf@idx=#2¥relax
¥pxcz@insf@read@word{0}% outer tag
¥ifnum¥pxcz@cntr=¥pxcz@insf@@ttcf % TTC/OTC
¥pxcz@insf@read@word{8}% font count
¥ifnum¥pxcz@cntr>"7FFF ¥pxcz@cntr¥m@ne ¥fi
¥ifnum¥pxcz@cntr>¥m@ne
¥mathchardef¥pxcz@insf@nfont¥pxcz@cntr
¥@tempcnta¥pxcz@insf@idx ¥multiply¥@tempcnta4
¥advance¥@tempcnta12 ¥pxcz@insf@read@word{¥@tempcnta}% inner tag
¥@tempcnta¥pxcz@cntr
¥fi
¥else % not collection
¥@tempcnta=0 ¥chardef¥pxcz@insf@nfont=1
¥fi
¥ifnum¥pxcz@cntr>¥m@ne % no format error so far
¥ifnum¥pxcz@insf@idx<¥pxcz@insf@nfont
¥pxcz@insf@read@word{¥@tempcnta}%
¥ifnum¥pxcz@cntr=¥m@ne % ERROR: bad format
¥else¥ifnum¥pxcz@cntr=¥pxcz@insf@@OTTO ¥pxcz@cntr¥@ne % CFF-flavor
¥else¥ifnum¥pxcz@cntr=¥pxcz@insf@@IZ ¥pxcz@cntr¥z@ % TTF-flavor
¥else ¥pxcz@cntr-¥thr@@ % ERROR: unknown tag
¥fi¥fi¥fi
¥else ¥pxcz@cntr-¥tw@ % ERROR: bad index
¥fi
%else ERROR: bad format
¥fi}

%% ¥pxcz@kpse@dir@cache
% to spped up ¥pxcz@kpsewhich
¥pxcz@onlypreamble@let¥pxcz@kpse@dir@cache¥@empty

%% ¥pxcz@kpsewhich{}
% Sets to ¥pxcz@kpse@dir the directory where the file is found
% (or ¥relax if not found).
¥pxcz@onlypreamble@def¥pxcz@kpsewhich#1{%
¥edef¥pxcz@tmpa{#1}¥let¥pxcz@kpse@dir¥relax
¥let¥do¥pxcz@kpsewhich@do ¥pxcz@kpse@dir@cache¥relax
¥ifx¥pxcz@kpse@dir¥relax
¥chardef¥pxcz@tmpz=¥endlinechar ¥endlinechar¥m@ne
¥openin¥@inputcheck="|kpsewhich ¥pxcz@tmpa"¥relax
¥unless¥ifeof¥@inputcheck
¥readline¥@inputcheck to¥pxcz@tmpb
¥unless¥ifx¥pxcz@tmpb¥@empty
¥let¥pxcz@kpse@dir¥@empty ¥let¥do¥relax
¥expandafter¥pxcz@kpsewhich@a¥pxcz@tmpb/¥pxcz@end
¥edef¥pxcz@kpse@dir@cache{%
¥pxcz@kpse@dir@cache¥do{¥pxcz@kpse@dir}}%
¥fi
¥fi
¥endlinechar¥pxcz@tmpz
¥fi}
¥pxcz@onlypreamble@def¥pxcz@kpsewhich@a#1/#2¥pxcz@end{%
¥ifx¥pxcz@end#2¥pxcz@end ¥expandafter¥@gobble
¥else ¥expandafter¥@firstofone
¥fi{%
¥edef¥pxcz@kpse@dir{¥pxcz@kpse@dir#1/}%
¥pxcz@kpsewhich@a#2¥pxcz@end}}
¥pxcz@onlypreamble@def¥pxcz@kpsewhich@do#1{%
¥ifnum0¥pdffilesize{#1¥pxcz@tmpa}>¥z@
¥def¥pxcz@kpse@dir{#1}%
¥expandafter¥pxcz@kpsewhich@do@a
¥fi}
¥def¥pxcz@kpsewhich@do@a#1¥relax{}

%% ¥pxcz@inspect@flavor@all
% Sets ¥[pxcz@OT/].
¥pxcz@onlypreamble@def¥pxcz@inspect@flavor@all{%
¥@for¥pxcz@tmpa:=¥pxcz@sym@list¥do{%
¥edef¥pxcz@tmpa{{¥pxcz@tmpa}{¥@nameuse{pxcz@FS/¥pxcz@tmpa}}}%
¥expandafter¥pxcz@inspect@flavor@all@a¥pxcz@tmpa}}
¥pxcz@onlypreamble@def¥pxcz@inspect@flavor@all@a#1#2{%
¥def¥pxcz@tmpa{#2}%
¥ifx¥pxcz@tmpa¥@empty
¥else¥ifx¥pxcz@tmpa¥pxcz@noembed
¥@namedef{pxcz@OT/#1}{t}%
¥else ¥pxcz@inspect@flavor@all@b#2¥pxcz@end{#1}%
¥fi¥fi}
¥pxcz@onlypreamble@def¥pxcz@inspect@flavor@all@b#1#2¥pxcz@end{%
¥edef¥pxcz@tmpa{¥ifx:#1¥else:0:¥fi#1#2}%
¥expandafter¥pxcz@inspect@flavor@all@c¥pxcz@tmpa¥pxcz@end}
¥pxcz@onlypreamble@def¥pxcz@inspect@flavor@all@c:#1:#2¥pxcz@end#3{%
¥pxcz@kpsewhich{#2}%
¥unless¥ifx¥pxcz@kpse@dir¥relax
¥pxcz@inspect@flavor{¥pxcz@kpse@dir#2}{#1}%
%¥typeout{#3)¥pxcz@kpse@dir#2;#1==>¥the¥pxcz@cntr}%
¥ifnum¥pxcz@cntr>¥z@
¥@namedef{pxcz@OT/#3}{t}%
¥fi
¥fi}

¥fi
%--------------------------------------- dump font map
% if some dumpmap is enabled...
¥ifnum 0¥ifpxcz@dumpmap 1¥fi
¥ifpxcz@dumpmap@tl 1¥fi >¥z@

%% variables
¥let¥pxcz@dump@text¥relax
¥let¥pxcz@spec@save¥relax
¥newwrite¥pxcz@fout

%% ¥pxcz@add@to@dump@text
¥def¥pxcz@add@to@dump@text#1{%
¥edef¥pxcz@dump@text{¥pxcz@dump@text#1}}

%% ¥pxcz@dump@special{}
¥pxcz@onlypreamble@def¥pxcz@dump@special#1{%
¥pxcz@dump@special@a#1¥bxcz@end}
¥pxcz@onlypreamble@def¥pxcz@dump@special@a#1 #2¥bxcz@end{%
¥@nameuse{pxcz@dump@special@#1}¥@gobble{#2}}
¥@namedef{pxcz@dump@special@pdf:mapline}#1#2{%
¥pxcz@add@to@dump@text{¥pxcz@rmin#2^^J}}

%% ¥pxcz@rmin
¥def¥pxcz@rmin#1{%
¥ifx-#1¥@percentchar¥else#1¥fi}

%% ¥pxcz@dump@spec@to{}
¥pxcz@onlypreamble@def¥pxcz@dump@spec@to#1{%
¥def¥pxcz@dump@text{¥@percentchar¥space#1^^J}%
¥let¥special¥pxcz@dump@special
¥pxcz@spec ¥let¥special¥relax
¥pxcz@add@to@dump@text{¥@percentchar¥space EOF}%
¥immediate¥openout¥pxcz@fout=#1¥relax
¥immediate¥write¥pxcz@fout{¥pxcz@dump@text}%
¥immediate¥closeout¥pxcz@fout}

%% ¥pxcz@do@dumpmap
¥pxcz@onlypreamble@def¥pxcz@do@dumpmap{%
¥begingroup
¥pxcz@dump@spec@to{¥jobname.map}%
¥endgroup}

%% ¥pxcz@do@dumpmap@tl
¥pxcz@onlypreamble@def¥pxcz@do@dumpmap@tl{%
¥begingroup
¥let¥pxcz@spec@save¥pxcz@spec
¥pxcz@do@dumpmap@tl@a{STD}{ptex-¥jobname}%
¥pxcz@do@dumpmap@tl@a{UPSTD}{uptex-¥jobname}%
¥pxcz@do@dumpmap@tl@a{OTF}{otf-¥jobname}%
¥pxcz@do@dumpmap@tl@a{UPOTF}{otf-up-¥jobname}%
¥global¥let¥pxcz@spec¥pxcz@spec@save
¥endgroup}
¥pxcz@onlypreamble@def¥pxcz@do@dumpmap@tl@a#1#2{%
¥global¥let¥pxcz@spec¥@empty
¥pxcz@addtospec{#1}%
¥pxcz@dump@spec@to{#2.map}}

¥fi
%--------------------------------------- preset japanese font mappings

%% ¥pxcz@declare@preset{}{}
¥pxcz@onlypreamble@def¥pxcz@declare@preset#1{%
¥pxcz@onlypreamble@csdef{pxcz@the@preset@#1}}

%% ¥pxcz@declare@preset@alias{}{}
¥pxcz@onlypreamble@def¥pxcz@declare@preset@alias#1#2{%
¥expandafter¥pxcz@onlypreamble@let¥csname pxcz@the@preset@#1%
¥expandafter¥endcsname¥csname pxcz@the@preset@#2¥endcsname}

%% ¥pxcz@abolished@preset
¥pxcz@onlypreamble@def¥pxcz@abolished@preset{%
¥PackageError¥pxcz@pkgname
{The old preset '¥pxcz@main@preset' is *abolished*}{¥@ehc}%
¥pxcz@uniweight{ERROR.ttf}{ERROR.ttf}}
¥@for¥pxcz@x:=¥pxcz@all@abolished@preset¥do{%
¥pxcz@onlypreamble@csdef{pxcz@the@preset@¥pxcz@x}{¥pxcz@abolished@preset}}

%% ¥pxcz@uniweight{}{}
¥pxcz@onlypreamble@def¥pxcz@uniweight#1#2{%
¥setminchofont{#1}¥setgothicfont{#2}¥setmarugothicfont{#2}}

%% ¥pxcz@multiweight{}{}{}
%% {}{}{}{}{}
¥pxcz@onlypreamble@def¥pxcz@multiweight#1#2#3#4#5#6#7#8{%
¥setminchofont{#2}¥setgothicfont{#7}¥setmarugothicfont{#8}%
¥ifpxcz@oneweight¥else
¥setlightminchofont{#1}¥setboldminchofont{#3}%
¥setmediumgothicfont{#4}¥setboldgothicfont{#5}¥setxboldgothicfont{#6}%
¥fi}

%% ¥pxcz@use@preset{}
¥pxcz@onlypreamble@def¥pxcz@use@preset#1{%
¥csname pxcz@the@preset@#1¥endcsname}

%% Redefine ¥pxcz@custom
¥let¥pxcz@custom¥pxcz@declare@preset
¥pxcz@custom@presets

%% definitions of main preset mappings
¥pxcz@declare@preset{noembed}{%
¥pxcz@uniweight{*}{*}}
%(uniweight)
¥pxcz@declare@preset{ms}{%
¥pxcz@uniweight{:0:msmincho.ttc}{:0:msgothic.ttc}}
¥pxcz@declare@preset{ipa}{%
¥pxcz@uniweight{ipam.ttf}{ipag.ttf}}
¥pxcz@declare@preset{ipaex}{%
¥pxcz@uniweight{ipaexm.ttf}{ipaexg.ttf}}
%(multiweight)
¥pxcz@declare@preset{ms-hg}{%
¥pxcz@multiweight{:0:msmincho.ttc}{:0:msmincho.ttc}{:0:hgrme.ttc}%
{:0:hgrgm.ttc}{:0:hgrge.ttc}{:0:hgrsgu.ttc}{:0:msgothic.ttc}{hgrsmp.ttf}}
¥pxcz@declare@preset{ipa-hg}{%
¥pxcz@multiweight{ipam.ttf}{ipam.ttf}{:0:hgrme.ttc}%
{:0:hgrgm.ttc}{:0:hgrge.ttc}{:0:hgrsgu.ttc}{ipag.ttf}{hgrsmp.ttf}}
¥pxcz@declare@preset{ipaex-hg}{%
¥pxcz@multiweight{ipaexm.ttf}{ipaexm.ttf}{:0:hgrme.ttc}%
{:0:hgrgm.ttc}{:0:hgrge.ttc}{:0:hgrsgu.ttc}{ipaexg.ttf}{hgrsmp.ttf}}
¥pxcz@declare@preset{moga-mobo}{%
¥pxcz@multiweight{:0:mogam.ttc}{:0:mogam.ttc}{:0:mogamb.ttc}%
{:0:mogag.ttc}{:0:mogagb.ttc}{:0:mogagb.ttc}{:0:mogag.ttc}{:0:mobog.ttc}}
¥pxcz@declare@preset{moga-mobo-ex}{%
¥pxcz@multiweight{:1:mogam.ttc}{:1:mogam.ttc}{:1:mogamb.ttc}%
{:1:mogag.ttc}{:1:mogagb.ttc}{:1:mogagb.ttc}{:1:mogag.ttc}{:1:mobog.ttc}}
¥pxcz@declare@preset{moga-maruberi}{%
¥pxcz@multiweight{:0:mogam.ttc}{:0:mogam.ttc}{:0:mogamb.ttc}%
{:0:mogag.ttc}{:0:mogagb.ttc}{:0:mogagb.ttc}{:0:mogag.ttc}{MTLmr3m.ttf}}
¥pxcz@declare@preset{ume}{%
¥pxcz@multiweight{ume-tmo3.ttf}{ume-tmo3.ttf}{ume-tmo3.ttf}%
{ume-tgo4.ttf}{ume-tgo5.ttf}{ume-tgo5.ttf}{ume-tgo5.ttf}{ume-tgo4.ttf}}
¥pxcz@declare@preset{kozuka-pro}{%
¥usecmapforalphabet
¥pxcz@multiweight{KozMinPro-Light.otf}{KozMinPro-Regular.otf}%
{KozMinPro-Bold.otf}{KozGoPro-Regular.otf}{KozGoPro-Bold.otf}%
{KozGoPro-Heavy.otf}{KozGoPro-Medium.otf}{KozGoPro-Heavy.otf}}
¥pxcz@declare@preset{kozuka-pr6}{%
¥usecmapforalphabet
¥pxcz@multiweight{KozMinProVI-Light.otf}{KozMinProVI-Regular.otf}%
{KozMinProVI-Bold.otf}{KozGoProVI-Regular.otf}{KozGoProVI-Bold.otf}%
{KozGoProVI-Heavy.otf}{KozGoProVI-Medium.otf}{KozGoProVI-Heavy.otf}}
¥pxcz@declare@preset{kozuka-pr6n}{%
¥usecmapforalphabet
¥pxcz@multiweight{KozMinPr6N-Light.otf}{KozMinPr6N-Regular.otf}%
{KozMinPr6N-Bold.otf}{KozGoPr6N-Regular.otf}{KozGoPr6N-Bold.otf}%
{KozGoPr6N-Heavy.otf}{KozGoPr6N-Medium.otf}{KozGoPr6N-Heavy.otf}}
¥pxcz@declare@preset{hiragino-pro}{%
¥usecmapforalphabet
¥pxcz@multiweight{HiraMinPro-W2.otf}{HiraMinPro-W3.otf}%
{HiraMinPro-W6.otf}{HiraKakuPro-W3.otf}{HiraKakuPro-W6.otf}%
{HiraKakuStd-W8.otf}{HiraKakuPro-W6.otf}{HiraMaruPro-W4.otf}}
¥pxcz@declare@preset{hiragino-pron}{%
¥usecmapforalphabet
¥pxcz@multiweight{HiraMinProN-W2.otf}{HiraMinProN-W3.otf}%
{HiraMinProN-W6.otf}{HiraKakuProN-W3.otf}{HiraKakuProN-W6.otf}%
{HiraKakuStdN-W8.otf}{HiraKakuProN-W6.otf}{HiraMaruProN-W4.otf}}
¥pxcz@declare@preset{hiragino-elcapitan-pro}{%
¥usecmapforalphabet
¥pxcz@multiweight{HiraMinPro-W2.otf}{:1:HiraginoSerif-W3.ttc}%
{:1:HiraginoSerif-W6.ttc}{:3:HiraginoSans-W3.ttc}{:3:HiraginoSans-W6.ttc}%
{:2:HiraginoSans-W8.ttc}{:3:HiraginoSans-W6.ttc}{:0:HiraginoSansR-W4.ttc}}
¥pxcz@declare@preset{hiragino-elcapitan-pron}{%
¥usecmapforalphabet
¥pxcz@multiweight{HiraMinProN-W2.otf}{:0:HiraginoSerif-W3.ttc}%
{:0:HiraginoSerif-W6.ttc}{:2:HiraginoSans-W3.ttc}{:2:HiraginoSans-W6.ttc}%
{:3:HiraginoSans-W8.ttc}{:2:HiraginoSans-W6.ttc}{:1:HiraginoSansR-W4.ttc}}
¥pxcz@declare@preset{morisawa-pro}{%
¥usecmapforalphabet
¥pxcz@multiweight{A-OTF-RyuminPro-Light.otf}{A-OTF-RyuminPro-Light.otf}%
{A-OTF-FutoMinA101Pro-Bold.otf}{A-OTF-GothicBBBPro-Medium.otf}%
{A-OTF-FutoGoB101Pro-Bold}{A-OTF-MidashiGoPro-MB31.otf}%
{A-OTF-GothicBBBPro-Medium.otf}{A-OTF-Jun101Pro-Light.otf}}
¥pxcz@declare@preset{morisawa-pr6n}{%
¥usecmapforalphabet
¥pxcz@multiweight{A-OTF-RyuminPr6N-Light.otf}{A-OTF-RyuminPr6N-Light.otf}%
{A-OTF-FutoMinA101Pr6N-Bold.otf}{A-OTF-GothicBBBPr6N-Medium.otf}%
{A-OTF-FutoGoB101Pr6N-Bold}{A-OTF-MidashiGoPr6N-MB31.otf}%
{A-OTF-GothicBBBPr6N-Medium.otf}{A-OTF-Jun101Pro-Light.otf}}
¥pxcz@declare@preset{yu-win}{%
¥pxcz@multiweight{yuminl.ttf}{yumin.ttf}%
{yumindb.ttf}{yugothic.ttf}{yugothib.ttf}%
{yugothib.ttf}{yugothic.ttf}{yugothic.ttf}}
¥pxcz@declare@preset{yu-win10}{%
¥pxcz@multiweight{yuminl.ttf}{yumin.ttf}%
{yumindb.ttf}{:0:YuGothR.ttc}{:0:YuGothB.ttc}%
{:0:YuGothB.ttc}{:0:YuGothM.ttc}{:0:YuGothM.ttc}}
¥pxcz@declare@preset{yu-osx}{%
¥usecmapforalphabet
¥pxcz@multiweight{YuMin-Medium.otf}{YuMin-Medium.otf}%
{YuMin-Demibold.otf}{YuGo-Medium.otf}{YuGo-Bold.otf}%
{YuGo-Bold.otf}{YuGo-Medium.otf}{YuGo-Medium.otf}}
% Source Han Sans/Serif, "OTC"
¥pxcz@declare@preset{sourcehan-otc}{%
¥pxcz@multiweight{:0:SourceHanSerif-Light.ttc}%
{:0:SourceHanSerif-Regular.ttc}{:0:SourceHanSerif-Bold.ttc}%
{:0:SourceHanSans-Regular.ttc}{:0:SourceHanSans-Bold.ttc}%
{:0:SourceHanSans-Heavy.ttc}{:0:SourceHanSans-Medium.ttc}%
{:0:SourceHanSans-Medium.ttc}}
% Source Han Sans/Serif, "Language-specific OTF"
¥pxcz@declare@preset{sourcehan}{%
¥pxcz@multiweight{SourceHanSerif-Light.otf}%
{SourceHanSerif-Regular.otf}{SourceHanSerif-Bold.otf}%
{SourceHanSans-Regular.otf}{SourceHanSans-Bold.otf}%
{SourceHanSans-Heavy.otf}{SourceHanSans-Medium.otf}%
{SourceHanSans-Medium.otf}}
% Source Han Sans/Serif, "Region-specific Subset OTF"
¥pxcz@declare@preset{sourcehan-jp}{%
¥pxcz@multiweight{SourceHanSerifJP-Light.otf}%
{SourceHanSerifJP-Regular.otf}{SourceHanSerifJP-Bold.otf}%
{SourceHanSansJP-Regular.otf}{SourceHanSansJP-Bold.otf}%
{SourceHanSansJP-Heavy.otf}{SourceHanSansJP-Medium.otf}%
{SourceHanSansJP-Medium.otf}}
% Noto Sans/Serif CJK, "OpenType/CFF Collection (OTC)"
¥pxcz@declare@preset{noto-otc}{%
¥pxcz@multiweight{:0:NotoSerifCJK-Light.ttc}%
{:0:NotoSerifCJK-Regular.ttc}{:0:NotoSerifCJK-Bold.ttc}%
{:0:NotoSansCJK-Regular.ttc}{:0:NotoSansCJK-Bold.ttc}%
{:0:NotoSansCJK-Black.ttc}{:0:NotoSansCJK-Medium.ttc}%
{:0:NotoSansCJK-Medium.ttc}}
% Noto Sans/Serif CJK, "Language-specific OpenType/CFF (OTF)"
¥pxcz@declare@preset{noto}{%
¥pxcz@multiweight{NotoSerifCJKjp-Light.otf}%
{NotoSerifCJKjp-Regular.otf}{NotoSerifCJKjp-Bold.otf}%
{NotoSansCJKjp-Regular.otf}{NotoSansCJKjp-Bold.otf}%
{NotoSansCJKjp-Black.otf}{NotoSansCJKjp-Medium.otf}%
{NotoSansCJKjp-Medium.otf}}
% Noto Sans/Serif CJK, "Region-specific Subset OpenType/CFF (Subset OTF)"
¥pxcz@declare@preset{noto-jp}{%
¥pxcz@multiweight{NotoSerifJP-Light.otf}%
{NotoSerifJP-Regular.otf}{NotoSerifJP-Bold.otf}%
{NotoSansJP-Regular.otf}{NotoSansJP-Bold.otf}%
{NotoSansJP-Black.otf}{NotoSansJP-Medium.otf}%
{NotoSansJP-Medium.otf}}
¥pxcz@declare@preset{haranoaji}{%
¥usecmapforalphabet
¥pxcz@multiweight{HaranoAjiMincho-Light.otf}%
{HaranoAjiMincho-Regular.otf}{HaranoAjiMincho-Bold.otf}%
{HaranoAjiGothic-Regular.otf}{HaranoAjiGothic-Bold.otf}%
{HaranoAjiGothic-Heavy.otf}{HaranoAjiGothic-Medium.otf}%
{HaranoAjiGothic-Medium.otf}}
%(alias)
¥pxcz@declare@preset@alias{hiragino}{hiragino-pro}
¥pxcz@declare@preset@alias{noEmbed}{noembed}
¥pxcz@declare@preset@alias{kozuka}{kozuka-pro}
¥pxcz@declare@preset@alias{hiragino-elcapitan}{hiragino-elcapitan-pro}
¥pxcz@declare@preset@alias{morisawa}{morisawa-pro}
¥pxcz@declare@preset@alias{noto-otf}{noto}
%(plus-variants)
¥pxcz@declare@preset@alias{sourcehan+}{sourcehan}
¥pxcz@declare@preset@alias{sourcehan-otc+}{sourcehan-otc}
¥pxcz@declare@preset@alias{noto+}{noto}
¥pxcz@declare@preset@alias{noto-otc+}{noto-otc}
¥pxcz@declare@preset@alias{yu-win10+}{yu-win10}

%% ... and invokes the specified one!
¥if¥pxcz@main@preset¥relax¥else
¥pxcz@use@preset{¥pxcz@main@preset}
¥fi

%% load pxufont
¥ifx t¥pxcz@expert
¥RequirePackage{pxufont-ruby}[]
¥else¥ifnum¥pxcz@legacycode=¥pxcz@legacycode@replace
¥RequirePackage{pxufont}[]
¥fi¥fi

%--------------------------------------- all done
¥endinput
%% EOF
颯介 北村 への返信

Re: MacOSでTeXがpdfを出力してくれなくなりました。

- 和田 勇 の投稿

お願い

今後、別の質問をされることを考慮し、今一度島フォーラムでの 質問のしかた を読み直してください。

その中で、今回は特に次の二つを指摘します。

  • 可能かな限り、 問題が発生する .tex ソースファイルを添付してください。 今回は、ログからソースファイルをほぼ推定できましたが、ソースファイルが提供されると多くの方が再現テストを容易に行うことができ、もっと早く回答などが出たと思います。

  • 複数のファイルがある場合や行数が相当数になる場合は、zip アーカイブで一つのファイルにまとめるなどしてアップロードしてください。

    • 今回は5ファイルあり、それを五つに切り分ける必要がありました。
    • また今回は 2600 行を超える情報がベタで貼り付けられています。このような状態にしてしまうと、将来、このページを参照したとき、スクロールが非常に苦労します。

依頼した 4 番目の dvipdfmx の情報取得について

truetype などのフォント検索パス情報を調べることができているので、敢えて書きませんでしたが、ptex2pdf -l -od test3ターミナルアプリtest3.tex が存在するディレクトリで実行していただくことを想定していました。

hoge.sty を取り除いた test3.tex のテスト

texlive 2023 / 2020 / 2020(with upload された pxchfon.sty) いずれも問題なく pdf は作成でき、問題なく pdf 表示できています。

追加情報提供依頼

hoge.sty を有効にするといくつか不具合があり、追加情報が必要になりました。

  • texlive 2020 のインストール方法
    • インストールにあたって参照した URL や書籍情報
      • 2020 の pxchfon.sty が一部実コードが異なるため原因調査のため
  • hoge.sty 作成にあたり参考にされた url や書籍情報
    • 詳しくは調べていませんが、hoge.sty の記述内容を再チェックのため
  • 利用されている texlive は ヒラギノベース?原の味?
    • kanji-config-updmap status のコマンド結果を教えてください
      • hoge.sty を有効にすると 原の味ベースの 2023 で pdf 作成できないのでその調査のため。
和田 勇 への返信

Re: MacOSでTeXがpdfを出力してくれなくなりました。

- 颯介 北村 の投稿
マナーがなっておらずすいません。また丁寧にありがとうございます。
・dvipdfmxの情報について
This is ptex2pdf[.lua] version 20200520.0.
No filename argument given, exiting.
・texlive 2020のインストール方法
[改訂第8版]LaTeX2ε美文書作成入門の付録のインストーラーを使ってダウンロードしました。
・hoge.sty作成にあたり参考にしたurl
https://ja.overleaf.com/read/zwvdbkmftbcw
・kanji-config-updmap status のコマンド結果
Cannot find ptex-fontmaps-macos-data.dat, skipping!
CURRENT family for ja: haranoaji (variant: -04)
Standby family : haranoaji
Standby family : ipa
Standby family : ipaex

よろしくお願いします
颯介 北村 への返信

Re: MacOSでTeXがpdfを出力してくれなくなりました。

- 和田 勇 の投稿

はやてさんの懸念している点と関連するかもしれないけど北村さんの方にぶら下げます。

texlive 2020のインストール方法

LaTeX2ε美文書作成入門の付録のインストーラー使用後、ヒラギノ関連セットアップされていませんか? 例えば 【LaTeX】macOS Big Sur + 美文書作成入門 第8版 の環境で ヒラギノフォント などを参考にして。

これがうまくゆけば kanji-config-updmap statusCannot find ptex-fontmaps-macos-data.dat, skipping! のような警告メッセージは出力されないはずですが ...

なお、このCannot で始まる警告メッセージで検索すると当フォーラムで類似の質問がありました。 High Sierra でヒラギノフォントを使うための設定法

ようやくすると、古〜い latex がインストールされていたため整合が取れずに失敗していたので PATH を正し sudo mktexlsr 等で解消したようです。

ですので、はやてさんが懸念されているものも mktexlsr で解決されるかもしれません。

ところで、今までうまく pdf が作成できたのはいつ頃ですか? 作成できなくなる前に何か作業を行なっていませんか?(これははやてさんの懸念する問題と同じかもしれません)

バックアップ等で戻すことができなかったら、再インストールか 2023 をインストールも検討してみてください。

hoge.sty 関連

hoge.sty の1行目?の \ProvidesPackage{mypreamble}\ProvidesPackage{hoge} とすれば当初質問時の警告メッセージは解消されると思いますが ...

参考にされたページの4ファイルを作業用ディレクトリにダウンロードし、その作業用ディレクトリで latexmk main とした場合はどうなりますか?

PS マナー云々

同轍踏まなければ構いません。

颯介 北村 への返信

Re: MacOSでTeXがpdfを出力してくれなくなりました。

- はやて (h20y6m) の投稿

hoge.sty で

\usepackage[unicode,noto-otc]{pxchfon}

としているので「Noto CJK JPのOTC版」を使う設定になっていると思いますが、このフォントはインストールされていますか?

インストールしたという場合はどこからどのファイルをダウンロードしてどこへインストールしたか等も教えてください。

Notoフォントにはいろいろなバージョンがあるのでpxchfonパッケージが想定しているバージョンのフォントでないとうまく動きません。

それとTEXMFLOCAL以下にインストールした場合はmktexlsrを忘れずに。