1

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.

Leif Andersen
  • 21,580
  • 20
  • 67
  • 100

1 Answers1

1

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.
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100