On Tue, Jan 28, 2014 at 5:56 PM, Jean-Marc Lasgouttes
<lasgout...@lyx.org> wrote:
> Le 25/01/14 19:18, Scott Kostyshak a écrit :
>
>> If latex=pdflatex is specified, the $$s is not substituted. The only
>> substitution is for $$i. This is not documented. I have a script that
>> I want to use to run pdflatex (and do other things like copy the log
>> file to a different directory). Because my script runs pdflatex,
>> specifying latex=pdflatex seems like the right thing to do. I'm
>> actually not sure what latex=pdflatex does. Does it tell LyX to make
>> sure that the converter is run as many times as necessary? I would
>> like to put this information in the customization manual, which
>> currently only says "This converter runs some form of LaTeX. This will
>> make LyX's LaTeX error logs available." I'm guessing it does more than
>> that.
>>
>> The attached patch fixes the "problem" for me. I have no idea if it is
>> correct. Is there a reason not to do the substitution, i.e. do we want
>> to disallow user scripts when latex=pdflatex?
>
>
> The patch looks good. An alternative and more general solution could be to o
> that in SystemCall::startscript(); so that all commands honor this
> $$s/foo/bar notation. For example, it would make sense for the parselog flag
> too.

Makes sense. I was a little worried about performance from
libScriptSearch but I guess it is not an issue compared to the
overhead of running an external command anyway.

What about the substitutions of the other converter variables? Should
they also all go to SystemCall::startscript() ?

Scott

Reply via email to