[OS X TeX] hyperref and apacite
Ross Moore
ross at ics.mq.edu.au
Mon Apr 7 05:49:36 CEST 2008
Hi Salvatore, David, and Heiko.
On 07/04/2008, at 9:15 AM, Ross Moore wrote:
> Hi Salvatore, and David,
>
> On 07/04/2008, at 9:05 AM, Salvatore Enrico Indiogine wrote:
>> David and Ross:
>>
>> Thanks for following up. I run OSX 10.4.11 and installed the
>> December
>> 2007 TeXLive Dev
>>
>> Yes, the hyper option is obsolete and in any case it does not resolve
>> the problem. I also have installed the latest oberdiek package.
>
> We all have the same version of apacite.sty now.
>
> I can see what is going wrong.
> With hyperref loaded, the (apacite-internally defined) macro
> \b at Steele:1999aa resulting from the \bibitem tag {cite.Steele:
> 1999aa}
> is expanding as:
>
> \b at Steele:1999aa ->\hyper@@link [cite]{}{cite.Steele:1999aa}
> {\citeauthoryear {Steele\ \&{} Steele}{Steele\ \&{} Steele}
> {{\APACyear {1999}}}}
>
> I suspect that this needs to be:
>
> \b at Steele:1999aa ->\protect\hyper@@link [cite]{}{cite.Steele:1999aa}
> {\protect\citeauthoryear {Steele\ \&{} Steele}{Steele\ \&{} Steele}
> {{\APACyear {1999}}}}
>
>
> It remains to check this, and find out where are
> the best places to make suitable edits.
My suspicions seem to be correct.
The simplest way to fix the problem is to put a single
instance of \protect into hyperref.sty ; viz.
Turn this:
\def\bibcite#1#2{%
\@newl at bel{b}{#1\@extra at binfo}{%
\hyper@@link[cite]{}{cite.#1\@extra at b@citeb}{#2}%
into this:
\def\bibcite#1#2{%
\@newl at bel{b}{#1\@extra at binfo}{%
\protect\hyper@@link[cite]{}{cite.#1\@extra at b@citeb}{#2}%
This occurs at
line 3972 in hyperref.sty [2007/02/07 v6.75r
and at
line 4939 in hyperref.sty [2008/04/05 v6.77l
(line 8328 of the corresponding hyperref.dtx ).
Hopefully there are no new problems introduced
by this change. It's hard to envision how any
might occur --- but I've been wrong before.
>
>
>> Attached is my log.
>>
>> Thanks,
>> Enrico
>>
>> --
>> Enrico Indiogine
>>
>
> Thanks for your help with this.
Cheers,
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