GeneralAPA citation, got question mark instead of authors name

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
phynes
Posts: 2
Joined: Mon Jan 25, 2010 2:35 pm

APA citation, got question mark instead of authors name

Post by phynes »

Hi,

I am writing a thesis using APA citation and am having difficulty in getting the citation to come out correctly. I keep getting a (?) where an authors name should be.

I writing the thesis using LeD and have installed APACite.

The error I get is

Code: Select all

LaTeX /b/c12/cWarning:/b/c0/c Citation 'Blanchard_1983' on page 1 undefined on input line 13.
[1]) [2] ("C:\Publications & Result Sets\Thesis\PhD Thesis\thesis.bbl"
! Undefined control sequence.
<argument> \protect \citeauthoryear 
                                    {Blanchard}{Blanchard}{{\protect \APACye...
l.10 Blanchard_1983}
                    %
?
The main file of the thesis is thesis.tex so in the thesis.bbl file is this

Code: Select all

\begin{thebibliography}{}

\bibitem[\protect\citeauthoryear{%
Blanchard%
}{%
Blanchard%
}{%
{\protect\APACyear{1983}}%
}]{%
Blanchard_1983}%
\APACinsertmetastar{%
Blanchard_1983}%
Blanchard, H.%
%
\unskip\
\newblock
\APACrefYearMonthDay{1983}{}{}.
\newblock
\APACrefbtitle{A comparison of some processing time measures based on eye
  movements}{A comparison of some processing time measures based on eye
  movements}\ \APACbVolEdTR{}{\BTR{}}.
\newblock
\APACaddressInstitution{}{Bolt, Beranek and Newman, Inc., Cambridge,
  Mass.;Illinois Univ., Urbana. Center for the Study of Reading}.
\PrintBackRefs{\CurrentBib}

\end{thebibliography}
The actual citation occurs this sentence

Code: Select all

....a immediate physiological indicator of cognitive stress \cite{Blanchard_1983}.
Im not sure where I am going wrong and forgive me if this is a simple issue. But any help would be greatly appreciated.


Patrick

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Citation Problem

Post by josephwright »

We will need a minimal example LaTeX file and BibTeX file.
Joseph Wright
phynes
Posts: 2
Joined: Mon Jan 25, 2010 2:35 pm

Re: Citation Problem

Post by phynes »

Here is an example latex and bibtex file.

Hope it helps.

Patrick
Attachments
phd.bib
(11.94 KiB) Downloaded 307 times
latex_file.tex
(2.01 KiB) Downloaded 351 times
User avatar
justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

APA citation, got question mark instead of authors name

Post by justdeath »

Lets me first demonstrate what is a MWE:

Code: Select all

\documentclass{article}

\begin{document}

This is sample text for citing this \cite{ovca11}. More text after that.

New line just to be sure \cite{Blanchard_1983}.

\bibliographystyle{plain}
\bibliography{test4b}

\end{document}
And the bibliography is in "test4b.bib":

Code: Select all

@article{ovca11,
	author = "Nikolay",
	title = "The Great Sheep",
	year = "2011",
	journal = "none"
}

@TECHREPORT{Blanchard_1983,
  author = {Harry Blanchard},
  title = {A comparison of some processing time measures based on eye movements},
  institution = {Bolt, Beranek and Newman, Inc., Cambridge, Mass.;Illinois Univ.,
	Urbana. Center for the Study of Reading},
  year = {1983},
  owner = {Patrick Hynes},
  timestamp = {2011.08.04}
}
The problem seems to be the "apacite" package which you are using, when using \bibliographystyle{plain} everything is working fine.

Check the documentaion for the "apacite" package:
http://ctan.org/tex-archive/biblio/bibt ... b/apacite/

Nikolay
Post Reply