Re: Tgif with lyx as equation editor

2006-07-19 Thread Enrico Forestieri
 [EMAIL PROTECTED] writes:

 
 On Tue, 18 Jul 2006, Enrico Forestieri wrote:
 
  I am not subscribed to this list and the gmane interface doesn't allow 
  attachments, but if you reply to this mail putting me in CC, I can, in 
  turn, reply to it and can thus attach the above files for everyone 
  interested here.
 
 Or you could describe it all and add the files to a wiki page... ?
 
 (I can help you if you like)

This is now described at
http://wiki.lyx.org/Tips/UsingLyXWithTgif

Thanks to Christian for setting up that page.

-- 
Enrico




Re: Tgif with lyx as equation editor

2006-07-19 Thread Enrico Forestieri
 [EMAIL PROTECTED] writes:

 
 On Tue, 18 Jul 2006, Enrico Forestieri wrote:
 
  I am not subscribed to this list and the gmane interface doesn't allow 
  attachments, but if you reply to this mail putting me in CC, I can, in 
  turn, reply to it and can thus attach the above files for everyone 
  interested here.
 
 Or you could describe it all and add the files to a wiki page... ?
 
 (I can help you if you like)

This is now described at
http://wiki.lyx.org/Tips/UsingLyXWithTgif

Thanks to Christian for setting up that page.

-- 
Enrico




Re: Tgif with lyx as equation editor

2006-07-19 Thread Enrico Forestieri
 <[EMAIL PROTECTED]> writes:

> 
> On Tue, 18 Jul 2006, Enrico Forestieri wrote:
> 
> > I am not subscribed to this list and the gmane interface doesn't allow 
> > attachments, but if you reply to this mail putting me in CC, I can, in 
> > turn, reply to it and can thus attach the above files for everyone 
> > interested here.
> 
> Or you could describe it all and add the files to a wiki page... ?
> 
> (I can help you if you like)

This is now described at
http://wiki.lyx.org/Tips/UsingLyXWithTgif

Thanks to Christian for setting up that page.

-- 
Enrico




Re: Tgif with lyx as equation editor

2006-07-18 Thread Ed Gatzke
 
 But you don't have tgif in the windows system PATH, right?
 

I copied tgif.exe to the windows/system32 directory, but that was not enough.
I also needed some dll files in there and to set my DISPLAY in XP 
to 127.0.0.1:0.0  

You need X running in the background, but that is always running for me.

I kept working until tgif fired up normally from a cmd.exe window.  

 
 
 It works perfectly for me. I can include .obj files in the graphics inset
 and they get displayed in LyX. Remember to start the X server as tgif needs
 it even for simply converting .obj files to other formats.
 
 If tgif is in your PATH, after reconfiguring you should see converters
 from TGIF to EPS, PPM, PNG and PDF in Preferences-Coverters.
 

I had trouble with the tgif png converter, but once I removed that line 
from lyxrc.defaults, it was fairly smooth sailing.  Editing and using 
obj files works great.

It might be nice to have an option to bundle everything into a single 
tar file, all your obj, eps, bib files into a single tgz file, but it 
is not much for me to do that myself when needed.


My crazy tgif file that calls lyx for equation editing in figures does not work,
but that is to be expected.  The equaiton objects need unix flavored calls like
/usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional shell.

Thanks!









Re: Tgif with lyx as equation editor

2006-07-18 Thread Georg Baum
Ed Gatzke wrote:

 It might be nice to have an option to bundle everything into a single
 tar file, all your obj, eps, bib files into a single tgz file, but it
 is not much for me to do that myself when needed.

http://bugzilla.lyx.org/show_bug.cgi?id=700


Georg



Re: Tgif with lyx as equation editor

2006-07-18 Thread Ed Gatzke
My crazy tgif file that calls lyx for equation editing in figures does not 
work,
but that is to be expected.  The equaiton objects need unix flavored calls like
/usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional shell.

I straightened out some of the path problems, adding
c:\cygwin\bin;c:\cygwin\usr\X11R6\bin and the path to lyx.exe in my XP path.

Now lyx opens tgif just fine for editing and converting.

Tgif can be started from cmd.exe, and it will even correctly call lyx to 
write equations and convert the ps to eps for insertion back into the 
tgif file.  The commands it executes are:

xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex;)])
xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex --export ps;)])
xterm -geom 40x8+200+400 -e pstoepsi $(file_name).ps $(file_name).eps)])

My current problem is now that when lyx opens tgif to edit an obj, then 
tgif calls lyx to edit an equation in the figure the paths are munged and 
pstoepsi does not correctly convert the resulting eps and you get a big 
bounding box around the eps, but it is close enough for now...






Re: Tgif with lyx as equation editor

2006-07-18 Thread Enrico Forestieri
Ed Gatzke [EMAIL PROTECTED] writes:

 
  
  But you don't have tgif in the windows system PATH, right?
  
 
 I copied tgif.exe to the windows/system32 directory, but that was not enough.
 I also needed some dll files in there and to set my DISPLAY in XP 
 to 127.0.0.1:0.0  

Oh... I meant adding to the windows PATH env var the directory where tgif
is located, most probably you would need to add C:/cygwin/bin and
C:/cygwin/usr/X11R6/bin. Anyway, you can also add these directories
to PATH prefix in LyX, leaving the windows PATH undisturbed.

-- 
Enrico






Re: Tgif with lyx as equation editor

2006-07-18 Thread Enrico Forestieri
Ed Gatzke [EMAIL PROTECTED] writes:

 
 My crazy tgif file that calls lyx for equation editing in figures does not
 work,
 but that is to be expected.  The equaiton objects need unix flavored calls
 like
 /usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional
 shell.
 
 I straightened out some of the path problems, adding
 c:\cygwin\bin;c:\cygwin\usr\X11R6\bin and the path to lyx.exe in my XP path.

Note that you could instead add those dirs to PATH prefix.

 Now lyx opens tgif just fine for editing and converting.
 
 Tgif can be started from cmd.exe, and it will even correctly call lyx to 
 write equations and convert the ps to eps for insertion back into the 
 tgif file.  The commands it executes are:
 
 xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex;)])
 xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex --export ps;)])
 xterm -geom 40x8+200+400 -e pstoepsi $(file_name).ps $(file_name).eps)])
 
 My current problem is now that when lyx opens tgif to edit an obj, then 
 tgif calls lyx to edit an equation in the figure the paths are munged and 
 pstoepsi does not correctly convert the resulting eps and you get a big 
 bounding box around the eps, but it is close enough for now...

I have written a .sym file for tgif to use LyX and epstool instead of
pstoepsi. I also have a couple of scripts which allow using tgif with
a native version of LyX without path problems.

I am not subscribed to this list and the gmane interface doesn't allow
attachments, but if you reply to this mail putting me in CC, I can, in
turn, reply to it and can thus attach the above files for everyone
interested here.

-- 
Enrico




Re: Tgif with lyx as equation editor

2006-07-18 Thread christian . ridderstrom

On Tue, 18 Jul 2006, Enrico Forestieri wrote:

I am not subscribed to this list and the gmane interface doesn't allow 
attachments, but if you reply to this mail putting me in CC, I can, in 
turn, reply to it and can thus attach the above files for everyone 
interested here.


Or you could describe it all and add the files to a wiki page... ?

(I can help you if you like)

cheers
/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Tgif with lyx as equation editor

2006-07-18 Thread Ed Gatzke
 
 But you don't have tgif in the windows system PATH, right?
 

I copied tgif.exe to the windows/system32 directory, but that was not enough.
I also needed some dll files in there and to set my DISPLAY in XP 
to 127.0.0.1:0.0  

You need X running in the background, but that is always running for me.

I kept working until tgif fired up normally from a cmd.exe window.  

 
 
 It works perfectly for me. I can include .obj files in the graphics inset
 and they get displayed in LyX. Remember to start the X server as tgif needs
 it even for simply converting .obj files to other formats.
 
 If tgif is in your PATH, after reconfiguring you should see converters
 from TGIF to EPS, PPM, PNG and PDF in Preferences-Coverters.
 

I had trouble with the tgif png converter, but once I removed that line 
from lyxrc.defaults, it was fairly smooth sailing.  Editing and using 
obj files works great.

It might be nice to have an option to bundle everything into a single 
tar file, all your obj, eps, bib files into a single tgz file, but it 
is not much for me to do that myself when needed.


My crazy tgif file that calls lyx for equation editing in figures does not work,
but that is to be expected.  The equaiton objects need unix flavored calls like
/usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional shell.

Thanks!









Re: Tgif with lyx as equation editor

2006-07-18 Thread Georg Baum
Ed Gatzke wrote:

 It might be nice to have an option to bundle everything into a single
 tar file, all your obj, eps, bib files into a single tgz file, but it
 is not much for me to do that myself when needed.

http://bugzilla.lyx.org/show_bug.cgi?id=700


Georg



Re: Tgif with lyx as equation editor

2006-07-18 Thread Ed Gatzke
My crazy tgif file that calls lyx for equation editing in figures does not 
work,
but that is to be expected.  The equaiton objects need unix flavored calls like
/usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional shell.

I straightened out some of the path problems, adding
c:\cygwin\bin;c:\cygwin\usr\X11R6\bin and the path to lyx.exe in my XP path.

Now lyx opens tgif just fine for editing and converting.

Tgif can be started from cmd.exe, and it will even correctly call lyx to 
write equations and convert the ps to eps for insertion back into the 
tgif file.  The commands it executes are:

xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex;)])
xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex --export ps;)])
xterm -geom 40x8+200+400 -e pstoepsi $(file_name).ps $(file_name).eps)])

My current problem is now that when lyx opens tgif to edit an obj, then 
tgif calls lyx to edit an equation in the figure the paths are munged and 
pstoepsi does not correctly convert the resulting eps and you get a big 
bounding box around the eps, but it is close enough for now...






Re: Tgif with lyx as equation editor

2006-07-18 Thread Enrico Forestieri
Ed Gatzke [EMAIL PROTECTED] writes:

 
  
  But you don't have tgif in the windows system PATH, right?
  
 
 I copied tgif.exe to the windows/system32 directory, but that was not enough.
 I also needed some dll files in there and to set my DISPLAY in XP 
 to 127.0.0.1:0.0  

Oh... I meant adding to the windows PATH env var the directory where tgif
is located, most probably you would need to add C:/cygwin/bin and
C:/cygwin/usr/X11R6/bin. Anyway, you can also add these directories
to PATH prefix in LyX, leaving the windows PATH undisturbed.

-- 
Enrico






Re: Tgif with lyx as equation editor

2006-07-18 Thread Enrico Forestieri
Ed Gatzke [EMAIL PROTECTED] writes:

 
 My crazy tgif file that calls lyx for equation editing in figures does not
 work,
 but that is to be expected.  The equaiton objects need unix flavored calls
 like
 /usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional
 shell.
 
 I straightened out some of the path problems, adding
 c:\cygwin\bin;c:\cygwin\usr\X11R6\bin and the path to lyx.exe in my XP path.

Note that you could instead add those dirs to PATH prefix.

 Now lyx opens tgif just fine for editing and converting.
 
 Tgif can be started from cmd.exe, and it will even correctly call lyx to 
 write equations and convert the ps to eps for insertion back into the 
 tgif file.  The commands it executes are:
 
 xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex;)])
 xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex --export ps;)])
 xterm -geom 40x8+200+400 -e pstoepsi $(file_name).ps $(file_name).eps)])
 
 My current problem is now that when lyx opens tgif to edit an obj, then 
 tgif calls lyx to edit an equation in the figure the paths are munged and 
 pstoepsi does not correctly convert the resulting eps and you get a big 
 bounding box around the eps, but it is close enough for now...

I have written a .sym file for tgif to use LyX and epstool instead of
pstoepsi. I also have a couple of scripts which allow using tgif with
a native version of LyX without path problems.

I am not subscribed to this list and the gmane interface doesn't allow
attachments, but if you reply to this mail putting me in CC, I can, in
turn, reply to it and can thus attach the above files for everyone
interested here.

-- 
Enrico




Re: Tgif with lyx as equation editor

2006-07-18 Thread christian . ridderstrom

On Tue, 18 Jul 2006, Enrico Forestieri wrote:

I am not subscribed to this list and the gmane interface doesn't allow 
attachments, but if you reply to this mail putting me in CC, I can, in 
turn, reply to it and can thus attach the above files for everyone 
interested here.


Or you could describe it all and add the files to a wiki page... ?

(I can help you if you like)

cheers
/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Tgif with lyx as equation editor

2006-07-18 Thread Ed Gatzke
> 
> But you don't have tgif in the windows system PATH, right?
> 

I copied tgif.exe to the windows/system32 directory, but that was not enough.
I also needed some dll files in there and to set my DISPLAY in XP 
to 127.0.0.1:0.0  

You need X running in the background, but that is always running for me.

I kept working until tgif fired up normally from a cmd.exe window.  

> 
> 
> It works perfectly for me. I can include .obj files in the graphics inset
> and they get displayed in LyX. Remember to start the X server as tgif needs
> it even for simply converting .obj files to other formats.
> 
> If tgif is in your PATH, after reconfiguring you should see converters
> from TGIF to EPS, PPM, PNG and PDF in Preferences->Coverters.
> 

I had trouble with the tgif png converter, but once I removed that line 
from lyxrc.defaults, it was fairly smooth sailing.  Editing and using 
obj files works great.

It might be nice to have an option to bundle everything into a single 
tar file, all your obj, eps, bib files into a single tgz file, but it 
is not much for me to do that myself when needed.


My crazy tgif file that calls lyx for equation editing in figures does not work,
but that is to be expected.  The equaiton objects need unix flavored calls like
/usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional shell.

Thanks!









Re: Tgif with lyx as equation editor

2006-07-18 Thread Georg Baum
Ed Gatzke wrote:

> It might be nice to have an option to bundle everything into a single
> tar file, all your obj, eps, bib files into a single tgz file, but it
> is not much for me to do that myself when needed.

http://bugzilla.lyx.org/show_bug.cgi?id=700


Georg



Re: Tgif with lyx as equation editor

2006-07-18 Thread Ed Gatzke
>My crazy tgif file that calls lyx for equation editing in figures does not 
>work,
>but that is to be expected.  The equaiton objects need unix flavored calls like
>/usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional shell.

I straightened out some of the path problems, adding
c:\cygwin\bin;c:\cygwin\usr\X11R6\bin and the path to lyx.exe in my XP path.

Now lyx opens tgif just fine for editing and converting.

Tgif can be started from cmd.exe, and it will even correctly call lyx to 
write equations and convert the ps to eps for insertion back into the 
tgif file.  The commands it executes are:

"xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex;")])
"xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex --export ps;")])
"xterm -geom 40x8+200+400 -e pstoepsi $(file_name).ps $(file_name).eps")])

My current problem is now that when lyx opens tgif to edit an obj, then 
tgif calls lyx to edit an equation in the figure the paths are munged and 
pstoepsi does not correctly convert the resulting eps and you get a big 
bounding box around the eps, but it is close enough for now...






Re: Tgif with lyx as equation editor

2006-07-18 Thread Enrico Forestieri
Ed Gatzke <[EMAIL PROTECTED]> writes:

> 
> > 
> > But you don't have tgif in the windows system PATH, right?
> > 
> 
> I copied tgif.exe to the windows/system32 directory, but that was not enough.
> I also needed some dll files in there and to set my DISPLAY in XP 
> to 127.0.0.1:0.0  

Oh... I meant adding to the windows PATH env var the directory where tgif
is located, most probably you would need to add C:/cygwin/bin and
C:/cygwin/usr/X11R6/bin. Anyway, you can also add these directories
to "PATH prefix" in LyX, leaving the windows PATH undisturbed.

-- 
Enrico






Re: Tgif with lyx as equation editor

2006-07-18 Thread Enrico Forestieri
Ed Gatzke <[EMAIL PROTECTED]> writes:

> 
> >My crazy tgif file that calls lyx for equation editing in figures does not
> >work,
> >but that is to be expected.  The equaiton objects need unix flavored calls
> >like
> >/usr/bin/lyx and pstoepsi,  and lyx / tgif are running in a traditional
> >shell.
> 
> I straightened out some of the path problems, adding
> c:\cygwin\bin;c:\cygwin\usr\X11R6\bin and the path to lyx.exe in my XP path.

Note that you could instead add those dirs to "PATH prefix".

> Now lyx opens tgif just fine for editing and converting.
> 
> Tgif can be started from cmd.exe, and it will even correctly call lyx to 
> write equations and convert the ps to eps for insertion back into the 
> tgif file.  The commands it executes are:
> 
> "xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex;")])
> "xterm -geom 40x8+200+400 -e /usr/bin/lyx $(file_name).tex --export ps;")])
> "xterm -geom 40x8+200+400 -e pstoepsi $(file_name).ps $(file_name).eps")])
> 
> My current problem is now that when lyx opens tgif to edit an obj, then 
> tgif calls lyx to edit an equation in the figure the paths are munged and 
> pstoepsi does not correctly convert the resulting eps and you get a big 
> bounding box around the eps, but it is close enough for now...

I have written a .sym file for tgif to use LyX and epstool instead of
pstoepsi. I also have a couple of scripts which allow using tgif with
a native version of LyX without path problems.

I am not subscribed to this list and the gmane interface doesn't allow
attachments, but if you reply to this mail putting me in CC, I can, in
turn, reply to it and can thus attach the above files for everyone
interested here.

-- 
Enrico




Re: Tgif with lyx as equation editor

2006-07-18 Thread christian . ridderstrom

On Tue, 18 Jul 2006, Enrico Forestieri wrote:

I am not subscribed to this list and the gmane interface doesn't allow 
attachments, but if you reply to this mail putting me in CC, I can, in 
turn, reply to it and can thus attach the above files for everyone 
interested here.


Or you could describe it all and add the files to a wiki page... ?

(I can help you if you like)

cheers
/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Ed Gatzke wrote:

 I have been using tgif to do vector graphics for a few years and I have
 been happy with it for simple things.
 
 I hacked their equation object code to call lyx for equation editing.

Interesting.

 Also, I saw recently that lyx added native tgif support for the image
 converter.
  I have been using tgif forever, exporting to eps for use in lyx. My
  ImageMagick
 / convert does not appear to work on my new XP install for converting tgif
 .obj files to .ppm, but that is ok, I am fine with the eps right now and I
 don't have a 1.4.2 install on linux to try out yet.

The imagemagick problem was the reason to include an explicit converter.
If you include the .obj instead of the .eps files in LyX you will be able to
fire up tgif from within LyX (the edit button of the graphics dialog).


Georg




Re: Tgif with lyx as equation editor

2006-07-17 Thread Ed Gatzke
  Also, I saw recently that lyx added native tgif support for the image
  converter.
   I have been using tgif forever, exporting to eps for use in lyx. My
   ImageMagick
  / convert does not appear to work on my new XP install for converting tgif
  .obj files to .ppm, but that is ok, I am fine with the eps right now and I
  don't have a 1.4.2 install on linux to try out yet.

 The imagemagick problem was the reason to include an explicit converter.
 If you include the .obj instead of the .eps files in LyX you will be able to
 fire up tgif from within LyX (the edit button of the graphics dialog).


On my XP box, I get garbage.  Output at console from lyx:

convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
convert.exe: missing an image filename `ppm:c:/Documents and
Settings/gatzke/Local Settings/Temp/lyx_tmpdir2724a03164/test2724a03164.ppm'.
c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
Execution of convert failed.

And when I try to convert an obj file to ppm:

convert test.obj  test.ppm
convert: unable to open module file
`/usr/lib/ImageMagick-6.0.4/modules-Q16/coders/obj.la'.
convert: missing an image filename `test.ppm'.

Maybe it is due to me not reinstalling all the peripheral software with the new
version update?






Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Am Montag, 17. Juli 2006 19:40 schrieb Ed Gatzke:

 On my XP box, I get garbage.  Output at console from lyx:

 Maybe it is due to me not reinstalling all the peripheral software with 
the new
 version update?

No. The reason is probably that tgif is not in your path. It should work if 
you enter the following converters by hand:

Tgif-PPM:
full/path/to/tgif -stdout -print -color -ppm $$i  $$o

Tgif-PNG:
full/path/to/tgif -stdout -print -color -png $$i  $$o

Tgif-EPS:
full/path/to/tgif -stdout -print -color -eps $$i  $$o


Georg



Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Am Montag, 17. Juli 2006 21:09 schrieb Enrico Forestieri:
 Are you using a native windows version of LyX? Are you using cygwin 
tools?
 Specifically, is your imagemagick a cygwin version?

AFAIK that does not matter, since imagemagick does not know how to handle 
tgif files.


Georg



Re: Tgif with lyx as equation editor

2006-07-17 Thread Ed Gatzke

 Are you using a native windows version of LyX? Are you using cygwin tools?
 Specifically, is your imagemagick a cygwin version?


I am using the new 1.4.2 version on Windows.  I am not sure how they compiled
it, but I assume they used cygwin.  

I am running lyx.exe from a cygwin shell (which has tgif in the path).  

Same error occurs if I use the desktop shortcut, but I don't get the error
message in the terminal:

convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
convert.exe: missing an image filename `ppm:c:/Documents and
Settings/gatzke/Local Settings/Temp/lyx_tmpdir2752a01764/test2752a01764.ppm'.
c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
Execution of convert failed.

So it looks like it is calling the convertDefaul.sh in the new Lyx 1.4.2
/Resources/scripts directory.  That convert script appears to just call
convert.exe, not tgif.

tgif itself generates ppm etc called from my command line just fine.  tgif is
never getting called.
















Re: Tgif with lyx as equation editor

2006-07-17 Thread Enrico Forestieri
Ed Gatzke [EMAIL PROTECTED] writes:

  Are you using a native windows version of LyX? Are you using cygwin tools?
  Specifically, is your imagemagick a cygwin version?
 
 I am using the new 1.4.2 version on Windows.  I am not sure how they compiled
 it, but I assume they used cygwin.  

No, that is a native version.

 I am running lyx.exe from a cygwin shell (which has tgif in the path).  

But you don't have tgif in the windows system PATH, right?

 Same error occurs if I use the desktop shortcut, but I don't get the error
 message in the terminal:
 
 convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
 convert.exe: missing an image filename `ppm:c:/Documents and
 Settings/gatzke/Local Settings/Temp/lyx_tmpdir2752a01764/test2752a01764.ppm'.
 c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
 Execution of convert failed.

This happens because you should have tgif in the PATH when you reconfigure
LyX. Try adding the path to tgif in PATH prefix under
Tools-Preferences-Paths and then reconfigure (I am not sure if you need
to restart LyX or if the change to PATH prefix takes effect immediately).

 So it looks like it is calling the convertDefaul.sh in the new Lyx 1.4.2
 /Resources/scripts directory.  That convert script appears to just call
 convert.exe, not tgif.
 
 tgif itself generates ppm etc called from my command line just fine.  tgif is
 never getting called.

It works perfectly for me. I can include .obj files in the graphics inset
and they get displayed in LyX. Remember to start the X server as tgif needs
it even for simply converting .obj files to other formats.

If tgif is in your PATH, after reconfiguring you should see converters
from TGIF to EPS, PPM, PNG and PDF in Preferences-Coverters.

-- 
Enrico




Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Ed Gatzke wrote:

 I have been using tgif to do vector graphics for a few years and I have
 been happy with it for simple things.
 
 I hacked their equation object code to call lyx for equation editing.

Interesting.

 Also, I saw recently that lyx added native tgif support for the image
 converter.
  I have been using tgif forever, exporting to eps for use in lyx. My
  ImageMagick
 / convert does not appear to work on my new XP install for converting tgif
 .obj files to .ppm, but that is ok, I am fine with the eps right now and I
 don't have a 1.4.2 install on linux to try out yet.

The imagemagick problem was the reason to include an explicit converter.
If you include the .obj instead of the .eps files in LyX you will be able to
fire up tgif from within LyX (the edit button of the graphics dialog).


Georg




Re: Tgif with lyx as equation editor

2006-07-17 Thread Ed Gatzke
  Also, I saw recently that lyx added native tgif support for the image
  converter.
   I have been using tgif forever, exporting to eps for use in lyx. My
   ImageMagick
  / convert does not appear to work on my new XP install for converting tgif
  .obj files to .ppm, but that is ok, I am fine with the eps right now and I
  don't have a 1.4.2 install on linux to try out yet.

 The imagemagick problem was the reason to include an explicit converter.
 If you include the .obj instead of the .eps files in LyX you will be able to
 fire up tgif from within LyX (the edit button of the graphics dialog).


On my XP box, I get garbage.  Output at console from lyx:

convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
convert.exe: missing an image filename `ppm:c:/Documents and
Settings/gatzke/Local Settings/Temp/lyx_tmpdir2724a03164/test2724a03164.ppm'.
c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
Execution of convert failed.

And when I try to convert an obj file to ppm:

convert test.obj  test.ppm
convert: unable to open module file
`/usr/lib/ImageMagick-6.0.4/modules-Q16/coders/obj.la'.
convert: missing an image filename `test.ppm'.

Maybe it is due to me not reinstalling all the peripheral software with the new
version update?






Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Am Montag, 17. Juli 2006 19:40 schrieb Ed Gatzke:

 On my XP box, I get garbage.  Output at console from lyx:

 Maybe it is due to me not reinstalling all the peripheral software with 
the new
 version update?

No. The reason is probably that tgif is not in your path. It should work if 
you enter the following converters by hand:

Tgif-PPM:
full/path/to/tgif -stdout -print -color -ppm $$i  $$o

Tgif-PNG:
full/path/to/tgif -stdout -print -color -png $$i  $$o

Tgif-EPS:
full/path/to/tgif -stdout -print -color -eps $$i  $$o


Georg



Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Am Montag, 17. Juli 2006 21:09 schrieb Enrico Forestieri:
 Are you using a native windows version of LyX? Are you using cygwin 
tools?
 Specifically, is your imagemagick a cygwin version?

AFAIK that does not matter, since imagemagick does not know how to handle 
tgif files.


Georg



Re: Tgif with lyx as equation editor

2006-07-17 Thread Ed Gatzke

 Are you using a native windows version of LyX? Are you using cygwin tools?
 Specifically, is your imagemagick a cygwin version?


I am using the new 1.4.2 version on Windows.  I am not sure how they compiled
it, but I assume they used cygwin.  

I am running lyx.exe from a cygwin shell (which has tgif in the path).  

Same error occurs if I use the desktop shortcut, but I don't get the error
message in the terminal:

convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
convert.exe: missing an image filename `ppm:c:/Documents and
Settings/gatzke/Local Settings/Temp/lyx_tmpdir2752a01764/test2752a01764.ppm'.
c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
Execution of convert failed.

So it looks like it is calling the convertDefaul.sh in the new Lyx 1.4.2
/Resources/scripts directory.  That convert script appears to just call
convert.exe, not tgif.

tgif itself generates ppm etc called from my command line just fine.  tgif is
never getting called.
















Re: Tgif with lyx as equation editor

2006-07-17 Thread Enrico Forestieri
Ed Gatzke [EMAIL PROTECTED] writes:

  Are you using a native windows version of LyX? Are you using cygwin tools?
  Specifically, is your imagemagick a cygwin version?
 
 I am using the new 1.4.2 version on Windows.  I am not sure how they compiled
 it, but I assume they used cygwin.  

No, that is a native version.

 I am running lyx.exe from a cygwin shell (which has tgif in the path).  

But you don't have tgif in the windows system PATH, right?

 Same error occurs if I use the desktop shortcut, but I don't get the error
 message in the terminal:
 
 convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
 convert.exe: missing an image filename `ppm:c:/Documents and
 Settings/gatzke/Local Settings/Temp/lyx_tmpdir2752a01764/test2752a01764.ppm'.
 c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
 Execution of convert failed.

This happens because you should have tgif in the PATH when you reconfigure
LyX. Try adding the path to tgif in PATH prefix under
Tools-Preferences-Paths and then reconfigure (I am not sure if you need
to restart LyX or if the change to PATH prefix takes effect immediately).

 So it looks like it is calling the convertDefaul.sh in the new Lyx 1.4.2
 /Resources/scripts directory.  That convert script appears to just call
 convert.exe, not tgif.
 
 tgif itself generates ppm etc called from my command line just fine.  tgif is
 never getting called.

It works perfectly for me. I can include .obj files in the graphics inset
and they get displayed in LyX. Remember to start the X server as tgif needs
it even for simply converting .obj files to other formats.

If tgif is in your PATH, after reconfiguring you should see converters
from TGIF to EPS, PPM, PNG and PDF in Preferences-Coverters.

-- 
Enrico




Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Ed Gatzke wrote:

> I have been using tgif to do vector graphics for a few years and I have
> been happy with it for simple things.
> 
> I hacked their equation object code to call lyx for equation editing.

Interesting.

> Also, I saw recently that lyx added native tgif support for the image
> converter.
>  I have been using tgif forever, exporting to eps for use in lyx. My
>  ImageMagick
> / convert does not appear to work on my new XP install for converting tgif
> .obj files to .ppm, but that is ok, I am fine with the eps right now and I
> don't have a 1.4.2 install on linux to try out yet.

The imagemagick problem was the reason to include an explicit converter.
If you include the .obj instead of the .eps files in LyX you will be able to
fire up tgif from within LyX (the edit button of the graphics dialog).


Georg




Re: Tgif with lyx as equation editor

2006-07-17 Thread Ed Gatzke
> > Also, I saw recently that lyx added native tgif support for the image
> > converter.
> >  I have been using tgif forever, exporting to eps for use in lyx. My
> >  ImageMagick
> > / convert does not appear to work on my new XP install for converting tgif
> > .obj files to .ppm, but that is ok, I am fine with the eps right now and I
> > don't have a 1.4.2 install on linux to try out yet.
>
> The imagemagick problem was the reason to include an explicit converter.
> If you include the .obj instead of the .eps files in LyX you will be able to
> fire up tgif from within LyX (the edit button of the graphics dialog).


On my XP box, I get garbage.  Output at console from lyx:

convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
convert.exe: missing an image filename `ppm:c:/Documents and
Settings/gatzke/Local Settings/Temp/lyx_tmpdir2724a03164/test2724a03164.ppm'.
c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
Execution of "convert" failed.

And when I try to convert an obj file to ppm:

convert test.obj  test.ppm
convert: unable to open module file
`/usr/lib/ImageMagick-6.0.4/modules-Q16/coders/obj.la'.
convert: missing an image filename `test.ppm'.

Maybe it is due to me not reinstalling all the peripheral software with the new
version update?






Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Am Montag, 17. Juli 2006 19:40 schrieb Ed Gatzke:

> On my XP box, I get garbage.  Output at console from lyx:

> Maybe it is due to me not reinstalling all the peripheral software with 
the new
> version update?

No. The reason is probably that tgif is not in your path. It should work if 
you enter the following converters by hand:

Tgif->PPM:
full/path/to/tgif -stdout -print -color -ppm $$i > $$o

Tgif->PNG:
full/path/to/tgif -stdout -print -color -png $$i > $$o

Tgif->EPS:
full/path/to/tgif -stdout -print -color -eps $$i > $$o


Georg



Re: Tgif with lyx as equation editor

2006-07-17 Thread Georg Baum
Am Montag, 17. Juli 2006 21:09 schrieb Enrico Forestieri:
> Are you using a native windows version of LyX? Are you using cygwin 
tools?
> Specifically, is your imagemagick a cygwin version?

AFAIK that does not matter, since imagemagick does not know how to handle 
tgif files.


Georg



Re: Tgif with lyx as equation editor

2006-07-17 Thread Ed Gatzke

> Are you using a native windows version of LyX? Are you using cygwin tools?
> Specifically, is your imagemagick a cygwin version?


I am using the new 1.4.2 version on Windows.  I am not sure how they compiled
it, but I assume they used cygwin.  

I am running lyx.exe from a cygwin shell (which has tgif in the path).  

Same error occurs if I use the desktop shortcut, but I don't get the error
message in the terminal:

convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
convert.exe: missing an image filename `ppm:c:/Documents and
Settings/gatzke/Local Settings/Temp/lyx_tmpdir2752a01764/test2752a01764.ppm'.
c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
Execution of "convert" failed.

So it looks like it is calling the convertDefaul.sh in the new Lyx 1.4.2
/Resources/scripts directory.  That convert script appears to just call
convert.exe, not tgif.

tgif itself generates ppm etc called from my command line just fine.  tgif is
never getting called.
















Re: Tgif with lyx as equation editor

2006-07-17 Thread Enrico Forestieri
Ed Gatzke <[EMAIL PROTECTED]> writes:

> > Are you using a native windows version of LyX? Are you using cygwin tools?
> > Specifically, is your imagemagick a cygwin version?
> 
> I am using the new 1.4.2 version on Windows.  I am not sure how they compiled
> it, but I assume they used cygwin.  

No, that is a native version.

> I am running lyx.exe from a cygwin shell (which has tgif in the path).  

But you don't have tgif in the windows system PATH, right?

> Same error occurs if I use the desktop shortcut, but I don't get the error
> message in the terminal:
> 
> convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
> convert.exe: missing an image filename `ppm:c:/Documents and
> Settings/gatzke/Local Settings/Temp/lyx_tmpdir2752a01764/test2752a01764.ppm'.
> c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
> Execution of "convert" failed.

This happens because you should have tgif in the PATH when you reconfigure
LyX. Try adding the path to tgif in "PATH prefix" under
Tools->Preferences->Paths and then reconfigure (I am not sure if you need
to restart LyX or if the change to PATH prefix takes effect immediately).

> So it looks like it is calling the convertDefaul.sh in the new Lyx 1.4.2
> /Resources/scripts directory.  That convert script appears to just call
> convert.exe, not tgif.
> 
> tgif itself generates ppm etc called from my command line just fine.  tgif is
> never getting called.

It works perfectly for me. I can include .obj files in the graphics inset
and they get displayed in LyX. Remember to start the X server as tgif needs
it even for simply converting .obj files to other formats.

If tgif is in your PATH, after reconfiguring you should see converters
from TGIF to EPS, PPM, PNG and PDF in Preferences->Coverters.

-- 
Enrico