| 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} |