};
special_phrase const special_phrases[] = {
- { "LyX", from_ascii("\\LyX{}"), false },
- { "TeX", from_ascii("\\TeX{}"), true },
- { "LaTeX2e", from_ascii("\\LaTeXe{}"), true },
- { "LaTeX", from_ascii("\\LaTeX{}"), true },
+ { "LyX", from_ascii("\\protect\\LyX{}"), false },
+ { "TeX", from_ascii("\\protect\\TeX{}"), true },
+ { "LaTeX2e", from_ascii("\\protect\\LaTeXe{}"), true },
+ { "LaTeX", from_ascii("\\protect\\LaTeX{}"), true },
};
size_t const phrases_nr = sizeof(special_phrases)/sizeof(special_phrase);
unsigned int & column,
value_type const c)
{
+ if (runparams.verbatim) {
+ os.put(c);
+ return;
+ }
+
switch (c) {
case '\\':
os << "\\textbackslash{}";
return d->insetlist_.get(pos);
}
+
+int Paragraph::numberOfOptArgs() const
+{
+ int num = 0;
+ InsetList::const_iterator it = insetList().begin();
+ InsetList::const_iterator end = insetList().end();
+ for (; it != end ; ++it) {
+ if (it->inset->lyxCode() == OPTARG_CODE)
+ ++num;
+ }
+ return num;
+}
+
+
} // namespace lyx