在 MiKTeX 中使用驱动程序‘dvisvgm’进行 DVI 编译失败

在 MiKTeX 中使用驱动程序‘dvisvgm’进行 DVI 编译失败

环境

Windows 10 (x64);
MiKTeX 2.9.7206-x64、GPL Ghostscript 9.25(2018-09-13)
共享 TeX 安装;
'animate' 包 2019/08/22;
'dvisvgm' 2.6.3(来自 MiKTeX 的实用程序);
2017/06/20 v1.0b dvisvgm 用于 latex 的图形驱动程序(C:\Program Files\MiKTeX 2.9\tex\latex\graphics-def\dvisvgm.def)


我正在尝试从手册中编译一个例子亚历山大·格拉恩

\documentclass{article}
\usepackage{intcalc} %defines \intcalcMod for Modulo computation
\usepackage{animate}
\usepackage{graphicx}

\graphicspath{{files/}}

\newcounter{scarab}
\setcounter{scarab}{0}
\newcounter{blueline}
\setcounter{blueline}{101}
\newcounter{grayline}
\setcounter{grayline}{202}
%write timeline file
\newwrite\TimeLineFile
\immediate\openout\TimeLineFile=scarab.tln
\whiledo{\thescarab<101}{
\ifthenelse{\intcalcMod{\thescarab}{2}=0}{
%a gray line is added to every 2nd frame
\immediate\write\TimeLineFile{%
::\thegrayline x0;253;\thescarab x0,\theblueline}
\stepcounter{grayline}
}{
\immediate\write\TimeLineFile{%
::;253;\thescarab x0,\theblueline}
}
\stepcounter{scarab}
\stepcounter{blueline}
}
\immediate\closeout\TimeLineFile
%\DeclareGraphicsRule{.mps}{eps}{*}{}
\begin{document}
\begin{center}

\animategraphics[width=0.8\linewidth,
autoplay,controls,loop,timeline=scarab.tln]{12}{scarab_}{0}{253}
\end{center}
\end{document}

此源文件可以转换为 PDF 文件,无需选项“韋斯維爾' 无论如何,即 'pdflatex' 或 'latex' ---> 'dvips' ---> 'ps2pdf'。结果是好的。但在添加此选项后(在 '\documentclass[12pt,韋斯維爾]{article}') 构建 DVI 文件变得不可能(命令行:latex文件.tex):

! LaTeX Error: Unknown graphics extension: .mps.

l.35 ...ine=scarab.tln]{12}{scarab_}{0}{253}

如果我插入

\DeclareGraphicsRule{.mps}{eps}{*}{}

编译中止,原因如下:

! Undefined control sequence.
\pbs_pdflastann: ->\g_pbs_pdflastann_tl 

l.35 ...ine=scarab.tln]{12}{scarab_alter_}{0}{253}

如果没有选项 'divsvgm',则实用程序韋斯維爾仅从 DVI 创建单个 svg 文件。
它说这里通过更新 TeXLive 安装,类似的问题已经得到解决。
我想知道是否有人可以具体说明需要在 MiKTeX 中更新哪些内容才能消除此错误。

附言

成功编译的文件列表,带有类选项dvisvgm(AlexG):

 *File List*
 article.cls    2019/08/27 v1.4j Standard LaTeX document class
  size10.clo    2019/08/27 v1.4j Standard LaTeX file (size option)
 intcalc.sty    2016/05/16 v1.2 Expandable calculations with integers (HO)
 animate.sty    2019/08/20 PDF & SVG animations from files and inline graphics
 xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
   ifpdf.sty    2019/10/25 v3.4 ifpdf legacy package. Use iftex instead.
   iftex.sty    2019/10/24 v1.0a TeX engine tests
ifluatex.sty    2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
 ifxetex.sty    2019/10/25 v0.7 ifxetex legacy package. Use iftex instead.
 ifdraft.sty    2016/05/16 v1.4 Detect class options draft and final (HO)
    calc.sty    2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
graphics.sty    2019/10/08 v1.3c Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg    2016/06/04 v1.11 sample graphics configuration
 dvisvgm.def    2017/06/20 v1.0b dvisvgm graphics driver for latex
zref-abspage.sty    2018/11/21 v2.27 Module abspage for zref (HO)
zref-base.sty    2018/11/21 v2.27 Module base for zref (HO)
 ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)
kvsetkeys.sty    2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty    2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
kvdefinekeys.sty    2016/05/16 v1.4 Define keys (HO)
pdftexcmds.sty    2019/07/25 v0.30 Utility functions of pdfTeX for LuaTeX (HO)
 auxhook.sty    2016/05/16 v1.4 Hooks for auxiliary files (HO)
atbegshi.sty    2016/06/09 v1.18 At begin shipout hook (HO)
 pdfbase.sty    2019/11/04 v0.35 driver independent access to low-level PDF fea
tures
   expl3.sty    2019-10-28 L3 programming layer (loader) 
expl3-code.tex    2019-10-28 L3 programming layer 
l3deprecation.def    2019-04-06 v L3 Deprecated functions
l3backend-dvisvgm.def    2019-04-06 L3 backend support: dvisvgm
l3keys2e.sty    2019-10-11 LaTeX2e option processing using LaTeX3 keys
graphicx.sty    2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
files/scarab_0.mps
...
files/scarab_253.mps
 ***********

相关内容