On Sun, May 22, 2011 at 7:52 PM, Enrico Forestieri <for...@lyx.org> wrote:

> On Sat, May 21, 2011 at 06:03:06PM +0200, Rainer M Krug wrote:
>
> > Hi
> >
> > I have defined some converters to use plantuml, and they worked under
> > 1.6.9 and also the display in the LyX document works, only creation of
> > a pdf (or any other export) does not. The conversion works as follow:
> >
> > plantuml -> SVG
> > SVG -> png for display
> > SVG -> pdf for pdf
> >
> > When checking in the temporary folder, the file.svg is created, but I
> > get an error message from LyX saying:
> >
> > ####
> > An error occured while running:
> > cat
> > "filename"
> > ####
> >
> > and the conversion chain is aborted, and pdflatex obviously gives an
> > error message, as the filename.pdf is not created.
> >
> > The converters are as follow:
> >
> > plantuml -> SVG : cat $$i | java -jar ~/jar/plantuml.jar -tsvg -pipe >
> $$o
> >
> > SVG -> PDF (pdflatex) : rsvg-convert -f pdf -o $$o $$i
> >
> > AS I said, the initial conversion is done (the file is there) even
> > when I disable "show in LyX".
> >
> > Am I missing something here?
>
> Your converter works in 1.6.x but not in 2.0.x because pipes cannot be
> used anymore.


That explains - I thought something along this line.


> If you don't use the native Windows version of LyX, you
>

I am under Linux - so I will just wrap this into a short script.

Thanks a lot,

Rainer


> are lucky, as you may write a shell script for performing the conversion.
> Instead, if you use the native Windows version, you simply lose because
> also batch files don't work anymore in 2.0.x. In this case, your only
> bet is recompiling LyX using the attached patch.
>
> --
> Enrico
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      rai...@krugs.de

Skype:      RMkrug

Reply via email to