/// in preamble.cpp
void parse_preamble(Parser & p, std::ostream & os,
std::string const & forceclass, TeX2LyXDocClass & tc);
+/// Translate babel language name to LyX language name
+extern std::string babel2lyx(std::string const & language);
/// used packages with options
extern std::map<std::string, std::vector<std::string> > used_packages;
* Therefore this may only be used to parse text in insets or table cells.
*/
void parse_text_in_inset(Parser & p, std::ostream & os, unsigned flags,
- bool outer, Context const & context);
+ bool outer, Context const & context,
+ InsetLayout const * layout = 0);
/// in math.cpp
enum ArgumentType {
required,
verbatim,
+ item,
optional
};
extern CommandMap known_math_environments;
///
extern bool noweb_mode;
+/// Did we recognize any pdflatex-only construct?
+extern bool pdflatex;
/// LyX format that is created by tex2lyx
-int const LYX_FORMAT = 298;
+int const LYX_FORMAT = 345;
/// path of the master .tex file
extern std::string getMasterFilePath();