void handle_ert(ostream & os, string const & s)
{
begin_inset(os, "ERT");
- os << "\nstatus Collapsed\n\n\\begin_layout Standard\n\n";
+ os << "\nstatus Collapsed\n\n\\layout Standard\n\n";
for (string::const_iterator it = s.begin(), et = s.end(); it != et; ++it) {
if (*it == '\\')
os << "\n\\backslash \n";
{
if (active_environments.empty())
return;
- os << "\n\\begin_layout ";
+ os << "\n\\layout ";
string s = active_environment();
if (s == "document" || s == "table")
os << "Standard\n\n";
Parser & p, bool outer, LyXTextClass const & textclass)
{
string name = layout_ptr->name();
- os << "\n\n\\begin_layout " << name << "\n\n";
+ os << "\n\n\\layout " << name << "\n\n";
if (layout_ptr->optionalargs > 0) {
string s;
if (p.next_token().character() == '[') {
p.get_token(); // eat '['
begin_inset(os, "OptArg\n");
- os << "collapsed true\n\n\\begin_layout Standard\n\n";
+ os << "collapsed true\n\n\\layout Standard\n\n";
parse_text(p, os, FLAG_BRACK_LAST, outer, textclass);
end_inset(os);
}
}
parse_text(p, os, FLAG_ITEM, outer, textclass);
- os << "\n\n\\begin_layout Standard\n\n";
+ os << "\n\n\\layout Standard\n\n";
}
} // anonymous namespace
else if (t.cat() == catSuper || t.cat() == catSub)
cerr << "catcode " << t << " illegal in text mode\n";
+ // Basic support for english quotes. This should be
+ // extended to other quotes, but is not so easy (a
+ // left english quote is the same as a right german
+ // quote...)
+ else if (t.asInput() == "`"
+ && p.next_token().asInput() == "`") {
+ begin_inset(os, "Quotes ");
+ os << "eld";
+ end_inset(os);
+ p.get_token();
+ skip_braces(p);
+ }
+ else if (t.asInput() == "'"
+ && p.next_token().asInput() == "'") {
+ begin_inset(os, "Quotes ");
+ os << "erd";
+ end_inset(os);
+ p.get_token();
+ skip_braces(p);
+ }
+
+
else if (t.cat() == catLetter ||
t.cat() == catSpace ||
t.cat() == catOther ||
}
os << "wide " << tostr(is_starred)
<< "\ncollapsed false\n\n"
- << "\\begin_layout Standard\n";
+ << "\\layout Standard\n";
parse_text(p, os, FLAG_END, outer,
textclass);
end_inset(os);
|| s == "lyxlist";
if (deeper)
os << "\n\\begin_deeper";
- os << "\n\\begin_layout " << layout_ptr->name()
+ os << "\n\\layout " << layout_ptr->name()
<< "\n\n";
switch (layout_ptr->latextype) {
case LATEX_LIST_ENVIRONMENT:
else if (t.cs() == "footnote") {
begin_inset(os, "Foot\n");
- os << "collapsed true\n\n\\begin_layout Standard\n\n";
+ os << "collapsed true\n\n\\layout Standard\n\n";
parse_text(p, os, FLAG_ITEM, false, textclass);
end_inset(os);
}
else if (t.cs() == "marginpar") {
begin_inset(os, "Marginal\n");
- os << "collapsed true\n\n\\begin_layout Standard\n\n";
+ os << "collapsed true\n\n\\layout Standard\n\n";
parse_text(p, os, FLAG_ITEM, false, textclass);
end_inset(os);
}
}
else if (t.cs() == "bibitem") {
- os << "\n\\begin_layout Bibliography\n\\bibitem ";
+ os << "\n\\layout Bibliography\n\\bibitem ";
os << p.getOpt();
os << '{' << p.verbatim_item() << '}' << "\n";
}