如何运行htlatex
包含 biblatex 书目的程序?这是最简单的例子:
\documentclass{article}
\usepackage{biblatex}
\addbibresource{libr.bib}
\begin{document}
Text.\cite{dickens1881great}
\printbibliography
\end{document}
我是这样跑步的:
latex main
biber main
htlatex main
在最后阶段htlatex
询问“未定义的控制序列”:
\blx@begunit ...penalty \@M \hskip -\blx@unitmark
\relax \hskip \blx@unitmar...
l.7 Text.\cite{dickens1881great}
日志文件中有很多这样的错误,但 htlatex 允许跳过它们。此外,html 也不太好。缺少标点符号、格式:
<p class="noindent" ><a
id="X0-dickens1881great"></a>C. Dickens<span
class="cmti-10">Great Expectations</span>Penguin English librarypt. 1Dent1881<span
class="cmcsc-10"><span
class="small-caps">u</span><span
class="small-caps">r</span><span
class="small-caps">l</span></span>:
<a
href="http://books.google.com/books?id=fhUXAAAAYAAJ" class="url" ><span
class="cmtt-10">http://books.google.com/books?id=fhUXAAAAYAAJ</span></a>.
这是最好的结果吗或者我做错了什么?
答案1
tex4ht 的 biblatex 适配版本不是最新的。它依赖于不再存在的命令。尝试
\makeatletter
\newcommand\blx@unitmark{23sp}
\makeatother