auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Hint, hint...


From: Jan-Ake Larsson
Subject: Re: [AUCTeX-devel] Hint, hint...
Date: Mon, 27 Jun 2005 17:30:38 +0200
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; sv-SE; rv:1.7.7) Gecko/20050422

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}{%
    address@hidden@ne
    address@hidden
+       \special{!/address@hidden(\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Å




reply via email to

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