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

Footnote in section title

1,975 views
Skip to first unread message

Simone

unread,
Jun 1, 2010, 5:32:35 AM6/1/10
to
Hello,

I need to insert a footnote to a section title. On the web I found a
general practice consisting in writing:
\section[examples]{Examples\footnote{examples' note}}

When compiling, I obtain these errors:

! Argument of \ttl@savefn has an extra }.
<inserted text>
\par
l.13 ...amples]{Examples\footnote{examples' note}}

Runaway argument?
\z@ \reserved@a \reserved@b {\ttl@savefn \@ne []}\futurelet
\@let@token \ETC.
! Paragraph ended before \ttl@savefn was complete.
<to be read again>
\par
l.13 ...amples]{Examples\footnote{examples' note}}

Runaway argument?
Examples\let \reserved@d =[\def \let \def
! Paragraph ended before \@skipmath was complete.
<to be read again>
\par
l.13 ...amples]{Examples\footnote{examples' note}}


I don't know what to do, I tried something but with no success... i
even tried the solution with \footnotemark and \footnotetext but it
didn't work... what can I do? Will I have to remove the footnote from
section title and put it elsewhere? Please help me!

Many thanks to you all in advance.

Simone.

Lars Madsen

unread,
Jun 1, 2010, 5:33:59 AM6/1/10
to
Simone wrote:
> Hello,
>
> I need to insert a footnote to a section title. On the web I found a
> general practice consisting in writing:
> \section[examples]{Examples\footnote{examples' note}}

minimal example please, with document class and preamble

also try

\protect\footnote


>
> When compiling, I obtain these errors:
>
> ! Argument of \ttl@savefn has an extra }.
> <inserted text>
> \par
> l.13 ...amples]{Examples\footnote{examples' note}}
>
> Runaway argument?
> \z@ \reserved@a \reserved@b {\ttl@savefn \@ne []}\futurelet
> \@let@token \ETC.
> ! Paragraph ended before \ttl@savefn was complete.
> <to be read again>
> \par
> l.13 ...amples]{Examples\footnote{examples' note}}
>
> Runaway argument?
> Examples\let \reserved@d =[\def \let \def
> ! Paragraph ended before \@skipmath was complete.
> <to be read again>
> \par
> l.13 ...amples]{Examples\footnote{examples' note}}
>
>
> I don't know what to do, I tried something but with no success... i
> even tried the solution with \footnotemark and \footnotetext but it
> didn't work... what can I do? Will I have to remove the footnote from
> section title and put it elsewhere? Please help me!
>
> Many thanks to you all in advance.
>
> Simone.


--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

Robin Fairbairns

unread,
Jun 1, 2010, 7:28:49 AM6/1/10
to
Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> writes:

> Simone wrote:
>> I need to insert a footnote to a section title. On the web I found a
>> general practice consisting in writing:
>> \section[examples]{Examples\footnote{examples' note}}
>
> minimal example please, with document class and preamble
>
> also try
>
> \protect\footnote

\protect\footnote provides a footnote in the table of contents, which is
(more often than not) undesirable.

see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftnsect
--
Robin Fairbairns, Cambridge

Lars Madsen

unread,
Jun 1, 2010, 7:42:44 AM6/1/10
to

erhm, did you read what the OP wrote?

\section[examples]{Examples\footnote{examples' note}}

I suggested adding \protect in front of \footnote, or post a minimal example

Simone

unread,
Jun 1, 2010, 8:11:04 AM6/1/10
to
On 1 Giu, 13:42, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
> Robin Fairbairns wrote:
> > Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> writes:
>
> >> Simone wrote:
> >>> I need to insert a footnote to a section title. On the web I found a
> >>> general practice consisting in writing:
> >>> \section[examples]{Examples\footnote{examples' note}}
> >> minimal example please, with document class and preamble
>
> >> also try
>
> >> \protect\footnote
>
> > \protect\footnote provides a footnote in the table of contents, which is
> > (more often than not) undesirable.
>
> > seehttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftnsect

>
> erhm, did you read what the OP wrote?
>
> \section[examples]{Examples\footnote{examples' note}}
>
> I suggested adding \protect in front of \footnote, or post a minimal example
>
> --
>
> /daleif (remove RTFSIGNATURE from email address)
>
> LaTeX FAQ:      http://www.tex.ac.uk/faq
> LaTeX book:    http://www.imf.au.dk/system/latex/bog/   (in Danish)
> Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.minimalbeispiel.de/mini-en.html


I'll try your suggestions in a while (I was at lunch, sorry if I
didn't answer), but I just tried to change \section... in \subsection
and everything went right! The footnote appeared in the right way! I'm
using a customized template for my degree thesis (Classicthesis +
Arsclassica, available here: http://www.ctan.org/tex-archive/macros/latex/contrib/arsclassica/)
so maybe there's some customization in section titles that does not
allow for that "trick"...

Here is my preamble:

\documentclass
[
10pt,
a4paper,
twoside,
openright,
titlepage,
fleqn,
cleardoubleempty,
abstracton,
pointlessnumbers,
headinclude,
footinclude,
BCOR5mm,
tablecaptionabove
]{scrreprt}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,italian]{babel}
\usepackage{indentfirst}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[italian]{varioref}

\usepackage[square,sort&compress]{natbib}
\usepackage[tight,italian]{minitoc}
\usepackage{chngpage,calc}
\usepackage{subfig}
\usepackage{lipsum}
\usepackage{eurosym}
\usepackage{classicthesis-ldpkg}

\usepackage
[
eulerchapternumbers,
subfig,
beramono,
eulermath,
pdfspacing
]{classicthesis}

\usepackage[italian]{arsclassica}
\usepackage{tesi}


and here is the tesi.sty, the last package used in preamble (but I
don't think it's the "culprit"):

% ********************************************************************
% tesi.sty
% di Lorenzo Pantieri (2009)
% un pacchetto personale che contiene le impostazioni della tesi
% ********************************************************************
\ProvidesPackage{tesi}[2009/09/16 Un pacchetto personale]

% un ambiente ad hoc per le citazioni
\newenvironment{citazione}%
{\begin{quotation}\small\ignorespaces}%
{\end{quotation}}

% [...] ;-)
\newcommand{\omissis}{[\dots\negthinspace]}

% indica a LaTeX la cartella dove sono riposte le immagini
\graphicspath{{Immagini/}}

% eccezioni all'algoritmo di sillabazione
\hyphenation{Fortran ma-cro-istru-zio-ne nitro-idrossil-amminico}


% MATEMATICA %

% comandi per gli insiemi numerici (serve il pacchetto amssymb)
\newcommand{\numberset}{\mathbb}
\newcommand{\N}{\numberset{N}}
\newcommand{\R}{\numberset{R}}

% un ambiente per i sistemi
\newenvironment{sistema}%
{\left\lbrace\begin{array}{@{}l@{}}}%
{\end{array}\right.}

% definizioni (serve il pacchetto amsthm)
\theoremstyle{definition}
\newtheorem{definizione}{Definizione}

% teoremi, leggi e decreti (serve il pacchetto amsthm)
\theoremstyle{plain}
\newtheorem{teorema}{Teorema}
\newtheorem{legge}{Legge}
\newtheorem{decreto}[legge]{Decreto}
\newtheorem{murphy}{Murphy}[section]

Robin Fairbairns

unread,
Jun 1, 2010, 10:49:07 AM6/1/10
to
Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> writes:

> Robin Fairbairns wrote:
>> Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> writes:
>>
>>> Simone wrote:
>>>> I need to insert a footnote to a section title. On the web I found a
>>>> general practice consisting in writing:
>>>> \section[examples]{Examples\footnote{examples' note}}
>>> minimal example please, with document class and preamble
>>>
>>> also try
>>>
>>> \protect\footnote
>>
>> \protect\footnote provides a footnote in the table of contents, which is
>> (more often than not) undesirable.
>>
>> see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftnsect
>
> erhm, did you read what the OP wrote?

yes, and it doesn't make any sense on its own.

> \section[examples]{Examples\footnote{examples' note}}

and now we learn that she's not using a standard class.

> I suggested adding \protect in front of \footnote, or post a minimal example

strange as it may seem, i had noticed that. perhaps i ought to stop
posting here, too, if i give such offence. :-(
--
Robin Fairbairns, Cambridge

Lars Madsen

unread,
Jun 1, 2010, 11:03:06 AM6/1/10
to

>> \section[examples]{Examples\footnote{examples' note}}
>
> and now we learn that she's not using a standard class.
>

A minimal example seems to be this

\documentclass{scrreprt}
\usepackage{classicthesis}
\begin{document}
\section[test]{test\footnote{xxxx}}
\end{document}

this gives the error mentioned, and which is fixed by using
\protect\footnote

so it seems classicthesis causes problems

Simone

unread,
Jun 1, 2010, 4:05:12 PM6/1/10
to


I wish to thank you all for your help. I answered now because I had an
unforeseen problem and I had to go to the hospital.
With \protect\footnote everything went right... I didn't know about
the \protect statement, I'll examine the documentation.
Many thanks to you all again! :-)

Bye.

Lars Madsen

unread,
Jun 2, 2010, 4:29:50 AM6/2/10
to
Lars Madsen wrote:
>
>>> \section[examples]{Examples\footnote{examples' note}}
>>
>> and now we learn that she's not using a standard class.
>>
>
> A minimal example seems to be this
>
> \documentclass{scrreprt}
> \usepackage{classicthesis}
> \begin{document}
> \section[test]{test\footnote{xxxx}}
> \end{document}
>
> this gives the error mentioned, and which is fixed by using
> \protect\footnote
>
> so it seems classicthesis causes problems
>
>

interestingly I don't know what it is that classicthesis is changing,
without it it works fine without the protect

Ulrike Fischer

unread,
Jun 2, 2010, 8:27:36 AM6/2/10
to
Am Tue, 01 Jun 2010 17:03:06 +0200 schrieb Lars Madsen:


> A minimal example seems to be this
>
> \documentclass{scrreprt}
> \usepackage{classicthesis}
> \begin{document}
> \section[test]{test\footnote{xxxx}}
> \end{document}
>
> this gives the error mentioned, and which is fixed by using
> \protect\footnote
>
> so it seems classicthesis causes problems

classicthesis changes the section format with titlesec and uses
\MakeTextLowercase from the textcase package to format the section
title. This can lead to problems with commands in the section title.


--
Ulrike Fischer

Lars Madsen

unread,
Jun 2, 2010, 8:32:54 AM6/2/10
to

ahh, thanks

0 new messages