尝试使用 imakidx 创建索引,但 idx 文件为空

尝试使用 imakidx 创建索引,但 idx 文件为空

我正在使用 BL-OSCOLA 包,这是一个法律引用包。我想创建一个索引,它是一个案例表(因此它不需要索引这些案例出现在哪个页面上,我只需要能够显示我的大量案例列表,并根据管辖权进行分类)。我已按照 Oscola 包中的说明进行操作,但 idx 文件和 ind 文件被创建为空(idx 没有显示任何条目,ind 文件中没有写入任何内容),因此没有创建索引。当我检查文件夹时,所有索引项目都被发送到垃圾文件。我做错了什么?(我是新手,所以请像向 10 岁的孩子解释一样解释)。

我先运行 pdflatex,然后运行 ​​biber,然后运行 ​​pdflatex,然后运行 ​​makeindex - 但到那时它就停止了,什么也没有!(所以即使最后运行 pdflatex 也没有什么区别)我也尝试过不用 biber,但仍然没有成功。

这是我的“主要” texfile:

\documentclass[bibliography=totoc,a4paper,openright]{scrbook}

\usepackage[backend=biber, style=oscola, indexing=cite]{biblatex}   
%indexing=cite is necessary for the table of cases
\addbibresource{testbiblio.bib} %necessary for Oscola
\usepackage[style=british]{csquotes} %necessary for Oscola

\usepackage{imakeidx}
\makeindex[name=intcases, title={Table of Cases from International Tribunals}]

%DeclareIndexAssociation "hooks" the citations to the index name above. The first 
%variable is the keyword in my bib file
\DeclareIndexAssociation{ICTY}{intcases}
\DeclareIndexAssociation{ICC}{intcases}

\begin{document}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus eget elit gravida,
pharetra mauris at, malesuada dui. Sed vitae tortor ante. Quisque sollicitudin 
accumsan nulla sit amet mattis.\footcite{Tadic} Nam non malesuada nisl. Aliquam erat 
volutpat.\footcites{Vasiljevic}{Banda} In eu vulputate sem, in sagittis arcu. Nullam 
fringilla libero non nisi aliquam, eget pulvinar arcu pulvinar. Ut tristique 
ullamcorper nisl, vitae cursus nulla varius vel. Proin non rhoncus 
risus.\footcite{AlBashirIndictment}


\printindex[intcases]

\end{document}

这是我的 bib 文件(请注意,这些都是案例,因此这里的所有信息对于正确引用都是必要的):

@jurisdiction{AlBashirIndictment,
title = {Public Redacted Version of Prosecutor's Application for Warrant of Arrest 
under Art. 58},
date = {2008-09-12},
number = {ICC-02/05-157},
court = {ICC Pre Trial Chamber},
pagination = {paragraph},
keywords= {ICC},
}

@jurisdiction{Banda,
title = {The Prosecutor v Banda and Jerbo},
date = {2011-03-07},
number = {ICC--02/05-03/09-121-Conf-Corr},
court = {ICC Pre Trial Chamber},
pagination = {paragraph},
keywords= {ICC},
}

@jurisdiction{Tadic,
title = {The Prosecutor v Dusko Tadi\'{c}, Appeals Judgment},
date = {1999-07-15},
number = {IT-94-1-A},
court = {ICTY Appeals Chamber},
pagination = {paragraph},
keywords= {ICTY}
}

@jurisdiction{Vasiljevic,
title = {The Prosecutor v Mitar Vasiljevi\'{c}, Appeals Judgment},
date = {2004-02-25},
number = {IT-98-32-A},
court = {ICTY Appeals Chamber},
pagination = {paragraph},
keywords = {ICTY}
}

我错过了什么?

答案1

tabulate={intcases}如果要引入一个名为的新案例索引类型,则必须使用该字段intcases,请参阅当前文档的第 16 页oscola

我已经更新了此功能的书目文件,并将传统更改makeindexsplitindex,正如手册中建议的那样。

\documentclass[bibliography=totoc,a4paper,openright]{scrbook}

\usepackage[backend=biber, style=oscola, indexing=cite]{biblatex}   
%indexing=cite is necessary for the table of cases
\addbibresource{testbiblio.bib} %necessary for Oscola

\usepackage[style=british]{csquotes} %necessary for Oscola

\usepackage[splitindex]{imakeidx}

%DeclareIndexAssociation "hooks" the citations to the index name above. The first 
%variable is the keyword in my bib file

\DeclareIndexAssociation{ICC}{intcases}
\DeclareIndexAssociation{ICTY}{intcases}

\makeindex[name=intcases, title={Table of Cases from International Tribunals}]


\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus eget elit gravida,
pharetra mauris at, malesuada dui. Sed vitae tortor ante. Quisque sollicitudin 
accumsan nulla sit amet mattis.\footcite{Tadic} Nam non malesuada nisl. Aliquam erat 
volutpat.\footcites{Vasiljevic}{Banda} In eu vulputate sem, in sagittis arcu. Nullam 
fringilla libero non nisi aliquam, eget pulvinar arcu pulvinar. Ut tristique 
ullamcorper nisl, vitae cursus nulla varius vel. Proin non rhoncus 
risus.\footcite{AlBashirIndictment}


\printindex[intcases]
\printbibliography

\end{document}

测试书目

@jurisdiction{AlBashirIndictment,
title = {Public Redacted Version of Prosecutor's Application for Warrant of Arrest 
under Art. 58},
date = {2008-09-12},
number = {ICC-02/05-157},
court = {ICC Pre Trial Chamber},
pagination = {paragraph},
tabulate={intcases},
keywords= {ICC},
}

@jurisdiction{Banda,
title = {The Prosecutor v Banda and Jerbo},
date = {2011-03-07},
number = {ICC--02/05-03/09-121-Conf-Corr},
court = {ICC Pre Trial Chamber},
pagination = {paragraph},
tabulate={intcases},
keywords= {ICC},
}

@jurisdiction{Tadic,
title = {The Prosecutor v Dusko Tadi\'{c}, Appeals Judgment},
date = {1999-07-15},
number = {IT-94-1-A},
court = {ICTY Appeals Chamber},
pagination = {paragraph},
tabulate={intcases},
keywords= {ICTY},
}

@jurisdiction{Vasiljevic,
title = {The Prosecutor v Mitar Vasiljevi\'{c}, Appeals Judgment},
date = {2004-02-25},
number = {IT-98-32-A},
court = {ICTY Appeals Chamber},
pagination = {paragraph},
tabulate={intcases},
keywords = {ICTY},
}

在此处输入图片描述

相关内容