]> git.lyx.org Git - features.git/commitdiff
translate \thanks in title layouts
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 7 Mar 2005 12:30:44 +0000 (12:30 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 7 Mar 2005 12:30:44 +0000 (12:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9699 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/ChangeLog
src/tex2lyx/text.C

index e8d9de17cf9fb75a0d4cbdb853f0dde0d0594285..148063ac4ddc716e6da4fb90d635891515ba3ee9 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-05  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * text.C (output_command_layout): Use parse_text instead of
+       parse_text_in_inset to avoid creating a new context
+       * text.C (parse_text): translate \thanks to footnote in title layouts
+
 2005-02-25  Angus Leeming  <leeming@lyx.org>
 
        * context.h: declare as "class Font" rather than "struct Font".
index f1dfebf91a2ab9db63f4ef9dc450ddb30e49e47b..71546bc17620ffa2445d56cc017310b9bc2fec20 100644 (file)
@@ -447,7 +447,7 @@ void output_command_layout(ostream & os, Parser & p, bool outer,
                        eat_whitespace(p, os, context, false);
                }
        }
-       parse_text_snippet(p, os, FLAG_ITEM, outer, context);
+       parse_text(p, os, FLAG_ITEM, outer, context);
        context.check_end_layout(os);
        if (parent_context.deeper_paragraph) {
                // We must suppress the "end deeper" because we
@@ -1310,7 +1310,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        end_inset(os);
                }
 
-               else if (t.cs() == "footnote") {
+               else if (t.cs() == "footnote" ||
+                        (t.cs() == "thanks" && context.layout->intitle)) {
                        p.skip_spaces();
                        context.check_layout(os);
                        begin_inset(os, "Foot\n");