4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
12 #ifndef OUTPUT_LATEX_H
13 #define OUTPUT_LATEX_H
17 #include "support/docstream.h"
30 /// Export up to \p number optarg insets
31 int latexOptArgInsets(Paragraph const & par,
32 odocstream & os, OutputParams const & runparams,
35 /** Export \p paragraphs of buffer \p buf to LaTeX.
36 Don't use a temporary stringstream for \p os if the final output is
37 supposed to go to a file.
38 \sa Buffer::writeLaTeXSource for the reason.
40 void latexParagraphs(Buffer const & buf,
45 std::string const & everypar = std::string());
47 /// Switch the encoding of \p os from runparams.encoding to \p newEnc if needed.
48 /// \return (did the encoding change?, number of characters written to \p os)
49 std::pair<bool, int> switchEncoding(odocstream & os,
50 BufferParams const & bparams,
51 OutputParams const &, Encoding const & newEnc);