Difference between revisions of "Command/setuphighlight"
< Command
Jump to navigation
Jump to search
m (Categories Fonts, MkIV only) |
(cleanup) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
− | == [[Help:Reference|Syntax]] == | + | == [[Help:Reference|Syntax]] (autogenerated) == |
− | < | + | <syntax>setuphighlight</syntax> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
== Description == | == Description == | ||
Line 26: | Line 13: | ||
== Example == | == Example == | ||
− | < | + | <context source="yes" text="produces"> |
\definehighlight [important] [style=bold] %% define a highlight | \definehighlight [important] [style=bold] %% define a highlight | ||
\definehighlight [reallyimportant] [important] %% inherit setups | \definehighlight [reallyimportant] [important] %% inherit setups | ||
\setuphighlight [reallyimportant] [color=red] %% modify the copy | \setuphighlight [reallyimportant] [color=red] %% modify the copy | ||
− | |||
\starttext | \starttext | ||
+ | \startTEXpage | ||
This \important{you} need to know.\par | This \important{you} need to know.\par | ||
This, however, \reallyimportant{everybody} needs to know! | This, however, \reallyimportant{everybody} needs to know! | ||
− | + | \stopTEXpage | |
\stoptext | \stoptext | ||
− | </ | + | </context> |
== See also == | == See also == |
Latest revision as of 10:35, 19 June 2020
\setuphighlight
Syntax (autogenerated)
\setuphighlight[...,...][...=...,...] | |
[...,...] | name |
command | yes no |
style | style command |
color | color |
Description
Allows customization of macros defined by \definehighlight.
Example
\definehighlight [important] [style=bold] %% define a highlight \definehighlight [reallyimportant] [important] %% inherit setups \setuphighlight [reallyimportant] [color=red] %% modify the copy \starttext \startTEXpage This \important{you} need to know.\par This, however, \reallyimportant{everybody} needs to know! \stopTEXpage \stoptext
produces
See also
- \definehighlight
- \installstyleandcolorhandler / mult-aux.mkiv
- \definestartstop
- \setupbackend
- core-sys.mkiv
Help from ConTeXt-Mailinglist/Forum
All issues with: