29/01/2014 09:59, Scott Kostyshak:
The conversion of image formats is already done because of LaTeX (pdflatex) or at least it happens when I do Export > LaTeX (pdflatex). I imagine the same is true for external material, although I did not test. So to me it seems like latex=pdflatex belongs in the file format of LaTeX (pdflatex), or in the use case above, "myfancyoutputformat"; and not in the converter flags. So I still don't understand.
AFAIU, the information is used through Converters::getFlovor, which looks both at the Buffer settings and the converters flags along the chosen path.
FWIW, I would like to propose for next GSoC (assuming we have a momentum towards submitting) a overhaul of out converter scheme where formats can be qualified through flags. For example, there would be only one pdf format (and one viewer), but the pdflatex converter would produce pdf:pdlatex format instead of the ugly pdf2. Converters would use the specialized version if available, or a generic one.
I am not sure whether this leads to a change to our path searching algorithm. The idea is that, once you use a converter that has a qualifier, the whole path inherits this qualifier and thus can use different converters.
This idea is very preliminary for now, but we should try to refactor all our code that handles different latex flavours, which seems pretty fragile to me.
JMarc