% Compile with --shell-escape
\documentclass{article}
\usepackage[english]{babel}

\usepackage{hyperref}
\hypersetup{colorlinks, hidelinks, pdfauthor={Robert
    Alessi}, pdftitle={icite and BibLaTeX}}

\usepackage{fancyvrb}
\fvset{numbers=left,obeytabs,frame=lines}

\usepackage{ccicons}
\usepackage{hologo}
\usepackage{enumitem}
\setlist{nosep}
\setlist[itemize]{label=\textendash}
\setlist[enumerate,1]{label=(\alph*)}
\setlist[enumerate,2]{label=\roman*.}

\usepackage[defaultindex=none, nobibengine]{icite}
\IndexSubtypeAs{ancient}{pr-sources}
\bibinput{bibsample}

\usepackage[xindy]{imakeidx}
\makeindex[name=pr-sources, title={Index locorum citatorum}]

\begin{document}
\DefineShortVerb{\|}
\vspace*{-.5in}
\noindent
\textbf{\textsf{icite sample file}} --- \cczero\ This
file is public domain

\section*{Preamble}
This file demonstrates how \textsf{icite} can be used to produce an
index of passages cited without using either \hologo{BibTeX} or
Bib\LaTeX.

The relevant part of the preamble which is used here follows:
\begin{Verbatim}
\usepackage[defaultindex=none, nobibengine]{icite}
\IndexSubtypeAs{ancient}{pr-sources}
\bibinput{bibsample}

\usepackage[xindy]{imakeidx}
\makeindex[name=pr-sources, title={Index locorum citatorum}]
\end{Verbatim}

\paragraph{Remarks}
\begin{enumerate}
\item |defaultindex=none| disables indexing by default.
\item |nobibengine| instructs \textsf{icite} to insert the citations
  in the body text without using either \hologo{BibTeX} or Bib\LaTeX.
\item |\IndexSubtypeAs{ancient}{pr-sources}| makes an exception for
  authors whose |entrysubtype| field matches the string |ancient| and
  instructs \textsf{icite} to have them indexed in an index named
  |pr-sources|.
\item To actually produce the index, |\printindex[pr-sources]| is
  needed at the end of the document.
\end{enumerate}

\section*{Body text}
Plato, \emph{Laches}: first
citation.\footnote{\icite[179a1--4]{Plato:Laches}.} And
another,\footnote{\icite[179c5--180a1]{Plato:Laches}.}
and another.\footnote{\icite[181b5--c3]{Plato:Laches}.}

Plato, \emph{Theaetetus}: first
citation.\footnote{\icite[142c2--d3]{Plato:Theaetetus}.}
And another,\footnote{\icite[142d4--5]{Plato:Theaetetus}.}
and another.\footnote{\icite[143b5]{Plato:Theaetetus}.}

Aristotle, \emph{Politica}: first citation.\footnote{%
  \icite[1252a25--b27]{Aristotle:Politica}.}  And
another,\footnote{\icite[1253a5]{Aristotle:Politica}.}  and
another.\footnote{\icite[1253a30--39]{Aristotle:Politica}.}

This passage should not be
indexed.\footnote{\icite[44--78]{Reynolds.Wilson1994}.}

\printindex[pr-sources]

\section*{Bibliographical database}
\VerbatimInput{bibsample.bib}
\end{document}
