我有一本大书,里面有很多索引条目。索引中出现了一些重叠打印,如下所示:
我已经创建了一个 MWE:
\documentclass[12pt]{article}
\usepackage{makeidx}
\makeindex
\begin{document}
This is the first page.
\index{European Organization for Nuclear Research (CERN)}
\index{fable book}
\index{fable forger}
\index{fable-framing}
\index{fable play}
\index{fable teller}
\index{fabrication tax}
\index{fabric spring}
\index{fabric tire}
\index{face-about}
\index{face-ache}
\index{face ague}
\index{face angle}
\index{face-arbor}
\index{face bath}
\index{face-bedded}
\index{face bone}
\index{face brick}
\index{face card}
\index{face-centered}
\index{face chuck}
\index{face cleat}
\index{face cog}
\index{face cord}
\index{face cover}
\index{face cream}
\index{faced-lined}
\index{face dresser}
\index{face dressing}
\index{face enamel}
\index{face gear}
\index{face guard}
\index{face hammer}
\index{face-harden}
\index{face joint}
\index{face lathe}
\index{face lifting}
\index{face mask}
\index{face massage}
\index{face milling}
\index{face mite}
\index{face mold}
\index{face molder}
\index{face-off}
\index{face-on}
\index{face paint}
\index{face painter}
\index{face painting}
\index{face par}
\index{face pit}
\index{faceplate coupling}
\index{faceplate jaw}
\index{face powder}
\index{face presentation}
\index{face rouge}
\index{face-saving}
\index{face side}
\index{face spanner}
\index{face specialist}
\index{face sponge}
\index{face stone}
\index{face string}
\index{face towel}
\index{face urn}
\index{face value}
\fontsize{9}{10}\selectfont
\printindex
\end{document}
使用 后12pt
,它看起来是这样的:
我用以下代码编译它:
$ latexmk -pdfxe -bibtex idemo.tex ; open idemo.pdf
-pdf
(使用而不是得到相同的结果pdfxe
)
答案1
我会使用imakeidx
,它在内部使用multicol
而不是标准的两列格式。它也不需要单独运行makeindex
。
\documentclass[12pt]{article}
\usepackage{imakeidx}
\makeindex
\indexsetup{othercode=\fontsize{9}{10}\selectfont}
\begin{document}
This is the first page.
\index{European Organization for Nuclear Research (CERN)}
\index{fable book}
[...other index entries omitted...]
\printindex
\end{document}
您还可以考虑三列格式:
\documentclass[12pt]{article}
\usepackage{imakeidx}
\makeindex[columns=3]
\indexsetup{othercode=\fontsize{9}{10}\selectfont}
\begin{document}
[...the rest is the same...]
答案2
它实际上与索引或文档类选项无关,只是某些词序列在某些行宽下很难中断。
使用
\fontsize{9}{10}\selectfont\raggedright
或者
\fontsize{9}{10}\selectfont\sloppy
允许它在不过满的情况下断裂并粘在下一列,效果是不同的,但您可以选择您喜欢的效果。