[texhax] problems with backward references
Bob Hunter
catdogbeloved at yahoo.com
Fri Mar 25 16:54:07 CET 2005
Hello,
I am having a problem with backward references that
may be of interest to others. There are two approaches
to enable b.r., being citeref.sty by Bjorn Briel (not
included in teTeX 3) and backref.sty (part of hyperref
and included in teTeX 3).
The problem with citeref:
=========================
The first run of pdflatex goes smooth, as it builds
data. The second run loads the data, and then stops
with the following message:
---
! Missing control sequence inserted.
<inserted text>
\inaccessible
l.144
? H
Please don't say `\def cs{...}', say `\def\cs{...}'.
I've inserted an inaccessible control sequence so that
your
definition will be completed without mixing me up too
badly.
You can recover graciously from this error, if you're
careful; see exercise 27.2 in The TeXbook.
? <return>
! Extra }, or forgotten \endgroup.
<argument> ...malfont \protect \sc bibliography}
l.144
?
----
By hitting return again, the flow hits the second
bib/citeref reference, and the above error is
presented again. By hitting <s>, pdflatex goes on
smoothly to the end. The pdf file shows a good
bibliography, it includes the backward reference, and
they appear to be correct (the page numbers do
correspond).
The problem consists in avoiding the above annoying
error.
The problem with backref:
=========================
I am puzzled by hypersetup here. I load the package as
follows:
\RequirePackage[pdftex,hyperref,svgnames]{xcolor}%
titlepage
\GetGinDriver% requires xcolor
\RequirePackage[plainpages=false,pdfpagelabels,\GinDriver]{hyperref}
\RequirePackage{backref}
\hypersetup{backref=true}
Again, the first run of pdflatex goes smoothly. The
second run stops with the following error:
-----
! Missing control sequence inserted.
<inserted text>
\inaccessible
l.337
? ! Extra }, or forgotten \endgroup.
<argument> ...malfont \protect \sc bibliography}
l.337
?
[150.150]
! Extra \else.
\addpenalty ...tskip =\z@ \penalty #1\relax \else
\@tempskipb \lastskip \vsk...
l.337
?
! Extra \else.
\addpenalty ...skip \@tempskipb \fi \fi \fi \else
\@noitemerr \fi
l.337
?
! LaTeX Error: Something's wrong--perhaps a missing
\item.
See the LaTeX manual or LaTeX Companion for
explanation.
Type H <return> for immediate help.
...
l.337
?
-----
... it goes on for a short while, and then the
following:
----
! Missing control sequence inserted.
<inserted text>
\inaccessible
l.688
?
! Extra }, or forgotten \endgroup.
<argument> ...malfont \protect \sc bibliography}
l.688
?
[154.154]
! Extra \else.
\addpenalty ...tskip =\z@ \penalty #1\relax \else
\@tempskipb \lastskip \vsk...
l.688
?
! Extra \else.
\addpenalty ...skip \@tempskipb \fi \fi \fi \else
\@noitemerr \fi
l.688
?
! LaTeX Error: Something's wrong--perhaps a missing
\item.
See the LaTeX manual or LaTeX Companion for
explanation.
Type H <return> for immediate help.
...
l.688
?
----
By hitting return one more time, pdflatex goes
smoothly to the end.
The pdf file shows the bibliography, but no backward
references.
This latter case is at the forefront, because hyperref
is included in teTeX 3.
I look forward to read your comments.
Bob
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
More information about the texhax
mailing list