set-text-color
set-text-color: color -> context -> context
Argument:
color : 変更したい色
たとえば、引数を赤色で印字するインラインコマンド \text-red は次のように定義できます。
code:satysfi
@require: color
let-inline ctx \text-red it =
let ctx = ctx |> set-text-color Color.red in
read-inline ctx it
本文中でこんなふうに使います:
code:satysfi
あああ\text-red{ここだけ赤色になる}いいい