From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74615 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \em producing red text? Date: Tue, 21 Feb 2012 13:05:41 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329825978 17633 80.91.229.3 (21 Feb 2012 12:06:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2012 12:06:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 21 13:06:13 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RzoTv-0002NM-KV for gctc-ntg-context-518@m.gmane.org; Tue, 21 Feb 2012 13:06:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E1923CB22F; Tue, 21 Feb 2012 13:06:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1HuqJlfUEYJ8; Tue, 21 Feb 2012 13:06:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 64E1FCB228; Tue, 21 Feb 2012 13:06:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38CBECB228 for ; Tue, 21 Feb 2012 13:05:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wZ9LoWbOIM6Z for ; Tue, 21 Feb 2012 13:05:45 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 4A30ECB211 for ; Tue, 21 Feb 2012 13:05:45 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1LC5ig7012954 for ; Tue, 21 Feb 2012 13:05:44 +0100 Original-Received: by eekc13 with SMTP id c13so3038109eek.14 for ; Tue, 21 Feb 2012 04:05:44 -0800 (PST) Received-SPF: pass (google.com: domain of schuster.wolfgang@googlemail.com designates 10.213.28.136 as permitted sender) client-ip=10.213.28.136; Authentication-Results: mr.google.com; spf=pass (google.com: domain of schuster.wolfgang@googlemail.com designates 10.213.28.136 as permitted sender) smtp.mail=schuster.wolfgang@googlemail.com; dkim=pass header.i=schuster.wolfgang@googlemail.com Original-Received: from mr.google.com ([10.213.28.136]) by 10.213.28.136 with SMTP id m8mr3502387ebc.98.1329825944684 (num_hops = 1); Tue, 21 Feb 2012 04:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=ffkAc3NmC5E6/XC8gHdk6C97Qw2ZyS91veYy8rmwmpA=; b=u7dSRXhIsKW8q5y0dKRHtaEiAgkfIYYzzN5CEKKjQxuGtxOPSn6rp7AdxVoSXzFn8V Aq6I7hx9LE7KOiKsWQRfo/LL/1T2uQgvXrzuov6XzVZImrNbFEWsXcs6xbOdB1H3v6tx 4WzD5mJsPn1wpl1xLmHCCR0hAlNL8R377xWgg= Original-Received: by 10.213.28.136 with SMTP id m8mr2786174ebc.98.1329825944614; Tue, 21 Feb 2012 04:05:44 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFB738.dip.t-dialin.net. [87.175.183.56]) by mx.google.com with ESMTPS id c16sm89553634eei.1.2012.02.21.04.05.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Feb 2012 04:05:43 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NGAA5ILF - d3c7befdf33a - 20120221 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74615 Archived-At: Am 21.02.2012 um 10:19 schrieb Alasdair McAndrew: > I discovered this by hunting through font-ini.mkii: > > \setupbodyfontenvironment [default] [em={\slanted\color[red]}] Better \setupbodyfontenvironment[default][em={\sl\red}]. > Seems to work well. You see, I want to use the same ConTeXt files for two purposes: to create a set of printable notes (without colour) and to make a set of displayable onscreen notes (with colour). This means that {\em this text} appears slanted in the printed notes, and slanted and red onscreen. This is also possible with the method Aditya suggested. \startmode[screen] \definehighligh[emph][style=slanted,color=red] \stopmode \startnotmode[screen] \definehighligh[emph][style=slanted] \stopnotmode Wolfgang ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________