Jean-Marc Lasgouttes wrote: > FWIW, I agree that Juergen's patch is the way to go. Actually, if we > had a scripting language in layout files, or if we used css for them, > we could encode this directly in the layout.
BTW, I also have a patch for 1.3.x (attached). Slightly different approach, but I think it is safe. Jürgen
Index: src/insets/insetfoot.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetfoot.C,v retrieving revision 1.50 diff -u -r1.50 insetfoot.C --- src/insets/insetfoot.C 25 Sep 2002 14:26:10 -0000 1.50 +++ src/insets/insetfoot.C 25 Oct 2004 08:14:23 -0000 @@ -64,12 +64,17 @@ int InsetFoot::latex(Buffer const * buf, ostream & os, bool fragile, bool fp) const { + bool isintitle; if (buf && parOwner()) { LyXLayout_ptr const & layout = parOwner()->layout(); fragile |= layout->intitle; + isintitle = layout->intitle; } - os << "%\n\\footnote{"; + if (isintitle) + os << "%\n\\thanks{"; + else + os << "%\n\\footnote{"; int const i = inset.latex(buf, os, fragile, fp); os << "%\n}";