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.
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
> 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
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
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 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
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
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.
interestingly I don't know what it is that classicthesis is changing,
without it it works fine without the protect
> 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
ahh, thanks