今日初めてchemfigを使い始めた者です。
まず手始めに動作確認をしようとhttps://doratex.hatenablog.jp/entry/20141212/1418393703でサンプルとして挙げられていた次のような内容をTeXworksにコピーペーストしてpLaTeX(ptex2pdf)でコンパイルしようとしたのですが、
\documentclass[11pt,a4paper,dvipdfmx]{jsarticle}
\usepackage{chemfig}
\begin{document}
\chemfig{C*6((-H)=N-C*5(-N(-H)-C(-H)=N?)=C?-C(-NH_2)=N-)}
\end{document}
次のようなエラーが出てしまい、2時間近くネットを徘徊しましたが前例が見つからず手も足も出ません。
何をどうしたらchemfigが動作する状態になるのでしょうか…ご教示いただければ幸いです。
This is ptex2pdf[.lua] version 20170622.0.
Processing untitled-12.tex
This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (utf8.sjis) (TeX Live 2017/W32TeX) (preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./untitled-12.tex
pLaTeX2e <2017/10/28>+4 (based on LaTeX2e <2017-04-15>)
Babel <3.17> and hyphenation patterns for 84 language(s) loaded.
(c:/texlive/2017/texmf-dist/tex/platex/jsclasses/jsarticle.cls
Document Class: jsarticle 2017/10/04 jsclasses (okumura, texjporg)
(c:/texlive/2017/texmf-dist/tex/platex/jsclasses/jslogo.sty))
(c:/texlive/texmf-local/tex/platex/misc/emath/chemfig.sty
(c:/texlive/2017/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(c:/texlive/2017/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
(c:/texlive/2017/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.tex)
) (c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
(c:/texlive/2017/texmf-dist/tex/latex/ms/everyshi.sty))
(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex))
(c:/texlive/2017/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
(c:/texlive/texmf-local/tex/platex/misc/emath/graphicx.sty
(c:/texlive/texmf-local/tex/platex/misc/emath/keyval.sty)
(c:/texlive/texmf-local/tex/platex/misc/emath/graphics.sty
(c:/texlive/texmf-local/tex/platex/misc/emath/trig.sty)
(c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(c:/texlive/2017/texmf-dist/tex/latex/graphics-def/dvipdfmx.def)))
(c:/texlive/2017/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex)
) (c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvipdfmx.def
(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))
)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex
)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex
)) (c:/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty
(c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.te
x)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric
.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.t
ex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.co
de.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex
)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.te
x)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex
)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithm
etics.code.tex)))
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex))
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.cod
e.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.te
x)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code
.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.c
ode.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.co
de.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
))
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code
.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex
)))
(c:/texlive/2017/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex)
(c:/texlive/2017/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.st
y)
(c:/texlive/2017/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.st
y)) (c:/texlive/2017/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(c:/texlive/2017/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))
(c:/texlive/2017/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))
(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)))
(c:/texlive/2017/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
(c:/texlive/2017/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.co
de.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)
(c:/texlive/2017/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzli
brarytopaths.code.tex)))
(c:/texlive/texmf-local/tex/platex/misc/emath/chemfig.tex
! Package chemfig Error: the \expanded primitive is not provided by your TeX en
gine, chemfig cannot work...
\CF_error ...e {Package \CFname \space Error: #1.}
l.70 ...ur TeX engine, \CFname\space cannot work.}
環境
・『[改訂第7版] LaTeX2e 美文書作成入門』第2刷の DVD-ROMを用いてTeXシステム一式をインストール
・Windows 10 Pro バージョン 1909 64-bit
・chemfigパッケージはTeXLiveに標準装備されていることを知らず、CTANから最新版をインストール