Skip to content

Document R sourcecode with Tex

3 messages · Winfried Theis, Daniel Hoppe, Brian Ripley

#
Hi!
On 13-Aug-02 Daniel Hoppe wrote:
There are several ways. One is to simply use fancyverbatim to include the
sourcecode into the TeX-file, or a bit more sophisticated you may use the
listings to do the same since there is a definition for R included in the
distribution, though I must apologise for not updating it in quite a long
time... Listings prints functions in a different font than variables and
comments as well. Furthermore it has many interesting features for displaying
sourcecode. 

So long,

Winfried


---------------------------------------------------------------------
E-Mail: Winfried Theis <theis at statistik.uni-dortmund.de>
Date: 13-Aug-02

Dipl.-Math. Winfried Theis
SFB 475, Fachbereich Statistik, Universit"at Dortmund, 44221 Dortmund
Tel.: +49-231-755-5903 FAX: +49-231-755-4387
----------------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Hi,

I'm actually afraid that this is a RTFM question - I read the manual but
didn't find anything yet... I'm looking for a way to document R sourcecode
in my thesis. Does anyone know of a tool or function which can convert or
export R sourcecode to Tex? 

Thanks for any hints!

Best Regards,

Daniel

<<<<<<<<<<<<<<<<<<<<<<<<<<<
sitewaerts GmbH
Hebelstra?e 15
D-76133 Karlsruhe

Tel: +49 (721) 920 918 0
Fax: +49 (721) 920 918 29
http://www.sitewaerts.de
Der Inhalt dieser E-Mail ist vertraulich und ausschlie?lich f?r den
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, da?
jede Form der Kenntnisnahme, Ver?ffentlichung, Vervielf?ltigung oder
Weitergabe des Inhalts dieser E-Mail unzul?ssig ist. Wir bitten Sie, sich in
diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. Aussagen
gegen?ber dem Adressaten unterliegen den Regelungen des zugrundeliegenden
Angebotes bzw. Auftrags, insbesondere den Allgemeinen Auftragsbedingungen
und der individuellen Haftungsvereinbarung. Der Inhalt der E-Mail ist nur
rechtsverbindlich, wenn er unsererseits durch einen Brief entsprechend
best?tigt wird.


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
People who write S/R books and manuals normally use a verbatim environment,
either \begin{verbatim} or some variation thereon.  Take a look at
Rd.sty to see how the reference manual is done (it uses verbatim).
On Tue, 13 Aug 2002, Daniel Hoppe wrote: