[racket-users] repeated code in interactions of scribble

2017-09-22 Thread Jos Koot
Hi, What would be the easiest way to avoid duplication of code in interactions within a scribble/manual document? I often place examples in such a document. In some of them I need the same auxiliary procedures. How to avoid duplicating them? The most nice solution would be the appearance of a hype

Re: [racket-users] tabular text display

2017-09-22 Thread Tony Garnock-Jones
Not yet parameterised or extracted for separate use, but: raco pkg install tabular https://github.com/tonyg/racket-tabular/blob/29e91c9475407da4c5bee03abc2e6043693b3ff6/tabular/main.rkt#L681-L765 Example output: Welcome to Racket v6.10.1.1. > (require (submod tabular test)) > (require tabula

Re: [racket-users] tabular text display

2017-09-22 Thread Laurent
There's something like that buried in my bazaar package, maybe it's sufficient for your needs: https://github.com/Metaxal/bazaar/blob/master/text-table.rkt The main submodule prints the examples. It provides two ways to output tables. The first one 'table->string' is the simplest one and the exam