4

How do I get the indexing (which I have set to 1 column) to use dot leaders? I have seen questions relating to tocloft, but this is for the TOC and not the index. Is there an idxlayout command I can use?

My index is of judgments and cases, which often have numbers as part of their citation, so instead of this:

The Prosecutor v Mitar Vasiljevic, Appeals Judgment IT-98-32-A, 1

I would prefer this:

The Prosecutor v Mitar Vasiljevic, Appeals Judgment IT-98-32-A.................1

(where the final "1" is the page number which has been indexed)

My MWE is:

\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}

My minimal bib database is:

@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}
}
4
  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – user31729
    Jun 25, 2014 at 11:40
  • @ChristianHupfer, just added. Sorry to have left it out
    – user55972
    Jun 25, 2014 at 11:57
  • 1
    This must be done at the MakeIndex style level.
    – egreg
    Jun 25, 2014 at 13:25
  • Looks like the question was answered. I was wondering why it was not accepted by now.
    – A Feldman
    Apr 7, 2016 at 11:15

1 Answer 1

5

You can do this at the MakeIndex style level.

Prepare a file intcases.ist with the following contents:

item_0 "\n \\noitem"
delim_0 "\\nobreak\\dotfill"

and then change your document into

\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}

enter image description here

If you really use the noautomatic option, you must remember to execute

makeindex -s intcases ICTY

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .