Re: Fw: Postscript preview

2006-08-11 Thread Leonid Belostotski
Why don't you make the Matlab copy of GS the same as the system? I tried that unsuccessfully already. Matlab generates the ps file even when I remove its GS directory completely. When I substitute Matlab GS with "official" GS, the figures still misbehave after I regenerate them from scratch

Re: Fw: Postscript preview

2006-08-11 Thread TechTonics
TechTonics wrote: LB wrote: This problem with preview is still not 100% gone. I have to change the PATH to point to a different copy of GS (Matlab copy or "official" copy) depending on which Lyx document I open. At this time, only the document that first exhibit this problem needs PATH to

Re: Fw: Postscript preview

2006-08-11 Thread TechTonics
LB wrote: Which would not explain why futzing with the environment variables cured (or at least moved) the bug. Then again, perhaps I'm asking too much of the bug as far as consistency goes. This brings me back to my thesis that somewhere there is a buffer overflow. How/why it would involve

Re: Fw: Postscript preview

2006-08-10 Thread LB
Which would not explain why futzing with the environment variables cured (or at least moved) the bug. Then again, perhaps I'm asking too much of the bug as far as consistency goes. This brings me back to my thesis that somewhere there is a buffer overflow. How/why it would involve both the f

Re: Fw: Postscript preview

2006-08-09 Thread Paul A. Rubin
TechTonics wrote: LB wrote: I have changed the names (decreased by one character) of the figures that were given me problems and they are now previewing fine!!! Great! One of the great Presidents said persistence is a far better quality than talent or genius. Still seems like a surprising way

Re: Fw: Postscript preview

2006-08-09 Thread TechTonics
LB wrote: I have changed the names (decreased by one character) of the figures that were given me problems and they are now previewing fine!!! Thanks Leo Great! One of the great Presidents said persistence is a far better quality than talent or genius. Still seems like a surprising way to f

Re: Fw: Postscript preview

2006-08-09 Thread LB
I have changed the names (decreased by one character) of the figures that were given me problems and they are now previewing fine!!! Clarification: it works when Lyx path points to Matlab gs. When I change path to the "official" gs the preview stops working. I have installed matlab after

Re: Fw: Postscript preview

2006-08-09 Thread LB
I have changed the names (decreased by one character) of the figures that were given me problems and they are now previewing fine!!! Thanks Leo

Re: Fw: Postscript preview

2006-08-09 Thread LB
Your starting idea seems the easiest place to start. LyX was configured with the system GS. It is now going to use the matlab gs. Does the matlab gs need to be put in the beginning of Path_prefix? Reconfigure/Restart? [SET LC_ALL=en_EN] I think that stands for Locale. I suggested changing that e

Re: Postscript preview

2006-08-09 Thread Stephen Buonopane
On Aug 9, 2006, at 2:28 PM, TechTonics wrote: LB wrote: Having already generated the image files in MATLAB, try temporarily hiding all the Cygwin and Matlab copies of the GS executable (say by adding a $ to the start of their names, which is easy to undo afterward). Then run LyX and see if t

Re: Fw: Postscript preview

2006-08-09 Thread TechTonics
LB wrote: Having already generated the image files in MATLAB, try temporarily hiding all the Cygwin and Matlab copies of the GS executable (say by adding a $ to the start of their names, which is easy to undo afterward). Then run LyX and see if the images load properly. No they don't. Leo

Re: Fw: Postscript preview

2006-08-09 Thread TechTonics
Paul A. Rubin wrote: LB wrote: I think this supports the possibility of a Ghostscript conflict and that Matlab comes with its own version of Gs. I actually have three versions of gs.exe. Cygwin has two. One in cygwin\bin directory and one in cygwin\usr\X11R6\bin directory. Matlab has its own

Re: Fw: Postscript preview

2006-08-09 Thread LB
Having already generated the image files in MATLAB, try temporarily hiding all the Cygwin and Matlab copies of the GS executable (say by adding a $ to the start of their names, which is easy to undo afterward). Then run LyX and see if the images load properly. No they don't. Leo

Re: Fw: Postscript preview

2006-08-09 Thread TechTonics
LB wrote: I think this supports the possibility of a Ghostscript conflict and that Matlab comes with its own version of Gs. I actually have three versions of gs.exe. Cygwin has two. One in cygwin\bin directory and one in cygwin\usr\X11R6\bin directory. Matlab has its own version as well. My i

Re: Fw: Postscript preview

2006-08-09 Thread Paul A. Rubin
LB wrote: I think this supports the possibility of a Ghostscript conflict and that Matlab comes with its own version of Gs. I actually have three versions of gs.exe. Cygwin has two. One in cygwin\bin directory and one in cygwin\usr\X11R6\bin directory. Matlab has its own version as well. My i

Re: Fw: Postscript preview

2006-08-09 Thread Paul A. Rubin
LB wrote: I think this supports the possibility of a Ghostscript conflict and that Matlab comes with its own version of Gs. I actually have three versions of gs.exe. Cygwin has two. One in cygwin\bin directory and one in cygwin\usr\X11R6\bin directory. Matlab has its own version as well. My i

Re: Fw: Postscript preview

2006-08-09 Thread LB
I think this supports the possibility of a Ghostscript conflict and that Matlab comes with its own version of Gs. I actually have three versions of gs.exe. Cygwin has two. One in cygwin\bin directory and one in cygwin\usr\X11R6\bin directory. Matlab has its own version as well. My install of gs

Re: Fw: Postscript preview

2006-08-06 Thread Stephen Harris
Paul A. Rubin wrote: Stephen Harris wrote: "The MATLAB Component Runtime (MCR) 7.0 and 7.1 do not contain a copy of the GhostScript program included with MATLAB. Therefore, applications deployed on a target machine rely on a locally- installed version of GhostScript, if one exists, for exportin

Re: Fw: Postscript preview

2006-08-06 Thread Paul A. Rubin
Stephen Harris wrote: "The MATLAB Component Runtime (MCR) 7.0 and 7.1 do not contain a copy of the GhostScript program included with MATLAB. Therefore, applications deployed on a target machine rely on a locally- installed version of GhostScript, if one exists, for exporting some graphics. Since

Re: Fw: Postscript preview

2006-08-05 Thread Stephen Harris
Paul A. Rubin wrote: LB wrote: Ok, it tried this. I commented out SET LC_ALL=en_EN. This resulted in a different image having the preview problem. I placed SET XX=Y in lyx.bat and the preview problem moved back to the original image. The same happens when I comment out the other l

Re: Fw: Postscript preview

2006-08-05 Thread Paul A. Rubin
LB wrote: Ok, it tried this. I commented out SET LC_ALL=en_EN. This resulted in a different image having the preview problem. I placed SET XX=Y in lyx.bat and the preview problem moved back to the original image. The same happens when I comment out the other line in the lyx.bat.

Re: Fw: Postscript preview

2006-08-04 Thread Stephen Harris
LB wrote: One more little experiment, if you don't mind, just to confirm symptoms: if you comment out one of the SET commands in lyx.bat, but replace it with a line of equal length (SET XXX=Y... with enough Xs and Ys to match the line you commented out), does the bug move t

Re: Fw: Postscript preview

2006-08-04 Thread LB
One more little experiment, if you don't mind, just to confirm symptoms: if you comment out one of the SET commands in lyx.bat, but replace it with a line of equal length (SET XXX=Y... with enough Xs and Ys to match the line you commented out), does the bug move to a differe

Re: Fw: Postscript preview

2006-08-03 Thread Paul A. Rubin
LB wrote: I want to make sure I'm understanding this correctly: in a single document with multiple images, GS will get stuck on image with the original lyx.bat file, then process that image correctly but get stuck on a later one if you comment something out of lyx.bat? (And how far it gets d

Re: Fw: Postscript preview

2006-08-03 Thread LB
I want to make sure I'm understanding this correctly: in a single document with multiple images, GS will get stuck on image with the original lyx.bat file, then process that image correctly but get stuck on a later one if you comment something out of lyx.bat? (And how far it gets depends on w

Re: Fw: Postscript preview

2006-08-03 Thread Paul A. Rubin
LB wrote: Lyx (or GS) gets "stuck" at different figures depending on what I comment out in lyx.bat. I want to make sure I'm understanding this correctly: in a single document with multiple images, GS will get stuck on image with the original lyx.bat file, then process that image correctl

Re: Fw: Postscript preview

2006-08-03 Thread LB
Does it display the same old symptoms; it works with lyx.exe or if you delete one of the "set" commands in lyx.bat? Lyx (or GS) gets "stuck" at different figures depending on what I comment out in lyx.bat. If the figure doesn't work with lyx.exe then it is the file. Try it with both (the old

Re: Fw: Postscript preview

2006-08-02 Thread Stephen Harris
LB wrote: I uninstalled Lyx and reinstalled it into c:\lyx\lyx14. This solved my figure problem!!! Thank you. I can now use 1.4.2 Looks like I spoke too soon. Now a different figure does not want to be displayed. Leo Does it display the same old symptoms; it works with lyx.exe or if

Re: Fw: Postscript preview

2006-08-01 Thread Bo Peng
On 8/1/06, LB <[EMAIL PROTECTED]> wrote: > I uninstalled Lyx and reinstalled it into c:\lyx\lyx14. This solved my > figure problem!!! > > Thank you. I can now use 1.4.2 Looks like I spoke too soon. Now a different figure does not want to be displayed. I do not know what have gone wrong, just

Re: Fw: Postscript preview

2006-08-01 Thread Paul A. Rubin
LB wrote: I uninstalled Lyx and reinstalled it into c:\lyx\lyx14. This solved my figure problem!!! Thank you. I can now use 1.4.2 Looks like I spoke too soon. Now a different figure does not want to be displayed. Leo But the original one does display, even when loaded from its origin

Re: Fw: Postscript preview

2006-08-01 Thread LB
I uninstalled Lyx and reinstalled it into c:\lyx\lyx14. This solved my figure problem!!! Thank you. I can now use 1.4.2 Looks like I spoke too soon. Now a different figure does not want to be displayed. Leo

Re: Postscript preview

2006-08-01 Thread Paul A. Rubin
LB wrote: When I start lyx1.4.2 I see two black windows (shell windows???) pop-up and dissapear before Lyx actually appears. Lyx1.4.1 only flashes one black window. Does that mean anything? Normal behavior. The first window is lyx.bat; as soon as it starts lyx.exe, it exits. The second w

Re: Fw: Postscript preview

2006-08-01 Thread LB
Hi Stephen I uninstalled Lyx and reinstalled it into c:\lyx\lyx14. This solved my figure problem!!! Thank you. I can now use 1.4.2 Leo LB wrote: The paths are not supposed to be the same. LyX 1.4.1 did not install a python directory under LyX. Also the batfiles are not the same. This usua

Re: Fw: Postscript preview

2006-07-31 Thread Stephen Harris
LB wrote: The paths are not supposed to be the same. LyX 1.4.1 did not install a python directory under LyX. Also the batfiles are not the same. This usually happens when the preferences files under c:\documents and settings\yourusername~~~\~ are not deleted during the uninstall. Then the next ve

Re: Fw: Postscript preview

2006-07-31 Thread LB
The paths are not supposed to be the same. LyX 1.4.1 did not install a python directory under LyX. Also the batfiles are not the same. This usually happens when the preferences files under c:\documents and settings\yourusername~~~\~ are not deleted during the uninstall. Then the next version picks

Re: Fw: Postscript preview

2006-07-31 Thread Stephen Harris
LB wrote: Hi one more idea: if this is really a PATH problem and things worked normally under lyx 1.4.1, then I would do the following simple steps (unless you already tried this and I didn't see it in the earlier messages): (a) Revert to LyX 1.4.1 and open the Preferences dialog to find out

Re: Postscript preview

2006-07-31 Thread LB
When I start lyx1.4.2 I see two black windows (shell windows???) pop-up and dissapear before Lyx actually appears. Lyx1.4.1 only flashes one black window. Does that mean anything? Leo

Fw: Postscript preview

2006-07-31 Thread LB
Hi one more idea: if this is really a PATH problem and things worked normally under lyx 1.4.1, then I would do the following simple steps (unless you already tried this and I didn't see it in the earlier messages): (a) Revert to LyX 1.4.1 and open the Preferences dialog to find out EXACTLY

Re: Postscript preview

2006-07-31 Thread LB
Hello I didn't have any bright ideas. But since it seems you are close to giving up, I thought I would toss out some longshots. " PROGRA~1\MENTOR~1\PADS\2005_1\Programs;c:\lyx\ly " (from 7/28/2006 12:03 pm, PATH report) SH: Maybe that is a typo the "ly" looks wrong. This was not a typo. Tha

Re: Postscript preview

2006-07-29 Thread Jens Noeckel
On Jul 29, 2006, at 9:09 PM, Stephen Harris wrote: LB wrote: When you added the GS path in lyx.bat, did you add the path to the lib directory as well as to the bin directory? Yes I did. I'm giving up and going back to use version 1.4.1. Well, I can't say I blame you ... 1.4.1 worked pretty

Re: Postscript preview

2006-07-29 Thread Stephen Harris
LB wrote: When you added the GS path in lyx.bat, did you add the path to the lib directory as well as to the bin directory? Yes I did. I'm giving up and going back to use version 1.4.1. Well, I can't say I blame you ... 1.4.1 worked pretty well for me. I just hope this problem does not recu

Re: Postscript preview

2006-07-29 Thread LB
> When you added the GS path in lyx.bat, did you add the path to the lib > directory as well as to the bin directory? Yes I did. > > I'm giving up and going back to use version 1.4.1. > > Well, I can't say I blame you ... 1.4.1 worked pretty well for me. I > just hope this problem does not recur

Re: Postscript preview

2006-07-29 Thread Paul A. Rubin
LB wrote: Thank you Paul for all your help. Adding path to GS in lyx.bat did not solved the problem. I have this feeling that the problem is somehow related to the postscript commands inside the figure... I don't know much about Postscript, but I looked in your test.ps file a few days ago a

Re: Postscript preview

2006-07-29 Thread LB
Thank you Paul for all your help. Adding path to GS in lyx.bat did not solved the problem. I have this feeling that the problem is somehow related to the postscript commands inside the figure... I'm giving up and going back to use version 1.4.1. Cheers Leo One other difference I notices is

Re: Postscript preview

2006-07-28 Thread Paul A. Rubin
LB wrote: Yes, moving the file test.lyx to C:\ solves the problem. The path to test.lyx is fairly long. It's located five directories deep. The path consists of 68 characters, including C: and "\", plus the file name. I have changed figure name to be only one character long, but that did not h

Re: Postscript preview

2006-07-28 Thread LB
BTW, Lyx 1.4.1 displays the figure correctly. Leo LB wrote: I mentioned that editing out aiksaurus line in lyx.bat fixed the problem. It turns out that removing "SET LC_ALL=en_EN" also fixes the problem. Renaming aiksaurus directory however does not fix it. Starting Lyx.exe directly als

Re: Postscript preview

2006-07-28 Thread LB
Yes, moving the file test.lyx to C:\ solves the problem. The path to test.lyx is fairly long. It's located five directories deep. The path consists of 68 characters, including C: and "\", plus the file name. I have changed figure name to be only one character long, but that did not help. This

Re: Postscript preview

2006-07-28 Thread Paul A. Rubin
LB wrote: I mentioned that editing out aiksaurus line in lyx.bat fixed the problem. It turns out that removing "SET LC_ALL=en_EN" also fixes the problem. Renaming aiksaurus directory however does not fix it. Starting Lyx.exe directly also fixes the problem. It the lyx.bat that causes this

Re: Postscript preview

2006-07-28 Thread LB
Hi Other than that one missing separator, everything looked good right up to the point where Ghostscript went stupid on you. I'm assuming that the path is correct (i.e., that C:\\test.ps is really where test.ps is located). I don't know enough about ImageMagick and Ghostscript to know if th

Re: Postscript preview

2006-07-28 Thread Paul A. Rubin
LB wrote: Hello I added the "echo" line in convertDefault.sh script. The following are the error message that I see: filetools(getFormatFromContents) File type not recognised before EOF! filetools(getFormatFromContents) Couldn't find a known format! filetools(getFormatFromConte

Re: Postscript preview

2006-07-28 Thread LB
Hello I added the "echo" line in convertDefault.sh script. The following are the error message that I see: filetools(getFormatFromContents) File type not recognised before EOF! filetools(getFormatFromContents) Couldn't find a known format! filetools(getFormatFromContents)

Re: Postscript preview

2006-07-27 Thread Paul A. Rubin
LB wrote: Hi When the image does not preview, the last a few lines in the debug window are: ForkedCallQueue: waking up LoaderQueue: I'm going to sleep AFPL Ghostscript 8.14 (2004-02-20) Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: s

Re: Postscript preview

2006-07-27 Thread LB
Hi When the image does not preview, the last a few lines in the debug window are: ForkedCallQueue: waking up LoaderQueue: I'm going to sleep AFPL Ghostscript 8.14 (2004-02-20) Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file

Re: Postscript preview

2006-07-27 Thread Paul A. Rubin
LB wrote: I tried that with no success. When starting LyX.exe without the lyx.bat, the figure works every time though. How do I display the shell windows that shows the debug messages? So I can see if there are any. Make a copy of lyx.bat, change the last line to lyx.exe -dbg graphics and

Re: Postscript preview

2006-07-27 Thread LB
OTECTED]> To: Sent: Wednesday, July 26, 2006 6:42 PM Subject: Re: Postscript preview LB wrote: I think I'm getting somewhere with this. It turns out that when I start lyx by using lyx.bat file from bin directory I get the problem with the figure. However if I run lyx.exe the problem

Re: Postscript preview

2006-07-26 Thread Paul A. Rubin
LB wrote: I think I'm getting somewhere with this. It turns out that when I start lyx by using lyx.bat file from bin directory I get the problem with the figure. However if I run lyx.exe the problem disappears. This is what my lyx.bat looks like: @echo off SET LC_ALL=en_EN SET AIK_DATA_DIR=C:

Re: Postscript preview

2006-07-26 Thread LB
I think I'm getting somewhere with this. It turns out that when I start lyx by using lyx.bat file from bin directory I get the problem with the figure. However if I run lyx.exe the problem disappears. This is what my lyx.bat looks like: @echo off SET LC_ALL=en_EN SET AIK_DATA_DIR=C:\LyX\LyX1.4

Re: Postscript preview

2006-07-26 Thread Paul A. Rubin
LB wrote: Ok, this means it has something to do with my setup. I'm just surprised that this one particular figure causes the problem while all others figures work just fine. How can I run Lyx in debug mode to see what is happening? Leo From a command shell (either in the LyX bin directory

Re: Postscript preview

2006-07-26 Thread Wolfgang Engelmann
Am Mittwoch, 26. Juli 2006 15:51 schrieb LB: > Ok, this means it has something to do with my setup. I'm just surprised > that this one particular figure causes the problem while all others figures > work just fine. > How can I run Lyx in debug mode to see what is happening? export a .tex file and

Re: Postscript preview

2006-07-26 Thread LB
Ok, this means it has something to do with my setup. I'm just surprised that this one particular figure causes the problem while all others figures work just fine. How can I run Lyx in debug mode to see what is happening? Leo Bo Peng wrote: The Lyx document and the postscript file are atta

Re: Postscript preview

2006-07-25 Thread Paul A. Rubin
Bo Peng wrote: The Lyx document and the postscript file are attached. I can view the figure (converted successfully) under windows, using lyx 1.4.2. Bo Same here (LyX 1.4.2, WinXP). It takes a couple of seconds on my laptop for the image to convert, but convert it does. /Paul

Re: ***SPAM*** Postscript preview

2006-07-25 Thread Bo Peng
The Lyx document and the postscript file are attached. I can view the figure (converted successfully) under windows, using lyx 1.4.2. Bo

Postscript preview

2006-07-25 Thread LB
Hello I have been inserting figures in Lyx (1.4.2 Windows XP) dozens of times and never had any problems with their previews. Until this time... I created a PostScript figure in Matlab ( the same procedure as I always use) and this figure would not get displayed in Lyx. The place holder for t

Long lines are trimmed in the Postscript preview !!!

1999-03-29 Thread Constantin Teodorescu
aller". In DVI preview I can see very fine those long lines but when I want to see the Postscript preview the lines are cut ar 75% (I cannot see the whole line). It's not a Lyx problem, it's a dvips problem but can you help me somehow ? Please cc:me to [EMAIL PROTECTED] I someone