auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Getting AucTeX to start "acroread".


From: gerald . jean
Subject: Re: [AUCTeX] Getting AucTeX to start "acroread".
Date: Thu, 25 Mar 2010 10:23:17 -0400

Hello all,

Ralf Angeli <address@hidden> a écrit sur 2010/03/23 13:18:33 :

> * gerald jean (2010-03-23) writes:
>
> > These work just fine, I am now trying to add a command to start
"acroread"
> > from the Command menu.
>
> Is there a reason you don't customize and use the View command as
> described in (info "(auctex)Starting Viewers")?
>
"The" reason why I don't go that route is that I don't understand how to do
it, i.e. how to modify, or add, commands through customize.  Further more I
don't produce pdf directly, I go the latex ---> dvips ---> ps2pdf route.
Hence the dvi and ps files are already in the directory.  In fact I mostly
use .ps outputs but for this particular project, a presentation using
powerdot, GSView and/or Ghostscript don't like the postscript file, they
tell me it is not a valid postscript file but, once converted to pdf,
acroread has no problem with it.  I use acroread because xpdf is not
installed on the machine I use and I am not the admin.

I ended up using the following:

(eval-after-load "tex"
  '(add-to-list 'TeX-command-list
            '("Acroread" "acroread %s.pdf" TeX-run-command t t) t))
 (global-set-key [(control f4)] 'do-Acroread)
 (defun do-Acroread ()
    "Start acroread PDF viewer on the curent file."
    (interactive)
    (TeX-command "Acroread" 'TeX-master-file))

It works fine.  If it could be improved I am very open to suggestions.
> --
> Ralf

Gérald Jean
Conseiller senior en statistiques,
VP Planification et Développement des Marchés,
Desjardins Groupe d'Assurances Générales
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.




Faites bonne impression et imprimez seulement au besoin !
Think green before you print !

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]