From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80997 Path: news.gmane.org!not-for-mail From: Alasdair McAndrew Newsgroups: gmane.comp.tex.context Subject: Re: A trouble with setupbodyfontenvironment Date: Fri, 1 Mar 2013 10:51:08 +1100 Message-ID: References: <20130228120207.GB3733@homerow> <20130228134046.GA29684@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0778021676==" X-Trace: ger.gmane.org 1362095482 32437 80.91.229.3 (28 Feb 2013 23:51:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2013 23:51:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 01 00:51:41 2013 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 1UBDGF-0003t4-Iz for gctc-ntg-context-518@m.gmane.org; Fri, 01 Mar 2013 00:51:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A3D510200; Fri, 1 Mar 2013 00:51:18 +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 NCPFY4+BKfxZ; Fri, 1 Mar 2013 00:51:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 181B2101F6; Fri, 1 Mar 2013 00:51:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6309101F6 for ; Fri, 1 Mar 2013 00:51:14 +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 Prxl7kWfCQVf for ; Fri, 1 Mar 2013 00:51:11 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 0F9F3101EF for ; Fri, 1 Mar 2013 00:51:10 +0100 (CET) Original-Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r1SNp9Xw005554 for ; Fri, 1 Mar 2013 00:51:09 +0100 Original-Received: by mail-vc0-f169.google.com with SMTP id n10so1630987vcn.28 for ; Thu, 28 Feb 2013 15:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=hcF/2y7zickkgppH5UoF+cArLts+dMf3/zK1GFaCpns=; b=EIAMV7eBTkKpTK2ue7h2mZopfoegvkxkPO4IqOPVhmVa7armlGJZXOJDRo8+UF4MKh UwYBWxHgIVCRS6bomMoDuI7Wjm1fuqnaSFxWop4mfggKFOVcGEg9mumsBxMyUo3Iam2b GSm932bZnm+x3R4SCtktnUXjqaD032NnBy6bLZRrwpS0INp7MZeivObgAN8fC2RNl0aT NwfptTaNYFUc9eGt1YEqYMTCisfBadKkgTDSGvXngcTupKvSKw3OcMglSc2wkR3Ph5sB hwcQnN4pH2W0O5x7cW0iYjxE5rL57H6eVikRswraygLTmCEUVMwSV5CvFWM3Cz5I+Zyn maew== X-Received: by 10.52.100.5 with SMTP id eu5mr2830178vdb.66.1362095468611; Thu, 28 Feb 2013 15:51:08 -0800 (PST) Original-Received: by 10.58.216.34 with HTTP; Thu, 28 Feb 2013 15:51:08 -0800 (PST) In-Reply-To: <20130228134046.GA29684@homerow> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.169; 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: 08J5XP9m4 - 29e7d746c453 - 20130301 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80997 Archived-At: --===============0778021676== Content-Type: multipart/alternative; boundary=20cf3071cf9a8e8e6304d6d190d8 --20cf3071cf9a8e8e6304d6d190d8 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Actually, maybe my version is a bit old: context --version returns 2011.05.18 18:04. I'll try to update it. (I'm using Ubuntu 12.04, but when I tried to update using apt-get the system told me that I had the latest version). In the meantime I'll try your alternative. Thanks! On Fri, Mar 1, 2013 at 12:40 AM, Marco Patzer wrote: > On 2013=9603=9601 Alasdair McAndrew wrote: > > > Do I have to include a special module here? > > No. I tested some versions between 2011.11.29 23:11 and 2013.02.26 > 00:17 and it worked for me. Which version are you using? > \definehighlight is nothing which was recent added. > > \setupbodyfontenvironment > [default] > [em=3Dslantedred] > > \definehighlight > [slantedred] > [style=3Dslanted, > color=3Dred] > > \starttext > foo {\em bar} > \stoptext > > You cannot update, you can try this instead of \definehighlight: > > \definealternativestyle > [slantedred] > [{\slanted\color[red]}] > > > Marco > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --20cf3071cf9a8e8e6304d6d190d8 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Actually, maybe my version is a bit old: context --version= returns=A02011.05.18 18:04. =A0I'll try to update it. =A0(I'm usin= g Ubuntu 12.04, but when I tried to update using apt-get the system told me= that I had the latest version). =A0In the meantime I'll try your alter= native.

Thanks!


On Fri, Mar 1, 2013 at 12:40 AM, Marco Patzer <homerow@lava= bit.com> wrote:
On 2013=9603=9601 Alasdair McAndrew wro= te:

> Do I have to include a special module here?

No. I tested some versions between 2011.11.29 23:11 and 2013.02.26 00:17 and it worked for me. Which version are you using?
\definehighlight is nothing which was recent added.

\setupbodyfontenvironment
=A0 [default]
=A0 [em=3Dslantedred]

\definehighlight
=A0 [slantedred]
=A0 [style=3Dslanted,
=A0 =A0color=3Dred]

\starttext
=A0 foo {\em bar}
\stoptext

You cannot update, you can try this instead of \definehighlight:

\definealternativestyle
=A0 [slantedred]
=A0 [{\slanted\color[red]}]


Marco

_________________________________________________________= __________________________
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
___________________________________________________________________________= ________

--20cf3071cf9a8e8e6304d6d190d8-- --===============0778021676== 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 ___________________________________________________________________________________ --===============0778021676==--