----- Original Message ----- From: "Ross Reyes" <philip_...@yahoo.com> Sent: Thursday, June 12, 2014 12:50 PM

On 6/11/2014 12:41 PM, Rainer M Krug wrote:

Envoyé de mon iPhone

Le 11 juin 2014 à 16:07, Ross Reyes <philip_...@yahoo.com> a écrit :


Hi Alex,

I still get the "error converting to loadable format" message.

I can run the python script from the command line and it does work. I can and have modified the .pygr script to produce other outputs in .png, .jpg, .ps, etc.
without problem.

If the scripts work fine outside LyX then your problem is with your LyX instalation. The only thing I can suggest is to update at least to version 2.0.3 which is the one I have tested in my debian system.


But inside LyX, regardless of what I do to define the converter, I can not get the image
to render nor can I produce a .pdf output from the LyX doc.

Something is not right.   I am using LyX 2.0.1
The converters are defined in the configuration file LyX. If you could take a loom at it and post the lines where you file formats and the converters are defined, one could see if there is something wrong. I don't have LyX at hand, so I can't give you the location of the config file.

Cheers,

Rainer

Hi Rainer, I have this in my preferences file for pygr fomat and converter.

#
# FORMATS SECTION ##########################
#

\format "pdf4" "pdf" "PDF (xelatex)" "" "" "" "document,vector,menu=export"
\format "pygr" "pygr" "Python Graphics" "" "auto" "auto" "vector"
\default_view_format ps

#
# CONVERTERS SECTION ##########################
#

\converter "pdflatex" "pdf4" "xelatex $$i" "latex=pdflatex"
\converter "eps" "png" "epstopng.bat $$i" ""
\converter "pygr" "png" "python $$i $$o" ""


All of this seems ok, take into account that if you are on Windows the correct converter line should be
\converter "pygr" "png" "python -tt $$i $$o" ""

but it would be better if you to have
\converter "pygr" "eps" "python $$i $$o" "" on Linux
\converter "pygr" "eps" "python -tt $$i $$o" "" on Windows

Reply via email to