Difference between revisions of "Command/setuphighlight"

From Wiki
Jump to navigation Jump to search
(cleanup)
 
Line 6: Line 6:
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>setuphighlight</syntax>
 
<syntax>setuphighlight</syntax>
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
  <tr>
 
    <td colspan="2" class="cmd">\setuphighlight<span class="first" style="color:red;">[...]</span></td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Command/keyword:style|style]]</td>
 
    <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small...|small...]] [[Command/value:command|command]] </td>
 
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Command/keyword:color|color]]</td>
 
    <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
  </tr>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
Line 29: Line 13:
 
== Example ==
 
== Example ==
  
<texcode>
+
<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
  
\setupbackend [export=yes]
 
 
\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
</texcode>
+
</context>
  
 
== See also ==
 
== See also ==

Latest revision as of 10:35, 19 June 2020

\setuphighlight

Syntax (autogenerated)

\setuphighlight[...,...][...=...,...]
[...,...]name
commandyes no
stylestyle command
colorcolor


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

Help from ConTeXt-Mailinglist/Forum

All issues with: