[Top][All Lists]

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

Re: [AUCTeX] Forcing "View" to run xdvi.

From: Sven Bretfeld
Subject: Re: [AUCTeX] Forcing "View" to run xdvi.
Date: 23 Apr 2009 17:09:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)


address@hidden writes:

> 1.-- The first time xdvi starts it is very slow, 30 sec. or more.  If I
> leave it open between runs and use source specials it is then very fast and
> I find it very very convenient to go back and forth between the source and
> its display.  Why is it so slow the first time it starts?

I can think of two possibilities:

1. It is a fresh installation, so xdvi has to produce the fonts before
   it can display anything. Does it also happen if you re-open the very
   same file?

2. Something with the TeX-installation is wrong so that xdvi doesn't find
   the already created fonts and has to build them anew. I have seen
   such a thing some years ago on an Ubuntu system. 

You can check if font-crating is really the problem if you open the
dvi-file in a shell and watch what happens:

$ xdvi foo.dvi

> 2.-- When I include graphics via EPS files in my documents then "View"
> wants to be nice to me and it runs dvips and pipes its output to ggv.  But
> this is not what I want and I find xdvi much more convenient when writing a
> document, it makes it so much easier to go back and forht to correct
> errors.  How can I force "View" to run xdvi with all the necessary
> parameters to allow forward and inverse search, yes I have "source
> specials" enabled?

Insert the following line to the local variables near the end of your
tex-file and re-open the file again:

%%% TeX-output-view-style: (("^dvi$" "." "xdvi -s 4 -watchfile 1 %dS %d"))

Maybe Emacs asks you if you really want to evaluate the line. Just say
yes. The '-s 4' is the initial zoom-factor, you can set it to another


Sven Bretfeld
      \ CEntrum für
CERES  \ REligionswissenschaftliche
Ruhr-Universität Bochum
Universitätsstraße 150
D-44780 Bochum

reply via email to

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