Skip to content

Sweave: How can I include S input in paragraph mode

2 messages · Ross Darnell, Friedrich Leisch

#
Sweavers

As the title suggests I would appreciate any help to include S code in
ordinary paragraph mode. I can use the textsl font but is isn't the
same.

Thanks

Ross Darnell
#
> Sweavers
  > As the title suggests I would appreciate any help to include S code in
  > ordinary paragraph mode. I can use the textsl font but is isn't the
  > same.

You can always renew the Sinput and Soutput environments to whatever
you like. Sweave.sty provides a default setting, but you are free to
modify them as you like. E.g., for slides I redefine them such that
input and output have different colors.

HTH,