From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?iso-8859-1?Q?Reich=F6r?= Newsgroups: gmane.emacs.help Subject: Re: pdflatex short-cut keys Date: Mon, 19 Nov 2007 19:25:12 +0100 Message-ID: <87hcjixfcn.fsf@xsteve.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195497712 25261 80.91.229.12 (19 Nov 2007 18:41:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2007 18:41:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 19 19:41:49 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IuBYi-00072M-V4 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2007 19:41:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuBYV-0006Xi-Dw for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2007 13:41:11 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!nntpserver.com!zeus.nntpserver.com!10.1.1.41.MISMATCH!pfilter-v0.1!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:NryuhiStGkiqJpEDi38B9Xo9Npc= Original-Lines: 48 Original-NNTP-Posting-Date: 19 Nov 2007 17:34:43 GMT Original-X-Complaints-To: abuse@teranews.com X-Original-Lines: 45 Original-Xref: shelby.stanford.edu gnu.emacs.help:153918 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49349 Archived-At: Christian_Yale writes: > hi there, > > I want to have a short-cut key for running latex (under pdf mode) in > emacs22, then i do not need to click the icon (the lion one, where > appear 'Run LaTeX' if you put the mouse over it) for doing so. I put > the following in my .emacs file, but it did not work (i wanted to get > "ALT+t" to run latex): > > (list "pdfLaTeX" "pdflatex '\\nonstopmode\\input{%t}'" 'TeX-run-LaTeX > nil t) > > (global-set-key "\M-t" 'do-pdflatex) > (defun do-pdflatex () > "pdflatex the current file." > (interactive) > (TeX-command "pdfLaTeX" 'TeX-master-file)) > > but, is not working at all, I mean when i "ALT+t" appear a message (in > emacs) that says I use the following to generate specialized latex functions: (defun tex-build-command-function (cmd &optional recenter-output-buffer save-buffer override-confirm) "Build a TeX-command function." (` (lambda() (interactive) (when (, save-buffer) (save-buffer)) (when (, recenter-output-buffer) (TeX-recenter-output-buffer nil)) (TeX-command (, cmd) 'TeX-master-file (if (, override-confirm) 1 -1))))) (define-key LaTeX-mode-map [f6] (tex-build-command-function "LaTeX" nil t)) (define-key LaTeX-mode-map [(shift f6)] (tex-build-command-function "PdfLaTeX" t t)) (define-key LaTeX-mode-map [(super f6)] (tex-build-command-function "dviPS" t)) (when unixp (define-key LaTeX-mode-map [(meta f6)] (tex-build-command-function "dviPS" t))) (define-key LaTeX-mode-map [(super control f6)] (tex-build-command-function "dviPS landscape" t)) (define-key LaTeX-mode-map [(super meta f6)] (tex-build-command-function "PS2pdf" t)) (define-key LaTeX-mode-map [f8] (tex-build-command-function (if win32p "YAP" "View") nil)) (define-key LaTeX-mode-map [(super f8)] (tex-build-command-function "Ghostview" nil)) (define-key LaTeX-mode-map [(super meta f8)] (tex-build-command-function "View PDF" nil)) Stefan. -- Posted via a free Usenet account from http://www.teranews.com