Debian Codegraph @

texmf-dist/doc/latex/icite/samples/icite-nobiblatex.tex

raw
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{hologo}
19 \usepackage{enumitem}
20 \setlist{nosep}
21 \setlist[itemize]{label=\textendash}
22 \setlist[enumerate,1]{label=(\alph*)}
23 \setlist[enumerate,2]{label=\roman*.}
24
25 \usepackage[defaultindex=none, nobibengine]{icite}
26 \IndexSubtypeAs{ancient}{\jobname-primary}
27 \bibinput{bibsample}
28
29 \usepackage{classics}
30 \newclassic{plat}{#1|#1|#1}
31 \newclassic{arist}{#1|\textit{#1}|#1}
32
33 \usepackage[xindy,nonewpage]{imakeidx}
34 \makeindex[name=\jobname-primary, title={Index locorum citatorum}]
35
36 \begin{document}
37 \DefineShortVerb{\|}
38 \vspace*{-.5in}
39 \noindent
40 \textbf{\textsf{icite sample file}} --- \cczero\ This
41 file is public domain
42
43 \section*{Preamble}
44 This file demonstrates how \textsf{icite} can be used to produce an
45 index of passages cited without using either \hologo{BibTeX} or
46 Bib\LaTeX.
47
48 The relevant part of the preamble which is used here follows:
49 \begin{Verbatim}
50 \usepackage[defaultindex=none, nobibengine]{icite}
51 \IndexSubtypeAs{ancient}{icite-nobiblatex-primary}
52 \bibinput{bibsample}
53
54 \usepackage{classics}
55 \newclassic{plat}{#1|#1|#1}
56 \newclassic{arist}{#1|\textit{#1}|#1}
57
58 \usepackage[xindy]{imakeidx}
59 \makeindex[name=icite-nobiblatex-primary, title={Index locorum citatorum}]
60 \end{Verbatim}
61
62 \paragraph{Remarks}
63 \begin{enumerate}
64 \item |defaultindex=none| disables indexing by default.
65 \item |nobibengine| instructs \textsf{icite} to insert the citations
66 in the body text without using either \hologo{BibTeX} or Bib\LaTeX.
67 \item |\IndexSubtypeAs{ancient}{icite-nobiblatex-primary}| makes an
68 exception for authors whose |entrysubtype| field matches the string
69 |ancient| and instructs \textsf{icite} to have them indexed in an
70 index named\\ |icite-nobiblatex-primary|.
71 \item To actually produce the index,
72 |\printindex[icite-nobiblatex-primary]| is needed at the end of the
73 document.
74 \end{enumerate}
75
76 \section*{Body text}
77 Plato, \emph{Laches}: first
78 citation.\footnote{\icite[\plat{179}[a][1--4]]{Plato:Laches}.} And
79 another,\footnote{\icite[\plat*{179}[c][5]{180}[a][1]]{Plato:Laches}.}
80 and another.\footnote{\icite[\plat*{181}[b][5]{181}[c][3]]{Plato:Laches}.}
81
82 Plato, \emph{Theaetetus}: first
83 citation.\footnote{\icite[\plat*{142}[c][2]{142}[d][3]]{Plato:Theaetetus}.}
84 And another,\footnote{\icite[\plat{142}[d][4--5]]{Plato:Theaetetus}.}
85 and another.\footnote{\icite[\plat{143}[b][5]]{Plato:Theaetetus}.}
86
87 Aristotle, \emph{Politica}: first citation.\footnote{%
88 \icite[\arist*{1252}[a][25]{1252}[b][27]]{Aristotle:Politica}.} And
89 another,\footnote{\icite[\arist{1253}[a][5]]{Aristotle:Politica}.}
90 and another.\footnote{%
91 \icite[\arist{1253}[a][30--39]]{Aristotle:Politica}.}
92
93 This passage should not be
94 indexed.\footnote{\icite[44--78]{Reynolds.Wilson1994}.}
95
96 \printindex[\jobname-primary]
97
98 \section*{Bibliographical database}
99 \VerbatimInput{bibsample.bib}
100 \end{document}