Created
February 16, 2019 17:50
-
-
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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%% 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