Hi,

Very few converters use the Flags field in
Preferences->Conversion->Converters->Flags.
Actually only latex_to_dvi, latex_to_pdf and latex_to_html.

What is the purpose of this field?

The Grace conversion, as an example, is now:

  Converter: gracebat -hardcopy -printfile $$o -hdevice $device $$i 2>/dev/null
  Flags: <empty>

Shouldn't we make use of the Flags field here:

  Converter: gracebat -printfile $$o $$i 2>/dev/null
  Flags: -hardcopy -hdevice $device

This seems to work well. However, if this is, somehow by someone,
not recommended, then why do we need this Flags field at all?

I encountered two problems with the Flags field:

1) I actually doubt whether the Flags field is actually used by the
   converter. When running "lyx -dbg graphics", the output only shows
   the Converter input field, nothing about the Flags. In the
   Grace example above, the debugging info only says:

         gracebat -printfile ${outfile} ${infile} 2>/dev/null

   I'm afraid that LyX at present totally ignores the Flags field input.
   Does it?

2) The lib/configure.m4 does not include a flexible variable setup for
   the Flags field. Would it be worth adding this? For example split
   "$xpm_to_eps" into "$xpm_to_eps_Converter" and "$xpm_to_eps_Flags".

Regards,
Rob.

Reply via email to