From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71005 Path: news.gmane.org!not-for-mail From: Alasdair McAndrew Newsgroups: gmane.comp.tex.context Subject: Re: Colored text in \type? Date: Sat, 3 Sep 2011 00:24:57 +1000 Message-ID: References: <87pqjjfkrn.fsf@micropit.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1849209779==" X-Trace: dough.gmane.org 1314973524 27747 80.91.229.12 (2 Sep 2011 14:25:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 14:25:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 02 16:25:19 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QzUgI-0006my-Up for gctc-ntg-context-518@m.gmane.org; Fri, 02 Sep 2011 16:25:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C7C83CAF3D; Fri, 2 Sep 2011 16:25:14 +0200 (CEST) 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 zUO4DbfGsQjG; Fri, 2 Sep 2011 16:25:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D9F4ACAF48; Fri, 2 Sep 2011 16:25:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D124ECAF48 for ; Fri, 2 Sep 2011 16:25:10 +0200 (CEST) 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 Zcrf8ShU2dYB for ; Fri, 2 Sep 2011 16:24:59 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 3BAE2CAF3D for ; Fri, 2 Sep 2011 16:24:59 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p82EOwrO024207 for ; Fri, 2 Sep 2011 16:24:58 +0200 Original-Received: by bkbzt4 with SMTP id zt4so3473886bkb.14 for ; Fri, 02 Sep 2011 07:24:58 -0700 (PDT) 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=1XCuCOsHLovzMK3lo7Dwh6haMZoNakDwM9nSXrEwjjk=; b=hDpJIti8Y/lcIXWCWsX9m8GMFG4Bvjb0OvTB0sRLk/7qQ3QJPh1JnRtmXJng2iYWyO gOsB9kMIBRNXwNcBHxm8ltaFISb9D55WzsAPLOemJOobfPlqxGpzfcFMNiJf22MibnGy qGshubgV0jv+V34IcEev79h2GlXZrD+S4ct/Q= Original-Received: by 10.204.136.69 with SMTP id q5mr684424bkt.250.1314973497953; Fri, 02 Sep 2011 07:24:57 -0700 (PDT) Original-Received: by 10.204.69.211 with HTTP; Fri, 2 Sep 2011 07:24:57 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0rFrOoWH5 - d4f2c9d38454 - 20110902 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:71005 Archived-At: --===============1849209779== Content-Type: multipart/alternative; boundary=0015174c14d23c0f1704abf62083 --0015174c14d23c0f1704abf62083 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I'm using MkII - are there any particular advantages to using MkIV? -Alasdair On Fri, Sep 2, 2011 at 10:34 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > > Am 02.09.2011 um 09:47 schrieb Peter M=FCnster: > > > On Fri, Sep 02 2011, Alasdair McAndrew wrote: > > > >> > >> \color[blue]{\type{%t^y_8*&}} > >> > >> doesn't seem to work; nor does > >> > >> {\blue \type{%t^y_8*&}} > > > > No problem with mkiv. > > You don=92t even need \type in mkiv: > > \asciimode > > \starttext > > \definehighlight[one][color=3Dred, style=3Dmono] > \definehighlight[two][color=3Dgreen,style=3Dmono] > > \mono{%t^y_8*&} > > \one{%t^y_8*&} > > \two{%t^y_8*&} > > \stoptext > > 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 > > _________________________________________________________________________= __________ > --=20 Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew --0015174c14d23c0f1704abf62083 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I'm using MkII - are there any particular advantages to using MkIV?
=
-Alasdair

On Fri, Sep 2, 2011 at 10:3= 4 PM, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrot= e:

Am 02.09.2011 um 09:47 schrieb Peter M=FCnster:

> On Fri, Sep 02 2011, Alasdair McAndrew wrote:
>
>>
>> \color[blue]{\type{%t^y_8*&}}
>>
>> doesn't seem to work; nor does
>>
>> {\blue \type{%t^y_8*&}}
>
> No problem with mkiv.

You don=92t even need \type in mkiv:

\asciimode

\starttext

\definehighlight[one][color=3Dred, =A0style=3Dmono]
\definehighlight[two][color=3Dgreen,style=3Dmono]

\mono{%t^y_8*&}

\one{%t^y_8*&}

\two{%t^y_8*&}

\stoptext

Wolfgang
__________________________________= _________________________________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >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://bit.ly/Alasdair
Facebo= ok: http://www.facebo= ok.com/alasdair.mcandrew
--0015174c14d23c0f1704abf62083-- --===============1849209779== 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 ___________________________________________________________________________________ --===============1849209779==--