On Wed, Jan 29, 2014 at 2:28 AM, Jürgen Spitzmüller <sp...@lyx.org> wrote: > 2014-01-29 Scott Kostyshak > >> I'm looking at the converter code and I would like to understand what >> setting 'latex == pdflatex' (or any other flavor) does. In the >> customization file, it states >> "This converter runs some form of LaTeX. This will make LyX's LaTeX >> error logs available." >> but I think the logs are available even if that is not specified. >> What else does it do? > > > It sets OutputParams::Flavor accordingly. This is used at several places to > get specific settings for pdflatex vs. latex vs. lualatex etc.
But aren't those already taken into account because of the "from" part of a converter? For example, if it's from LaTeX (pdflatex) then the output from LyX should already be set to pdflatex. But I guess there could be differences after pdflatex is run, such as how to parse the log? Scott >> >> Is there anything expected of a script used in a >> converter that specifies that flag? Just that it does actually run >> pdflatex (and does not change the output name)? > > > Some scripts depend on it. E.g. preview. > >> >> I thought that setting it would tell LyX to run that converter as many >> times as necessary (e.g. if more than one latex run for TOC, etc. are >> needed). Is that true? > > > No, this is handled by needaux. > > Jürgen > >> >> >> I would like to put this information in the Customization manual. >> >> Scott > >