当我使用PDFLaTeX
它时,编译很好。我想LaTeX to HTML
使用进行转换Make4ht
,但它显示错误。
我的 MWE 是:
\providecommand{\pgfsyspdfmark}[3]{}
\documentclass{acm-book}
\usepackage{showframe}
\usepackage{balance}
\usepackage{amsmath}
\usepackage{booktabs,hyperref,listings,xcolor,colortbl}
\usepackage[inactive]{fancytooltips}
\usepackage{wrapfig}
\usepackage{afterpage}
\usepackage{makeidx}
\hypersetup{
pdftitle={A Technical History},
pdfauthor={W. Trcy -- Rose-Hulman, IN, USA},
pdfkeywords={Morgan \& Claypool},%
}
\newcommand\BookSeries[1]{#1}
\newcommand\BookAffil[1]{#1}
\newcommand\HalfTitle[1]{#1}
\newcommand\Author[1]{#1}
\newcommand\Affiliation[1]{#1}
\definecolor{titlecolor}{cmyk}{0, 0.7808, 0.4429, 0.1412}
\makeindex
\begin{document}
\chapter*{Preface}
Furthermore, legacy software systems are notoriously difficult to replace. As noted experienced by this author as a chief information officer, legacy systems take considerable effort and money to replace and tend to be built upon, rather than replaced. So, those working on systems for complex organizations are likely to have to deal with these existing software systems. US Social Security Administration still dependencies on legacy software further entrenches its use. Other systems used by the US government have software sub-systems.
\begin{quote}
But we [historians] remain largely ignorant about the origins and development of the dynamic processes running on those devices [computers], but primarily they will be histories of software.
\end{quote}
In the last couple of decades, software has gotten attention as a distinct topic from computer history. In particular there are wide-scoping works on the software industry. There's also been work on the evolved.
Software\index{Software|(} is a relatively recent technology, really only beginning in its own right in the 1950s. In the time since then, it's taken many forms, evolved immensely in the tools used, and in the purposes to which it has been put. Interestingly, software has become so varied and so complex that many current students of technology do not have a basic knowledge of the history of software. As a result, students and practitioners are sometimes repeating mistakes of the past and often relearning how to build successful systems. Additionally, some areas of software require a working knowledge of previously deployed software systems and their design decisions, such as software security\index{Software!security}. When reusing existing software, it is wise to evaluate the relevance of the techniques and assumptions that were used in building that original software. This book focuses on software as a technology and how it has evolved over time. We will look at the trends, important innovations, and events, as well as the ever-broadening world of software.
\printindex
\end{document}
编辑1:
我已按照michal
答案进行了更新,但仍然显示错误。MakeIndex 显示错误图像是:
答案1
TeX4ht 需要make4ht
构建文件中的额外命令来支持索引。请参阅文档具有索引支持的基本构建文件如下所示:
if mode=="draft" then
Make:htlatex {}
else
Make:htlatex {}
Make:makeindex {}
Make:htlatex{}
Make:htlatex{}
end
然后你可以使用以下方法编译你的文件
make4ht -e build.lua filename.tex
还有其他选项可以代替Make:makeindex{}
,例如Make:xindex{}
,它使用 Xindex,Makeindex 的现代替代品。
关于您的错误,它已在 TeX4ht 源中修复。修复后的latex.4ht
文件太大,无法在此处发布,但您可以更新 TeX Live 发行版,然后它应该可以正常工作。
结果如下: