auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Extraneous double quotes in command


From: Alan Ristow
Subject: [AUCTeX] Extraneous double quotes in command
Date: Thu, 22 Feb 2007 18:17:01 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0

Hi,

I'm trying to add a ps2pdf command to my TeX-command-list and having some difficulty. I know that the answer must be relatively simple, but I seem to be rather thick-headed when it comes to parsing and understanding the Emacs Lisp manual, as I'm just not able to figure it out. I'm using Windows XP and the precompiled Emacs/AUCTeX bundle dated 2007-01-26.

I've defined my ps2pdf command like this in my .emacs file:

--------------
;; Setup additional commands
(setq alan-tex-commands-extra
      (list
(list "ps2pdf" "ps2pdf %s.ps && start %s.pdf" 'TeX-run-command nil t :help "Generate PDF file")
))

;; Add the new commands to the command list
(require 'tex); need this to define TeX-command-list
(setq TeX-command-list (append TeX-command-list alan-tex-commands-extra))
--------------

The first question, I suppose, is whether the way I've done this is good practice. It generates a PDF file just fine, so I know it works, I just don't know if this is the best way to go about it.

Second, while it generates a PDF file just fine, it fails to open it. It's easy to see why if you look at the actual command that AUCTeX generates when I convert a file called test.ps:

ps2pdf "test".ps && start "test".pdf

Ghostscript apparently can handle "test".ps as an input file name, but start cannot, presumably because it is not a legal filename in Windows. With the double quotes present, it simply doesn't find the file. Is there any way to write my .emacs file such that the double quotes will not appear?

Thanks for the help, and apologies if I'm being a dimwit.

Alan





reply via email to

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