我正在使用imakeidx
包,现在需要为一个索引的标题添加脚注。有办法吗?
基本上,我需要在一个索引的标题旁边加上一个星号,并在下面脚注中加上解释。
这是我的 MWE:
\documentclass[a4paper,11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\usepackage[ngerman]{babel}
\usepackage[style=historische-zeitschrift, maxnames=2, hyperref=true, backref=true, backrefstyle=none, backend=biber, idemtracker=true]{biblatex}
\usepackage{imakeidx}
\indexsetup{level=\section*,toclevel=section,headers={Stellenregister}{\indexname},firstpagestyle=scrheadings}%
\makeindex[name=band1-bibelstellen,title=Biblische Bücher\protect\footnote{Bücher}, columns=4, intoc, columnsep=15pt]
\makeindex[name=band1-patrquellen,title=Patristische Schriften, columns=4, intoc, columnsep=8pt]
\makeindex[name=band1-themen,title=Themen, intoc, columnsep=8pt]
\makeindex[name=band1-personen,title=Personen, intoc, columnsep=15pt]
\begin{document}
\tableofcontents
\pagebreak
\blindtext\index[band1-patrquellen]{First!Second!Third}
\blindtext\index[band1-bibelstellen]{First!Second!Third}
\blindtext\index[band1-themen]{First!Second!Third}
\printindex[band1-bibelstellen]
\printindex[band1-patrquellen]
\printindex[band1-themen]
\printindex[band1-personen]
\end{document}
答案1
这有点像是临时解决办法,但您可以\imki@putindex
临时修补以手动指定应该添加到目录中的内容。
以下是一个 MWE,展示了如何执行此操作。只需在调用之前加载etoolbox
然后修补即可。将命令和命令都放在括号中,以确保更改仅限于本地。\imki@putindex
\printindex
\patch
\printindex
\documentclass{article}
\usepackage{etoolbox}
\usepackage[nonewpage]{imakeidx}
\makeindex[title=Index\protect\footnote{A footnote},intoc]
\begin{document}
\null\vfill
\tableofcontents
\index{Filler text}
{% patch printing of heading in TOC to leave out footnote
\makeatletter
\patchcmd{\imki@putindex}
{\imki@title}
{Index}% <- specify your desired TOC entry here
{}
{}
\makeatother
\printindex
}
% compare with index title printed with footnote in TOC
\printindex
\end{document}