Well, thanks to both Ryan C and Ryan K. Sorry for my confusion. Best wishes, Jos Koot
From: Ryan Kramer Sent: 14 June 2020 02:20 To: Racket Users Subject: Re: [racket-users] Re: local variables arehyperlinkedinscribble/manual 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] 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. -- 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/5ee6a08b.1c69fb81.acbb0.1753%40mx.google.com.

