Makeindex
使用 option-s*.ist
不会打印索引。options= 是什么意思* mean
?是否有任何命令允许我为索引条目着色?我使用TexWorks
with Miktex
。感谢您的帮助。
\documentclass{book}
\usepackage{imakeidx}
\makeindex[name=one,title=Index One, intoc, options= -s one.ist]
%\makeindex[name=one,title=Index One, intoc]
\makeindex[name=four,title=Index Four, intoc, options= -s four.ist]
%\makeindex[name=four,title=Index Four]
\makeindex[name=six,title=Index Six, intoc, options= -s six.ist]
%\makeindex[name=six,title=Index Six]
\usepackage[hangindent=0pt,subindent=0pt,subsubindent=0pt]{idxlayout}
\begin{document}
Some text.
\index[one]{Acts of the Avocados!2:2}
\index[one]{Acts of the Avocados!5:5}
\index[one]{Acts of the Avocados!3:3}
\index[one]{Acts of the Avocados!5:5}
\index[one]{Acts of the Avocados!6:6}
\index[one]{Acts of the Avocados!7:7}
\index[one]{Acts of the Avocados!8:8}
\index[one]{Romaines!3:3}
\index[one]{Romaines!4:4}
\index[one]{Romaines!5:5}
\index[four]{Aristotle!Metaphysalis!205c}
\index[four]{Aristotle!Metaphysalis!306d}
\index[four]{Plato!Tomatoes!407e}
\index[four]{Cicero!Lettuce!115}
\index[six]{Bananerges}
\index[six]{Appleadorus}
\index[six]{Plato}
\index[six]{Plato!\textit{Potatoes}!144a}
\index[six]{Plato!\textit{Potatoes}!166d}
\printindex[one]
\printindex[four]
\idxlayout{itemlayout=abshang}
\printindex[six]
\end{document}
答案1
options=-s XXX.ist
指示makeindex
使用 中指定的索引样式XXX.ist
。除非这是标准文件,否则您需要提供它。如果您不想为每个索引指定定制样式,只需从选项中删除它即可。然后索引就可以正常创建了。
\makeindex[name=one,title=Index One, intoc]%, options= -s one.ist]% or supply style in file one.ist
\makeindex[name=four,title=Index Four, intoc]%, options= -s four.ist]
\makeindex[name=six,title=Index Six, intoc]%, options= -s six.ist]