help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: File variables in tex-site.el


From: Piet van Oostrum
Subject: Re: File variables in tex-site.el
Date: 02 May 2003 12:44:32 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Ulrich Dirr" <ud@art-satz.de> (UD) wrote:

UD> Piet van Oostrum wrote:
>> Actually the View command itself determines what kind of file was
>> produced and can be parameterized to do the proper thing to open the
>> file.

UD> Could you please give me some concrete hints ('... can be
UD> parameterized')?

(defcustom TeX-output-view-style
  '(("^dvi$" ("^a5$" "^landscape$") "xdvi \"%d\" -paper a5r -s 4")
    ("^dvi$" "^a5$" "xdvi \"%d\" -paper a5")
    ("^dvi$" ("^landscape$" "^pstricks$\\|^psfrag$")
                        "dvips -t landscape -f \"%d\" | gv")
    ("^dvi$" "^landscape$" "xdvi \"%d\" -paper a4r -s 4")
    ("^dvi$" "^pstricks$\\|^psfrag$" "dvips -f \"%d\" | gv")
    ("^dvi$" "." "xdvi \"%d\"")
    ("^pdf$" "^landscape$" "xpdf -papertype a4r \"%o\"")
    ("^pdf$" "." "xpdf \"%o\"")
    ("^html?$" "." "netscape \"%o\""))
  "List of output file extensions and view options.

So this tells that if you generated a .dvi file it views with xdvi, but if
you generated a .pdf file, it views with xpdf. And then as you can see it
is also parameterized with options and packages.

If you use LaTeX PDF rather than LaTeX it knows that the output file was
.pdf rather than .dvi. 

Please note that this is still not fixed in stone, i.e. we might come up
with a more flexible and easier to use system if someone has a bright
idea. For example the options and packages now easily lead to a
combinatorial explosion. So an easier system to build up the commands from
parts might be preferable.
-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum@hccnet.nl


reply via email to

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