diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/icite-biblatex.tex | 23 | ||||
-rw-r--r-- | samples/icite-minimal.tex | 72 | ||||
-rw-r--r-- | samples/icite-nobiblatex.tex | 23 |
3 files changed, 96 insertions, 22 deletions
diff --git a/samples/icite-biblatex.tex b/samples/icite-biblatex.tex index 678f9f4..b49bc34 100644 --- a/samples/icite-biblatex.tex +++ b/samples/icite-biblatex.tex | |||
@@ -22,7 +22,7 @@ | |||
22 | \setlist[enumerate,2]{label=\roman*.} | 22 | \setlist[enumerate,2]{label=\roman*.} |
23 | 23 | ||
24 | \usepackage[citecmd=autocite, defaultindex=none]{icite} | 24 | \usepackage[citecmd=autocite, defaultindex=none]{icite} |
25 | \IndexSubtypeAs{ancient}{pr-sources} | 25 | \IndexSubtypeAs{ancient}{\jobname-primary} |
26 | \bibinput{bibsample} | 26 | \bibinput{bibsample} |
27 | 27 | ||
28 | \usepackage{classics} | 28 | \usepackage{classics} |
@@ -30,7 +30,7 @@ | |||
30 | \newclassic{arist}{#1|\textit{#1}|#1} | 30 | \newclassic{arist}{#1|\textit{#1}|#1} |
31 | 31 | ||
32 | \usepackage[xindy,nonewpage]{imakeidx} | 32 | \usepackage[xindy,nonewpage]{imakeidx} |
33 | \makeindex[name=pr-sources, title={Index locorum citatorum}] | 33 | \makeindex[name=\jobname-primary, title={Index locorum citatorum}] |
34 | 34 | ||
35 | \usepackage[style=oxnotes]{biblatex} | 35 | \usepackage[style=oxnotes]{biblatex} |
36 | \addbibresource{bibsample.bib} | 36 | \addbibresource{bibsample.bib} |
@@ -49,7 +49,7 @@ index of passages cited in combination with Bib\LaTeX. | |||
49 | The relevant part of the preamble which is used here follows: | 49 | The relevant part of the preamble which is used here follows: |
50 | \begin{Verbatim} | 50 | \begin{Verbatim} |
51 | \usepackage[citecmd=autocite, defaultindex=none]{icite} | 51 | \usepackage[citecmd=autocite, defaultindex=none]{icite} |
52 | \IndexSubtypeAs{ancient}{pr-sources} | 52 | \IndexSubtypeAs{ancient}{icite-biblatex-primary} |
53 | \bibinput{bibsample} | 53 | \bibinput{bibsample} |
54 | 54 | ||
55 | \usepackage{classics} | 55 | \usepackage{classics} |
@@ -57,7 +57,7 @@ The relevant part of the preamble which is used here follows: | |||
57 | \newclassic{arist}{#1|\textit{#1}|#1} | 57 | \newclassic{arist}{#1|\textit{#1}|#1} |
58 | 58 | ||
59 | \usepackage[xindy]{imakeidx} | 59 | \usepackage[xindy]{imakeidx} |
60 | \makeindex[name=pr-sources, title={Index locorum citatorum}] | 60 | \makeindex[name=icite-biblatex-primary, title={Index locorum citatorum}] |
61 | 61 | ||
62 | \usepackage[style=oxnotes]{biblatex} | 62 | \usepackage[style=oxnotes]{biblatex} |
63 | \addbibresource{bibsample.bib} | 63 | \addbibresource{bibsample.bib} |
@@ -68,12 +68,13 @@ The relevant part of the preamble which is used here follows: | |||
68 | \item |citecmd=autocite| instructs \textsf{icite} to use the | 68 | \item |citecmd=autocite| instructs \textsf{icite} to use the |
69 | |\autocite| command to insert the citations in the body text. | 69 | |\autocite| command to insert the citations in the body text. |
70 | \item |defaultindex=none| disables indexing by default. | 70 | \item |defaultindex=none| disables indexing by default. |
71 | \item |\IndexSubtypeAs{ancient}{pr-sources}| makes an exception for | 71 | \item |\IndexSubtypeAs{ancient}{icite-biblatex-primary}| makes an |
72 | authors whose |entrysubtype| field matches the string |ancient| and | 72 | exception for authors whose |entrysubtype| field matches the string |
73 | instructs \textsf{icite} to have them indexed in an index named | 73 | |ancient| and instructs \textsf{icite} to have them indexed in an |
74 | |pr-sources|. | 74 | index named\\ |icite-biblatex-primary|. |
75 | \item To actually produce the index, |\printindex[pr-sources]| is needed | 75 | \item To actually produce the index, |
76 | at the end of the document. | 76 | |\printindex[icite-biblatex-primary]| is needed at the end of the |
77 | document. | ||
77 | \end{enumerate} | 78 | \end{enumerate} |
78 | 79 | ||
79 | \section*{Body text} | 80 | \section*{Body text} |
@@ -94,7 +95,7 @@ another\icite[\arist{1253}[a][30--39]]{Aristotle:Politica}. | |||
94 | 95 | ||
95 | This passage should not be indexed\icite[44--78]{Reynolds.Wilson1994}. | 96 | This passage should not be indexed\icite[44--78]{Reynolds.Wilson1994}. |
96 | 97 | ||
97 | \printindex[pr-sources] | 98 | \printindex[\jobname-primary] |
98 | 99 | ||
99 | \section*{Bibliographical database} | 100 | \section*{Bibliographical database} |
100 | \VerbatimInput{bibsample.bib} | 101 | \VerbatimInput{bibsample.bib} |
diff --git a/samples/icite-minimal.tex b/samples/icite-minimal.tex new file mode 100644 index 0000000..32bb4a2 --- /dev/null +++ b/samples/icite-minimal.tex | |||
@@ -0,0 +1,72 @@ | |||
1 | \documentclass{article} | ||
2 | \usepackage[english]{babel} | ||
3 | |||
4 | \usepackage[small]{titlesec} | ||
5 | |||
6 | \usepackage{latexcolors} | ||
7 | \usepackage[outputdir=TMP/]{minted} | ||
8 | \setminted{bgcolor=lavendermist} | ||
9 | |||
10 | \usepackage{ccicons} | ||
11 | \usepackage{enumitem} | ||
12 | \setlist{nosep} | ||
13 | \setlist[itemize]{label=\textendash} | ||
14 | \setlist[enumerate,1]{label=(\alph*)} | ||
15 | \setlist[enumerate,2]{label=\roman*.} | ||
16 | |||
17 | \usepackage{xurl} | ||
18 | \usepackage[colorlinks]{hyperref} | ||
19 | |||
20 | \begin{document} | ||
21 | \vspace*{-.5in} | ||
22 | \noindent | ||
23 | \textbf{\textsf{icite sample file}} --- \cczero\ This | ||
24 | file is public domain | ||
25 | |||
26 | \section*{Instructions} | ||
27 | \begin{enumerate} | ||
28 | \item Start a new document, copy and paste the code that follows. | ||
29 | \item The default citation command used by \textsf{icite} has been set | ||
30 | to \verb|autocite|. Adapt. | ||
31 | \item The \textsf{biblatex} style file selected is | ||
32 | \verb|oxnotes|. Adapt. | ||
33 | \item Insert the citations in the body text with | ||
34 | \mint{latex}|\icite[<pre>][<post>]{<key>}| | ||
35 | \item Compile the document with \verb|--shell-escape|.\footnote{More | ||
36 | information on how to do this: \url{https://texfaq.org/FAQ-spawnprog}} | ||
37 | \end{enumerate} | ||
38 | |||
39 | \begin{minted}{latex} | ||
40 | \RequirePackage{filecontents} | ||
41 | \begin{filecontents*}{\jobname.xdy} | ||
42 | (merge-rule "\*" "" :eregexp) | ||
43 | \end{filecontents*} | ||
44 | % | ||
45 | \documentclass{article} | ||
46 | \usepackage[english]{babel} | ||
47 | |||
48 | % load icite | ||
49 | \usepackage[citecmd=autocite, defaultindex=loccit]{icite} | ||
50 | \bibinput{bibliography} | ||
51 | |||
52 | % prepare the index | ||
53 | \usepackage[xindy]{imakeidx} | ||
54 | \makeindex[% | ||
55 | name=loccit, | ||
56 | title={Index locorum citatorum}, | ||
57 | options=-M \jobname.xdy] | ||
58 | |||
59 | % load biblatex | ||
60 | \usepackage[style=oxnotes]{biblatex} | ||
61 | \addbibresource{bibliography.bib} | ||
62 | |||
63 | \begin{document} | ||
64 | |||
65 | Your document goes here. | ||
66 | |||
67 | \printindex[loccit] | ||
68 | \printbibliography | ||
69 | \end{document} | ||
70 | \end{minted} | ||
71 | |||
72 | \end{document} | ||
diff --git a/samples/icite-nobiblatex.tex b/samples/icite-nobiblatex.tex index baf2973..d6f824d 100644 --- a/samples/icite-nobiblatex.tex +++ b/samples/icite-nobiblatex.tex | |||
@@ -23,7 +23,7 @@ | |||
23 | \setlist[enumerate,2]{label=\roman*.} | 23 | \setlist[enumerate,2]{label=\roman*.} |
24 | 24 | ||
25 | \usepackage[defaultindex=none, nobibengine]{icite} | 25 | \usepackage[defaultindex=none, nobibengine]{icite} |
26 | \IndexSubtypeAs{ancient}{pr-sources} | 26 | \IndexSubtypeAs{ancient}{\jobname-primary} |
27 | \bibinput{bibsample} | 27 | \bibinput{bibsample} |
28 | 28 | ||
29 | \usepackage{classics} | 29 | \usepackage{classics} |
@@ -31,7 +31,7 @@ | |||
31 | \newclassic{arist}{#1|\textit{#1}|#1} | 31 | \newclassic{arist}{#1|\textit{#1}|#1} |
32 | 32 | ||
33 | \usepackage[xindy,nonewpage]{imakeidx} | 33 | \usepackage[xindy,nonewpage]{imakeidx} |
34 | \makeindex[name=pr-sources, title={Index locorum citatorum}] | 34 | \makeindex[name=\jobname-primary, title={Index locorum citatorum}] |
35 | 35 | ||
36 | \begin{document} | 36 | \begin{document} |
37 | \DefineShortVerb{\|} | 37 | \DefineShortVerb{\|} |
@@ -48,7 +48,7 @@ Bib\LaTeX. | |||
48 | The relevant part of the preamble which is used here follows: | 48 | The relevant part of the preamble which is used here follows: |
49 | \begin{Verbatim} | 49 | \begin{Verbatim} |
50 | \usepackage[defaultindex=none, nobibengine]{icite} | 50 | \usepackage[defaultindex=none, nobibengine]{icite} |
51 | \IndexSubtypeAs{ancient}{pr-sources} | 51 | \IndexSubtypeAs{ancient}{icite-nobiblatex-primary} |
52 | \bibinput{bibsample} | 52 | \bibinput{bibsample} |
53 | 53 | ||
54 | \usepackage{classics} | 54 | \usepackage{classics} |
@@ -56,7 +56,7 @@ The relevant part of the preamble which is used here follows: | |||
56 | \newclassic{arist}{#1|\textit{#1}|#1} | 56 | \newclassic{arist}{#1|\textit{#1}|#1} |
57 | 57 | ||
58 | \usepackage[xindy]{imakeidx} | 58 | \usepackage[xindy]{imakeidx} |
59 | \makeindex[name=pr-sources, title={Index locorum citatorum}] | 59 | \makeindex[name=icite-nobiblatex-primary, title={Index locorum citatorum}] |
60 | \end{Verbatim} | 60 | \end{Verbatim} |
61 | 61 | ||
62 | \paragraph{Remarks} | 62 | \paragraph{Remarks} |
@@ -64,12 +64,13 @@ The relevant part of the preamble which is used here follows: | |||
64 | \item |defaultindex=none| disables indexing by default. | 64 | \item |defaultindex=none| disables indexing by default. |
65 | \item |nobibengine| instructs \textsf{icite} to insert the citations | 65 | \item |nobibengine| instructs \textsf{icite} to insert the citations |
66 | in the body text without using either \hologo{BibTeX} or Bib\LaTeX. | 66 | in the body text without using either \hologo{BibTeX} or Bib\LaTeX. |
67 | \item |\IndexSubtypeAs{ancient}{pr-sources}| makes an exception for | 67 | \item |\IndexSubtypeAs{ancient}{icite-nobiblatex-primary}| makes an |
68 | authors whose |entrysubtype| field matches the string |ancient| and | 68 | exception for authors whose |entrysubtype| field matches the string |
69 | instructs \textsf{icite} to have them indexed in an index named | 69 | |ancient| and instructs \textsf{icite} to have them indexed in an |
70 | |pr-sources|. | 70 | index named\\ |icite-nobiblatex-primary|. |
71 | \item To actually produce the index, |\printindex[pr-sources]| is | 71 | \item To actually produce the index, |
72 | needed at the end of the document. | 72 | |\printindex[icite-nobiblatex-primary]| is needed at the end of the |
73 | document. | ||
73 | \end{enumerate} | 74 | \end{enumerate} |
74 | 75 | ||
75 | \section*{Body text} | 76 | \section*{Body text} |
@@ -92,7 +93,7 @@ and another.\footnote{% | |||
92 | This passage should not be | 93 | This passage should not be |
93 | indexed.\footnote{\icite[44--78]{Reynolds.Wilson1994}.} | 94 | indexed.\footnote{\icite[44--78]{Reynolds.Wilson1994}.} |
94 | 95 | ||
95 | \printindex[pr-sources] | 96 | \printindex[\jobname-primary] |
96 | 97 | ||
97 | \section*{Bibliographical database} | 98 | \section*{Bibliographical database} |
98 | \VerbatimInput{bibsample.bib} | 99 | \VerbatimInput{bibsample.bib} |