! 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
> 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
> 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
\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.
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.
> 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