| 1 |
\documentclass[a4paper,12pt]{article} |
| 2 |
% \usepackage[T1]{fontenc} |
| 3 |
% \usepackage{textcomp} |
| 4 |
\usepackage{fontspec} |
| 5 |
% \usepackage[latin1]{inputenc} |
| 6 |
\usepackage[american]{babel} |
| 7 |
\usepackage[autostyle]{csquotes} |
| 8 |
%\usepackage[document]{ragged2e} |
| 9 |
\usepackage[notes,strict,backend=biber,autolang=other,cmsbreakurl,% |
| 10 |
booklongxref=false,compresspages,% |
| 11 |
noteref=section,noterefintro=introduction]{biblatex-chicago} |
| 12 |
% \usepackage{lmodern} |
| 13 |
% \usepackage{gentium} |
| 14 |
%\renewcommand*{\rmdefault}{fgn}% The font (gentium) used for pdf |
| 15 |
\usepackage{ifthen} |
| 16 |
\usepackage{setspace} |
| 17 |
\usepackage{vmargin} \setpapersize{A4} |
| 18 |
\setmarginsrb{1in}{20pt}{1in}{.5in}{1pt}{2pt}{0pt}{6mm} |
| 19 |
\usepackage[split=section]{cmsendnotes} |
| 20 |
% \renewcommand{\footnote}{\endnote} |
| 21 |
\usepackage{multicol} |
| 22 |
\hyphenation{tech-re-port Ap-ril} |
| 23 |
\protected\def\onethird{{\mbox{\scriptsize\raisebox{.7ex}{1}% |
| 24 |
\hspace{-0.1em}\raisebox{.2ex}{/}\hspace{-0.03em}3}}} |
| 25 |
\setlength{\parindent}{0pt} |
| 26 |
\setlength{\dimen\footins}{9.5in} |
| 27 |
\newcommand{\mycolor}{}%[1]{\textcolor[HTML]{228B22}{#1}} |
| 28 |
\usepackage{xr-hyper} |
| 29 |
\externaldocument[cms-]{biblatex-chicago}% |
| 30 |
\usepackage[hyperref,svgnames]{xcolor} |
| 31 |
\usepackage[colorlinks,filecolor=Teal,citecolor=black, |
| 32 |
plainpages=false,breaklinks=true,urlcolor=DarkSlateBlue, |
| 33 |
linkcolor=DarkSlateBlue,baseurl=biblatex-chicago.pdf\#]{hyperref} |
| 34 |
\setmainfont{GentiumPlus-Regular.ttf}[ |
| 35 |
ItalicFont = GentiumPlus-Italic.ttf, |
| 36 |
BoldFont = GentiumPlus-Bold.ttf, |
| 37 |
BoldItalicFont = GentiumPlus-BoldItalic.ttf] |
| 38 |
\setsansfont{ClearSans-Regular.ttf}[ |
| 39 |
BoldFont = ClearSans-Bold.ttf, |
| 40 |
ItalicFont = ClearSans-Italic.ttf, |
| 41 |
BoldItalicFont = ClearSans-BoldItalic.ttf, |
| 42 |
Scale = MatchLowercase] |
| 43 |
\setmonofont{lmmonoprop10-regular.otf}[ |
| 44 |
BoldFont = lmmonoproplt10-bold.otf, |
| 45 |
HyphenChar={-}] |
| 46 |
\makeatletter |
| 47 |
\renewcommand{\section}{\@startsection{section}{1}{\z@}% |
| 48 |
{-3.25ex\@plus -1ex \@minus -.2ex}% |
| 49 |
{1.5ex \@plus .2ex}% |
| 50 |
{\normalfont\large\bfseries}} |
| 51 |
\newrobustcmd*{\cmssecref}[2][]{\marginpar{\href{\@baseurl% |
| 52 |
\getrefbykeydefault{#2}{anchor}{}}{\small \S\,\getrefnumber{#2}}% |
| 53 |
\ifblank{#1}{}{\scriptsize,\, s.v.\\[1pt]\enquote{#1}}}}% |
| 54 |
\makeatother |
| 55 |
\newcommand{\cmd}[1]{\texttt{\textbackslash #1}} |
| 56 |
\newcommand{\mylittlespace}{\vspace{5pt}}%.5\baselineskip}} |
| 57 |
\addbibresource{notes-test.bib} |
| 58 |
%%\onehalfspacing |
| 59 |
%\tracingmacros=1 |
| 60 |
\begin{document} |
| 61 |
|
| 62 |
{\Large\bfseries The \texttt{noteref} Option to the Notes \&\ |
| 63 |
Bibliography Style}\label{cms:top} |
| 64 |
\vspace*{1.5ex} |
| 65 |
|
| 66 |
Recent editions of the \emph{Chicago Manual of |
| 67 |
Style}\autocite[14.31]{chicago:manual} have suggested that, in short |
| 68 |
notes, it may sometimes be helpful to provide a cross-reference to the |
| 69 |
work's initial presentation in a long note, \enquote{especially in the |
| 70 |
absence of a full bibliography.} With this release, I have provided |
| 71 |
for this purpose the \texttt{noteref} package option, which |
| 72 |
additionally involves many sub-options and even a new dependent |
| 73 |
\LaTeX\ package \textsf{cmsendnotes.sty} (with its own options) to |
| 74 |
help those users who need the same functionality in endnotes instead |
| 75 |
of footnotes (see page~\pageref{cms:endnotes}). The full |
| 76 |
documentation in \cmssecref{cms-sec:noteref} |
| 77 |
\textsf{biblatex-chicago.pdf} contains all of the murky details, but |
| 78 |
in this document I wanted to provide straightforward examples so that |
| 79 |
users could get a quick glimpse of the features provided. |
| 80 |
|
| 81 |
\mylittlespace By setting the following options when loading |
| 82 |
\textsf{biblatex-chicago}: |
| 83 |
\begin{verbatim} |
| 84 |
noteref=section,noterefintro=introduction |
| 85 |
\end{verbatim} |
| 86 |
you'll get the following results, in what is obviously a rather |
| 87 |
artificial setting. |
| 88 |
|
| 89 |
\section{Long notes} |
| 90 |
\label{sec:one} |
| 91 |
|
| 92 |
Text\autocite{garaud:gatine} block\autocite{leo:madonna} |
| 93 |
with\autocite{schubert:muellerin} a\autocite{mchugh:wake} |
| 94 |
series\autocite{euripides:orestes} of\autocite{clark:mesopot} |
| 95 |
footnotes\autocite{ashbrook:brain} chosen\autocite{contrib:contrib} |
| 96 |
randomly.\autocite{frede:inproc} |
| 97 |
|
| 98 |
\section{Short notes on the same page} |
| 99 |
\label{sec:two} |
| 100 |
|
| 101 |
New\autocite{chicago:manual} text\autocite{garaud:gatine} |
| 102 |
block\autocite{leo:madonna} with\autocite{schubert:muellerin} |
| 103 |
a\autocite{mchugh:wake} |
| 104 |
series\footnote{\shortrefcite{euripides:orestes}. |
| 105 |
\textcolor{DarkSlateBlue}{<--- \cmd{shortrefcite} produced this |
| 106 |
\texttt{noteref} where by default one wouldn't have appeared.}} |
| 107 |
of\autocite{clark:mesopot} footnotes\autocite{ashbrook:brain} |
| 108 |
chosen\autocite{contrib:contrib} randomly.\autocite{frede:inproc} |
| 109 |
|
| 110 |
\mylittlespace Short notes on the same page, or in the same double-page |
| 111 |
spread when in \texttt{twoside} mode, won't by default have a |
| 112 |
\texttt{noteref} printed, though you can in fact alter this on a |
| 113 |
note-by-note basis by using \cmd{shortrefcite} or |
| 114 |
\cmd{shorthandrefcite} instead of your usual citation command, as I've |
| 115 |
done with the Euripides example below. |
| 116 |
|
| 117 |
\clearpage |
| 118 |
|
| 119 |
\section{Short notes on a new page} |
| 120 |
\label{sec:three} |
| 121 |
|
| 122 |
New\autocite{chicago:manual} text\autocite{garaud:gatine} |
| 123 |
block\autocite{leo:madonna} with\autocite{schubert:muellerin} |
| 124 |
a\autocite{mchugh:wake} |
| 125 |
series\footnote{\shortcite*{euripides:orestes}. |
| 126 |
\textcolor{DarkSlateBlue}{<--- \cmd{shortcite*} suppressed the |
| 127 |
\texttt{noteref} where by default one would have appeared.}} |
| 128 |
of\autocite{clark:mesopot} footnotes\autocite{ashbrook:brain} |
| 129 |
chosen\autocite{contrib:contrib} randomly.\autocite{frede:inproc} |
| 130 |
|
| 131 |
\mylittlespace Here \cmssecref[Zero Sections]{cms-sec:zero} all of the |
| 132 |
short notes will, by default, have a \texttt{noteref}. The first note |
| 133 |
on this page refers back to a long note that occurred \emph{before} |
| 134 |
section~1, technically therefore in section~0, which is what would |
| 135 |
appear without further intervention. The intervention I have made is |
| 136 |
the option \verb+noterefintro=introduction+, which tells |
| 137 |
\textsf{biblatex-chicago} to print \cmd{bibstring\{introduc\-tion\}} |
| 138 |
instead of \verb+\bibstring{section}+. The problem of section numbers |
| 139 |
containing zero can be complicated, so once again the murky details |
| 140 |
are in \textsf{biblatex-chicago.pdf}. |
| 141 |
|
| 142 |
\mylittlespace The main \texttt{noteref} option has six possible |
| 143 |
values, four of which are, I would guess, those most likely to prove |
| 144 |
useful: \texttt{none} (the default), \texttt{page}, \texttt{chapter}, |
| 145 |
and \texttt{section}, with \texttt{subsection} and \texttt{part} as |
| 146 |
additional possibilities. The names of the options correspond to the |
| 147 |
\LaTeX\ counter tracked by that option in addition to the note number |
| 148 |
itself, so that \texttt{none} produces a \texttt{noteref} that just |
| 149 |
provides the note number, while \texttt{page} provides page and note |
| 150 |
number, \texttt{chapter} gives chapter and note number, and so on. |
| 151 |
Here, with \texttt{section} being the top-level division in the |
| 152 |
\texttt{article} class, I've used that option. |
| 153 |
|
| 154 |
\mylittlespace You can suppress the appearance of a \texttt{noteref} |
| 155 |
by using the \cmd{shortcite*} or \cmd{shorthandcite*} commands, as |
| 156 |
I've shown with the Euripides citation below. You can also set the |
| 157 |
\texttt{noterefin\-terval} option to a number greater than zero if you |
| 158 |
want to make sure that a certain number of references have intervened |
| 159 |
before printing a \texttt{noteref}, even if the short note is on a new |
| 160 |
page. Because this mechanism tracks the \texttt{instcount} counter, |
| 161 |
which is incremented by more things than just new citations, you may |
| 162 |
have to experiment to find a value that suits your document. |
| 163 |
|
| 164 |
\section{A few extra subtleties} |
| 165 |
\label{sec:four} |
| 166 |
|
| 167 |
Another\autocite{jackson:paulina:letter} new\autocite{holiday:fool} |
| 168 |
text\autocite{garaud:gatine} block\autocite{leo:madonna} |
| 169 |
with\autocite{schubert:muellerin} a\autocite{mchugh:wake} |
| 170 |
series\footnote{\cite{euripides:orestes}. |
| 171 |
\textcolor{DarkSlateBlue}{<--- The \texttt{noteref} does appear |
| 172 |
here, following its suppression above.}} |
| 173 |
of\autocite{clark:mesopot} footnotes\autocite{ashbrook:brain} |
| 174 |
chosen\autocite{contrib:contrib} randomly.\autocite{frede:inproc} |
| 175 |
|
| 176 |
\mylittlespace When a \texttt{noteref} for a particular source has |
| 177 |
already appeared on a page (or a double-page spread) then another |
| 178 |
won't be printed after subsequent citations of the same source that |
| 179 |
appear on that same page. With the second Euripides note below, the |
| 180 |
\texttt{noteref} \emph{does} appear because it was suppressed after |
| 181 |
the first reference. |
| 182 |
|
| 183 |
\clearpage |
| 184 |
|
| 185 |
Another\footnote{\cite{jackson:paulina:letter}. |
| 186 |
\textcolor{DarkSlateBlue}{<--- The form of this \texttt{noteref} and |
| 187 |
the next indicates that the short notes are in the same section as |
| 188 |
the long notes to which they refer. Set \texttt{fullnoterefs=true} |
| 189 |
to get the long form everywhere.}} new\autocite{holiday:fool} |
| 190 |
text\autocite{garaud:gatine} block\autocite{leo:madonna} |
| 191 |
with\autocite{schubert:muellerin} a\autocite{mchugh:wake} |
| 192 |
series\autocite{euripides:orestes} of\autocite{clark:mesopot} |
| 193 |
footnotes\autocite{ashbrook:brain} chosen\autocite{contrib:contrib} |
| 194 |
randomly.\autocite{frede:inproc} |
| 195 |
|
| 196 |
\mylittlespace Once again, after a page break, the \texttt{noterefs} |
| 197 |
appear after all of these short notes. Because the section number |
| 198 |
hasn't changed, however, the first two footnotes on the page, which |
| 199 |
refer back to long footnotes in the same section, have |
| 200 |
\texttt{noterefs} containing only the note number. This more |
| 201 |
compact form is the default, but you can set \texttt{fullnoterefs} to |
| 202 |
\texttt{true} when loading \textsf{biblatex-chicago} to see the longer |
| 203 |
form everywhere. |
| 204 |
% and should be unambiguous unless you restart footnote |
| 205 |
% numbering inside the section rather than at section boundaries. |
| 206 |
|
| 207 |
\section{Endnotes} |
| 208 |
\label{cms:endnotes}\citereset |
| 209 |
|
| 210 |
Things are \cmssecref[Endnotes]{cms-sec:endnoterefs} |
| 211 |
slightly more complicated when you are using endnotes instead of |
| 212 |
footnotes, but in standard cases it's still fairly straightforward. |
| 213 |
In this document I have added the line: |
| 214 |
\begin{verbatim} |
| 215 |
\usepackage[split=section]{cmsendnotes} |
| 216 |
\end{verbatim} |
| 217 |
to the preamble \emph{after} loading \textsf{biblatex-chicago} (with |
| 218 |
the options shown on page~\pageref{cms:top}), then printed the |
| 219 |
endnotes below with \textsf{cmsendnotes'} |
| 220 |
\begin{verbatim} |
| 221 |
\theendnotesbypart |
| 222 |
\end{verbatim} |
| 223 |
command. As this shows you can, as usual with \textsf{biblatex}, mix |
| 224 |
foot- and endnotes in the same document, but if \texttt{noterefs} are |
| 225 |
going to appear in both sorts of note --- surely this situation is |
| 226 |
highly unlikely --- then you need to be careful that they refer back |
| 227 |
\emph{only} to long references in the \emph{same} sort of note. A |
| 228 |
\texttt{noteref} from an endnote to a long citation in a footnote will |
| 229 |
be inaccurate, so careful use of the \cmd{citereset} command (as here) |
| 230 |
or perhaps of the \textsf{biblatex} \texttt{citereset} option should |
| 231 |
allow you to keep the two sorts of note distinct. |
| 232 |
|
| 233 |
\mylittlespace Text\endnote{\autocite{garaud:gatine}.} |
| 234 |
block\endnote{\autocite{leo:madonna}.} |
| 235 |
with\endnote{\autocite{schubert:muellerin}.} |
| 236 |
a\endnote{\autocite{mchugh:wake}.} |
| 237 |
series\endnote{\autocite{euripides:orestes}.} |
| 238 |
of\endnote{\autocite{clark:mesopot}.} |
| 239 |
endnotes\endnote{\autocite{ashbrook:brain}.} |
| 240 |
chosen\endnote{\autocite{contrib:contrib}.} |
| 241 |
randomly.\endnote{\autocite{frede:inproc}.} |
| 242 |
|
| 243 |
\section{More endnotes} |
| 244 |
\label{sec:moreen} |
| 245 |
|
| 246 |
Text\endnote{\global\toggletrue{cms@forcenoteref}\autocite{garaud:gatine}. |
| 247 |
\textcolor{DarkSlateBlue}{<--- Page \enquote{break} before this note.}} |
| 248 |
block\endnote{\autocite{leo:madonna}.} |
| 249 |
with\endnote{\autocite{schubert:muellerin}.} |
| 250 |
a\endnote{\autocite{mchugh:wake}.} |
| 251 |
series\endnote{\autocite{euripides:orestes}.} |
| 252 |
of\endnote{\autocite{clark:mesopot}.} |
| 253 |
endnotes\endnote{\autocite{ashbrook:brain}.} |
| 254 |
chosen\endnote{\autocite{contrib:contrib}.} |
| 255 |
randomly.\endnote{\autocite{frede:inproc}.} |
| 256 |
|
| 257 |
\mylittlespace When you peruse the endnotes on the next page, please |
| 258 |
remember that I've simulated a page change in between the two |
| 259 |
sections, thus allowing all the \texttt{noterefs} to appear as they |
| 260 |
do. The rules about them appearing (or not) on the same page as the |
| 261 |
long reference to which they point are the same as for footnotes, so |
| 262 |
long as you keep in mind that the pages under consideration here are |
| 263 |
those in the endnotes section itself, \emph{not} in the main text. |
| 264 |
Also, in this case the standard \cmd{notesname} command provides |
| 265 |
alternative text for the general header, but \textsf{cmsendnotes.sty} |
| 266 |
organizes the subheaders and facilitates the \texttt{noterefs}, all |
| 267 |
without further intervention from you beyond the single option already |
| 268 |
given to that package. |
| 269 |
|
| 270 |
\mylittlespace I hope that this short demonstration is enough to get |
| 271 |
you started using the \texttt{noteref} functionality. I admit that |
| 272 |
the processing time for documents using it is somewhat increased, so |
| 273 |
if you have a long document it may require some extra patience. If |
| 274 |
something doesn't work properly for you, and the main documentation |
| 275 |
doesn't clear up the issue, please let me know. |
| 276 |
|
| 277 |
\def\notesname{Endnotes to \S\S~5--6} |
| 278 |
\theendnotesbypart |
| 279 |
|
| 280 |
\end{document} |
| 281 |
|
| 282 |
%%% Local Variables: |
| 283 |
%%% mode: latex |
| 284 |
%%% TeX-master: t |
| 285 |
%%% TeX-engine: xetex |
| 286 |
%%% End: |