Re: [racket-users] Calling function with Scribble text as argument(s)

2019-07-30 Thread Hendrik Boom
On Tue, Jul 30, 2019 at 04:04:38PM -0400, Ben Greenman wrote: > > Now for the next problem. If I @include-section, an occurrence of > > redtext in the included section is recognised as an unbound identifier. > > Evidently I need to say something to get included sections to inherit > > bindings fro

Re: [racket-users] Calling function with Scribble text as argument(s)

2019-07-30 Thread Ben Greenman
> Now for the next problem. If I @include-section, an occurrence of > redtext in the included section is recognised as an unbound identifier. > Evidently I need to say something to get included sections to inherit > bindings fro the main file. `include-section` is much closer to Racket's `require

Re: [racket-users] Calling function with Scribble text as argument(s)

2019-07-30 Thread Hendrik Boom
On Tue, Jul 30, 2019 at 08:08:39PM +0200, Jens Axel Søgaard wrote: > Den tir. 30. jul. 2019 kl. 19.02 skrev Hendrik Boom >: > > > I've found this as an example for getting coloured text: > > > > #lang scribble/base > > > > @(require scribble/core) > > > > @(define (colorize #:color c

Re: [racket-users] Calling function with Scribble text as argument(s)

2019-07-30 Thread Jens Axel Søgaard
Den tir. 30. jul. 2019 kl. 19.02 skrev Hendrik Boom : > I've found this as an example for getting coloured text: > > #lang scribble/base > > @(require scribble/core) > > @(define (colorize #:color c . content) > (elem #:style (style #f (list (color-property c))) >

[racket-users] Calling function with Scribble text as argument(s)

2019-07-30 Thread Hendrik Boom
I've found this as an example for getting coloured text: #lang scribble/base @(require scribble/core) @(define (colorize #:color c . content) (elem #:style (style #f (list (color-property c))) content)) @colorize[#:color "red"]{WARNING} But what if you wa