I'm a scribble/lp2 noob for sure, but why not eliminate the need for 
`code:comment` within a `chunk`?

Because I find this curious: when the `chunk` is typeset in documentation mode, 
scribble/lp2 is apparently parsing the comments, because they get converted to 
whitespace. So ... instead of converting them to whitespace, why not just 
typeset them literally? 

Noob question complete


On Dec 22, 2015, at 2:45 PM, Asumu Takikawa <as...@ccs.neu.edu> wrote:

> On 2015-12-18 12:20:13 -0800, Matthew Butterick wrote:
>> Third try: also tried scribble/comment-reader [2] but this doesn't work
>> (apparently because `racketblock` knows about `code:comment` but `chunk` does
>> not:
> 
> I think things like `code:comment` are intended to work, but don't because 
> they're
> not bound to anything within chunk blocks. For example, this works:
> 
>  #lang scribble/lp2
> 
>  @chunk[prologue
>         (define code:comment 3)]
> 
>  @CHUNK[<*>
>         prologue
>         (define (f x) ; not g
>           (code:comment "foo")
>           (* x x))]  
> 
> But this typesets the silly definition of `code:comment` too. Maybe the
> scribble/lp2 language should bind these forms in chunk blocks. (UNSYNTAX
> doesn't work for the same reason)
> 
> Cheers,
> Asumu

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to