aboutsummaryrefslogtreecommitdiff
path: root/samples/icite-nobiblatex.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-nobiblatex.tex
parent30f48bfd476c14cf4671e3504eb9d4367bfce99b (diff)
downloadicite-9ca857bc0f1489662f38adf5e619d8f54a38ce48.tar.gz
added sample filesv1.1
Diffstat (limited to 'samples/icite-nobiblatex.tex')
-rw-r--r--samples/icite-nobiblatex.tex85
1 files changed, 85 insertions, 0 deletions
diff --git a/samples/icite-nobiblatex.tex b/samples/icite-nobiblatex.tex
new file mode 100644
index 0000000..6893247
--- /dev/null
+++ b/samples/icite-nobiblatex.tex
@@ -0,0 +1,85 @@
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{hologo}
14\usepackage{enumitem}
15\setlist{nosep}
16\setlist[itemize]{label=\textendash}
17\setlist[enumerate,1]{label=(\alph*)}
18\setlist[enumerate,2]{label=\roman*.}
19
20\usepackage[defaultindex=none, nobibengine]{icite}
21\IndexSubtypeAs{ancient}{pr-sources}
22\bibinput{bibsample}
23
24\usepackage[xindy]{imakeidx}
25\makeindex[name=pr-sources, title={Index locorum citatorum}]
26
27\begin{document}
28\DefineShortVerb{\|}
29\vspace*{-.5in}
30\noindent
31\textbf{\textsf{icite sample file}} --- \cczero\ This
32file is public domain
33
34\section*{Preamble}
35This file demonstrates how \textsf{icite} can be used to produce an
36index of passages cited without using either \hologo{BibTeX} or
37Bib\LaTeX.
38
39The relevant part of the preamble which is used here follows:
40\begin{Verbatim}
41\usepackage[defaultindex=none, nobibengine]{icite}
42\IndexSubtypeAs{ancient}{pr-sources}
43\bibinput{bibsample}
44
45\usepackage[xindy]{imakeidx}
46\makeindex[name=pr-sources, title={Index locorum citatorum}]
47\end{Verbatim}
48
49\paragraph{Remarks}
50\begin{enumerate}
51\item |defaultindex=none| disables indexing by default.
52\item |nobibengine| instructs \textsf{icite} to insert the citations
53 in the body text without using either \hologo{BibTeX} or Bib\LaTeX.
54\item |\IndexSubtypeAs{ancient}{pr-sources}| makes an exception for
55 authors whose |entrysubtype| field matches the string |ancient| and
56 instructs \textsf{icite} to have them indexed in an index named
57 |pr-sources|.
58\item To actually produce the index, |\printindex[pr-sources]| is
59 needed at the end of the document.
60\end{enumerate}
61
62\section*{Body text}
63Plato, \emph{Laches}: first
64citation.\footnote{\icite[179a1--4]{Plato:Laches}.} And
65another,\footnote{\icite[179c5--180a1]{Plato:Laches}.}
66and another.\footnote{\icite[181b5--c3]{Plato:Laches}.}
67
68Plato, \emph{Theaetetus}: first
69citation.\footnote{\icite[142c2--d3]{Plato:Theaetetus}.}
70And another,\footnote{\icite[142d4--5]{Plato:Theaetetus}.}
71and another.\footnote{\icite[143b5]{Plato:Theaetetus}.}
72
73Aristotle, \emph{Politica}: first citation.\footnote{%
74 \icite[1252a25--b27]{Aristotle:Politica}.} And
75another,\footnote{\icite[1253a5]{Aristotle:Politica}.} and
76another.\footnote{\icite[1253a30--39]{Aristotle:Politica}.}
77
78This passage should not be
79indexed.\footnote{\icite[44--78]{Reynolds.Wilson1994}.}
80
81\printindex[pr-sources]
82
83\section*{Bibliographical database}
84\VerbatimInput{bibsample.bib}
85\end{document}