That was actually Ryan Culpepper. Sorry for the noise, but I can't 
implicitly take credit for something that I didn't do.

By the way, thank you Ryan C for both of those techniques. I've already 
happily used `make-element-id-transformer`

On Saturday, June 13, 2020 at 4:07:06 PM UTC-5, jos.koot wrote:
>
> [email protected] <javascript:> gave me a clear and usable answer.
>
> His email follows below.
>
> Best wishes, Jos
>
>  
>
>  
>
>  
>
> From Ryan Kramer
>
> You can also use make-element-id-transformer, like this:
>
>  
>
>     (define-syntax SET
>       (make-element-id-transformer
>        (lambda _ #'(racketvarfont "set"))))
>
>  
>
> Then Scribble will automatically replace SET within rendered code with the 
> element expression above.
>
>  
>
> Another trick is to break the for-label binding by introducing a local 
> binding that shadows it. For example, if you write
>
>
>     (let ([set #f])
>       (racket set))
>
>  
>
> then the occurrence of `set` within the `racket` form isn't linked to 
> `set` from racket/set. This trick relies on being able to put a let around 
> the occurrences you don't want linked but not the ones that you do want 
> linked, so it might not work in all cases.
>
>  
>
> Ryan
>
>  
>
>  
>
>  
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/f7162464-1d7b-4113-8883-03f022f0cf5fo%40googlegroups.com.

Reply via email to