Re: suppression of footnotes in TOC

2018-01-11 Thread Julio Rojas
For me it works when the section is numbered, not when it is not (Unknown
argument). Maybe this is the problem?

-
Julio Rojas
jcredbe...@gmail.com

On Thu, Jan 4, 2018 at 9:06 AM, Ekkehart Schlicht  wrote:

> Am Donnerstag, den 04.01.2018, 12:27 +0100 schrieb Ekkehart Schlicht:
>
>> Article (Standard Class), section
>>
>
> That's strange. Do you have some customized layout in your personal LyX
> dir?
>
> Jürgen
>
> No, I have no local layouts. For this I made a test page in Lyx without
> anything.
>
> Does not matter, I don't need it at the moment. I shall install a fresh
> LyX on another computer, try there and let you know.
>
> Thanks
>
> Ekkehart
>
> --
> Ekkehart Schlicht
> schli...@lmu.de
>


Re: suppression of footnotes in TOC

2018-01-04 Thread Ekkehart Schlicht

Am Donnerstag, den 04.01.2018, 12:27 +0100 schrieb Ekkehart Schlicht:

Article (Standard Class), section


That's strange. Do you have some customized layout in your personal LyX
dir?

Jürgen

No, I have no local layouts. For this I made a test page in Lyx without 
anything.

Does not matter, I don't need it at the moment. I shall install a fresh LyX on 
another computer, try there and let you know.

Thanks

Ekkehart

--
Ekkehart Schlicht
schli...@lmu.de


Re: suppression of footnotes in TOC

2018-01-04 Thread Jürgen Spitzmüller
Am Donnerstag, den 04.01.2018, 12:27 +0100 schrieb Ekkehart Schlicht:
> Article (Standard Class), section

That's strange. Do you have some customized layout in your personal LyX
dir?

Jürgen

> Ekkehart
> 

signature.asc
Description: This is a digitally signed message part


Re: suppression of footnotes in TOC

2018-01-04 Thread Ekkehart Schlicht

  
  

  Jürgen
  Spitzmüller
  Thu, 04 Jan 2018 01:56:55 -0800

Am Donnerstag, den 04.01.2018, 10:44 +0100 schrieb Ekkehart Schlicht:
> Dear Jürgen,
> this sounds handy, but unfortunately in my LyX (Version 2.2.3) Insert
> > Short Title is greyed and not available regardless of where I
> position the cursor.
What text class is this? What layout (section)?

Article (Standard Class), section
Ekkehart


  



Re: suppression of footnotes in TOC

2018-01-04 Thread Jürgen Spitzmüller
Am Donnerstag, den 04.01.2018, 10:44 +0100 schrieb Ekkehart Schlicht:
> Dear Jürgen,
> this sounds handy, but unfortunately in my LyX (Version 2.2.3) Insert
> > Short Title is greyed and not available regardless of where I
> position the cursor.

What text class is this? What layout (section)?

Jürgen

signature.asc
Description: This is a digitally signed message part


Re: suppression of footnotes in TOC

2018-01-04 Thread Ekkehart Schlicht

  
  
Dear Jürgen,
this sounds handy, but unfortunately in my LyX (Version 2.2.3)
  Insert > Short Title is greyed and not available regardless of
  where I position the cursor.
Thanks
Ekkehart



  Jürgen
  Spitzmüller
  Wed, 03 Jan 2018 00:00:56 -0800

Am Dienstag, den 02.01.2018, 16:57 +0100 schrieb Ekkehart Schlicht:
> Hi,
> 
> I have footnotes to section headings (that are necessary because
> some 
> sections are taken from earlier articles, and this is explained in
> those 
> footnotes). In the TOC, these footnotes re-appear. It is quite clumsy
> to 
> repress them in those cases by using \section* instead of \section
> and 
> add \addcontentsline{section}{12 sectionname}. 
An easier solution (though not "automatic") is to use Insert > Short
Title.

Jürgen

  



Re: suppression of footnotes in TOC

2018-01-04 Thread Ekkehart Schlicht

  
  
Dear Richard, dear all,
I found out that Lyx uses \protect\footnote{...}.
With the normal \footnote{ } the problem does not occur.
\protect\footnote{  } is not recommended precisely for the
reason I mentioned, see
  
http://www.tex.ac.uk/FAQ-ftnsect.html
Instead, footmisc can be
used (which I often use anyway). It will work with \usepackage[stable]{footmisc}
  

Thus it seems easy to mend the problem in LyX by
simply redefining what the footnote inset does, i.e. omitting
\stable, and adding \usepackage[stable]{footmisc} either in the
preamble or in Lyx itself.
  
Ekkehart


On 02.01.2018 21:09, Ricardo Berlasso
  wrote:


  
  

  2018-01-02 16:57 GMT+01:00 Ekkehart
Schlicht :
Hi,
  
  I have footnotes to section headings (that are necessary
  because some sections are taken from earlier articles, and
  this is explained in those footnotes). In the TOC, these
  footnotes re-appear. It is quite clumsy to repress them in
  those cases by using \section* instead of \section and add
  \addcontentsline{section}{12 sectionname}. It would be
  very convenient to have footnoes to TOC entries omitted by
  defaultin the TOC.



The only way I ever found is to define a new "footnote"
  command and use it on the heading instead of the normal
  one. See here:



https://tex.stackexchange.com/a/123762


Basically you add to the Preamble 




  \makeatletter
  \def\myfnt{\ifx\protect\@typeset@protect\expandafter\footnote\else\expandafter\@gobble\fi}
  \makeatother
  

  and then to insert the "footnote" on the heading you use a TeX box (Ctrl-L) with the command
  

  \myfnt{the heading footnote}
  

  on it. The numbering integrates without problems with normal footnotes, only on LyX it will look kind of weird. But you can always define a character style ;)




Regards,
Ricardo


 

  
  Thanks!
  
  -- 
  Ekkehart Schlicht
  Hurtenstr. 13
  82345 Andechs-Frieding
  Tel: +49 (0)8152 9149271

  
  

  


  



Re: suppression of footnotes in TOC

2018-01-03 Thread Rich Shepard

On Wed, 3 Jan 2018, Jürgen Spitzmüller wrote:


An easier solution (though not "automatic") is to use Insert > Short
Title.


  +1 for using short titles. When section headings are long, or contain an
embedded footnote) the short heading can also prevent section names in the
header fron overlapping.

  Yes, it is a bit more work, but it gives you control.

Rich



Fwd: Re: suppression of footnotes in TOC

2018-01-03 Thread Ekkehart Schlicht

  
  


  
  Dear Ricardo,
  thanks a lot! This works much better than my
  previous "solution". My suggestion would be to build it right
  away into the LyX footnote command for chapters, sections, and
  subsections.
  Unfortunately \renewcommand{\footnote}{\myfnt}
  does not work, as \myfnt calls \footnote. 

  There is also the problem that the myfnt
  appears in the PDF bookmarks and has to be corrected by hand.
  Thanks again

  Ekkehart
  
  
  On 02.01.2018 21:09, Ricardo Berlasso
wrote:
  
  


  
2018-01-02 16:57 GMT+01:00 Ekkehart
  Schlicht :
  Hi,

I have footnotes to section headings (that are necessary
because some sections are taken from earlier articles,
and this is explained in those footnotes). In the TOC,
these footnotes re-appear. It is quite clumsy to repress
them in those cases by using \section* instead of
\section and add \addcontentsline{section}{12
sectionname}. It would be very convenient to have
footnoes to TOC entries omitted by defaultin the TOC.
  
  
  
  The only way I ever found is to define a new
"footnote" command and use it on the heading instead of
the normal one. See here:
  
  
  
  https://tex.stackexchange.com/a/123762
  
  
  Basically you add to the Preamble 
  
  
  
  
\makeatletter
\def\myfnt{\ifx\protect\@typeset@protect\expandafter\footnote\else\expandafter\@gobble\fi}
\makeatother


and then to insert the "footnote" on the heading you use a TeX box (Ctrl-L) with the command


\myfnt{the heading footnote}


on it. The numbering integrates without problems with normal footnotes, only on LyX it will look kind of weird. But you can always define a character style ;)

  
  
  
  Regards,
  Ricardo
  
  
   
   
Thanks!

-- 
Ekkehart Schlicht
Hurtenstr. 13
82345 Andechs-Frieding
Tel: +49 (0)8152 9149271
  


  

  
  

  



Re: suppression of footnotes in TOC

2018-01-03 Thread Jürgen Spitzmüller
Am Dienstag, den 02.01.2018, 16:57 +0100 schrieb Ekkehart Schlicht:
> Hi,
> 
> I have footnotes to section headings (that are necessary because
> some 
> sections are taken from earlier articles, and this is explained in
> those 
> footnotes). In the TOC, these footnotes re-appear. It is quite clumsy
> to 
> repress them in those cases by using \section* instead of \section
> and 
> add \addcontentsline{section}{12 sectionname}. 

An easier solution (though not "automatic") is to use Insert > Short
Title.

Jürgen


signature.asc
Description: This is a digitally signed message part


Re: suppression of footnotes in TOC

2018-01-02 Thread Richard Heck
On 01/02/2018 03:10 PM, Ricardo Berlasso wrote:
> 2018-01-02 16:57 GMT+01:00 Ekkehart Schlicht  >:
>
> Hi,
>
> I have footnotes to section headings (that are necessary because
> some sections are taken from earlier articles, and this is
> explained in those footnotes). In the TOC, these footnotes
> re-appear. It is quite clumsy to repress them in those cases by
> using \section* instead of \section and add
> \addcontentsline{section}{12 sectionname}. It would be very
> convenient to have footnoes to TOC entries omitted by defaultin
> the TOC.
>

Yes, this seems right, and it shouldn't be too difficult. Feel free to
file this as a bug. If you do, please cc me (rgheck). This may not be
terribly difficult.

Richard



Re: suppression of footnotes in TOC

2018-01-02 Thread Ricardo Berlasso
2018-01-02 16:57 GMT+01:00 Ekkehart Schlicht :

> Hi,
>
> I have footnotes to section headings (that are necessary because some
> sections are taken from earlier articles, and this is explained in those
> footnotes). In the TOC, these footnotes re-appear. It is quite clumsy to
> repress them in those cases by using \section* instead of \section and add
> \addcontentsline{section}{12 sectionname}. It would be very convenient to
> have footnoes to TOC entries omitted by defaultin the TOC.
>


 The only way I ever found is to define a new "footnote" command and use it
on the heading instead of the normal one. See here:

https://tex.stackexchange.com/a/123762

Basically you add to the Preamble

\makeatletter

\def\myfnt{\ifx\protect\@typeset@protect
\expandafter\footnote\else\expandafter\@gobble\fi}

\makeatother


and then to insert the "footnote" on the heading you use a TeX box (Ctrl-L)
with the command


\myfnt{the heading footnote}


on it. The numbering integrates without problems with normal footnotes,
only on LyX it will look kind of weird. But you can always define a
character style ;)

Regards,
Ricardo





>
> Thanks!
>
> --
> Ekkehart Schlicht
> Hurtenstr. 13
> 
> 82345 Andechs-Frieding
> Tel: +49 (0)8152 9149271
>