/// used packages with options
extern std::map<std::string, std::vector<std::string> > used_packages;
/// used packages with options
extern std::map<std::string, std::vector<std::string> > used_packages;
void parse_text(Parser & p, std::ostream & os, unsigned flags, bool outer,
Context & context);
void parse_text(Parser & p, std::ostream & os, unsigned flags, bool outer,
Context & context);
void parse_math(Parser & p, std::ostream & os, unsigned flags, mode_type mode);
void parse_math(Parser & p, std::ostream & os, unsigned flags, mode_type mode);
void handle_tabular(Parser & p, std::ostream & os, bool is_long_tabular,
void handle_tabular(Parser & p, std::ostream & os, bool is_long_tabular,
std::string const trim(std::string const & a, char const * p = " \t\n\r");
void split(std::string const & s, std::vector<std::string> & result,
std::string const trim(std::string const & a, char const * p = " \t\n\r");
void split(std::string const & s, std::vector<std::string> & result,
* \param o2 wether \newcommand had a second optional parameter
*/
void add_known_command(std::string const & command, std::string const & o1,
* \param o2 wether \newcommand had a second optional parameter
*/
void add_known_command(std::string const & command, std::string const & o1,
extern CommandMap known_environments;
/// Known TeX math environments with arguments that get parsed into LyX mathed.
extern CommandMap known_math_environments;
extern CommandMap known_environments;
/// Known TeX math environments with arguments that get parsed into LyX mathed.
extern CommandMap known_math_environments;