ESS/AucTeX/Sweave integration

后端 未结 2 803
忘了有多久
忘了有多久 2021-02-09 08:44

I\'m using GNU/Linux distro (Arch, if that\'s relevant), Emacs v23.2.1, ESS v5.9 and AucTeX v11.86.

I want to setup AucTeX to recognize .Rnw fi

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-09 09:26

    That's two different questions.

    For the first one, my Debian R packages make sure that there is a soft link from the $RHOME/share/texmf/ directory into the TeX file system tree, e.g. as /usr/share/texmf/tex/latex/R.

    For the second question: dunno. I tend to run Sweave via a small shell script I crafted years ago even though I do all the editing in Emacs.

    Edit, a few months later: Use ESS, rather than AucTeX. Then M-n s (i.e Alt-n followed by s) runs the Sweave step and M-n P runs the LaTeX compilation, with a call to Bibtex if needed.

提交回复
热议问题