[racket] scribble: colored text

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jan 16 07:31:51 EST 2013

At Tue, 15 Jan 2013 23:22:40 -0700, Jon Rafkind wrote:
> Is there a way to output colored text? Right now I only care about latex 
> output. Something like..
> 
> These words will appear in normal black but the next word will be 
> @blue-text{blue!}.


#lang scribble/base
@(require scribble/core)

@(define (blue-text . s)
  @elem[s #:style (style #f (list (color-property "blue")))])

This is @blue-text{blue}.


Posted on the users mailing list.