ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* context sensitive highlight styles
@ 2017-08-16 15:47 Henning Hraban Ramm
  2017-08-16 16:09 ` Pablo Rodriguez
  2017-08-17 13:17 ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2017-08-16 15:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

In my current project, section titles are typeset in SansBold while the body text (and that of the ToC) is roman.

How can I define \definehighlight[emph], so that I get SansBoldItalic in titles and SerifItalic in body text and ToC? (Body text is not a problem.)

MNWE:

\setuphead[chapter][page=yes,style={\ss\bfc}]
\setuphead[section][page=no,style={\ss\bfa}]
\definehighlight[emph][style=\it]

\starttext

\completecontent

\startchapter[title={My book \emph{\ConTeXt\ for Runaways}}]

\startsection[title={Knuth, \emph{the professor}}]
\input knuth
\stopsection

\stopchapter

\stoptext


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-17 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 15:47 context sensitive highlight styles Henning Hraban Ramm
2017-08-16 16:09 ` Pablo Rodriguez
2017-08-17 13:06   ` Henning Hraban Ramm
2017-08-17 13:17 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).