aboutsummaryrefslogtreecommitdiff
path: root/samples/icite-biblatex.tex
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-03-12 19:37:12 +0100
committerRobert Alessi <alessi@robertalessi.net>2019-03-12 19:37:12 +0100
commit9ca857bc0f1489662f38adf5e619d8f54a38ce48 (patch)
tree8c6d7f89937aed137e09fc4b9422cd832a9b22c2 /samples/icite-biblatex.tex
parent30f48bfd476c14cf4671e3504eb9d4367bfce99b (diff)
downloadicite-9ca857bc0f1489662f38adf5e619d8f54a38ce48.tar.gz
added sample filesv1.1
Diffstat (limited to 'samples/icite-biblatex.tex')
-rw-r--r--samples/icite-biblatex.tex88
1 files changed, 88 insertions, 0 deletions
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 @@
1% Compile with --shell-escape
2\documentclass{article}
3\usepackage[english]{babel}
4
5\usepackage{hyperref}
6\hypersetup{colorlinks, hidelinks, pdfauthor={Robert
7 Alessi}, pdftitle={icite and BibLaTeX}}
8
9\usepackage{fancyvrb}
10\fvset{numbers=left,obeytabs,frame=lines}
11
12\usepackage{ccicons}
13\usepackage{enumitem}
14\setlist{nosep}
15\setlist[itemize]{label=\textendash}
16\setlist[enumerate,1]{label=(\alph*)}
17\setlist[enumerate,2]{label=\roman*.}
18
19\usepackage[citecmd=autocite, defaultindex=none]{icite}
20\IndexSubtypeAs{ancient}{pr-sources}
21\bibinput{bibsample}
22
23\usepackage[xindy]{imakeidx}
24\makeindex[name=pr-sources, title={Index locorum citatorum}]
25
26\usepackage[style=oxnotes]{biblatex}
27\addbibresource{bibsample.bib}
28
29\begin{document}
30\DefineShortVerb{\|}
31\vspace*{-.5in}
32\noindent
33\textbf{\textsf{icite sample file}} --- \cczero\ This
34file is public domain
35
36\section*{Preamble}
37This file demonstrates how \textsf{icite} can be used to produce an
38index of passages cited in combination with Bib\LaTeX.
39
40The relevant part of the preamble which is used here follows:
41\begin{Verbatim}
42\usepackage[citecmd=autocite, defaultindex=none]{icite}
43\IndexSubtypeAs{ancient}{pr-sources}
44\bibinput{bibsample}
45
46\usepackage[xindy]{imakeidx}
47\makeindex[name=pr-sources, title={Index locorum citatorum}]
48
49\usepackage[style=oxnotes]{biblatex}
50\addbibresource{bibsample.bib}
51\end{Verbatim}
52
53\paragraph{Remarks}
54\begin{enumerate}
55\item |citecmd=autocite| instructs \textsf{icite} to use the
56 |\autocite| command to insert the citations in the body text.
57\item |defaultindex=none| disables indexing by default.
58\item |\IndexSubtypeAs{ancient}{pr-sources}| makes an exception for
59 authors whose |entrysubtype| field matches the string |ancient| and
60 instructs \textsf{icite} to have them indexed in an index named
61 |pr-sources|.
62\item To actually produce the index, |\printindex[pr-sources]| is needed
63 at the end of the document.
64\end{enumerate}
65
66\section*{Body text}
67Plato, \emph{Laches}: first
68citation\icite[179a1--4]{Plato:Laches}. And
69another\icite[179c5--180a1]{Plato:Laches}, and
70another\icite[181b5--181c3]{Plato:Laches}.
71
72Plato, \emph{Theaetetus}: first
73citation\icite[142c2--142d3]{Plato:Theaetetus}. And
74another\icite[142d4--5]{Plato:Theaetetus}, and
75another\icite[143b5]{Plato:Theaetetus}.
76
77Aristotle, \emph{Politica}: first
78citation\icite[1252a25--1252.b27]{Aristotle:Politica}. And
79another\icite[1253a5]{Aristotle:Politica}, and
80another\icite[1253a30--39]{Aristotle:Politica}.
81
82This passage should not be indexed\icite[44--78]{Reynolds.Wilson1994}.
83
84\printindex[pr-sources]
85
86\section*{Bibliographical database}
87\VerbatimInput{bibsample.bib}
88\end{document}