|
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:
\documentclass{article} \usepackage{psfrag} \begin{document} test \end{document}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 (replace-match (concat "\\& " xdvi-extras) t nil func))) (setcar (last list) func))) TeX-output-view-style) (put 'TeX-output-view-style 'xdvi-extra t)) Cheers, Matt 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 foo.psIt'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 with? -- Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |