Document R sourcecode with Tex
Hi!
On 13-Aug-02 Daniel Hoppe wrote:
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?
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._