[plt-scheme] stupid SLaTeX question

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Wed Sep 29 21:35:51 EDT 2004

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


Posted on the users mailing list.