Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.