From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ulrich Dirr" Newsgroups: gmane.emacs.help Subject: Re: File variables in tex-site.el Date: Thu, 1 May 2003 10:09:37 +0200 Organization: 1&1 Internet AG 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="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051776617 8052 80.91.224.249 (1 May 2003 08:10:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 May 2003 08:10:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 01 10:10:12 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 19B98t-00025e-00 for ; Thu, 01 May 2003 10:10:12 +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 19B995-0003U1-01 for gnu-help-gnu-emacs@m.gmane.org; Thu, 01 May 2003 04:10:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: p508022a4.dip0.t-ipconnect.de Original-X-Trace: online.de 1051776579 18331 80.128.34.164 (1 May 2003 08:09:39 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Thu, 1 May 2003 08:09:39 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-Xref: shelby.stanford.edu gnu.emacs.help:112613 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:9110 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9110 David Kastrup wrote: > "Ulrich Dirr" writes: > >> I'm wondering what all the file variables mean (%t, %f, %s, etc.). >> I would like to customize the list shown below. Where can I find an >> explanation what variables exist and what's their meaning? >> >> ;; The fpTeX commands. >> (setq TeX-command-list >> (list (list "TeX" "tex \\nonstopmode\\input %t" 'TeX-run-TeX nil t) >> (list "LaTeX" "%l \\nonstopmode\\input{%t}" 'TeX-run-LaTeX nil t) >> (list "LaTeX PDF" "pdflatex \\nonstopmode\\input{%t}" 'TeX-run-LaTeX >> nil t) >> (list "eLaTeX PDF" "pdfelatex \\nonstopmode\\input{%t}" >> 'TeX-run-LaTeX nil t) >> (list "View" "%v" 'TeX-run-command t nil) >> (list "View PS" "gsview32 %f" 'TeX-run-command t nil) >> (list "View PDF" "start %s.pdf" 'TeX-run-command t nil) >> (list "Print" "dvips %d" 'TeX-run-command t nil) >> (list "File" "dvips %d -o %f " 'TeX-run-command t nil) >> (list "BibTeX" "bibtex %s" 'TeX-run-BibTeX nil nil) >> (list "Index" "makeindex %s" 'TeX-run-command nil t) >> (list "Check" "lacheck %s" 'TeX-run-compile nil t) >> (list "Spell" "" 'TeX-run-ispell-on-document nil nil) >> (list "Makeinfo" "makeinfo %t" 'TeX-run-compile nil t) >> (list "AmSTeX" "amstex \\nonstopmode\\input{%t}" 'TeX-run-TeX nil t) >> (list "Other" "" 'TeX-run-command t t))) > > Oh shit. _That's_ the reason why your stuff does not work > intuitively with PDFLaTeX now. Please take a look at the settings of > this variable in tex.el, change fptex.el accordingly and submit a > patch. I am afraid that fptex.el has fallen behind times. Perhaps > one should let the code in fptex.el rather just modify those settings > in tex.el that are relevant. We need an fptex.el maintainer, > obviously. I don't think that any of the current developers of > AUCTeX actually uses Windows. I looked at tex.el and changed, e.g., (list "eLaTeX PDF" "pdfelatex \"\\nonstopmode\\input{%t}\"" 'TeX-run-TeX nil t) accordingly. But I still don't understand what's the difference in behavior (ok, now I'll save some keystrokes). I still have to type C-c C-c after successfully compiling to view the file; getting 'Command: (default View)'; changing it to 'View PDF'; RET; etc. Just to recall: I want to invoke PDFeLaTeX and when compiling was successful automatically invoke 'View PDF' without any key to be pressed. And of course it would be a nice feature if Emacs could close any PDF document in Acrobat(Reader) before compiling (because Acrobat blocks the file) and changing to Acrobat if all above was successfully done. Then work/compile-cycles would be really economic and could save really much time especially on bigger projects when finetuning requires many corrections (with recompiling), don't you think so? Probably there's still something wrong, isn't it? Best regards, Ulrich Dirr P.S. I don't think I'm the person who can change fptex.el correctly and write a patch. I probably would make more errors than corrections ...