#include "support/forkedcall.h"
#include "support/forkedcontr.h"
#include "support/tostr.h"
+#include "support/lstrings.h"
#include "support/lyxlib.h"
#include <boost/bind.hpp>
// Dump the preamble only.
LatexRunParams runparams;
runparams.flavor = LatexRunParams::LATEX;
- tmp.makeLaTeXFile(os, buffer_.filePath(), runparams, true, false, true);
+ runparams.nice = true;
+ runparams.moving_arg = true;
+ runparams.free_spacing = true;
+ tmp.makeLaTeXFile(os, buffer_.filePath(), runparams, false, true);
// FIXME! This is a HACK! The proper fix is to control the 'true'
// passed to WriteStream below:
// int InsetFormula::latex(Buffer const *, ostream & os,
- // bool fragile, bool) const
+ // LatexRunParams const & runparams) const
// {
- // WriteStream wi(os, fragile, true);
+ // WriteStream wi(os, runparams.moving_arg, true);
// par_->write(wi);
// return wi.line();
// }
for (; it != end; ++it)
if (it->lyxCode() == Inset::MATHMACRO_CODE)
- it->latex(&buffer_, os, runparams, true, true);
+ it->latex(&buffer_, os, runparams);
// All equation lables appear as "(#)" + preview.sty's rendering of
// the label name