[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] shell-escape
From: |
Ralf Angeli |
Subject: |
Re: [AUCTeX] shell-escape |
Date: |
Mon, 10 Oct 2005 16:40:24 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
* Ralf Stubner (2005-10-10) writes:
> On Sun, Oct 09, 2005 at 14:05 -0700, David Arnold wrote:
>> How do I pass shell-escape as an option when compiling a latex
>> document with auctex?
>
> Some time ago David suggested something like this to me after a similar
> request:
>
> (defun TeX-toggle-escape nil (interactive)
> (setq LaTeX-command
> (if (string= LaTeX-command "latex") "latex -shell-escape" "latex")))
This is not a general solution for it may fail if you customized
`LaTeX-command'. A more general approach could be to save the
original value of `LaTeX-command' in another variable and use
`string=' with that.
> (add-hook 'LaTeX-mode-hook
> '(lambda ()
> (define-key LaTeX-mode-map "\C-c\C-t\C-x" 'TeX-toggle-escape)))
Quoting `lambda' forms normally is unnecessary and prevents
byte-compilation (if done like above).
--
Ralf