[ESS] ess and AUCTeX

Vitalie Spinu spinuvit at gmail.com
Thu Jan 17 20:36:05 CET 2013


  >> Oliver Jones <ojones at wiwi.uni-bielefeld.de>
  >> on Thu, 17 Jan 2013 20:19:38 +0100 wrote:

  > Hi everyone,

  > searching the archives for help relating integration of ess and AUCTeX I found
  > this interesting post:
  > http://article.gmane.org/gmane.emacs.ess.general/4960It's quit old but I have the same problem, i.e.

  > In ess M-n s works fine but I'm not satisfied with the acrobat reader as the
  > default viewer after M-n P.

The default is machine dependent. Customize ess-pdf-viewer-pref for your
needs.

If SumatraPDF is a common viewer we can include it in the list of
checked viewers; currently:

   ╭──────── #381 ─ /home/vitoshka/ESS/git/lisp/ess.el ──
   │                     ;;      (executable-find ess-pdf-viewer-pref))
   │                     (executable-find "evince")
   │                     (executable-find "kpdf")
   │                     (executable-find "okular")
   │                     (executable-find "xpdf")
   │                     (executable-find "acroread")
   │                     (executable-find "xdg-open")
   │                     ;; this one is wrongly wrong, (ok for time being as it is use donly in swv)
   │                     (car (ess-get-words-from-vector
   │                           "getOption(\"pdfviewer\")\n"))
   ╰──────── #390 ─
   
HTH, 

    Vitalie


  > In AUCTeX I got SumatraPDF as my viewer for the usual reasons (inverse and forward search).

  > After clicking Noweb -> Sweaving, Tangling, ... -> AUCTeX Interface I can use
  > C-c C-c Sweave RET
  > but I get the following error message:
  > Running `Sweave' on `Loesung_07' with ``R CMD Sweave "Loesung_07.Rnw"''
  > The Command "R" is either misspelled or couldn't be found.

  > (where I translated the error message into English)

  > I can't imagine that there is no solution, since Sweave-ing and LaTeX-ing with
  > emacs, AUCTeX and ess should be standard procedure for a lot of people. Or am I
  > wrong?

  > Best
  > Oliver



More information about the ESS-help mailing list