///
string const asciiParagraph(Paragraph const *, unsigned int linelen,
bool noparbreak = false) const;
- ///
+ /// Just a wrapper for the method below, first creating the ofstream.
void makeLaTeXFile(string const & filename,
string const & original_path,
- bool nice, bool only_body = false);
+ bool nice,
+ bool only_body = false,
+ bool only_preamble = false);
+ ///
+ void makeLaTeXFile(std::ostream & os,
+ string const & original_path,
+ bool nice,
+ bool only_body = false,
+ bool only_preamble = false);
/** LaTeX all paragraphs from par to endpar.
\param \a endpar if == 0 then to the end
*/
void makeDocBookFile(string const & filename,
bool nice, bool only_body = false);
/// Open SGML/XML tag.
- void sgmlOpenTag(std::ostream & os, Paragraph::depth_type depth,
+ int sgmlOpenTag(std::ostream & os, Paragraph::depth_type depth, bool mixcont,
string const & latexname) const;
/// Closes SGML/XML tag.
- void sgmlCloseTag(std::ostream & os, Paragraph::depth_type depth,
+ int sgmlCloseTag(std::ostream & os, Paragraph::depth_type depth, bool mixcont,
string const & latexname) const;
///
void sgmlError(Paragraph * par, int pos, string const & message) const;