更新

更新

在过去一周左右的某个时候,tex4ht我的电脑似乎停止了工作。现在,当我尝试从 tex 转换为 odt 时运行它时,出现此错误:

[ERROR]   htlatex: ?    ?    Emergency stop.
[FATAL]   make4ht-lib: Fatal error. Command htlatex returned exit code 1
Error: source file could not be loaded

产生此错误的 bash 命令是:

make4ht -ux -f odt  -c $configfile $filename.out.tex

哪里:$configfilemyconfig.cfg

\Preamble{xhtml,ooffice}
\ConfigureOO{Footnote}{
<style:style
    style:name="Footnote"
    style:family="paragraph"
    style:parent-style-name="Standard"
    style:class="extra">\Hnewline
  <style:paragraph-properties
             fo:margin-left="0in"
             fo:margin-right="0in"
             fo:text-indent="0.1in"
              style:auto-text-indent="false"/>
  <style:text-properties fo:font-size="83.3333333333333333333333\%"
      style:font-size-asian="83.3333333333333333333333\%"
      style:font-size-complex="83.3333333333333333333333\%" />
</style:style>\Hnewline
<text:notes-configuration text:note-class="footnote"
    text:citation-style-name="Footnote_20_Symbol"
    text:citation-body-style-name="Footnote_20_anchor"
    style:num-format="1" text:start-value="0"
    text:footnotes-position="page"
    text:start-numbering-at="document" />\Hnewline
<style:style style:name="Footnote_20_Symbol"
style:display-name="Footnote Symbol" style:family="text" >\Hnewline
  <style:text-properties style:text-position="super 58\%" />\Hnewline
</style:style>
<style:style style:name="Footnote_20_anchor"
style:display-name="Footnote anchor" style:family="text">
  <style:text-properties style:text-position="super 58\%" />\Hnewline
</style:style>\Hnewline
}

\ConfigureOO{verse}{\Hnewline
<style:style style:name="verse"
             style:family="paragraph"
             style:parent-style-name="Text-body"
             style:next-style-name="Text-body">
<style:paragraph-properties  fo:margin-left="1.499cm"
             fo:margin-right="1cm"
             fo:margin-top="0cm"
             fo:margin-bottom="0cm"
             fo:text-indent="-0.499cm"
             style:auto-text-indent="false">
   <style:tab-stops/>
</style:paragraph-properties >
</style:style>
\Hnewline}

\def\loopoverdigits#1{\ifx\relax#1\else%
% Unicode block for Arabic numerals starts at U+0660
% the following special command inserts the XML entity
% for the number, which will be converted to Unicode char
% by tex4ht
\special{t4ht@+&{35}x066#1{59}}x%
\expandafter\loopoverdigits\fi}

\def\arabicdigits#1{\NoFonts\loopoverdigits#1\relax\EndNoFonts}
\ifdefined\xeuniuseblock
\xeuniuseblock{Greek}
\xeuniuseblock{Arabic}
\fi
\makeatletter
\ConfigureEnv{arab}{\@rltrue}{\@rlfalse}{}{}
\Configure{ref}{\Link}{\EndLink}{}
\makeatother
\begin{document}
\EndPreamble

我最后一次成功使用 tex4ht 而没有出现此错误是在 12 月 14 日。我想在那之后我进行了一次例行的 texlive 更新,其中可能包括 tex4ht。(我刚刚检查了一下,12 月 22 日,看起来我仍然在更新最新的 tex4ht。)

我怎样才能解决这个问题?

更新

我对其进行了更多的尝试,发现错误通过一个简单的例子就消失了,这表明问题出在我的配置或我目前正在处理的项目中。

但是当我使用 Git 倒回到上次成功的 ODT 编译之前时,错误不是消失,这表明tex4ht代码的某些改变是问题的一部分。

更新 2

我还没有设法整理出一个可以重现该错误的 MWE。但我注意到该import包可能与正在发生的事情有关:致命错误发生之前终端输出中的前几行似乎表明文件路径被错误地扩展了:

[ERROR]   htlatex: ..//sections/0-intro.tex 67   Argument of \etb@tgl@blx@usenamea has an extra }.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Paragraph ended before \etb@tgl@blx@usenamea was complete.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing number, treated as zero.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing = inserted for \ifnum.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing number, treated as zero.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 8    Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 26   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 27   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 28   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 29   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 30   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 31   Undefined control sequence.
[ERROR]   htlatex: ?    ?    Emergency stop.
[FATAL]   make4ht-lib: Fatal error. Command htlatex returned exit code 1

请注意,..//sections/0-intro.tex当然不应有../sections/0-intro.tex双斜线。

在我的主 tex 文件中,我使用命令调用文档的所有实际内容\import

\import{..}{_outline}

_outline.tex包含一些标题信息,然后\input{sections-compiled-by-Makefile}。MyMakefile自动从名为的目录中的部分文件生成此文件。本例中的sections/文件内容为:sections-compiled-by-Makefile.tex

\input{sections/0-intro.tex}
\input{sections/1-TOC.tex}
\input{sections/2-Table-of-Signs.tex}
\input{sections/3-List-of-Authors.tex}
\input{sections/z1-Conclusion.tex}
\input{sections/z2-Acknowledgments.tex}

据我所知,我使用\import\input命令正确。使用编译成功xelatex。问题出在make4ht

make4ht关于如何实现软件包更改,是否有任何import可能会添加虚假的额外斜线?

更新 3

好吧,现在我注意到终端输出中前面几行是关于太多 } 的:

[ERROR]   htlatex: ..//sections/0-intro.tex 57   Missing number, treated as zero.
[ERROR]   htlatex: ..//sections/0-intro.tex 57   Missing } inserted.
[ERROR]   htlatex: ..//sections/0-intro.tex 57   Extra \endgroup.
[ERROR]   htlatex: ..//sections/0-intro.tex 57   Too many }'s.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing number, treated as zero.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing = inserted for \ifnum.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing number, treated as zero.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Argument of \etb@tgl@blx@usenamea has an extra }.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Paragraph ended before \etb@tgl@blx@usenamea was complete.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing number, treated as zero.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing = inserted for \ifnum.
[ERROR]   htlatex: ..//sections/0-intro.tex 67   Missing number, treated as zero.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 8    Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 26   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 27   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 28   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 29   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 30   Undefined control sequence.
[ERROR]   htlatex: ./_lists-M-front-matter-WORD 31   Undefined control sequence.
[ERROR]   htlatex: ?    ?    Emergency stop.
[FATAL]   make4ht-lib: Fatal error. Command htlatex returned exit code 1

有问题的行( 的第 57 行sections/0-intro.tex)是文档中出现的第一个命令。因此,这让我回到了我之前的假设,即它与和/或我的文件\cite有关。(我的假设似乎被以下事实所证伪:make4ht 似乎至少认为它正在成功读取。)biber.bibimportsections/0-intro.tex

为了测试它,我将.bib文件恢复到 12 月 14 日之前的状态(上次我成功编译了包括引文在内的所有内容)。但没成功——它仍然给出相同的致命错误。

make4ht最近它处理\cite命令的方式是否发生了改变?或者biber,有什么改变吗?

更新 4

现在使用正确的-a debug选项,我的完整文档的make4ht运行提供了\cite我在“更新 3”中提到的问题的一些详细信息:

LaTeX Warning: First page is already shipped out, ignoring
               \AtBeginDvi on input line 66.

) (../_outline.tex [1]
! Missing number, treated as zero.
<to be read again>
                   }
l.12 \maketitle

? ! Illegal unit of measure (pt inserted).
<to be read again>
                   }
l.12 \maketitle

? (..//sections-compiled-by-Makefile.tex (..//sections/0-intro.tex
! Missing number, treated as zero.
<to be read again>
                   \begingroup
l.36 \cite[83]{roberts:marcianus:framing}.}

? ! Missing = inserted for \ifnum.
<to be read again>
                   \begingroup
l.36 \cite[83]{roberts:marcianus:framing}.}

? ! Missing number, treated as zero.
<to be read again>
                   \begingroup
l.36 \cite[83]{roberts:marcianus:framing}.}

? ! Argument of \etb@tgl@blx@useauthor has an extra }.
<inserted text>
                \par
l.36 \cite[83]{roberts:marcianus:framing}.}

? Runaway argument?
! Paragraph ended before \etb@tgl@blx@useauthor was complete.
<to be read again>
                   \par
l.36 \cite[83]{roberts:marcianus:framing}.}

? ! Missing number, treated as zero.
<to be read again>
                   \scan_stop:
l.36 \cite[83]{roberts:marcianus:framing}.}

?

更新 5:MWE

我终于设法找出了问题所在。这个软件包xifthen似乎出了问题biblatex,无法再工作了。

主要.tex:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

% Normal:
\documentclass[12pt,letterpaper,oldfontcommands,article]{memoir}
\usepackage{import}

\usepackage[notes,
        alldates=       long,
        backend=        biber,
        bibwarn=        false,
        cmsdate=        both, % reprints: print `origdate` as well as `year`
        compresspages=  true,
        doi=            false,
        eprint=         false,
        giveninits=     true,   % abbreviate author first name(s)
        ibidtracker=    true,
        inheritshorthand,       % feature added for me by D.Fussner
        isbn=           false,
        mincrossrefs =  2,
        numbermonth =   false, % don't print journal issue month even if supplied, when an issue number is also supplied
        useibid,
        shorthandibid,
        strict=         true,
        url=            true,
        usetranslator=  true,
        uniquename= init
    ]{biblatex-chicago}
\addbibresource{test.bib}
    

\usepackage{xifthen}% provides \isempty test


\begin{document}

\cite[83]{roberts:marcianus:framing}

\end{document}

测试.bib:

@article{roberts:marcianus:framing,
    author = {Roberts, Alexandre M.},
    journal = {Dumbarton Oaks Papers},
    pages = {69--102},
    read = {1},
    shorttitle = {Framing},
    title = {Framing a Middle Byzantine Alchemical Codex},
    volume = {73},
    year = {2019}
}

我的配置.cfg:

\Preamble{xhtml,ooffice}
\ConfigureOO{Footnote}{
<style:style
    style:name="Footnote"
    style:family="paragraph"
    style:parent-style-name="Standard"
    style:class="extra">\Hnewline
  <style:paragraph-properties
             fo:margin-left="0in"
             fo:margin-right="0in"
             fo:text-indent="0.1in"
              style:auto-text-indent="false"/>
  <style:text-properties fo:font-size="83.3333333333333333333333\%"
      style:font-size-asian="83.3333333333333333333333\%"
      style:font-size-complex="83.3333333333333333333333\%" />
</style:style>\Hnewline
<text:notes-configuration text:note-class="footnote"
    text:citation-style-name="Footnote_20_Symbol"
    text:citation-body-style-name="Footnote_20_anchor"
    style:num-format="1" text:start-value="0"
    text:footnotes-position="page"
    text:start-numbering-at="document" />\Hnewline
<style:style style:name="Footnote_20_Symbol"
style:display-name="Footnote Symbol" style:family="text" >\Hnewline
  <style:text-properties style:text-position="super 58\%" />\Hnewline
</style:style>
<style:style style:name="Footnote_20_anchor"
style:display-name="Footnote anchor" style:family="text">
  <style:text-properties style:text-position="super 58\%" />\Hnewline
</style:style>\Hnewline
}

\ConfigureOO{verse}{\Hnewline
<style:style style:name="verse"
             style:family="paragraph"
             style:parent-style-name="Text-body"
             style:next-style-name="Text-body">
<style:paragraph-properties  fo:margin-left="1.499cm"
             fo:margin-right="1cm"
             fo:margin-top="0cm"
             fo:margin-bottom="0cm"
             fo:text-indent="-0.499cm"
             style:auto-text-indent="false">
   <style:tab-stops/>
</style:paragraph-properties >
</style:style>
\Hnewline}

\def\loopoverdigits#1{\ifx\relax#1\else%
% Unicode block for Arabic numerals starts at U+0660
% the following special command inserts the XML entity
% for the number, which will be converted to Unicode char
% by tex4ht
\special{t4ht@+&{35}x066#1{59}}x%
\expandafter\loopoverdigits\fi}

\def\arabicdigits#1{\NoFonts\loopoverdigits#1\relax\EndNoFonts}
\ifdefined\xeuniuseblock
\xeuniuseblock{Greek}
\xeuniuseblock{Arabic}
\fi
\makeatletter
\ConfigureEnv{arab}{\@rltrue}{\@rlfalse}{}{}
\Configure{ref}{\Link}{\EndLink}{}
\makeatother
\begin{document}
\EndPreamble

当我运行该命令时make4ht -ux -a debug -f odt -c myconfig.cfg main.tex,输出中出现以下错误:

(/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht)))
(./main.bbl))
! Argument of \etb@tgl@blx@useauthor has an extra }.
<inserted text>
                \par
l.37 \cite[83]{roberts:marcianus:framing}

\usepackage{xifthen}当我在 中注释掉时main.tex,编译工作按预期进行。

如果其余的调试输出有用,则如下所示:

[INFO]    mkparams: Output dir:
[INFO]    mkparams: Compiler: xelatex --no-pdf
[INFO]    mkparams: Latex options: -jobname=main
[INFO]    mkparams: tex4ht.sty: myconfig.cfg,,charset=utf-8
[INFO]    mkparams: tex4ht:  -cmozhtf -utf8 -.xdv
[INFO]    mkparams: build_file: main.mk4
[INFO]    mkparams: Output format: odt
[STATUS]  make4ht: Conversion started
[STATUS]  make4ht: Input file: main.tex
[INFO]    mkutils: Cannot open config file  main.mk4
[INFO]    make4ht-lib: setting param correct_exit
[INFO]    make4ht-lib: setting param correct_exit
[INFO]    make4ht-lib: setting param correct_exit
[INFO]    make4ht-lib: setting param ext
[INFO]    make4ht-lib: Adding:  ext xdv
[INFO]    htlatex: LaTeX call: xelatex --no-pdf --interaction=errorstopmode -jobname=main   '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\AddToHook{class/before}{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode myconfig.cfg,,charset=utf-8,ooffice.a.b.c.\input "\detokenize{main.tex}"'
This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2021-11-22> (./main.tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/tex4ht.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/tuenc-xetex-input.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/kastrup/binhex.tex)))
(/usr/local/texlive/2021/texmf-dist/tex/latex/memoir/memoir.cls
Document Class: memoir 2021/06/16 v3.7p configurable book, report, article docu
ment class
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/usepackage.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/memoir/mem12.clo)
(/usr/local/texlive/2021/texmf-dist/tex/latex/tools/array.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/tools/dcolumn.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/tools/delarray.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/tools/tabularx.sty)

LaTeX hooks Warning: Generic hook 'package/before/framed' is deprecated.
(hooks)              Use hook 'package/framed/before' instead.

(/usr/local/texlive/2021/texmf-dist/tex/latex/textcase/textcase.sty)

LaTeX hooks Warning: Generic hook 'package/before/float' is deprecated.
(hooks)              Use hook 'package/float/before' instead.

) (/usr/local/texlive/2021/texmf-dist/tex/latex/import/import.sty)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/biblatex-chicago-hooks.4
ht (/usr/local/texlive/2021/texmf-dist/tex/latex/base/ifthen.sty))
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex-chicago/biblatex-chicago
.sty (/usr/local/texlive/2021/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/refcount/refcount.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/local/texlive/2021/texmf-dist/tex/generic/infwarerr/infwarerr.sty))
(/usr/local/texlive/2021/texmf-dist/tex/generic/gettitlestring/gettitlestring.s
ty (/usr/local/texlive/2021/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2021/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty))))
(/usr/local/texlive/2021/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/xstring/xstring.tex))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/biblatex-hooks.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/biblatex.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/logreq/logreq.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/logreq/logreq.def))
(/usr/local/texlive/2021/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/blx-dm.def)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/blx-unicode.def)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/blx-compat.def)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/biblatex.def)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.bb
x)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.cb
x) (/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/biblatex.cfg))

Package biblatex Warning: Since you are using the 'memoir' class,
(biblatex)                I'm leaving the formatting of the foot- and/or
(biblatex)                end-note mark and text to you..

) (/usr/local/texlive/2021/texmf-dist/tex/latex/xifthen/xifthen.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/tools/calc.sty)) (./myconfig.cfg
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) (/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/tex4ht.sty
l.855 --- TeX4ht warning --- nonprimitive \everypar ---
--- needs --- tex4ht main ---
(./main.tmp) (./main.xref)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/latex.4ht
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/lm/t1lmr.fd))
(/usr/local/texlive/2021/texmf-dist/tex/generic/kastrup/binhex.tex)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/tuenc.def)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/tuenc-xetex.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/fontmath.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht [1] [2]
[3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18]
[19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33]
[34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48]
[49] [50] [51] [52] [53])
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/memoir.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/book.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/verse.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/booktabs.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/array.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/dcolumn.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/tabularx.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ifthen.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/biblatex-chicago.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/nameref.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/biblatex.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/url.4ht
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/unicode.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/mathml.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht))

Package biblatex Warning: Patching footnotes failed.
(biblatex)                Footnote detection will not work.

(/usr/local/texlive/2021/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
(|extractbb --version)) (./main.aux)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/ts1cmr.fd)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex-chicago/cms-american.lbx
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/lbx/american.lbx
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/lbx/english.lbx))
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/lbx/english.lbx))
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3kernel/expl3.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/biblatex/blx-case-expl3.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht)
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/tex4ht/expl3-hooks.4ht)))
(./main.bbl))
! Argument of \etb@tgl@blx@useauthor has an extra }.
<inserted text>
                \par
l.37 \cite[83]{roberts:marcianus:framing}

答案1

错误似乎是由于\TE@replXifthen 包中命令的重新定义而发生的。问题在于它与 TeX4ht 的补丁冲突\ifthenelse,该补丁重新定义\begingroup为插入一些代码,然后将其重新定义回其原始含义。我们可以改用保存的原始版本的\begingroup, \sv:begingroup, 。

尝试这个补丁文件xifthen.4ht

\def \TE@repl #1#2{%
  \long \def \@tempc ##1#1##2{%
    \def \@tempb{\@tempc}%
    \sv:begingroup % Thanks MPG
      \toks@ {##2}%
      \edef \@tempa {\the \toks@}% <- UF v1.3
    \expandafter \endgroup
    \ifx \@tempa \@tempb
      \toks@ \expandafter {\the \toks@ ##1}%
      \expandafter \@gobble
    \else
      \toks@ \expandafter {\the \toks@ ##1#2}%
      \expandafter \@tempc
    \fi
    ##2%
  }%
  \toks@ \expandafter {\expandafter}%
  \expandafter \@tempc \the \toks@ #1\@tempc
}
\Hinput{xifthen}
\endinput

然后就可以顺利编译了:

在此处输入图片描述

相关内容