[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] Re: texmacs and gs, one more thing

From: Martin Costabel
Subject: [Texmacs-dev] Re: texmacs and gs, one more thing
Date: Thu, 08 May 2003 22:54:41 +0200
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4a) Gecko/20030401

Joris van der Hoeven wrote:

I plan to use the timeout command as a temporary fix;

Sorry for not having been able to participate in this discussion more attentively: On MacOSX this temporary fix doesn't work, there is no 'timeout' command. I haven't seen any equivalent command either.

However, I found something, starting from Michèle's observation that some ps files are not blocking. What I found sounds crazy, but I have tested it.

If one replaces the first line in the ps file, something like

%!PS-Adobe-2.0 EPSF-2.0

just before the file is processed by ghostscript, by


then it works! Note the version and the absence of EPSF.

Since this claim is a bit outrageous and I don't have an explanation (except that I suspect the somewhat simplistic function encapsulate_postscript()), I hope that others can confirm.

For the Fink package, I made version with the following patch. Please test.

--- TeXmacs- Tue May 6 16:37:36 2003 +++ TeXmacs- Thu May 8 22:00:38 2003
@@ -413,7 +413,6 @@
     url temp_name= url_temp ();
     save_string (temp_name, nice_ps, true);
     string cmd= "tm_gs";
-    if (gs_type == 2) cmd= "timeout -s 9 2 " * cmd;
     system (cmd, temp_name);
     remove (temp_name);
     if (N(ps_figs_nr) == 0) ps_figs_last_gc= texmacs_time ();
--- TeXmacs-    Wed May  7 12:32:27 2003
+++ TeXmacs-     Thu May  8 22:01:52 2003
@@ -1,2 +1,4 @@
+sed '1s,.*,%\!PS-Adobe-3.0,' "$@" > "address@hidden"
+mv "address@hidden" "$@"
 exec gs -q -sDEVICE=x11 -dNOPAUSE -dSAFER "$@" -c quit


reply via email to

[Prev in Thread] Current Thread [Next in Thread]