I use emacs 23.3.1, ghostscript 9.04, texlive 2009 and auctex 11.86 in
Linux Mint 12 (Based on Ubuntu11.10) .

Below is my latex file :

> \documentclass[11pt]{article}
> \begin{document}
> asdf
> $\pi$
> \end{document}
>

I can compile it use latex to dvi and pdflatex to pdf .
But I can not preview $\pi$ .
When I preview it , emacs gives the follow error :

> gs -dOutputFile\=\(_region_.prv/tmp16297tkX/pr1-1.png\) -q -dSAFER
> -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4
> -sDEVICE\=png16m -r85.9178x86.0533
> GS>{DELAYSAFER{.setsafe}if}stopped pop/.preview-BP
> currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if
> def<</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1
> ne or{.preview-BP }{pop}ifelse}bind/PageSize[1
> 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll dup length 0
> eq{pop}{setpagedevice}{ifelse .runandhide}stopped{handleerror quit}if aload
> pop restore}bind def [(_region_.prv/tmp16297tkX/preview.ps)(r)file]aload
> exch dup 0 setfileposition 24343()/SubFileDecode filter cvx .runandhide
> aload pop dup dup 24343 setfileposition 105()/SubFileDecode filter
> cvx<<>>preview-do
> Error: /invalidfileaccess in --file--
> Operand stack:
>    --nostringval--   (_region_.prv/tmp16297tkX/preview.ps)   (r)
> Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval--
> --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
> %loop_continue   --nostringval--   --nostringval--   false   1
> %stopped_push   .runexec2   --nostringval--   --nostringval--
> --nostringval--   2   %stopped_push   --nostringval--
> Dictionary stack:
>    --dict:1164/1684(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--
> Current allocation mode is local
> Last OS error: 2
> Current file position is 442
> GS<3>
>

What is the matter ?
Thanks a lot !
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to