Skip to content

Instantly share code, notes, and snippets.

@binarybucks
Created March 3, 2012 09:32
Show Gist options
  • Save binarybucks/1965239 to your computer and use it in GitHub Desktop.
Save binarybucks/1965239 to your computer and use it in GitHub Desktop.
LaTeX DH Bibstyle
\usepackage[bibstyle=authoryear, citestyle=authoryear, autocite=footnote, dashed=false, firstinits=true]{biblatex}
% Round parentheses around the year in the footcite
% Source: tex.stackexchange.com/a/30822/10434
\renewbibmacro*{cite:labelyear+extrayear}{
\iffieldundef{labelyear}
{}
{\printtext[bibhyperref]{%
\printtext[parens]{%
\printfield{labelyear}%
\printfield{extrayear}}}}}
%% Bibfile is named Praxisbericht3.bib
\bibliography{Praxisbericht3}
\begin{document}
%% Text
Loret ipsum \cite{foo} macht ein normales Zitat und \footcite[5]{foo} einen Fußnoteneintrag á la "Author (Year) p.5". Foo ist dabei das keyword für den Eintrag in dem Bibfile
%% Print Bibliography
\newpage
\printbibliography[title=Bibliography]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment