Hi!

I want to have references in the form [Author (et al.), year], so I am using named.bst and named.sty for that. The problem appears when I try to use a citation in a caption. In that case, when I try to generate a div file I get errors of the type:

! Undefined control sequence.
\citeauthoryear #1#2->\def [EMAIL PROTECTED]
{#1}\ifx [EMAIL PROTECTED] [EMAIL PROTECTED] \...
l.13 ...itation does not work \cite{beconico2005}}

If I just ignore these errors (running "latex" from the commad line) the genarated div file is actually correct. However, when using Lyx, I keep getting five Error boxes that prevent me from viewing the div file. Is there anything I can do to overcome this problem? Thanks!

Nicolás

PS.- An example of a latex file producing the aforementioned errors:

\documentclass{paper}
\usepackage{float}
\usepackage{graphicx}
\usepackage{named}

\begin{document}

This citation works \cite{beconico2005}.

\begin{figure}
\begin{center}\includegraphics{figure_file}\end{center}
\caption{This citation does not work \cite{beconico2005}}
\end{figure}

\bibliographystyle{C:/tools/latex/miktex/bibtex/bst/named}
\bibliography{C:/Documentos/Papers/biblio}

\end{document}

Reply via email to