Changes

Jump to navigation Jump to search
no edit summary
</tr>
</table>
 
== Description ==
(MkIV only)
''Highlights'' are a generic facility for defining and maintaining
different emphases.
 Highlights are respected by the XML export (see {{cmd|setupbackend}}),resulting in a tag {{code|highlight}}, with the respective names asargument to the attribute ''detail''. == Example == <texcodecontext source=yes mode=mkiv>
\definehighlight [important] [style=bold] %% define a highlight
\definehighlight [reallyimportant] [important] %% inherit setups
This, however, \reallyimportant{everybody} needs to know!
\stoptext
</texcodecontext>Highlights are respected by the[[Command/setupbackend|XML export]],resulting in a tag <code>highlight</code>, with the respective names asArgument to the attribute ''detail''.
<xmlcode>
<document language="en" file="example-highlight" date="Sat Jun 16 12:20:48 2012" context="2012.06.13 23:46" version="0.30" xmlns:m="http://www.w3.org/1998/Math/MathML">
This <highlight detail="important">you</highlight> need to know.
<break/>
</document>
</xmlcode>
The functionality is implemented in
[http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/core-sys.mkiv#l197 core-sys.mkiv].
== See Also ==
 
* {{cmd|highlight}}
* {{src|core-sys.mkiv#l197|core-sys.mkiv}}
== Help from ConTeXt-Mailinglist/Forum ==
[[Category:Commands|definehighlight]]
[[Category:Commands|MkIV only]]

Navigation menu