Allow $$s converter substitution if 'latex' flag

A more general patch will be committed for 2.2 that
centralizes replacement of $$s in startScript().
This commit is contained in:
Scott Kostyshak 2014-01-25 13:16:05 -05:00
parent 9ca242e5bf
commit 731b8610af

View File

@ -403,6 +403,7 @@ bool Converters::convert(Buffer const * buffer,
command = subst(command, token_from, ""); command = subst(command, token_from, "");
command = subst(command, token_latex_encoding, buffer ? command = subst(command, token_latex_encoding, buffer ?
buffer->params().encoding().latexName() : string()); buffer->params().encoding().latexName() : string());
command = libScriptSearch(command);
LYXERR(Debug::FILES, "Running " << command); LYXERR(Debug::FILES, "Running " << command);
if (!runLaTeX(*buffer, command, runparams, errorList)) if (!runLaTeX(*buffer, command, runparams, errorList))
return false; return false;