It works now, thanks!<br><br><div class="gmail_quote">2011/9/5 Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">At Mon, 5 Sep 2011 14:56:11 -0400, Ismael Figueroa Palet wrote:<br>
> I want to typeset a macro in slideshow, and I did something like this:<br>
><br>
> (slide<br>
> #:title "Title"<br>
> (typeset-code<br>
> #'(define-syntax A<br>
> (syntax-rules ()<br>
> ((A s ...) s)))))<br>
><br>
> but I get the error: "syntax: no pattern variables before ellipses in<br>
> template in: ..."<br>
><br>
> is it possible to typeset? how should it be done?<br>
<br>
</div></div>You can use `quote-syntax' instead of #' or `syntax', but I would use<br>
the `code' form:<br>
<br>
(slide<br>
#:title "Title"<br>
<div class="im"> (code<br>
(define-syntax A<br>
(syntax-rules ()<br>
</div> [(A s ...) s]))))<br>
<br>
<br>
[I'll try to change the `slideshow/code' docs to reverse the order of<br>
`code' and `typeset-code'.]<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Ismael<br><br>