From 9ca857bc0f1489662f38adf5e619d8f54a38ce48 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Tue, 12 Mar 2019 19:37:12 +0100
Subject: added sample files

---
 samples/icite-biblatex.tex | 88 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)
 create mode 100644 samples/icite-biblatex.tex

(limited to 'samples/icite-biblatex.tex')

diff --git a/samples/icite-biblatex.tex b/samples/icite-biblatex.tex
new file mode 100644
index 0000000..e52cb8b
--- /dev/null
+++ b/samples/icite-biblatex.tex
@@ -0,0 +1,88 @@
+% 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{enumitem}
+\setlist{nosep}
+\setlist[itemize]{label=\textendash}
+\setlist[enumerate,1]{label=(\alph*)}
+\setlist[enumerate,2]{label=\roman*.}
+
+\usepackage[citecmd=autocite, defaultindex=none]{icite}
+\IndexSubtypeAs{ancient}{pr-sources}
+\bibinput{bibsample}
+
+\usepackage[xindy]{imakeidx}
+\makeindex[name=pr-sources, title={Index locorum citatorum}]
+
+\usepackage[style=oxnotes]{biblatex}
+\addbibresource{bibsample.bib}
+
+\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 in combination with Bib\LaTeX.
+
+The relevant part of the preamble which is used here follows:
+\begin{Verbatim}
+\usepackage[citecmd=autocite, defaultindex=none]{icite}
+\IndexSubtypeAs{ancient}{pr-sources}
+\bibinput{bibsample}
+
+\usepackage[xindy]{imakeidx}
+\makeindex[name=pr-sources, title={Index locorum citatorum}]
+
+\usepackage[style=oxnotes]{biblatex}
+\addbibresource{bibsample.bib}
+\end{Verbatim}
+
+\paragraph{Remarks}
+\begin{enumerate}
+\item |citecmd=autocite| instructs \textsf{icite} to use the
+  |\autocite| command to insert the citations in the body text.
+\item |defaultindex=none| disables indexing by default.
+\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\icite[179a1--4]{Plato:Laches}. And
+another\icite[179c5--180a1]{Plato:Laches}, and
+another\icite[181b5--181c3]{Plato:Laches}.
+
+Plato, \emph{Theaetetus}: first
+citation\icite[142c2--142d3]{Plato:Theaetetus}. And
+another\icite[142d4--5]{Plato:Theaetetus}, and
+another\icite[143b5]{Plato:Theaetetus}.
+
+Aristotle, \emph{Politica}: first
+citation\icite[1252a25--1252.b27]{Aristotle:Politica}. And
+another\icite[1253a5]{Aristotle:Politica}, and
+another\icite[1253a30--39]{Aristotle:Politica}.
+
+This passage should not be indexed\icite[44--78]{Reynolds.Wilson1994}.
+
+\printindex[pr-sources]
+
+\section*{Bibliographical database}
+\VerbatimInput{bibsample.bib}
+\end{document}
-- 
cgit v1.2.3

