[OS X TeX] Error with apacite in figure caption bug?
Ross Moore
ross at ics.mq.edu.au
Wed Mar 26 07:38:51 CET 2008
Hello Alan,
On 26/03/2008, at 4:29 PM, Alan Litchfield wrote:
> Hi,
>
> Sorry for the cross postings but I am having a frustrating time
> with a persistent error with citations in captions in figure and
> table environments.
>
> The input is more or less the same in each case:...
>
> \caption{Work System Lifecycle: \emph{Source, adapted from~
> \citeauthor{Alter2002a}, \citeyearNP[p.~95]{Alter2002a}}.} \label
> {fig:WorkSystemLifecycle}
I'd try
either (a) getting rid of the ~s
or (b) putting \protect~
and (c) putting \protect\cite....
e.g.,
\caption{Work System Lifecycle: \emph{Source, adapted from\protect~
\protect\citeauthor{Alter2002a}, \protect\citeyearNP[p.\protect~95]
{Alter2002a}}.} \label{fig:WorkSystemLifecycle}
>
> ... and each returns an error as below:
>
> ! Illegal parameter number in definition of \reserved at a.
> <to be read again>
> }
> l.101 ... \emph{Source~\cite[p.~93]{Alter2002a}}.}
> \label
> {fig:WorkSystemFram...
>
> Any clues as to what I may be doing wrong or is this a bug?
\caption needs to write its contents into a file.
You need to control how much is expanded.
The \emph macro should be robust, but I doubt that ~ is,
and probably also not the \cite... macros.
>
> I am using TeXLive 2007 so if there is a newer version of apacite...
I'd doubt that a newer version would help much.
>
> Cheers
> Alan
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross at maths.mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the macostex-archives
mailing list