Thank you Jesper, now i pressed the keys correctly and got the following:
The message in emacs
------------------------
clear << /PageSize [264 10] /PageOffset [-125 650] /OutputFile
(c:\gnu\temp\imaximaQPAvCP\1) >> setpagedevice [save]
(c:\gnu\temp\imaximaQPAvCP\1.ps) (r) file cvx systemdict /.runandhide
known revision 700 ge and {.setsafe {.runandhide}} if stopped
{handleerror quit} if count 1 ne {quit} if cleardictstack 0 get restore
the whole command was too long to fit in the gs command prompt, so i
left out everything starting with if stopped (I hope this didn't cause
any problems)
When running it in gs at the command line, i get the following:
-----------------------------------------------------------
GS>clear << /PageSize [264 10] /PageOffset [-125 650] /OutputFile
(c:\gnu\temp\imaximaQPAvCP\1) >> setpagedevice [save] (c:\gnu\temp\imaxim
aQPAvCP\1.ps) (r) file cvx systemdict /.runandhide known revision 700 ge
and {.setsafe {.runandhide}}
Error: /ioerror in --file--
Operand stack:
--nostringval-- (c:gnu\tempimaximaQPAvCP\001.ps) (r)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
%loop_continue 2 3 %oparray_pop --nostringval--
--nostringval-- false 1 %stopped_push .runexec2
--nostringval-- --no
stringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval--
Dictionary stack:
--dict:1004/1123(ro)(G)-- --dict:0/20(G)-- --dict:67/200(L)--
Current allocation mode is local
Last OS error: Invalid argument
Current file position is 159
When replacing the \ with / in the command i get:
-------------------------------------------------
GS<3>clear << /PageSize [264 10] /PageOffset [-125 650] /OutputFile
(c:/gnu/temp/imaximaQPAvCP/1) >> setpagedevice [save] (c:/gnu/temp/imax
imaQPAvCP/1.ps) (r) file cvx systemdict /.runandhide known revision 700
ge and {.setsafe {.runandhide}}
GS<4>
So no error when i changed the \ with /. Does this mean it works? What
should be done? Modifying imaxima.el (i don't have a clue how to do
this) or trying another version of ghostscript (which one)?
One possibility would be to define c: as the temp folder and modify
imaxima.el to not create a subfolder, but instead put the files directly
to c:
I copied the 1.ps to c: and tried the following
clear << /PageSize [264 10] /PageOffset [-125 650] /OutputFile (c:1) >>
setpagedevice [save] (c:1.ps) (r) file cvx systemdict /.runandhide known
revision 700 ge and {.setsafe {.runandhide}}
and this worked as well as with the / separators.
Osmo