Skip to content

Instantly share code, notes, and snippets.

@moewew
Created November 4, 2020 17:02
Show Gist options
  • Save moewew/d29d6091cc2fbfe02a167c4c2c9da5cc to your computer and use it in GitHub Desktop.
Save moewew/d29d6091cc2fbfe02a167c4c2c9da5cc to your computer and use it in GitHub Desktop.
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear]{biblatex}
\renewcommand*{\postnotedelim}{\addcolon\space} % add colon after year on \parencite
\DeclareFieldFormat{postnote}{#1} %no page prefix when citing
\DeclareFieldFormat{multipostnote}{#1} %no page prefix when citing
\begin{filecontents}{\jobname.bib}
@book{elk,
author = {Anne Elk},
title = {A Theory on Brontosauruses},
year = {1972},
publisher = {Monthy \& Co.},
location = {London},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \parencite[380]{sigfridsson}
ipsum \parencite[42]{elk}
\printbibliography
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment