auctex
[Top][All Lists]
Advanced

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

[AUCTeX] TeX-command-list, a follow up


From: gerald . jean
Subject: [AUCTeX] TeX-command-list, a follow up
Date: Fri, 7 Mar 2008 09:45:07 -0500

Helle there,

a little while ago I posted a message regarding the use of TeX-command-list
so "ps2pdf" would be available in TeX-command-list..  Ralf helped me with
that and it is now working fine, thanks Ralf.

I also had a question regarding GhosScript.   In old versions of Auctex I
had the following in my dotemacs file and it worked:

(defun do-PSview ()
   "PSview the curent file."
   (interactive)
   (TeX-command "Print" 'TeX-master-file))

(global-set-key [(control f8)] 'do-PSview)        ; GSview the current file

The ONLY way I found to get this to work with Auctex 11.84 is to change the
TeX-print-command in tex-mik.el as follows.

(unless (get 'TeX-print-command 'saved-value)
  (setq TeX-print-command
      "gsview32 %f"))

What I don't like about this approach is that the next time I upgrade
Auctex I'll have to go back in tex-mik.el to do the change again.  My
memory isn't good enough to remember those little things, there must be a
better way?

I can also put the follwing in my dotemacs file:

(eval-after-load "tex"
  '(add-to-list 'TeX-command-list
                         '("GSview" "gsview32 %f" TeX-run-command t t) t))

and have the command added to the command menu BUT I don't like to use
menus when it is possible to avoid them.  Is there a way to have the best
of both worlds?

Thanks,

Gérald Jean
Conseiller senior en statistiques, Actuariat
télephone            : (418) 835-4900 poste (7639)
télecopieur          : (418) 835-6657
courrier électronique: address@hidden

"In God we trust, all others must bring data"  W. Edwards Deming

Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés 
uniquement aux personnes identifiées et peuvent contenir des informations
privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez reçu 
ce message par erreur, veuillez le détruire.

This communication (and/or the attachments) is intended for named recipients 
only and may contain privileged or confidential information which is not
to be disclosed. If you received this communication by mistake please destroy 
all copies.






reply via email to

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