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

hypperef/pdflatex issues

637 views
Skip to first unread message

Alex Fletcher

unread,
Oct 20, 2002, 10:53:11 PM10/20/02
to
I tried to use hyperref with pdflatex. It's fine on the first pass,
but on the second pass I get the following error:

! Argument of \contentsline has an extra }.
<inserted text>
\par
l.7 \contentsline
{figure}{\numberline {3.2}{\ignorespaces Stable root
traje...

After that it complains about a runaway argument.

I am using the following packages, wondering if anyone knew off-hand
of any probably clashes? (the comments are my docs, not intended to
patronise anyone on this list!)

\documentclass{report}
%\documentclass{article}

\usepackage{doublespace} %seems to break split!
\usepackage{myluthesis}
\usepackage{amsxtra,amsmath} %these are the amsmath packages
\usepackage{amssymb}
\usepackage{stmaryrd} %this is that St mary road font thing
\usepackage{relsize} %allows very small text
\usepackage{dcolumn,hhline,tabularx}
\usepackage{array}
\usepackage{arydshln}
\usepackage{fancyheadings}
%\usepackage{graphicx}
\usepackage[pdftex]{graphicx}
\usepackage{moreverb}
\usepackage{subfigure}
%\usepackage[titletoc]{appendix}
\usepackage{comment}
\usepackage{apalike}
\usepackage{overcite}
\usepackage[pdftex,debug]{hyperref}

The myluthesis.sty is lehigh's thesis style and is very hacky and is
quite likely what is causing the problem. Feel free to peruse over it
at

http://indigo1.me.lehigh.edu/~alf5/public/myluthesis.sty

I'm not intending anyone to re-write the thesis style for me, more
interested if anyone has seen this error before and knows why it is
happening?!

alex

David Kastrup

unread,
Oct 21, 2002, 4:34:27 AM10/21/02
to
al...@lehigh.edu (Alex Fletcher) writes:

> I tried to use hyperref with pdflatex. It's fine on the first pass,
> but on the second pass I get the following error:
>
> ! Argument of \contentsline has an extra }.
> <inserted text>
> \par
> l.7 \contentsline
> {figure}{\numberline {3.2}{\ignorespaces Stable root
> traje...
>
> After that it complains about a runaway argument.
>
> I am using the following packages, wondering if anyone knew off-hand
> of any probably clashes? (the comments are my docs, not intended to
> patronise anyone on this list!)

[List of a gazillion packages deleted]

Please create a minimal document exhibiting the problem by throwing
out everything that does not contribute to the problem. Once you
can't remove anything without getting the problem, post again with a
_complete_ (not just preamble) _minimal_ document.

Only in that manner is it possible to analyze the problem.

--
"Give a man a fish, and you feed him for a day. Teach him how to fish, and
he'll tell you he has better things to do than dangling lines into rivers."
David Kastrup, Kriemhildstr. 15, 44793 Bochum, David....@t-online.de

Donald Arseneau

unread,
Oct 21, 2002, 7:25:53 AM10/21/02
to
al...@lehigh.edu (Alex Fletcher) writes:

> I tried to use hyperref with pdflatex. It's fine on the first pass,
> but on the second pass I get the following error:
>
> ! Argument of \contentsline has an extra }.
> <inserted text>
> \par
> l.7 \contentsline
> {figure}{\numberline {3.2}{\ignorespaces Stable root
> traje...

That does not show enough information. I must guess that the
\contentsline is not written with enough aruments for hyperref.
So what package is controlling writing list of figures? Is that
a subfigure?

> \usepackage{doublespace} %seems to break split!

OBSOLETE! {setspace}

> \usepackage{relsize} %allows very small text

? huh?

> \usepackage{fancyheadings}

OBSOLETE! {fancyhdr}

> \usepackage{overcite}

may interact badly with backref.sty (hyperref)

Donald Arseneau as...@triumf.ca

Alex Fletcher

unread,
Oct 21, 2002, 1:19:59 PM10/21/02
to
David Kastrup <David....@t-online.de> wrote in message news:<x5n0p8w...@tupik.goethe.zz>...

> al...@lehigh.edu (Alex Fletcher) writes:
>
> > I tried to use hyperref with pdflatex.
>
> Please create a minimal document exhibiting the problem
>

\documentclass{report}

\usepackage{myluthesis}
\usepackage[pdftex,debug]{hyperref}

\begin{document}

\tableofcontents

\chapter{one} \label{one.chap}

\clearpage
This is chapter \ref{one.chap}

\end{document}

As I mentioned, myluthesis.sty is available at

http://indigo1.me.lehigh.edu/~alf5/public/myluthesis.sty

Thanks for your help.

Alex Fletcher

unread,
Oct 21, 2002, 7:06:02 PM10/21/02
to
Donald Arseneau <as...@triumf.ca> wrote in message news:<yfir8ek...@triumf.ca>...

>
> That does not show enough information. I must guess that the
> \contentsline is not written with enough aruments for hyperref.

Fair point. The full line is

\contentsline {figure}{\numberline {3.2}{\ignorespaces Stable root

trajectories, originating from the roots of $\text {Ai}'(z_0)= 0$, for
the simple wall $a_1 = a_2 = 0$, plotted for various $\epsilon
$.}}{48}

I don't quite see how this is different from other lines in .lof file.

> So what package is controlling writing list of figures? Is that
> a subfigure?
>

That one isn't a subfigure, but I am using subfigure later which seems
to be causing some havoc in \listoffigures.

I'm not sure which package controls writing to list of figures;
myluthesis.sty does some formatting of the contentsline entry to .toc,
but does not touch .lof from what I can tell.

> > \usepackage{doublespace} %seems to break split!
>
> OBSOLETE! {setspace}
>

Cheers, yes, I had guessed something like that when looking at
doublespace.sty and it talking about "documentstyle"... but the whole
double spacing thing seems to be a bit fiddly eg. I get the following
error if I have a \begin{comment} attached to another paragraph:

! Bad space factor (0).
<recently read> \@savsf

l.88 ^^I\end{comment}

> > \usepackage{relsize} %allows very small text
>
> ? huh?
>

I see that you are aware of this package ;-)

To be honest, I don't actually use it in this document and it is there
from legacy, as is my comment.

> > \usepackage{fancyheadings}
>
> OBSOLETE! {fancyhdr}
>

Yeah, I know, I think I was on an old installation.

> > \usepackage{overcite}
>
> may interact badly with backref.sty (hyperref)
>

Ahhh, useful to know. I think I was using that in conjunction with
apalike but for some reason I can't recreate the problem at the
moment. Otherwise, I don't actually need it so I'll remove it for now.

Donald Arseneau

unread,
Oct 21, 2002, 9:24:52 PM10/21/02
to
al...@lehigh.edu (Alex Fletcher) writes:

> David Kastrup <David....@t-online.de> wrote in message news:<x5n0p8w...@tupik.goethe.zz>...

> > Please create a minimal document exhibiting the problem
>

> [minimal]


> As I mentioned, myluthesis.sty is available at

OK, I ran this. I don't get the error you quoted before, but
it is probably the same cause: fragile commands in moving argument.

In particular, the moving argument is \MakeUppercase{ } in \l@chapter.
Since the argument is something like:

\chaptername \hspace {0.25em} \hyper@linkstart {link}{chapter.1}{\numberline
{1}one}\hyper@linkend

you will have no luck inserting \protect at places. I suggest you
convert only \chaptername and the title ("one") to uppercase, or
just type them in uppercase.

Actually, I think you will find it easier to use one of the packages
like tocloft.


Donald Arseneau as...@triumf.ca

0 new messages