Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

\citeauthor and \citeyear not working properly

735 views
Skip to first unread message

Thomas Arildsen

unread,
Aug 2, 2006, 7:01:46 AM8/2/06
to
I am using natbib:

\usepackage[numbers,sort&compress]{natbib}

...together with the IEEEtran bibliography style:

\bibliographystyle{styles/IEEEtran}
\bibliography{styles/IEEEtranCTL,references/references}

...which works fine.
My problem is, that when I try to use \citeauthor and \citeyear in my
documents (sub-docs that are \input in a master file commonmaster.tex
which I compile), I get:

Package natbib Warning: Author undefined for citation`Liu2006'
(natbib) on page 11 on input line 389.

Package natbib Warning: Year undefined for citation`Liu2006'
(natbib) on page 11 on input line 389.

...and the output looks like this:

"is found in (author?)'s (year?) paper [40].

Clearly, the \cite that results in "[40]" works fine, but the author and
year don't work. I have been looking at my commonmaster.aux file which
contains lines like this one:

\bibcite{Liu2006}{{40}{}{{}}{{}}}

By manually fiddling with this line, I have discovered that the author
and year should be included in two of the empty brackets. Can someone
help explain how to get that data filled in there?
Best regards,

Thomas Arildsen

Thomas Arildsen

unread,
Aug 2, 2006, 9:57:53 AM8/2/06
to

OK, aparently this is not possible because I'm using IEEEtran. Can
anyone suggest a hack that will let IEEEtran.bst generate the necessary
data? I have been looking into plainnat.bst and tried to borrow the
output.bibitem function, but I can't seem to figure out how it works - I
am having trouble with short.list.

Thomas Arildsen

0 new messages