> Oscar Lopez wrote:
>
>> As a side note, how the external inset knows if the fig file must be
>> exported as combined ps/latex, it scans the fig file looking for the
>> special flag of the text?
>
> No. As you can see from the definition of the xfig external inset it
creates
> a file in pstex format (for latex) or pdftex format (for pdflatex).
If you
> look up the fig->pstex and fig->pdftex converters you can see that those
> files are create by the scripts fig2pstex.py and fig2pdftex.py,
> respectively. These scripts invoke fig2dev, and it is finally that
program
> that creates a bit of wrapper LaTeX code that takes care of the special
> text.
> This may look complicated, but it works well, and the advantage over
> examining the .fig file in LyX is that we do not need to know anything
> about the .fig file format, so this works even if the .fig file format
> changes.
Thank you for the detailed explanation
Very smart and good work! Keep it up!
Best wishes!