diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/icite/samples |
Initial commit
Diffstat (limited to 'macros/latex/contrib/icite/samples')
-rw-r--r-- | macros/latex/contrib/icite/samples/bibsample.bib | 46 | ||||
-rw-r--r-- | macros/latex/contrib/icite/samples/icite-biblatex.pdf | bin | 0 -> 60828 bytes | |||
-rw-r--r-- | macros/latex/contrib/icite/samples/icite-biblatex.tex | 102 | ||||
-rw-r--r-- | macros/latex/contrib/icite/samples/icite-minimal.pdf | bin | 0 -> 42307 bytes | |||
-rw-r--r-- | macros/latex/contrib/icite/samples/icite-minimal.tex | 72 | ||||
-rw-r--r-- | macros/latex/contrib/icite/samples/icite-nobiblatex.pdf | bin | 0 -> 57312 bytes | |||
-rw-r--r-- | macros/latex/contrib/icite/samples/icite-nobiblatex.tex | 100 |
7 files changed, 320 insertions, 0 deletions
diff --git a/macros/latex/contrib/icite/samples/bibsample.bib b/macros/latex/contrib/icite/samples/bibsample.bib new file mode 100644 index 0000000000..5a1efb102f --- /dev/null +++ b/macros/latex/contrib/icite/samples/bibsample.bib @@ -0,0 +1,46 @@ +@Book{Aristotle:Politica, + title = {Politica}, + date = 1964, + author = {Aristotle}, + editor = {Ross, W. D.}, + origdate = 1957, + entrysubtype = {ancient}, + publisher = {Clarendon Press}, + location = {Oxford}} + +@BookInBook{Plato:Laches, + title = {Laches}, + date = 1968, + author = {Plato}, + booktitle = {Platonis opera}, + editor = {Burnet, J.}, + origdate = 1903, + entrysubtype = {ancient}, + volume = 3, + publisher = {Clarendon Press}, + location = {Oxford}} + +@BookInBook{Plato:Theaetetus, + title = {Theaetetus}, + date = 1967, + author = {Plato}, + booktitle = {Platonis opera}, + editor = {Burnet, J.}, + origdate = 1900, + entrysubtype = {ancient}, + volume = 1, + publisher = {Clarendon Press}, + location = {Oxford}} + +@Book{Reynolds.Wilson1994, + author = {Reynolds, L. D. and Wilson, N. G.}, + indexauthor = {L. D. Reynolds and N. G. Wilson}, + title = {Scribes and Scholars}, + date = 1994, + subtitle = {A Guide to the Transmission of Greek and Latin + Literature}, + edition = 3, + publisher = {Clarendon Press}, + location = {Oxford} +} + diff --git a/macros/latex/contrib/icite/samples/icite-biblatex.pdf b/macros/latex/contrib/icite/samples/icite-biblatex.pdf Binary files differnew file mode 100644 index 0000000000..f19d15473c --- /dev/null +++ b/macros/latex/contrib/icite/samples/icite-biblatex.pdf diff --git a/macros/latex/contrib/icite/samples/icite-biblatex.tex b/macros/latex/contrib/icite/samples/icite-biblatex.tex new file mode 100644 index 0000000000..b49bc3491c --- /dev/null +++ b/macros/latex/contrib/icite/samples/icite-biblatex.tex @@ -0,0 +1,102 @@ +\RequirePackage{filecontents} +\begin{filecontents*}{\jobname.xdy} +(merge-rule "\*" "" :eregexp) +(markup-locclass-list :open ": " :sep ", ") +\end{filecontents*} +% Compile with --shell-escape +\documentclass{article} +\usepackage[english]{babel} + +\usepackage{hyperref} +\hypersetup{colorlinks, hidelinks, pdfauthor={Robert + Alessi}, pdftitle={icite and BibLaTeX}} + +\usepackage{fancyvrb} +\fvset{numbers=left,obeytabs,frame=lines} + +\usepackage{ccicons} +\usepackage{enumitem} +\setlist{nosep} +\setlist[itemize]{label=\textendash} +\setlist[enumerate,1]{label=(\alph*)} +\setlist[enumerate,2]{label=\roman*.} + +\usepackage[citecmd=autocite, defaultindex=none]{icite} +\IndexSubtypeAs{ancient}{\jobname-primary} +\bibinput{bibsample} + +\usepackage{classics} +\newclassic{plat}{#1|#1|#1} +\newclassic{arist}{#1|\textit{#1}|#1} + +\usepackage[xindy,nonewpage]{imakeidx} +\makeindex[name=\jobname-primary, title={Index locorum citatorum}] + +\usepackage[style=oxnotes]{biblatex} +\addbibresource{bibsample.bib} + +\begin{document} +\DefineShortVerb{\|} +\vspace*{-.5in} +\noindent +\textbf{\textsf{icite sample file}} --- \cczero\ This +file is public domain + +\section*{Preamble} +This file demonstrates how \textsf{icite} can be used to produce an +index of passages cited in combination with Bib\LaTeX. + +The relevant part of the preamble which is used here follows: +\begin{Verbatim} +\usepackage[citecmd=autocite, defaultindex=none]{icite} +\IndexSubtypeAs{ancient}{icite-biblatex-primary} +\bibinput{bibsample} + +\usepackage{classics} +\newclassic{plat}{#1|#1|#1} +\newclassic{arist}{#1|\textit{#1}|#1} + +\usepackage[xindy]{imakeidx} +\makeindex[name=icite-biblatex-primary, title={Index locorum citatorum}] + +\usepackage[style=oxnotes]{biblatex} +\addbibresource{bibsample.bib} +\end{Verbatim} + +\paragraph{Remarks} +\begin{enumerate} +\item |citecmd=autocite| instructs \textsf{icite} to use the + |\autocite| command to insert the citations in the body text. +\item |defaultindex=none| disables indexing by default. +\item |\IndexSubtypeAs{ancient}{icite-biblatex-primary}| makes an + exception for authors whose |entrysubtype| field matches the string + |ancient| and instructs \textsf{icite} to have them indexed in an + index named\\ |icite-biblatex-primary|. +\item To actually produce the index, + |\printindex[icite-biblatex-primary]| is needed at the end of the + document. +\end{enumerate} + +\section*{Body text} +Plato, \emph{Laches}: first +citation\icite[\plat{179}[a][1--4]]{Plato:Laches}. And +another\icite[\plat*{179}[c][5]{180}[a][1]]{Plato:Laches}, and +another\icite[\plat*{181}[b][5]{181}[c][3]]{Plato:Laches}. + +Plato, \emph{Theaetetus}: first +citation\icite[\plat*{142}[c][2]{142}[d][3]]{Plato:Theaetetus}. And +another\icite[\plat{142}[d][4--5]]{Plato:Theaetetus}, and +another\icite[\plat{143}[b][5]]{Plato:Theaetetus}. + +Aristotle, \emph{Politica}: first +citation\icite[\arist*{1252}[a][25]{1252}[b][27]]{Aristotle:Politica}. And +another\icite[\arist{1253}[a][5]]{Aristotle:Politica}, and +another\icite[\arist{1253}[a][30--39]]{Aristotle:Politica}. + +This passage should not be indexed\icite[44--78]{Reynolds.Wilson1994}. + +\printindex[\jobname-primary] + +\section*{Bibliographical database} +\VerbatimInput{bibsample.bib} +\end{document} diff --git a/macros/latex/contrib/icite/samples/icite-minimal.pdf b/macros/latex/contrib/icite/samples/icite-minimal.pdf Binary files differnew file mode 100644 index 0000000000..e010128479 --- /dev/null +++ b/macros/latex/contrib/icite/samples/icite-minimal.pdf diff --git a/macros/latex/contrib/icite/samples/icite-minimal.tex b/macros/latex/contrib/icite/samples/icite-minimal.tex new file mode 100644 index 0000000000..32bb4a29b9 --- /dev/null +++ b/macros/latex/contrib/icite/samples/icite-minimal.tex @@ -0,0 +1,72 @@ +\documentclass{article} +\usepackage[english]{babel} + +\usepackage[small]{titlesec} + +\usepackage{latexcolors} +\usepackage[outputdir=TMP/]{minted} +\setminted{bgcolor=lavendermist} + +\usepackage{ccicons} +\usepackage{enumitem} +\setlist{nosep} +\setlist[itemize]{label=\textendash} +\setlist[enumerate,1]{label=(\alph*)} +\setlist[enumerate,2]{label=\roman*.} + +\usepackage{xurl} +\usepackage[colorlinks]{hyperref} + +\begin{document} +\vspace*{-.5in} +\noindent +\textbf{\textsf{icite sample file}} --- \cczero\ This +file is public domain + +\section*{Instructions} +\begin{enumerate} +\item Start a new document, copy and paste the code that follows. +\item The default citation command used by \textsf{icite} has been set + to \verb|autocite|. Adapt. +\item The \textsf{biblatex} style file selected is + \verb|oxnotes|. Adapt. +\item Insert the citations in the body text with + \mint{latex}|\icite[<pre>][<post>]{<key>}| +\item Compile the document with \verb|--shell-escape|.\footnote{More + information on how to do this: \url{https://texfaq.org/FAQ-spawnprog}} +\end{enumerate} + +\begin{minted}{latex} +\RequirePackage{filecontents} +\begin{filecontents*}{\jobname.xdy} +(merge-rule "\*" "" :eregexp) +\end{filecontents*} +% +\documentclass{article} +\usepackage[english]{babel} + +% load icite +\usepackage[citecmd=autocite, defaultindex=loccit]{icite} +\bibinput{bibliography} + +% prepare the index +\usepackage[xindy]{imakeidx} +\makeindex[% + name=loccit, + title={Index locorum citatorum}, + options=-M \jobname.xdy] + +% load biblatex +\usepackage[style=oxnotes]{biblatex} +\addbibresource{bibliography.bib} + +\begin{document} + +Your document goes here. + +\printindex[loccit] +\printbibliography +\end{document} +\end{minted} + +\end{document} diff --git a/macros/latex/contrib/icite/samples/icite-nobiblatex.pdf b/macros/latex/contrib/icite/samples/icite-nobiblatex.pdf Binary files differnew file mode 100644 index 0000000000..ae93aa9deb --- /dev/null +++ b/macros/latex/contrib/icite/samples/icite-nobiblatex.pdf diff --git a/macros/latex/contrib/icite/samples/icite-nobiblatex.tex b/macros/latex/contrib/icite/samples/icite-nobiblatex.tex new file mode 100644 index 0000000000..d6f824d020 --- /dev/null +++ b/macros/latex/contrib/icite/samples/icite-nobiblatex.tex @@ -0,0 +1,100 @@ +\RequirePackage{filecontents} +\begin{filecontents*}{\jobname.xdy} +(merge-rule "\*" "" :eregexp) +(markup-locclass-list :open ": " :sep ", ") +\end{filecontents*} +% Compile with --shell-escape +\documentclass{article} +\usepackage[english]{babel} + +\usepackage{hyperref} +\hypersetup{colorlinks, hidelinks, pdfauthor={Robert + Alessi}, pdftitle={icite and BibLaTeX}} + +\usepackage{fancyvrb} +\fvset{numbers=left,obeytabs,frame=lines} + +\usepackage{ccicons} +\usepackage{hologo} +\usepackage{enumitem} +\setlist{nosep} +\setlist[itemize]{label=\textendash} +\setlist[enumerate,1]{label=(\alph*)} +\setlist[enumerate,2]{label=\roman*.} + +\usepackage[defaultindex=none, nobibengine]{icite} +\IndexSubtypeAs{ancient}{\jobname-primary} +\bibinput{bibsample} + +\usepackage{classics} +\newclassic{plat}{#1|#1|#1} +\newclassic{arist}{#1|\textit{#1}|#1} + +\usepackage[xindy,nonewpage]{imakeidx} +\makeindex[name=\jobname-primary, title={Index locorum citatorum}] + +\begin{document} +\DefineShortVerb{\|} +\vspace*{-.5in} +\noindent +\textbf{\textsf{icite sample file}} --- \cczero\ This +file is public domain + +\section*{Preamble} +This file demonstrates how \textsf{icite} can be used to produce an +index of passages cited without using either \hologo{BibTeX} or +Bib\LaTeX. + +The relevant part of the preamble which is used here follows: +\begin{Verbatim} +\usepackage[defaultindex=none, nobibengine]{icite} +\IndexSubtypeAs{ancient}{icite-nobiblatex-primary} +\bibinput{bibsample} + +\usepackage{classics} +\newclassic{plat}{#1|#1|#1} +\newclassic{arist}{#1|\textit{#1}|#1} + +\usepackage[xindy]{imakeidx} +\makeindex[name=icite-nobiblatex-primary, title={Index locorum citatorum}] +\end{Verbatim} + +\paragraph{Remarks} +\begin{enumerate} +\item |defaultindex=none| disables indexing by default. +\item |nobibengine| instructs \textsf{icite} to insert the citations + in the body text without using either \hologo{BibTeX} or Bib\LaTeX. +\item |\IndexSubtypeAs{ancient}{icite-nobiblatex-primary}| makes an + exception for authors whose |entrysubtype| field matches the string + |ancient| and instructs \textsf{icite} to have them indexed in an + index named\\ |icite-nobiblatex-primary|. +\item To actually produce the index, + |\printindex[icite-nobiblatex-primary]| is needed at the end of the + document. +\end{enumerate} + +\section*{Body text} +Plato, \emph{Laches}: first +citation.\footnote{\icite[\plat{179}[a][1--4]]{Plato:Laches}.} And +another,\footnote{\icite[\plat*{179}[c][5]{180}[a][1]]{Plato:Laches}.} +and another.\footnote{\icite[\plat*{181}[b][5]{181}[c][3]]{Plato:Laches}.} + +Plato, \emph{Theaetetus}: first +citation.\footnote{\icite[\plat*{142}[c][2]{142}[d][3]]{Plato:Theaetetus}.} +And another,\footnote{\icite[\plat{142}[d][4--5]]{Plato:Theaetetus}.} +and another.\footnote{\icite[\plat{143}[b][5]]{Plato:Theaetetus}.} + +Aristotle, \emph{Politica}: first citation.\footnote{% + \icite[\arist*{1252}[a][25]{1252}[b][27]]{Aristotle:Politica}.} And +another,\footnote{\icite[\arist{1253}[a][5]]{Aristotle:Politica}.} +and another.\footnote{% + \icite[\arist{1253}[a][30--39]]{Aristotle:Politica}.} + +This passage should not be +indexed.\footnote{\icite[44--78]{Reynolds.Wilson1994}.} + +\printindex[\jobname-primary] + +\section*{Bibliographical database} +\VerbatimInput{bibsample.bib} +\end{document} |