Command/definehighlight

From Wiki
< Command
Revision as of 10:39, 16 June 2012 by Phg (talk | contribs) (initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\definehighlight

Syntax

\definehighlight[...][...,...=...,...]
[...] name
[...,...=...,...] see \setuphighlight


Description

Highlights are a generic facility for defining and maintaining different emphases.

\definehighlight [important]       [style=bold] %% define a highlight
\definehighlight [reallyimportant] [important]  %% inherit setups
\setuphighlight  [reallyimportant] [color=red]  %% modify the copy
\starttext
This \important{you} need to know.\par
This, however, \reallyimportant{everybody} needs to know!
\stoptext

Highlights are respected by the XML export, resulting in a tag highlight, with the respective names as Argument to the attribute detail.

<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/>
This, however, <highlight detail="reallyimportant">everybody</highlight> needs to know!
</document>

The functionality is implemented in core-sys.mkiv.


Help from ConTeXt-Mailinglist/Forum

All issues with: