David Kastrup wrote:
>>I have finally a few minutes off and can do the tightpage special
>>for some testing. But I don't know how to get the version number, so
>>I cannot insert that. Sorry.
> 
> \fileversion should do the trick, at least in the last version I
> checked in.  Basically, something like
> \AtBeginDvi{\special{ps::(preview-latex \fileversion}%
>   \special{ps::magic_cookie_for_older_dvipng_versions}%
>   \special{ps::)pop}
> 
> should work for now.

I've checked in something that will make both dvipng <=1.5 happy
and >= 1.6, and comments to make it evident what is needed when
this compatibility code is to be removed.

It seems that \fileversion does not work in preview.sty, I haven't
got time to check why. I would have liked to do

Index: preview.dtx
===================================================================
RCS file: /cvsroot/auctex/auctex/preview/latex/preview.dtx,v
retrieving revision 1.104
diff -c -r1.104 preview.dtx
*** preview.dtx 27 Jun 2005 15:18:20 -0000      1.104
--- preview.dtx 27 Jun 2005 15:26:18 -0000
***************
*** 570,575 ****
--- 570,576 ----
  \DeclareOption{dvips}{%
    [EMAIL PROTECTED]@ne
    [EMAIL PROTECTED]
+       \special{!/[EMAIL PROTECTED](\fileversion)def}
        \special{!userdict begin/preview-bop-level 0 def%
        /bop-hook{/preview-bop-level dup load dup 0 le{/isls false def%
            /vsize 792 def/hsize 612 def}if 1 add store}bind def%

but I must run now.
/JÅ


_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to