Math & ScienceSweave Soutput environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
cullisb
Posts: 1
Joined: Thu Aug 06, 2009 10:24 am

Sweave Soutput environment

Post by cullisb »

Dear Users
I have created a *.tex file from Sweave package in R. The Sweave.sty defines a verbatim environment as follows
\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl}
\DefineVerbatimEnvironment{Soutput}{Verbatim}{}
\DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl}

My problem is that Emacs doesnt seem to recognize the environment as a verbatim environment and so special characters like '$' are not protected. Any clues to work around wqould be great!cullisb
(PS also sent this to the Auctex list as I am not sure where is the best for this problem)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: Sweave Soutput environment

Post by phi »

AucTeX has a variable "LaTeX-verbatim-environments" that you may customize.
Post Reply