6

I'm new to using LaTex. I'm trying to put references in the Harvard style. So far I have managed to get the reference right. Below is my code:

\documentclass{article}
\usepackage[backend=bibtex,style=authoryear]{biblatex}
\bibliography{export}

\begin{document}
My Name is Mary \textcite{6824747}
\printbibliography
\end{document}

My export.bib file looks like this:

@online{6824747,
title = "Computational Modeling",
url = "http://www.nibib.nih.gov/science-education/science-topics/computational-modeling",
urldate = "2015-08-31",
year = "2013",
month = "07"
}

Below is how my reference looks like enter image description here

My question is how to include my reference with in brackets? For example My Name is Mary (Computational Modeling 2013). Any help is appreciated.

0

1 Answer 1

5

You can use \parencite instead of \textcite. In this particular case \autocite also works. See the biblatex documentation for the list of available citation commands. The example below also demonstrates \footcite.

Sample output top

Sample output bottom

\documentclass{article}
\usepackage[backend=bibtex,style=authoryear]{biblatex}

\addbibresource{export.bib}

\begin{document}
My Name is Mary \textcite{6824747}.

My Name is Mary \parencite{6824747}.

My Name is Mary \footcite{6824747}.

My Name is Mary \autocite{6824747}.

\printbibliography
\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .