]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetfoot.C
index 2d3b0c6f5cc03c34a01d5dbe57f9ca2519b18ce4..0ed4db0936ad0cca6a193579f68fcf816d5eb102 100644 (file)
@@ -45,7 +45,7 @@ InsetFoot::InsetFoot(InsetFoot const & in)
 }
 
 
-auto_ptr<InsetBase> InsetFoot::clone() const
+auto_ptr<InsetBase> InsetFoot::doClone() const
 {
        return auto_ptr<InsetBase>(new InsetFoot(*this));
 }
@@ -64,7 +64,12 @@ int InsetFoot::latex(Buffer const & buf, ostream & os,
        // footnotes in titling commands like \title have moving arguments
        runparams.moving_arg |= runparams_in.intitle;
 
-       os << "%\n\\footnote{";
+       // 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);
        os << "%\n}";