footnotemark to refer to it from another section heading.  In spite of the 
footnotemark being protected, I got the error message:

        Missing number, treated as zero.
        ...on\protect\footnotemark[\ref{foot:first}]}

        A number should have been here; I inserted `0'.
        (if you can't figure out why I needed to see a number,
        look up `wierd error' in the index to The TeXbook.)

In intermediate steps from six errors to this one, I tried \protect'ing 
everything.  Only the one \protect just before the \footnotemark had any good 
effect, reducing the number of errors from six to just this one.  For what 
it's worth, my version of LyX is 1.1.5fix1.

And finally,

[EMAIL PROTECTED] said:
>can you give a short lyx-example file? 

Yes.  It is attached.
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\language default
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default

\layout Section

First Section
\begin_float footnote 
\layout Standard


\begin_inset LatexCommand \label{foot:first}

\end_inset 

This is a footnote in a section heading.
\end_float 
\layout Standard

Text for first section.
\layout Section

Second Section
\latex latex 

\backslash 
protect
\backslash 
footnotemark[
\begin_inset LatexCommand \ref{foot:first}

\end_inset 

]
\layout Standard

Text for second section.
\the_end
M/S 258-5                     | 1024-bit PGP fingerprint: | [EMAIL PROTECTED]
NASA Ames Research Center     |  41 B0 89 0A  8F 94 6C 59 |      (650) 604-4416
Moffett Field, CA  94035-1000 |  7C 80 10 20  25 C7 2F E6 | FAX: (650) 604-4377
We each earn what freedom of speech we defend for those who most offend us.

Reply via email to