// The conversion command.
ostringstream cs;
cs << pconverter_->command << ' ' << pconverter_->to << ' '
- << latexfile << ' ' << int(font_scaling_factor_) << ' '
+ << support::quoteName(latexfile) << ' '
+ << int(font_scaling_factor_) << ' '
<< lyx_gui::hexname(LColor::preview) << ' '
<< lyx_gui::hexname(LColor::background);
- string const command = support::LibScriptSearch(cs.str());
+ string const command = support::libScriptSearch(cs.str());
// Initiate the conversion from LaTeX to bitmap images files.
support::Forkedcall::SignalTypePtr
runparams.nice = true;
runparams.moving_arg = true;
runparams.free_spacing = true;
- tmp.makeLaTeXFile(os, buffer_.filePath(), runparams, true, false);
+ tmp.writeLaTeXSource(os, buffer_.filePath(), runparams, true, false);
// FIXME! This is a HACK! The proper fix is to control the 'true'
// passed to WriteStream below:
{
static int theCounter = 0;
string const filename = convert<string>(theCounter++) + "lyxpreview";
- return support::AddName(bufferpath, filename);
+ return support::addName(bufferpath, filename);
}