如何让索引(我已将其设置为 1 列)使用点引线?我看到过与 相关的问题tocloft
,但这是针对目录而不是索引。是否有可以使用的 idxlayout 命令?
我的索引是判决和案例,它们通常以数字作为引用的一部分,因此不是这样的:
检察官诉 Mitar Vasiljevic,上诉判决 IT-98-32-A,1
我更喜欢这样:
检察官诉 Mitar Vasiljevic,上诉判决 IT-98-32-A.................1
(其中最后一个“1”是已编入索引的页码)
我的 MWE 是:
\documentclass[bibliography=totoc,a4paper,openright]{scrbook}
\usepackage[backend=biber, style=oscola, indexing=cite]{biblatex}
\addbibresource{testingbiblio.bib} %necessary for Oscola
\usepackage[style=british]{csquotes} %necessary for Oscola
\usepackage[noautomatic,nonewpage]{imakeidx}
\makeindex[name=ICTY, columns=1, title={International Criminal Tribunal for Former
Yugoslavia}]
\indexsetup{level=\chapter*} %no page break with chapters
\indexsetup{level=\section*} %no page break with sections
\newcommand{\startindices}{%
\chapter*{TABLE OF CASES}
\let\latexcleardoublepage\cleardoublepage
\def\cleardoublepage{%
\def\cleardoublepage{%
\global\let\cleardoublepage\latexcleardoublepage}}%
}
\begin{document}
Blah blah.\footcite{Vasiljevic}
\startindices
\chapter*{International Tribunals}
\printindex[ICTY]
\end{document}
我的最小 bib 数据库是:
@jurisdiction{Vasiljevic,
title = {The Prosecutor v Mitar Vasiljevi\'{c}, Appeals Judgment},
shorttitle = {Vasiljevi\'{c} Appeal},
date = {2004-02-25},
number = {IT-98-32-A},
court = {Appeals Chamber},
pagination = {paragraph},
tabulate = {ICTY},
keywords={ICTY}
}
答案1
您可以在 MakeIndex 样式级别执行此操作。
准备一个文件intcases.ist
,内容如下:
item_0 "\n \\noitem"
delim_0 "\\nobreak\\dotfill"
然后将您的文档更改为
\documentclass[bibliography=totoc,a4paper,openright]{scrbook}
\usepackage[backend=biber, style=oscola, indexing=cite]{biblatex}
\addbibresource{testingbiblio.bib} %necessary for Oscola
\usepackage[style=british]{csquotes} %necessary for Oscola
\usepackage{imakeidx}
\makeindex[
name=ICTY,
columns=1,
options=-s intcases, % <---------- USE THE NEW MakeIndex STYLE
title={International Criminal Tribunal for Former Yugoslavia},
]
\indexsetup{level=\chapter*} %no page break with chapters
\indexsetup{level=\section*} %no page break with sections
\newcommand{\startindices}{%
\chapter*{TABLE OF CASES}
\let\latexcleardoublepage\cleardoublepage
\def\cleardoublepage{%
\def\cleardoublepage{%
\global\let\cleardoublepage\latexcleardoublepage
}%
}%
}
% the commands for typesetting the indices
\newcommand{\fillitem}{\nobreak\dotfill}
\newcommand{\noitem}{\par\noindent}
\begin{document}
Blah blah.\footcite{Vasiljevic}
\startindices
\chapter*{International Tribunals}
\printindex[ICTY]
\end{document}
如果你确实使用该noautomatic
选项,你必须记住执行
makeindex -s intcases ICTY