Skip to content

Instantly share code, notes, and snippets.

@larsvilhuber
Last active December 29, 2018 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsvilhuber/710516356e5791376c33e30d6916eac5 to your computer and use it in GitHub Desktop.
Save larsvilhuber/710516356e5791376c33e30d6916eac5 to your computer and use it in GitHub Desktop.
Default biblatex setup
%!TeX TXS-program:bibliography = txs:///biber
\documentclass{article}
\usepackage{authblk}
\usepackage[%
plainpages,%
colorlinks,% removes the boxes around links
urlcolor=black,%
filecolor=black,%
citecolor=Blue,% requires xcolor with option dvipsnames
pdfpagemode=UseOutlines,%
pdfauthor={Lars Vilhuber},%
pdfsubject={Bibliography},%
]{hyperref}
\usepackage[style=chicago-authordate,sorting=ydnt,maxnames=10,backend=biber]{biblatex}
\addbibresource{some.bib}
\defbibfilter{papers}{
type=article or
type=inproceedings or
type=conference or
type=proceedings or
type=incollection or
type=inbook
}
% Clear some stuff from the bibliography
\AtEveryBibitem{%
\clearfield{day}%
\clearfield{month}%
\clearfield{endday}%
\clearfield{endmonth}%
\clearlist{language}%
\clearfield{issn}%
\clearfield{eprint}% - adjust if necessary
\iffieldundef{doi}{}{\clearfield{url}}% remove URL field if DOI present
}
\author[1,2]{Lars Vilhuber}
\affil[1]{Cornell University}
\affil[2]{U.S. Census Bureau}
\begin{document}
\printbibliography[filter=papers,title={Articles},heading=bibnumbered]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment