Re: [racket] scribble: @verbatim inside macro

2011-11-24 Thread Matthew Flatt
A `@para{ ... @verbatim[]}' doesn't work because `verbatim' generates a block, which is at the same level as a paragraph and cannot appear within a paragraph. Using `begin' works at the top level, since it splices the two blocks into the top-level flow. Using `list' would work more generally, such

Re: [racket] scribble: @verbatim inside macro

2011-11-23 Thread Jon Rafkind
This hack works for now: @(define-syntax-rule (my-example stuff) (begin @para{An example} (verbatim stuff))) On 11/23/2011 12:26 PM, Jon Rafkind wrote: I want to write a macro in scribble that will output a `verbatim' but I keep getting an error about 'expected pre-content? got #'. W

[racket] scribble: @verbatim inside macro

2011-11-23 Thread Jon Rafkind
I want to write a macro in scribble that will output a `verbatim' but I keep getting an error about 'expected pre-content? got #'. What should I do in the macro so that I can output verbatim? I tried various things other than `para' but none seem to work. @(define-syntax-rule (my-example stuff