On 08/09/2011 2:55 AM, Tommaso Cucinotta wrote:
Il 08/09/2011 02:24, Julien Rioux ha scritto:
Well, looking at your script again, we don't really need a script.
We just need to set up a odg->ps converter, then let LyX do the ps2eps
part (and yes, it's available on windows).
libreoffice -nologo -convert-to eps -o $$o $$i
Unfortunately:
1) libreoffice conversion does not seem to support an output file name,
but only an output folder
By default, the output file is the same as the input (and in the same
folder), with extension changes to .eps.
Actually, I'd like to pass it through ps2eps, before achieving the final
.eps file (with the correct bounding box).
2) I tried to define merely a ODG to PS converter (rather than to EPS
converter), because LyX
apparently already has a PS to EPS conversion (using ps2eps); if I go
this way, preview with
Ctrl-R produces the correct output, but preview with Ctrl-t does not (it
includes the whole PS
page coming from OO, so it skips the PS to EPS conversion) -- or it was
the other way round,
one of the 2 has the problem.
I think we also need -headless in that call?
that might help I guess.
By the way, I just came across the attached Python version of the
conversion script. Can you give it a try on Win please ?
T.
Ahh, I just found out why I couldn't find this email anymore... you
didn't include the list.
So is the script needed only because libreoffice produces bad eps?
If so then there's at least another way, using a new format eps2, just
like there is dvi2 for "not clean" dvi (on windows).
Cheers,
Julien