auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] preview-latex: empty boxes?


From: Vinh Nguyen
Subject: Re: [AUCTeX] preview-latex: empty boxes?
Date: Fri, 16 Sep 2011 23:42:50 -0700

On Thu, Sep 8, 2011 at 9:27 AM, Vinh Nguyen <address@hidden> wrote:
> Dear list,
>
> I was recently reminded by
> [this](http://psung.blogspot.com/2009/08/auctex-and-preview-latex.html)
> post regarding availability of preview-latex.  After pressing C-c C-p
> C-b, I get small empty  boxes next to my equations.  That is, the png
> images aren't displayed correctly.  I looked into the temporary
> directories and the png files are indeed created.   They're just not
> being displayed correctly in emacs.  Does anyone know how to fix this?
>  Thanks.
>
> After getting that to work, I would also like to set the "font" color
> in the png files to be green since I have a black background in emacs
> (currently set to white for testing).  How could I modify this?
>
> FYI, I am using AucTeX 11.86 with Emacs 23 in Ubuntu 11.04.  Also,
> this error was reproduced with a simple LaTeX file (below), and emacs
> was started without the init file (loaded AucTeX and preview-latex
> manually).
>
> -- Vinh
>
> foo.tex:
> \documentclass{article}
>
> \begin{document}
> Let $x=1$.  %%
> Then
> \[
> \lim_{x\rightarrow \infty} x^{x}
> \]
> is undefined.  %%
> \end{document}
>

I just realized that I can right click on the empty box and "view
source".  This is the error message for one of the empty boxes:
gs -dOutputFile\=\(_region_.prv/tmp27138kzR/pr1-16.png\) -q -dSAFER
-dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4
-dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r105.443x105.424
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 0 0 0 setrgbcolor clippath fill 1 1 1
setrgbcolor}{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/tmp27138kzR/preview.ps)(r)file]aload exch dup 0
setfileposition 224768()/SubFileDecode filter cvx .runandhide aload
pop dup dup 224768 setfileposition 288()/SubFileDecode filter
cvx<<>>preview-do
Error: /typecheck in --setfileposition--
Operand stack:
   --nostringval--   (_region_.prv/tmp27138kzR/preview.ps)   (r)   (r)
  (r)   226987   226987   226987   226885   226885   226885   226732
226732   226732   226613   226613   226613   226461   226461   226461
 226312   226312   226312   226196   226196   226196   226078   226078
  226078   225954   225954   225954   225848   225848   225848
225750   225750   225750   225626   225626   225626   225528   225528
 225528   225056   225056   225056   224768
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:1163/1684(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--
Current allocation mode is local
Current file position is 31
GS<48>

Thanks!



reply via email to

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