Inline APA Bibliography entry in LaTeX

Here’s another inline bibliography example but not using apacite:  http://stefaanlippens.net/bibentry

The apacite package must be v.6 2012/2 or newer for it to compile correctly.

Below is what the example looks like after it is compiled:

Screen Shot 2013-01-26 at 7.07.02 PM

For this a bibtex file is needed and the main tex file.  I have included both files below in their entirety.  Just copy and paste them into the appropriately named file and they should compile.  Also, comments are provided to identify the important pieces of information.

inlineBibEntriesAPA.tex:
\documentclass[11pt]{article}
\setlength{\topmargin}{0.5in}
\setlength{\rightmargin}{0.5in}
\setlength{\leftmargin}{0.5in}

% the next two packages are needed for this example.
% bibentry is for the inline bibliography example
% apacite is the package
\usepackage{bibentry}
\usepackage{apacite}
% Important to use apacite v6.01 [2012/02/25] or possibility newer
% It didn’t work initially for me with an older version
% Below is from the apacite documentation for v6.01 [2012/02/25
% 8.4 bibentry
% bibentry is a package that allows including a complete reference list entry in the text
% (or a footnote, which is arguably more common). Previous versions of apacite were
% incompatible with bibentry, but I believe this has been xed now. However, the
% APA reference format, which uses periods to separate the elements of a reference
% list entry and not commas, does not appear to be very suitable for in-text use,
% so this is most likely only useful for footnotes that do not contain any other text.
% Also note that the nal period of the reference entry is not suppressed.

% The next few lines are to include header information
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{My Name}
\chead{Inline Bib Entries}
\rhead{2013}

\begin{document}

% The next line is needed before the inline bibliography
% don’t worry that it says no bibliography.
% A bibliography can still be included later
\nobibliography{inlineBibEntriesAPA}

\section{Inline Bibliography Example}
% command for inline bibliography
\bibentry{Sample2010}

% below is included since I don’t have any citations in this document
% if I had citations, I wouldn’t need it.
\nocite{*}

% My APA bibliography style and then the final bibliography command
\bibliographystyle{apacite}
\bibliography{inlineBibEntriesAPA}

\end{document}

inlineBibEntriesAPA.bib:
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/
%% Created for at 2013-01-26 19:02:33 -0600
%% Saved with string encoding Unicode (UTF-8)

@article{Sample2010,
Author = {Sample, Person},
Date-Added = {2013-01-27 01:01:59 +0000},
Date-Modified = {2013-01-27 01:01:59 +0000},
Journal = {Journal of Sample},
Month = jul,
Number = {1},
Pages = {71–86},
Title = {This is an article for a sample Bibliography},
Volume = {116},
Year = {2010}}

@article{SampleTwo2010,
Author = {Sample, Person2},
Date-Added = {2013-01-27 00:42:36 +0000},
Date-Modified = {2013-01-27 01:02:26 +0000},
Journal = {Journal of Sample},
Month = jul,
Number = {1},
Pages = {71–86},
Title = {This is another article for a sample Bibliography},
Volume = {116},
Year = {2010}}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s