[comp.text] Footnotemark in Section Head

abc@brl-smoke.ARPA (Brint Cooper) (04/27/88)

I want to place a footnote marker as a superscript at the end of a
section head using LaTeX and "report" style.  I have tried the following
without success:

These produce a footnotemark on a line by itself:

\section{Section Header Here}\footnotemark	
\section{Section Header Here}\footnotemark%

These produce a diagnostic that there is a spurious '}':


\section{Section Header Here\footnotemark}
\section{Section Header Here\footnotemark}%
\section{Section Header Here\footnotemark\}
\section{Section Header Here\footnotemark\}%

What am I missing?

_Brint
-- 
Brint Cooper

jtkohl@athena.mit.edu (John T Kohl) (04/28/88)

In article <7775@brl-smoke.ARPA> abc@brl-smoke.ARPA (Brint Cooper) writes:
>I want to place a footnote marker as a superscript at the end of a
>section head using LaTeX and "report" style.  I have tried the following
>without success:
...
>These produce a diagnostic that there is a spurious '}':
>\section{Section Header Here\footnotemark}
...
>What am I missing?

\footnotemark is fragile, and arguments to \section are moving
arguments.
Try

\section{Section Header Here\protect\footnotemark}

----
John Kohl
MIT/Project Athena