Displaying 4 results from an estimated 4 matches for "lgrindef".
Did you mean:
lgrindefs
2000 Apr 26
1
Writing lgrindefs
Dear all,
I'm writing a lgrind definition for R. Lgrind is a program to produce
pretty program listings for inclusion in LaTeX documents. Does anybody
here have any experience with lgrindefs?
My definition now looks like this:
R:\
:pb=^\d?\p\d<-\dfunction\(\a\):\
:bb={:be=}:cb=\d#:ce=$sb=":se=\e":lb=':le=\e':id=.:\
:zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
:kw=while for in repeat if else switch break next\
return stop warning function:
Most of th...
2000 Apr 26
1
Writing lgrindefs
Dear all,
I'm writing a lgrind definition for R. Lgrind is a program to produce
pretty program listings for inclusion in LaTeX documents. Does anybody
here have any experience with lgrindefs?
My definition now looks like this:
R:\
:pb=^\d?\p\d<-\dfunction\(\a\):\
:bb={:be=}:cb=\d#:ce=$sb=":se=\e":lb=':le=\e':id=.:\
:zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
:kw=while for in repeat if else switch break next\
return stop warning function:
Most of th...
2005 Aug 22
1
An lgrind definition for the S language
...ant. You can use the
name of the language, or, where available, one of the synonyms in
parantheses. Thus the following are legal and mark Tcl/Tk, Pascal
and Fortran input, respectively:
lgrind -ltcl/tk ...
lgrind -lpaSCAL ...
lgrind -lf ...
The list of languages currently available in your lgrindef file:
Ada MLisp (Emacs Mock Lisp)
Asm SML/NJ (ML)
Asm68 Scheme (scm)
BASIC model
Batch (bat) Modula2 (mod2, m2)
C...
2000 May 01
6
including r code in a latex file
Dear R people,
The header practically says it all. I was wanting to include r code in a
Latex file. Since R code using{ and }, which are interpreted by Latex as
control characters, I would expect it to get upset.
I believe that \{ would probably print as {, but I hoping I don't have to
go through the code and add lots of \. I would rather use some global
commannd, along the lines of