aboutsummaryrefslogtreecommitdiff
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
parent30f48bfd476c14cf4671e3504eb9d4367bfce99b (diff)
downloadicite-9ca857bc0f1489662f38adf5e619d8f54a38ce48.tar.gz
added sample filesv1.1
-rw-r--r--samples/bibsample.bib46
-rw-r--r--samples/icite-biblatex.tex88
-rw-r--r--samples/icite-nobiblatex.tex85
3 files changed, 219 insertions, 0 deletions
diff --git a/samples/bibsample.bib b/samples/bibsample.bib
new file mode 100644
index 0000000..5a1efb1
--- /dev/null
+++ b/samples/bibsample.bib
@@ -0,0 +1,46 @@
1@Book{Aristotle:Politica,
2 title = {Politica},
3 date = 1964,
4 author = {Aristotle},
5 editor = {Ross, W. D.},
6 origdate = 1957,
7 entrysubtype = {ancient},
8 publisher = {Clarendon Press},
9 location = {Oxford}}
10
11@BookInBook{Plato:Laches,
12 title = {Laches},
13 date = 1968,
14 author = {Plato},
15 booktitle = {Platonis opera},
16 editor = {Burnet, J.},
17 origdate = 1903,
18 entrysubtype = {ancient},
19 volume = 3,
20 publisher = {Clarendon Press},
21 location = {Oxford}}
22
23@BookInBook{Plato:Theaetetus,
24 title = {Theaetetus},
25 date = 1967,
26 author = {Plato},
27 booktitle = {Platonis opera},
28 editor = {Burnet, J.},
29 origdate = 1900,
30 entrysubtype = {ancient},
31 volume = 1,
32 publisher = {Clarendon Press},
33 location = {Oxford}}
34
35@Book{Reynolds.Wilson1994,
36 author = {Reynolds, L. D. and Wilson, N. G.},
37 indexauthor = {L. D. Reynolds and N. G. Wilson},
38 title = {Scribes and Scholars},
39 date = 1994,
40 subtitle = {A Guide to the Transmission of Greek and Latin
41 Literature},
42 edition = 3,
43 publisher = {Clarendon Press},
44 location = {Oxford}
45}
46
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}
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}