Re: [racket-users] Scribbling hexadecimal values

2020-09-19 Thread Robby Findler
I don't have any good hints but the reader supplies span information that can be used to disambiguate the original versions of some things (notably "#t" vs "#true"). I doubt this is enough for numbers in any general sense but following the path of actually carrying more information from the reader

Re: [racket-users] Scribbling hexadecimal values

2020-09-19 Thread Dominik Pantůček
Hi Eric, thank you. Actually I was already using unsyntax for putting the default values in optional arguments list and didn't recognize that I can use anything from the scribble API at that point. Now the formatting of default values is simple and yields expected results. In my case: (() ((ar

Re: [racket-users] Scribbling hexadecimal values

2020-09-18 Thread Eric Griffis
Hi Dominik, If you put the hex number in a string, many of the formatting functions in the Scribble manual, section 4.2.1.4 will work: (proc-doc/names name (->* () (integer?) void?) (() ((argument #,(racketvalfont "#x1f" @{ some description })) Eric On Fri, Sep 18, 2020 a

Re: [racket-users] Scribbling hexadecimal values

2020-09-18 Thread William J. Bowman
Same but also binary values "#b...". I think I've been using @code{} to get these to render right, but this doesn't work in all contexts. On Fri, Sep 18, 2020 at 02:36:53PM -0400, Ben Greenman wrote: > +1 > > For now, I've used hacks like `(string->number "#x...")` for typesetting > https://docs.

Re: [racket-users] Scribbling hexadecimal values

2020-09-18 Thread Ben Greenman
+1 For now, I've used hacks like `(string->number "#x...")` for typesetting https://docs.racket-lang.org/pict-abbrevs/index.html On 9/18/20, Dominik Pantůček wrote: > Hello Racketeers, > > I am struggling to make scribble typeset default values in > proc-doc/names in hexadecimal. An example woul