
我的問題是我不希望自動索引條目出現在目錄中,而是希望手動新增一個。但無論我如何嘗試,自動輸入總是出現。
我嘗試過以下組合:
\usepackage{imakeidx}
\usepackage{makeidx}
\makeindex
\makeindex[columns=3, intoc=false]
\makeindex[intoc=false]
\printindex
我似乎遇到的另一個問題是鍵值似乎imakeidx-makeindex
根本沒有做任何事情,並且\indexsetup
在序言中傳回錯誤。我使用了重複的構建,因此 TOC 構建器不會產生煙霧和鏡子。
答案1
問題不清楚。該選項intoc=false
是在包中預設的imakeidx
,並且沒有ToC
使用這個小文檔的條目。
如果應該製作的話,使用intoc=true
也可以ToC
。
但是,makeidx
和imakeidx
不應該一起加載。使用最新的imakeidx
tocbibind
不應加載該包,因為它不能與imakeidx
.
\documentclass{article}
\usepackage{url}
\usepackage{imakeidx}
\makeindex[columns=3,title={Index of more or less famous \TeX\ folks},intoc=false]
\begin{document}
\tableofcontents
\vskip\baselineskip
A lot of people spend their time on \url{www.tex.stackexchange.com}, to boldly \TeX\ where others don't dare ;-)
\index{egreg}
\index{Paulo}
\index{David}
\index{Werner}
\index{Johannes}
\index{Joseph}
\index{Harish}
\index{Clemens}
\index{Heiko}
\index{Will}
\index{Bruno}
\index{Gonzalo}
\index{Mico}
\index{Ulrike}
\index{barbara}
\index{cfr}
\index{BlackForester}
\printindex
\end{document}