Skip to content

Instantly share code, notes, and snippets.

@moewew
Created February 16, 2019 17:50
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 moewew/485cd2ecdaea88acca9f5c9b97227a00 to your computer and use it in GitHub Desktop.
Save moewew/485cd2ecdaea88acca9f5c9b97227a00 to your computer and use it in GitHub Desktop.
https://tex.stackexchange.com/q/475104/35864 - ONLY RUN THIS MWE IN AN EMPTY FOLDER
%%%% THIS FILE WILL OVERWRITE AN EXISTING .bib FILE WITH THE SAME BASE NAME WITHOUT WARNING
%%%% THE OVERWRITTEN FILE CAN NOT BE RECOVERED
%%%% ONLY RUN THIS FILE IN AN EMPTY DIRECTORY
%%%% YOU HAVE BEEN WARNED
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{authblk}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[
backend=biber,
style=authoryear,
maxcitenames=2,
bibencoding=latin1
]
{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{powell2007fastfood,
title={The availability of fast-food and full-service restaurants in
the United States: associations with neighborhood characteristics},
author={Powell, Lisa M and Chaloupka, Frank J and Bao, Yanjun},
journal={American journal of preventive medicine},
volume={33},
number={4},
pages={S240--S245},
year={2007},
publisher={Elsevier}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Here you see \cite{powell2007fastfood}
Here you can also see \parencite{powell2007fastfood}
Also, you have \textcite{powell2007fastfood}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment