| 1 |
\RequirePackage{filecontents} |
| 2 |
\begin{filecontents*}{\jobname.xdy} |
| 3 |
(merge-rule "\*" "" :eregexp) |
| 4 |
(markup-locclass-list :open ": " :sep ", ") |
| 5 |
\end{filecontents*} |
| 6 |
% Compile with --shell-escape |
| 7 |
\documentclass{article} |
| 8 |
\usepackage[english]{babel} |
| 9 |
|
| 10 |
\usepackage{hyperref} |
| 11 |
\hypersetup{colorlinks, hidelinks, pdfauthor={Robert |
| 12 |
Alessi}, pdftitle={icite and BibLaTeX}} |
| 13 |
|
| 14 |
\usepackage{fancyvrb} |
| 15 |
\fvset{numbers=left,obeytabs,frame=lines} |
| 16 |
|
| 17 |
\usepackage{ccicons} |
| 18 |
\usepackage{enumitem} |
| 19 |
\setlist{nosep} |
| 20 |
\setlist[itemize]{label=\textendash} |
| 21 |
\setlist[enumerate,1]{label=(\alph*)} |
| 22 |
\setlist[enumerate,2]{label=\roman*.} |
| 23 |
|
| 24 |
\usepackage[citecmd=autocite, defaultindex=none]{icite} |
| 25 |
\IndexSubtypeAs{ancient}{\jobname-primary} |
| 26 |
\bibinput{bibsample} |
| 27 |
|
| 28 |
\usepackage{classics} |
| 29 |
\newclassic{plat}{#1|#1|#1} |
| 30 |
\newclassic{arist}{#1|\textit{#1}|#1} |
| 31 |
|
| 32 |
\usepackage[xindy,nonewpage]{imakeidx} |
| 33 |
\makeindex[name=\jobname-primary, title={Index locorum citatorum}] |
| 34 |
|
| 35 |
\usepackage[style=oxnotes]{biblatex} |
| 36 |
\addbibresource{bibsample.bib} |
| 37 |
|
| 38 |
\begin{document} |
| 39 |
\DefineShortVerb{\|} |
| 40 |
\vspace*{-.5in} |
| 41 |
\noindent |
| 42 |
\textbf{\textsf{icite sample file}} --- \cczero\ This |
| 43 |
file is public domain |
| 44 |
|
| 45 |
\section*{Preamble} |
| 46 |
This file demonstrates how \textsf{icite} can be used to produce an |
| 47 |
index of passages cited in combination with Bib\LaTeX. |
| 48 |
|
| 49 |
The relevant part of the preamble which is used here follows: |
| 50 |
\begin{Verbatim} |
| 51 |
\usepackage[citecmd=autocite, defaultindex=none]{icite} |
| 52 |
\IndexSubtypeAs{ancient}{icite-biblatex-primary} |
| 53 |
\bibinput{bibsample} |
| 54 |
|
| 55 |
\usepackage{classics} |
| 56 |
\newclassic{plat}{#1|#1|#1} |
| 57 |
\newclassic{arist}{#1|\textit{#1}|#1} |
| 58 |
|
| 59 |
\usepackage[xindy]{imakeidx} |
| 60 |
\makeindex[name=icite-biblatex-primary, title={Index locorum citatorum}] |
| 61 |
|
| 62 |
\usepackage[style=oxnotes]{biblatex} |
| 63 |
\addbibresource{bibsample.bib} |
| 64 |
\end{Verbatim} |
| 65 |
|
| 66 |
\paragraph{Remarks} |
| 67 |
\begin{enumerate} |
| 68 |
\item |citecmd=autocite| instructs \textsf{icite} to use the |
| 69 |
|\autocite| command to insert the citations in the body text. |
| 70 |
\item |defaultindex=none| disables indexing by default. |
| 71 |
\item |\IndexSubtypeAs{ancient}{icite-biblatex-primary}| makes an |
| 72 |
exception for authors whose |entrysubtype| field matches the string |
| 73 |
|ancient| and instructs \textsf{icite} to have them indexed in an |
| 74 |
index named\\ |icite-biblatex-primary|. |
| 75 |
\item To actually produce the index, |
| 76 |
|\printindex[icite-biblatex-primary]| is needed at the end of the |
| 77 |
document. |
| 78 |
\end{enumerate} |
| 79 |
|
| 80 |
\section*{Body text} |
| 81 |
Plato, \emph{Laches}: first |
| 82 |
citation\icite[\plat{179}[a][1--4]]{Plato:Laches}. And |
| 83 |
another\icite[\plat*{179}[c][5]{180}[a][1]]{Plato:Laches}, and |
| 84 |
another\icite[\plat*{181}[b][5]{181}[c][3]]{Plato:Laches}. |
| 85 |
|
| 86 |
Plato, \emph{Theaetetus}: first |
| 87 |
citation\icite[\plat*{142}[c][2]{142}[d][3]]{Plato:Theaetetus}. And |
| 88 |
another\icite[\plat{142}[d][4--5]]{Plato:Theaetetus}, and |
| 89 |
another\icite[\plat{143}[b][5]]{Plato:Theaetetus}. |
| 90 |
|
| 91 |
Aristotle, \emph{Politica}: first |
| 92 |
citation\icite[\arist*{1252}[a][25]{1252}[b][27]]{Aristotle:Politica}. And |
| 93 |
another\icite[\arist{1253}[a][5]]{Aristotle:Politica}, and |
| 94 |
another\icite[\arist{1253}[a][30--39]]{Aristotle:Politica}. |
| 95 |
|
| 96 |
This passage should not be indexed\icite[44--78]{Reynolds.Wilson1994}. |
| 97 |
|
| 98 |
\printindex[\jobname-primary] |
| 99 |
|
| 100 |
\section*{Bibliographical database} |
| 101 |
\VerbatimInput{bibsample.bib} |
| 102 |
\end{document} |