環境は,
- macOS 10.12.6
- Tex Live 2017
- uplatex -version #=> e-upTeX 3.14159265-p3.7.1-u1.22-161114-2.6 (utf8.uptex) (TeX Live 2017)
です.ミニマルなtexファイルは
% test.tex
\documentclass[autodetect-engine,dvipdfmx-if-dvi,ja=standard]{bxjsarticle}
\usepackage[prefernoncjk]{pxcjkcat}
\begin{document}
\paragraph{Hoge}
foga
\end{document}
で,これを $ uplatex test.tex とすると次の複数のエラーが出ます(各エラーはenterでスキップしています):
This is e-upTeX, Version 3.14159265-p3.7.1-u1.22-161114-2.6 (utf8.uptex) (TeX Live 2017) (preloaded format=uplatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
pLaTeX2e <2017/07/29u01>+1 (based on LaTeX2e <2017-04-15>)
Babel <3.13> and hyphenation patterns for 84 language(s) loaded.
(/usr/local/texlive/2017/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls
Document Class: bxjsarticle 2017/09/09 v1.6 BXJS document classes
(/usr/local/texlive/2017/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/bxjscls/bxjscompat.sty)
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def
(/usr/local/texlive/2017/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def)))
(/usr/local/texlive/2017/texmf-dist/tex/latex/pxcjkcat/pxcjkcat.sty)
(./test.aux)
*geometry* detected driver: dvipdfm
! Argument of \bxjs@let@hchar@chr@ue@c has an extra }.
<inserted text>
\par
l.6 f
oga
?
Runaway argument?
! Paragraph ended before \bxjs@let@hchar@chr@ue@c was complete.
<to be read again>
\par
l.6 f
oga
?
! Extra }, or forgotten \endgroup.
<recently read> }
l.6 f
oga
?
! Undefined control sequence.
\jsJaChar ...bxjs@jachar \expandafter {\bxjs@tmpa
}\fi \endgroup
l.6 f
oga
?
[1] (./test.aux) )
Output written on test.dvi (1 page, 332 bytes).
Transcript written on test.log.
一応dviファイルが作られたので $ dvipdfmx test.dvi && open test.pdf で確認すると,「.Hoge fuga」とだけ書かれていました.Hogeはサンセリフ,fugaはローマンで.はドット(0x2e)です.
次に,
% case 1: without the option of pxcjkcat
\documentclass[autodetect-engine,dvipdfmx-if-dvi,ja=standard]{bxjsarticle}
\usepackage{pxcjkcat}
\begin{document}
\paragraph{Hoge}
foga
\end{document}
% case 2: with documentclass jsarticle instead
\documentclass[uplatex]{jsarticle}
\usepackage[prefernoncjk]{pxcjkcat}
\begin{document}
\paragraph{Hoge}
foga
\end{document}
% case 3: without paragraph
\documentclass[autodetect-engine,dvipdfmx-if-dvi,ja=standard]{bxjsarticle}
\usepackage[prefernoncjk]{pxcjkcat}
\begin{document}
foga
\end{document}
の各ケースとも期待通りの出力を得ました.
なぜ最初の場合のみエラーになるのでしょうか?