From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Piet van Oostrum Newsgroups: gmane.emacs.help Subject: Re: File variables in tex-site.el Date: 02 May 2003 12:44:32 +0200 Organization: Dept of Computer Science, Utrecht University, The Netherlands Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051897693 26819 80.91.224.249 (2 May 2003 17:48:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 2 May 2003 17:48:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 02 19:48:11 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Bedn-0006yO-00 for ; Fri, 02 May 2003 19:48:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19BebO-0002hf-03 for gnu-help-gnu-emacs@m.gmane.org; Fri, 02 May 2003 13:45:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!news.wind.surfnet.nl!news.nl.linux.org!humbolt.nl.linux.org!phil.uu.nl!cs.uu.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: modena.cs.uu.nl Original-X-Trace: june.cs.uu.nl 1051897007 26829 131.211.80.35 (2 May 2003 17:36:47 GMT) Original-X-Complaints-To: news@cs.uu.nl Original-NNTP-Posting-Date: Fri, 2 May 2003 17:36:47 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:112665 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9161 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9161 >>>>> "Ulrich Dirr" (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 URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum@hccnet.nl