bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex


From: Stefan Husmann
Subject: Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex
Date: Tue, 12 Oct 2010 22:57:21 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100928 Lanikai/3.1.4

Am 12.10.2010 21:09, schrieb Ralf Angeli:
> * Clark Taylor (2010-10-11) writes:
> 
>> I'm happy to be a guinea pig if you need.
> 
> A way to check if we are really dealing with a problem concerned with
> the security features of Ghostscript would be to disable them and see if
> the problem goes away.  The following patch does this.  It would be
> interesting to see the results in your case.
> 
> Be sure to use this only if you are sure that the code in the generated
> PostScript file is not malicious.  And you should revert the changes in
> preview.el again after testing, so that you don't leave a security hole
> in your system.
> 
> 
> --- preview.el.~1.284.~       2009-06-18 21:20:46.000000000 +0200
> +++ preview.el        2010-10-12 20:59:15.000000000 +0200
> @@ -355,7 +355,7 @@
>    :group 'preview-gs
>    :type 'string)
>  
> -(defcustom preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE"
> +(defcustom preview-gs-options '("-q" "-dNOSAFER" "-dNOPAUSE"
>                               "-DNOPLATFONTS" "-dPrinted"
>                               "-dTextAlphaBits=4"
>                               "-dGraphicsAlphaBits=4")
> @@ -724,7 +724,7 @@
>                                  preview-gs-options
>                                  (nthcdr 2 image-info))
>         preview-gs-init-string
> -       (format "{DELAYSAFER{.setsafe}if}stopped pop\
> +       (format "\
>  /.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\
> 
> 

Hello,

after applying that patch the png (mu) is generated. 

Regards Stefan



reply via email to

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