/// in preamble.C
LyXTextClass const parse_preamble(Parser & p, std::ostream & os, std::string const & forceclass);
+/// used packages with options
+extern std::map<std::string, std::vector<std::string> > used_packages;
+
/// in text.C
void parse_text(Parser & p, std::ostream & os, unsigned flags, bool outer,
/// in table.C
-void handle_tabular(Parser & p, std::ostream & os, Context & context);
+void handle_tabular(Parser & p, std::ostream & os, bool is_long_tabular,
+ Context & context);
/// in tex2lyx.C
bool is_math_env(std::string const & name);
char const * const * is_known(std::string const &, char const * const *);
+/*!
+ * Adds the command \p command to the list of known commands.
+ * \param o1 first optional parameter to the latex command \newcommand
+ * (with brackets), or the empty string if there were no optional arguments.
+ * \param o2 wether \newcommand had a second optional parameter
+ */
+void add_known_command(std::string const & command, std::string const & o1,
+ bool o2);
+
// Access to environment stack
extern std::vector<std::string> active_environments;
std::string active_environment();