[plt-scheme] In-line LaTeX in REPL
Hi All,
First of all: This is brilliant.
Second:
A small observation: At first the shell that DrScheme starts couldn't find
any of pdflatex, convert, and gs since they weren't on the path.
(I normally use spotlight to start DrScheme)
Starting DrScheme from a terminal solves all of this.
Last, but most importantly:
I saved Eli's version in latex.ss
> #reader scribble/reader
> #lang scheme
> (require scheme/system scheme/gui/base)
>
...
> ;; Examples
> @latex{\sum_{i=0}^{\infty}\lambda_i}
> (let ([self @str{\lambda x . x x}])
> @latex{(@self) (@self)})
>
And the I run them I get nice formulas in the REPL.
But! If I enter the following in the REPL
(let ([self @str{\lambda x . x x}])
@latex{(@self) (@self)})
I get the following error from the reader:
read: illegal use of `.'
Should the REPL of the module language use the reader
specified in the source file?
--
Jens Axel Søgaard