Il 26/07/2011 15:59, Richard Heck ha scritto:
On 07/26/2011 06:14 AM, Tommaso Cucinotta wrote:
For OpenOffice drawings (.odg), I found this:
   unoconv --stdout -f eps sample.odg | ps2eps>  a.eps

(ps2eps is needed to fix the bounding box otherwise I get a whole page
in the .eps)

What is the proper way to customise LyX so as to do that automatically
for me ?
I believe this is what external templates are for, but I do not know how
to use them.

Probably after some roaming in the dark, I eventually got the difference between external templates and images: an external template is supposed to be converted to LaTeX code, then included someway into the document and compiled together with it, whilst an image is converted by LyX itself to an image format before actually compiling the document.

A couple of thoughts I'd like to share:

1) AFAICS, there's really no reason for keeping .dia drawings as templates.
2) From a usability perspective, wouldn't it be nice to have a unified interface ? After all, inserting an image is a particular type of Insert->File operation. 3) In those few cases in which both things are possible (AFAICS, XFig figures can either be converted to an image format if inserted as image, or converted to latex if inserted as external template), it would be sufficient a disambiguation checkbox "insert as image" (or similar) in the properties pane.

Bye,

    T.

Reply via email to