- if (buf && parOwner()) {
- LyXLayout_ptr const & layout = parOwner()->layout();
- fragile |= layout->intitle;
- }
-
- os << "%\n\\footnote{";
-
- int const i = inset.latex(buf, os, runparams, fragile, fp);
+ OutputParams runparams = runparams_in;
+ // footnotes in titling commands like \title have moving arguments
+ runparams.moving_arg |= runparams_in.intitle;
+
+ // in titling commands, \thanks should be used instead of \footnote.
+ // some classes (e.g. memoir) do not understand \footnote.
+ if (runparams_in.intitle)
+ os << "%\n\\thanks{";
+ else
+ os << "%\n\\footnote{";
+
+ int const i = InsetText::latex(buf, os, runparams);