From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74607 Path: news.gmane.org!not-for-mail From: Alasdair McAndrew Newsgroups: gmane.comp.tex.context Subject: Re: \em producing red text? Date: Tue, 21 Feb 2012 20:19:22 +1100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1374297661==" X-Trace: dough.gmane.org 1329815993 4451 80.91.229.3 (21 Feb 2012 09:19:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2012 09:19:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 21 10:19:49 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 1Rzlsy-0003tC-DD for gctc-ntg-context-518@m.gmane.org; Tue, 21 Feb 2012 10:19:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7964ECB229; Tue, 21 Feb 2012 10:19:47 +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 exeZlOWLzq66; Tue, 21 Feb 2012 10:19:40 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85A5DCB222; Tue, 21 Feb 2012 10:19:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1ACDCB222 for ; Tue, 21 Feb 2012 10:19:38 +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 DRo-nQJrk4gl for ; Tue, 21 Feb 2012 10:19:24 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id BDBC5CB213 for ; Tue, 21 Feb 2012 10:19:24 +0100 (CET) Original-Received: from mail-lpp01m010-f41.google.com (mail-lpp01m010-f41.google.com [209.85.215.41]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1L9MTxj002262 for ; Tue, 21 Feb 2012 10:22:29 +0100 Original-Received: by lamf4 with SMTP id f4so9737387lam.14 for ; Tue, 21 Feb 2012 01:19:23 -0800 (PST) Received-SPF: pass (google.com: domain of amca01@gmail.com designates 10.152.115.38 as permitted sender) client-ip=10.152.115.38; Authentication-Results: mr.google.com; spf=pass (google.com: domain of amca01@gmail.com designates 10.152.115.38 as permitted sender) smtp.mail=amca01@gmail.com; dkim=pass header.i=amca01@gmail.com Original-Received: from mr.google.com ([10.152.115.38]) by 10.152.115.38 with SMTP id jl6mr18689908lab.24.1329815963174 (num_hops = 1); Tue, 21 Feb 2012 01:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MiIWXkBwGlDIhJWgkKP5VQmm7c1NY8Gm/3N4dD6Vcec=; b=du1Ku3iHjTwsEaQeoWzvaQNIMk9xHKdmBJqwCBndZdgmVYMtZLudXFvmB821PDGs5b c0MPXircLBxz1mw3c5/zZDslzuWUvySy9owV/CpagO289UmzASGcKmL/99oNC7/4k5i0 ED+jEjmVZG7XH9NgQHARPuHg2H4akgnL+BNa0= Original-Received: by 10.152.115.38 with SMTP id jl6mr15593371lab.24.1329815962253; Tue, 21 Feb 2012 01:19:22 -0800 (PST) Original-Received: by 10.112.144.38 with HTTP; Tue, 21 Feb 2012 01:19:22 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.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: 0IGAxmtHv - 6ec2ed0d14ef - 20120221 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:74607 Archived-At: --===============1374297661== Content-Type: multipart/alternative; boundary=f46d040891eb0bfabb04b975e867 --f46d040891eb0bfabb04b975e867 Content-Type: text/plain; charset=ISO-8859-1 I discovered this by hunting through font-ini.mkii: \setupbodyfontenvironment [default] [em={\slanted\color[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. Thanks very much! -Alasdair On Tue, Feb 21, 2012 at 5:47 PM, Aditya Mahajan wrote: > On Tue, 21 Feb 2012, Alasdair McAndrew wrote: > > In some overheads I'm creating, I'd like emphasized text {\em like this} >> to >> appear as red. I hoped that something like this would work: >> >> \setupbodyfontenvironment[**default][em={slanted, textcolor=red}] >> >> but it doesn't. What is the canonical way of obtaining red, emphasized, >> text? >> > > \definehighlight[emph][style=**slanted, color=red] > > \emph{...} > > Aditya > ______________________________**______________________________** > _______________________ > 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 > ______________________________**______________________________** > _______________________ > -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew --f46d040891eb0bfabb04b975e867 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I discovered this by hunting through font-ini.mkii:

\set= upbodyfontenvironment [default] [em=3D{\slanted\color[red]}]

=
Seems to work well. =A0You see, I want to use the same ConTeXt f= iles for two purposes: to create a set of printable notes (without colour) = and to make a set of displayable onscreen notes (with colour). =A0This mean= s that {\em this text} appears slanted in the printed notes, and slanted an= d red onscreen.

Thanks very much!

-Alasdair
On Tue, Feb 21, 2012 at 5:47 PM, Aditya Mah= ajan <adityam@umi= ch.edu> wrote:
On Tue, 21 Feb 2012, Alasd= air McAndrew wrote:

In some overheads I'm creating, I'd like emphasized text {\em like = this} to
appear as red. =A0I hoped that something like this would work:

\setupbodyfontenvironment[default][em=3D{slanted, textcolor=3Dred}]<= br>
but it doesn't. =A0What is the canonical way of obtaining red, emphasiz= ed,
text?

\definehighlight[emph][style=3Dslanted, color=3Dred]

\emph{...}

Aditya
_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0:
http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/ wiki =A0 =A0 : http:= //contextgarden.net
_____________________________________________________________= ______________________



--
Blog: http://amca01.wordpress= .com
Web:=A0 http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
--f46d040891eb0bfabb04b975e867-- --===============1374297661== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1374297661==--