From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98851 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: context sensitive highlight styles Date: Thu, 17 Aug 2017 15:17:40 +0200 Message-ID: <59959774.7080400@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1728743817990877887==" X-Trace: blaine.gmane.org 1502975902 12478 195.159.176.226 (17 Aug 2017 13:18:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Aug 2017 13:18:22 +0000 (UTC) User-Agent: Postbox 5.0.16 (Macintosh/20170718) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 17 15:18:16 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diKgb-0002ah-1t for gctc-ntg-context-518@m.gmane.org; Thu, 17 Aug 2017 15:18:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EEBCE10559C; Thu, 17 Aug 2017 15:17:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sosr_0_32blQ; Thu, 17 Aug 2017 15:17:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D00E410558C; Thu, 17 Aug 2017 15:17:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5636710558C for ; Thu, 17 Aug 2017 15:17:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W_VwGm7VylpV for ; Thu, 17 Aug 2017 15:17:53 +0200 (CEST) Original-Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DA61F10558B for ; Thu, 17 Aug 2017 15:17:43 +0200 (CEST) Original-Received: by mail-wr0-f170.google.com with SMTP id 49so34859508wrw.2 for ; Thu, 17 Aug 2017 06:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=FAQFkGb6t5Rq89r+J4cVMn4t731q9h9riVeIW1JCA5Y=; b=TbKSOVCwAiqhyU9dpj7asV2v10yzOxUn9Y4spdtkVobYvhQGZpxVxph5ki8FRsfhHm ISC43P9M0rKGCsDQVcJz9wgAdiuUW0qUbEbtUeR4T1wyGgdCNw2TOLNhIUS8LpB8ZREM PzBQoWbAJ2ZwhnVXE+zqM7zxRSzuacZKyfqMA3Ul9EXwoCm8sQev+rX0JkHuz22IYyAa P+iG7dwBVSACnvc6QWeUGc5/jh7SITojE0XauYe+XaF1E7OeaU+Lre5tmOHwSIHpO3Oa JYEdzJjtykDs4xtyPOTuzNgIXBPWtEP0JYJrdGpiWXqL8w71h5sKn4bhfHJUtHjwjsyy 0lUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=FAQFkGb6t5Rq89r+J4cVMn4t731q9h9riVeIW1JCA5Y=; b=QmTjMjSxMMXHPrBMGQweMXAHWHZ4VcvUMcp0Lk912R2Wii0/B4pgvhsh4cbeYgTI7d jOE/MgvBwEo0KwmRf+7Xmep5dQEJHyITfuSej+S/b78quZs2YrRkPUOiOdUBtuh5LbA0 kIFwZIt0F95YT3+1awuPU5Zco8Q9jpB36RkqIURqKJSE6+GkGUyYp15P5lGl0EsnUB14 YAFRlq9iQAt8ndbuETqOlHh0TBIZBtMl219Kt5K8G4z4Kz/3vyi3ZYRS+Dh2fiRAOCkK M0Aq9GBCFRes614YT8WBHjPNibcGfLM8ZolXddEbPDglV6SXdGz/aLWak9MI261qy3bm Mf0g== X-Gm-Message-State: AHYfb5hWsgpYYYQoAaXh0ELsvwY0HIFlxltHlx4bKMEGageRblYTr47O qde+RgWEJYY0jrt+gtc= X-Received: by 10.223.134.47 with SMTP id 44mr1130087wrv.73.1502975863258; Thu, 17 Aug 2017 06:17:43 -0700 (PDT) Original-Received: from [192.168.1.5] (x4dbd8480.dyn.telefonica.de. [77.189.132.128]) by smtp.gmail.com with ESMTPSA id c34sm3752690wra.80.2017.08.17.06.17.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Aug 2017 06:17:42 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:98851 Archived-At: This is a multi-part message in MIME format. --===============1728743817990877887== Content-Type: multipart/alternative; boundary="------------080405040109030905020407" This is a multi-part message in MIME format. --------------080405040109030905020407 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Henning Hraban Ramm > 16. August 2017 um 17:47 > 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] \definestyle[emph][style=\italicface] Wolfgang --------------080405040109030905020407 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

16. August 2017 um 17:47
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]
\definestyle[emph][style=\italicface]

Wolfgang
--------------080405040109030905020407-- --===============1728743817990877887== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1728743817990877887==--