[plt-scheme] [scribble] syntax quasi/unquote

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Apr 28 21:43:38 EDT 2010

At Wed, 28 Apr 2010 20:18:41 -0400, Eric Tanter wrote:
> I know that I can use @SCHEMEBLOCK to render scheme code that uses #` and #, 
> (in macros).
> 
> However, I'm not able to render text @SCHEME[`#] or @SCHEME[#,]. Why is that?

They're not complete S-expressions, so it's like trying @scheme["a].
You'll have to use something like @schememetafont{#,}.

> Also, there doesn't seem to be a @SCHEMEBLOCK+eval or @DEF+int, so I don't 
> know how to have that code evaluated (and typeset as @SCHEMEBLOCK does)

Probably we should add those variants. Meanwhile, you can use
`eval:alts' to separate the typeset expression from the evaluated
expression. Then, for the typeset part, escape to use SCHEME:

 @interaction[
  (eval:alts @#,SCHEME[#`(#,10)] #`(#,10))
 ]



Posted on the users mailing list.