Apply a style in scribble

104 views Asked by At

I have the following style which should change the color to red (using color-property:

(define red
  (style #f
         (list (color-property "red"))))

How can I apply that style to a word in my text. Say I want WARNING!!! to appear in red.

1

There are 1 answers

0
Leif Andersen On BEST ANSWER

You can use elem to apply a style to a piece of text.

So, your text could look like this:

@elem[#:style red]{WARNING!!!} This is a warning.