!LaTeX 错误:“kernel/command-not-defined”!! 在安装 mahjahn 包时

!LaTeX 错误:“kernel/command-not-defined”!! 在安装 mahjahn 包时

我想使用这个包。

https://ctan.org/pkg/mahjong

首先,我无法理解 README 中的安装部分(运行 make install ...)。

然后,我latex mahjong.ins从命令提示符运行并得到 mahjong.sty。

我这样编写sample.tex。

\documentclass[uplatex]{jsarticle}

\usepackage{mahjong}

\begin{document}

Nothing

\end{document}

我把sample.tex、mahjong.sty、tiles(图片文件夹)放在一个文件夹中,然后尝试编译tex文件。但编译没有成功。这是第二个问题。

错误按摩是这么说的。

>uplatex.exe -no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode "sample".tex
This is e-upTeX, Version 3.1415926-p3.4-u1.11-110825-2.6 (utf8.uptex) (TeX Live 2013/W32TeX)
 restricted \write18 enabled.
entering extended mode
(./note.tex
pLaTeX2e <2011/05/07u00>+0 (based on LaTeX2e <2011/06/27> patch level 0)
Babel <3.9k> and hyphenation patterns for 78 languages loaded.
(c:/texlive/2013/texmf-dist/tex/platex/jsclasses/jsarticle.cls
Document Class: jsarticle 2013/05/14 okumura
) (./mahjong.sty

LaTeX Warning: You have requested release `2019/10/01' of LaTeX,
               but only release `2011/06/27' is available.

(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3names.sty
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))
(c:/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3basics.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3expan.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3tl.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3seq.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3int.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3quark.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prg.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3clist.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3token.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prop.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3msg.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3file.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3skip.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3keys.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3fp.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3box.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3coffins.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3color.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3luatex.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3kernel/l3candidates.sty)
(c:/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(c:/texlive/2013/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(c:/texlive/2013/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(c:/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(c:/texlive/2013/texmf-dist/tex/latex/graphics/dvips.def)))
(c:/texlive/2013/texmf-dist/tex/latex/stackengine/stackengine.sty
(c:/texlive/2013/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/texlive/2013/texmf-dist/tex/latex/tools/calc.sty))
! Undefined control sequence.
l.67 \str_new:N
                \l__mahjong_file_path_str
! Undefined control sequence.
l.67 \str_new:N \l__mahjong_file_path_str


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! LaTeX error: "kernel/command-not-defined"
!
! Control sequence \__mahjong_typeset_hand:n undefined.
!
! See the LaTeX3 documentation for further information.
!
! For immediate help type H <return>.
!...............................................

l.197 ..._variant:Nn \__mahjong_typeset_hand:n {x}

) (./note.aux) [1] (./note.aux) )
(see the transcript file for additional information)
Output written on note.dvi (1 page, 276 bytes).
SyncTeX written on note.synctex.gz.
Transcript written on note.log.

我在这里放弃了。请帮助我。

相关内容