Re: Footnoteref Problem
On Sun, Dec 10, 2000 at 12:59:33AM +, Herbert Voss wrote: > Dave Tweten wrote: > > it's a solution without \footnoteref. the command \sups > for superscript is defined in latex preamble. > > hope this helps. It is better to use \newcommand\sups[1]{\textsuperscript{\rm #1}}
Re: Footnoteref Problem
> > it's a solution without \footnoteref. the command \sups ^ sorry, \footnotemark it's a little bit late ... ;-) Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Footnoteref Problem
Dave Tweten wrote: > > footnotemark to refer to it from another section heading. In spite of the > footnotemark being protected, I got the error message: > > > [EMAIL PROTECTED] said: > >can you give a short lyx-example file? > > Yes. It is attached. dito ... it's a solution without \footnoteref. the command \sups for superscript is defined in latex preamble. hope this helps. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/ #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 2.17 \textclass article \begin_preamble \newcommand\sups[1]{\raisebox{1ex}{\rm\small #1}} \end_preamble \language english \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 \latex latex \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 sups{ \begin_inset LatexCommand \ref{foot:first} \end_inset } \layout Standard ok. this works. only the fontsize of the ref is a little bit too small. look at latex preamble for the \backslash sups-command. \the_end
Re: Footnoteref Problem
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.
Re: Footnoteref Problem
Dave Tweten wrote: > >>Is this just not possible, or can someone show me how to get what I'm looking > >>for? > > >You should put protect _only_ before \footnotemark, namely > >\protect\footnotemark[\ref{foot:div}] > > Yes. Following my usual procedure for this sort of experimental computer > science, I first protected everything in sight, one thing at a time, until > something good happened. As soon as I put the protect on footnotemark, I went > from six errors down to one. Unfortunately, that one last error never went > away. Ultimately, I've removed all the extra protects, and the one error > remains. can you give a short lyx-example file? Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Footnoteref Problem
Initially quoting me, [EMAIL PROTECTED] said: >> Missing number, treated as zero. >> ...ect\footnotemark[\protect\ref{foot:div}]} >> 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.) >>"Wierd error" indeed. I protected the original footnote in its section >>heading. I protected the label within the footnote. I protected the >>footnotemark in its section heading, and I protected its optional reference >>argument. My previous experience is that a \ref to a label in a previous >>footnote will produce the number footnotemark needs. >>Is this just not possible, or can someone show me how to get what I'm looking >>for? >You should put protect _only_ before \footnotemark, namely >\protect\footnotemark[\ref{foot:div}] Yes. Following my usual procedure for this sort of experimental computer science, I first protected everything in sight, one thing at a time, until something good happened. As soon as I put the protect on footnotemark, I went from six errors down to one. Unfortunately, that one last error never went away. Ultimately, I've removed all the extra protects, and the one error remains. For what it's worth, this is Lyx 1.1.5fix1. -- 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.
Re: Footnoteref Problem
On Thu, Dec 07, 2000 at 09:53:19PM -0800, Dave Tweten wrote: > This time, I need for both the original footnote and the \footnoteref to be in > section headings. In spite of adding \protect's everywhere I can think to do > so, I'm left with the following LaTeX error at the \footnotemark: > > Missing number, treated as zero. > ...ect\footnotemark[\protect\ref{foot:div}]} > > 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.) > > "Wierd error" indeed. I protected the original footnote in its section > heading. I protected the label within the footnote. I protected the > footnotemark in its section heading, and I protected its optional reference > argument. My previous experience is that a \ref to a label in a previous > footnote will produce the number footnotemark needs. > > Is this just not possible, or can someone show me how to get what I'm looking > for? You should put protect _only_ before \footnotemark, namely \protect\footnotemark[\ref{foot:div}]
Re: Footnoteref Problem
Dave Tweten wrote: > > In previous situations, I've been able to use the LaTeX "\footnoteref" command > with a Lyx reference to a label in another footnote, with no problems. Not > surprisingly, the result is a second mark pointing to the same footnote. > > This time, I need for both the original footnote and the \footnoteref to be in > section headings. In spite of adding \protect's everywhere I can think to do > so, I'm left with the following LaTeX error at the \footnotemark: > > Missing number, treated as zero. > ...ect\footnotemark[\protect\ref{foot:div}]} use ...ect\footnotemark { ... } } Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Footnoteref Problem
In previous situations, I've been able to use the LaTeX "\footnoteref" command with a Lyx reference to a label in another footnote, with no problems. Not surprisingly, the result is a second mark pointing to the same footnote. This time, I need for both the original footnote and the \footnoteref to be in section headings. In spite of adding \protect's everywhere I can think to do so, I'm left with the following LaTeX error at the \footnotemark: Missing number, treated as zero. ...ect\footnotemark[\protect\ref{foot:div}]} 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.) "Wierd error" indeed. I protected the original footnote in its section heading. I protected the label within the footnote. I protected the footnotemark in its section heading, and I protected its optional reference argument. My previous experience is that a \ref to a label in a previous footnote will produce the number footnotemark needs. Is this just not possible, or can someone show me how to get what I'm looking for? Thanks in advance for any help (or sympathy). -- 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.