At Mon, 5 Sep 2011 14:56:11 -0400, Ismael Figueroa Palet wrote:
> I want to typeset a macro in slideshow, and I did something like this:
> 
> (slide
>  #:title "Title"
>  (typeset-code
>   #'(define-syntax A
>       (syntax-rules ()
>         ((A s ...) s)))))
> 
> but I get the error: "syntax: no pattern variables before ellipses in
> template in: ..."
> 
> is it possible to typeset? how should it be done?

You can use `quote-syntax' instead of #' or `syntax', but I would use
the `code' form:

 (slide
  #:title "Title"
  (code
   (define-syntax A
     (syntax-rules ()
       [(A s ...) s]))))


[I'll try to change the `slideshow/code' docs to reverse the order of
`code' and `typeset-code'.]

_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to