Apply a style in scribble

点点圈 提交于 2019-12-11 10:42:55

问题


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:


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.


来源:https://stackoverflow.com/questions/35301596/apply-a-style-in-scribble

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!