[plt-scheme] stupid SLaTeX question
Doug Orleans wrote:
> It would be cool if it could figure out bound variables automatically,
> but I guess that's non-trivial. Thought it should be possible, as
> long as it knows about the necessary syntax bindings.
I have long wished it would do that. But I often find myself
typesetting code *fragments* (for instance, in PLAI, I split up an
interpreter and present groups of cases together).
In principle, it would be possible to tell the tool which environment
you're in (ie, SLaTeX would provide two new commands:
\setEnvironment
and
\begin{schemedisplayInEnv}{env}
...
\end{schemedisplayInEnv}
But I can imagine Dorai might flinch at having to implement such a
feature.
Furthermore, I have sometimes typeset code that doesn't even match the
syntax of Scheme, or even failed to have matching parentheses.
Shriram