mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
tex2lyx/text.cpp:
- fix an off by one error in the font size handling, fixes bug 4803 - support \lyxline, fixes bug 4795 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24518 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ff0e3cd8b2
commit
04911c0462
@ -1884,6 +1884,11 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
os << "\n\\" << t.cs() << " default\n";
|
||||
}
|
||||
|
||||
else if (t.cs() == "lyxline") {
|
||||
context.check_layout(os);
|
||||
os << "\\lyxline";
|
||||
}
|
||||
|
||||
else if (use_natbib &&
|
||||
is_known(t.cs(), known_natbib_commands) &&
|
||||
((t.cs() != "citefullauthor" &&
|
||||
@ -2002,7 +2007,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
char const * const * where = is_known(t.cs(), known_sizes);
|
||||
context.check_layout(os);
|
||||
TeXFont const oldFont = context.font;
|
||||
context.font.size = known_coded_sizes[where - known_sizes];
|
||||
// the font size index differs by 1, because the known_coded_sizes
|
||||
// has additionally a "default" entry
|
||||
context.font.size = known_coded_sizes[where - known_sizes + 1];
|
||||
output_font_change(os, oldFont, context.font);
|
||||
eat_whitespace(p, os, context, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user