| 1 |
%! Author = Luke Briggs |
| 2 |
%! Date = 2021/07/09 |
| 3 |
|
| 4 |
\documentclass{article} |
| 5 |
\usepackage[comma]{natbib} |
| 6 |
\usepackage[colorlinks=true]{hyperref} |
| 7 |
\usepackage{listings} |
| 8 |
\usepackage[margin=2cm]{geometry} |
| 9 |
\usepackage[UKenglish]{isodate} |
| 10 |
\usepackage{xcolor} |
| 11 |
\usepackage{bibentry} |
| 12 |
\bibliographystyle{newcastle} |
| 13 |
\definecolor{codebg}{RGB}{246, 245, 244} |
| 14 |
\lstdefinestyle{mystyle}{ |
| 15 |
basicstyle=\linespread{1.1}\ttfamily\footnotesize, |
| 16 |
backgroundcolor=\color{codebg} |
| 17 |
} |
| 18 |
\lstset{showstringspaces=false, style=mystyle} |
| 19 |
|
| 20 |
\begin{document} |
| 21 |
\nobibliography{bibliography} |
| 22 |
\title{newcastle-bst: Harvard referencing style as recommended by Newcastle University} |
| 23 |
\author{Maintainer: Luke Briggs} |
| 24 |
\date{Package v1.1 - \printdate{2021-07-10}} |
| 25 |
\maketitle |
| 26 |
|
| 27 |
\section{Introduction} |
| 28 |
This package provides a \href{https://ctan.org/pkg/BibTeX}{BibTeX} style to format reference lists in the \href{https://libguides.ncl.ac.uk/managing/harvard}{Harvard at Newcastle} style recommended by Newcastle University. |
| 29 |
It should be used alongside \href{https://ctan.org/pkg/natbib}{natbib} for citations. |
| 30 |
|
| 31 |
\subsection{Installation} |
| 32 |
The required style file is available from \href{https://github.com/LukeBriggsDev/Newcastle-BibTeX}{GitHub} and \href{https://ctan.org/pkg/newcastle-bst}{CTAN}. |
| 33 |
You can use the style by copying it into your working directory containing your `.tex` file. |
| 34 |
You can also add it to your bst directory in your tex path to use it without having to copy it over each time. |
| 35 |
|
| 36 |
\subsection{Using the style} |
| 37 |
To use the style include this in your preamble: |
| 38 |
\begin{lstlisting}[language=tex] |
| 39 |
\usepackage{natbib} |
| 40 |
\usepackage[UKenglish]{isodate} |
| 41 |
\bibliographystyle{newcastle} |
| 42 |
\end{lstlisting} |
| 43 |
|
| 44 |
Also remember to specify your `.bib` file at the end of the document: |
| 45 |
\begin{lstlisting}[language=tex] |
| 46 |
\bibliography{file} |
| 47 |
\end{lstlisting} |
| 48 |
|
| 49 |
This style is designed to be used alongside \href{https://ctan.org/pkg/natbib}{natbib} and it is the commands from this package that you should use when citing: |
| 50 |
\begin{itemize} |
| 51 |
\item \lstinline!\citet{key} ==>> Jones et al. (1990)! |
| 52 |
\item \lstinline!\citet*{key} ==>> Jones, Baker, and Smith (1990)! |
| 53 |
\item \lstinline!\citep{key} ==>> (Jones et al., 1990)! |
| 54 |
\item \lstinline!\citep*{key} ==>> (Jones, Baker, and Smith, 1990)! |
| 55 |
\item \lstinline!\citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)! |
| 56 |
\item \lstinline!\citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)! |
| 57 |
\item \lstinline!\citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., 1990, p. 32)! |
| 58 |
\item \lstinline!\citeauthor{key} ==>> Jones et al.! |
| 59 |
\item \lstinline!\citeauthor*{key} ==>> Jones, Baker, and Smith! |
| 60 |
\item \lstinline!\citeyear{key} ==>> 1990! |
| 61 |
\end{itemize} |
| 62 |
|
| 63 |
\section{Examples} |
| 64 |
|
| 65 |
The easiest way to create .bib files for this style is through exporting entries from a reference manager such as \href{https://www.mendeley.com/}{Mendeley}. |
| 66 |
However, some parts are not available through this (such as titleaddon for computer programs). |
| 67 |
If you notice any discrepancies between generated references and the recommended styles then please raise this on \href{https://github.com/LukeBriggsDev/Newcastle-BibTeX/issues}{GitHub} |
| 68 |
|
| 69 |
\subsection{Books and book chapters} |
| 70 |
\subsubsection*{Book with author(s)} |
| 71 |
|
| 72 |
|
| 73 |
\bibentry{Ammann2016} |
| 74 |
|
| 75 |
\begin{lstlisting} |
| 76 |
@book{Ammann2016, |
| 77 |
address = {Cambridge, United Kingdom}, |
| 78 |
author = {Ammann, Paul and Offutt, Jeff}, |
| 79 |
doi = {10.1017/9781316771273}, |
| 80 |
edition = {2}, |
| 81 |
pages = {26}, |
| 82 |
publisher = {Cambridge University Press}, |
| 83 |
title = {{Introduction to Software Testing}}, |
| 84 |
year = {2016} |
| 85 |
} |
| 86 |
\end{lstlisting} |
| 87 |
|
| 88 |
\subsubsection*{Book with editor(s) instead of authors} |
| 89 |
|
| 90 |
\bibentry{rothman.etal2008me} |
| 91 |
|
| 92 |
\begin{lstlisting} |
| 93 |
@book{rothman.etal2008me, |
| 94 |
editor = {Kenneth J. Rothman and Sander Greenland and Timothy L. Lash}, |
| 95 |
year = {2008}, |
| 96 |
title = {Modern Epidemiology}, |
| 97 |
edition = {3}, |
| 98 |
address = {Philadelphia, Pa.}, |
| 99 |
publisher = {Lippincott Williams \& Wilkins} |
| 100 |
} |
| 101 |
\end{lstlisting} |
| 102 |
|
| 103 |
\subsubsection*{Book known by its title} |
| 104 |
|
| 105 |
\bibentry{bnf2020} |
| 106 |
|
| 107 |
\begin{lstlisting} |
| 108 |
@book{bnf2020, |
| 109 |
year = {2020}, |
| 110 |
title = {{British National Formulary}}, |
| 111 |
edition = {79}, |
| 112 |
address = {London}, |
| 113 |
publisher = {Pharmaceutical Press} |
| 114 |
} |
| 115 |
\end{lstlisting} |
| 116 |
|
| 117 |
\subsubsection*{One chapter from a collection (by different authors) in an edited book} |
| 118 |
|
| 119 |
Cunningham, W. (2008) ‘Ward Cunningham, inventor of Wiki, inventor of Fit, coinventor of eXtreme Programming.’In R.C. Martin, (ed.)Clean Code: A Handbook of Agile Software Craftsmanship. Boston, MA: Pearson Education,Inc, p. 11. |
| 120 |
|
| 121 |
\begin{lstlisting} |
| 122 |
@incollection{Cunningham2008, |
| 123 |
address = {Boston, MA}, |
| 124 |
author = {Cunningham, Ward}, |
| 125 |
booktitle = {Clean Code: A Handbook of Agile Software Craftsmanship}, |
| 126 |
editor = {Martin, Robert C.}, |
| 127 |
isbn = {978-0-13-235088-4}, |
| 128 |
pages = {11}, |
| 129 |
publisher = {Pearson Education, Inc}, |
| 130 |
title = {{Ward Cunningham, inventor of Wiki, inventor of Fit, coinventor of eXtreme Programming.}}, |
| 131 |
year = {2008} |
| 132 |
} |
| 133 |
\end{lstlisting} |
| 134 |
|
| 135 |
\subsection{Articles and periodicals} |
| 136 |
\subsubsection{Journal article} |
| 137 |
|
| 138 |
Stevens, W.P., Myers, G.J. and Constantine, L.L. (1999) ‘Structured design’.IBM Systems Journal, 38(2), pp.231–256. doi: 10.1147/sj.382.0231.4 |
| 139 |
|
| 140 |
\begin{lstlisting} |
| 141 |
@article{Stevens1999, |
| 142 |
author = {Stevens, W. P. and Myers, G. J. and Constantine, L. L.}, |
| 143 |
doi = {10.1147/sj.382.0231}, |
| 144 |
issn = {00188670}, |
| 145 |
journal = {IBM Systems Journal}, |
| 146 |
number = {2}, |
| 147 |
pages = {231--256}, |
| 148 |
title = {{Structured design}}, |
| 149 |
volume = {38}, |
| 150 |
year = {1999} |
| 151 |
} |
| 152 |
\end{lstlisting} |
| 153 |
|
| 154 |
\subsubsection{Newspaper article} |
| 155 |
|
| 156 |
Haurant, S. (2004) ‘Britain’s borrowing hits£1 trillion’.The Guardian, 29 July, p. 16c. |
| 157 |
|
| 158 |
\begin{lstlisting} |
| 159 |
@article{haurant2004bbh, |
| 160 |
author = {Haurant, S.}, |
| 161 |
year = {2004}, |
| 162 |
title = {Britain's Borrowing Hits \pounds 1 Trillion}, |
| 163 |
journal = {The {Guardian}}, |
| 164 |
volume = {29 July}, |
| 165 |
pages = {16c} |
| 166 |
} |
| 167 |
\end{lstlisting} |
| 168 |
|
| 169 |
\subsection{Digital media} |
| 170 |
\subsubsection{Website/webpage} |
| 171 |
|
| 172 |
\bibentry{Letouzey2016} |
| 173 |
|
| 174 |
\begin{lstlisting} |
| 175 |
@misc{Letouzey2016, |
| 176 |
abstract = {What is Technical Debt? Where does it comes from?}, |
| 177 |
author = {Letouzey, Jean Louis and Whelan, Declan}, |
| 178 |
booktitle = {Agile Alliance}, |
| 179 |
pages = {4}, |
| 180 |
title = {{Introduction to the Technical Debt Concept}}, |
| 181 |
url = {https://www.agilealliance.org/wp-content/uploads/2016/05/ |
| 182 |
IntroductiontotheTechnicalDebtConcept-V-02.pdf}, |
| 183 |
urldate = {2020-01-02}, |
| 184 |
year = {2016} |
| 185 |
} |
| 186 |
\end{lstlisting} |
| 187 |
|
| 188 |
\subsubsection{Computer Program} |
| 189 |
|
| 190 |
\bibentry{Briggs2021} |
| 191 |
|
| 192 |
\begin{lstlisting} |
| 193 |
@misc{Briggs2021, |
| 194 |
author = {Briggs, Luke}, |
| 195 |
title = {{Pepys}}, |
| 196 |
titleaddon = {(v.1) [computer program]}, |
| 197 |
url = {https://lukebriggs.dev/pepys}, |
| 198 |
year = {2021}, |
| 199 |
} |
| 200 |
\end{lstlisting} |
| 201 |
|
| 202 |
\clearpage |
| 203 |
|
| 204 |
\end{document} |
| 205 |
|