mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
translate \thanks in title layouts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9699 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eac44e9194
commit
847afab142
@ -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".
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user