[Top][All Lists]

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

Re: [AUCTeX] forcing view with xdvi

From: Matthew Bainbridge
Subject: Re: [AUCTeX] forcing view with xdvi
Date: Wed, 4 Nov 2009 19:29:53 +0100 (CET)

Thanks for your quick reply.

I don't think I'm using PSTricks, but the problem seems to be the psfrag package. With the following document, dvips && gv is used:



But if I comment out the \usepackage line, it uses xdvi. Do you know if it is possible to use psfrag and have xdvi function normally? Maybe there is something screwy in my .emacs file. The relevent part seems to be this:

       (TeX-source-specials-mode 1)
       (setq TeX-source-specials-view-start-server t)
       ;; Special arguments to put XDVI in the correct place.
       (setq xdvi-extras
             (concat "-xoffset .35in -yoffset .4in "
                     "-s 4 -geometry 1800x1900+0+0"))
            ;; Add the above arguments to all instances of xdvi
       (unless (get 'TeX-output-view-style 'xdvi-extra)
         (mapcar (lambda (list)
                   (let ((func (nth 2 list)))
                     (if (string-match "xdvi" func)
                         (setq func
                                (concat "\\& " xdvi-extras) t nil func)))
                     (setcar (last list) func)))
         (put 'TeX-output-view-style 'xdvi-extra t))


On Wed, 4 Nov 2009, Ralf Angeli wrote:

* Matthew Bainbridge (2009-11-04) writes:

When I view a document from within emacs using C-c C-c (view), AUCTeX
normally uses xdvi.  This is very convenient, since am using forward and
inverse search, etc.

The problem is when my document uses graphics (for example .eps), AUXTeX
instead uses gv:
        dvips foo.dvi -o && gv

It's not the use of graphics which leads to this.  You likely loaded a
PSTricks package.

Is there some way to force AUCTeX to always use xdvi?  I tried adding
%%% TeX-output-view-style: (("^dvi$" "." "xdvi -s 4 -watchfile 1 %dS%d"))
to the end of the file, but there is no effect.

Works fine here.  Is this a document with multiple files you are dealing


reply via email to

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