From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86261 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: Re: suggestion on [option=TEX] Date: Wed, 12 Feb 2014 21:10:40 +0100 Message-ID: <52FBD540.5010406@gmx.es> References: <52F287F0.9060902@gmx.es> <3F1F8792-209A-4030-8D2D-509587A615B3@gmail.com> <52F3D477.90507@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1392235855 8829 80.91.229.3 (12 Feb 2014 20:10:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2014 20:10:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 12 21:11:04 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WDg98-0007lo-Eh for gctc-ntg-context-518@m.gmane.org; Wed, 12 Feb 2014 21:11:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68B94101EB; Wed, 12 Feb 2014 21:11:01 +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 KMA+ReVbKYCa; Wed, 12 Feb 2014 21:10:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A3291101E8; Wed, 12 Feb 2014 21:10:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0EEF1101E8 for ; Wed, 12 Feb 2014 21:10:57 +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 Z84lGvFtbfXs for ; Wed, 12 Feb 2014 21:10:56 +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 E87A1101E2 for ; Wed, 12 Feb 2014 21:10:45 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1CKAjiF001096 for ; Wed, 12 Feb 2014 21:10:45 +0100 Original-Received: from [192.168.1.33] ([81.36.204.70]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MHXXo-1WCaDI28fE-003JjN for ; Wed, 12 Feb 2014 21:10:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: X-Provags-ID: V03:K0:AMTKdm1R1ZkbGI0YDjvhS1j46yGxFEgTD0qsLbS0Ws+2J7iRqVD TvSlR6bxeMHDEuXTuN7X9r1caim3zmezM5O24zw553NLrUSuMTiUWp1bMHare/X3RHQr/dT kLuzlhDZgbjolEfrRNyC0mBVjfXSYJP1E9B0Pwj91AzHGL7uYtyqQZPzxz7m/MJhr7/BOjG y3nt3Ev9V6HXtc9f6gdqQ== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=212.227.17.21; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NLpwaJAJ - 319c0097e6a8 - 20140212 (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.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:86261 Archived-At: On 02/07/2014 12:36 AM, Wolfgang Schuster wrote: > Am 06.02.2014 um 19:29 schrieb Pablo Rodriguez: >> [...] >> After reading the document, I think it could be achieved with: >> [...] >> But this doesn=92t work. I must be missing something obvious. > = > You have to add a comma after \letterpercent. You should also be > careful with the text in the comments because commands are expanded, > e.g. take a look at the \TeX in the comment. > = > \setupbodyfont[dejavu] > = > \defineprocessor[myescape][style=3D\ttbf,color=3Dgray,left=3D{\letterperc= ent}] > = > \setuptyping[TEX][escape=3Dmyescape->{\letterpercent,}] > = > \starttext > \startTEX > This is \TeX\ code % and this is a \TeX\ comment. > \stopTEX > \stoptext Sorry for not having replied before and many thanks for your help, Wolfgang. The code works as you told me. I really appreciate your help. I have a further question about the option=3DTEX to color code. This was my original issue, but I haven=92t expressed myself clearly. The question is directed primarily to Hans. With option=3DTEX, comment seems to be the only element that isn=92t colored and formatted as a whole. Other elements are formatted as a whole and the format even extends in multiple lines. My question here isn=92t technical (unless the described behavior is a bug). The issue is on visual coherence. At least for newbies, it would be better to differentiate visually between regular text and commented text. Is there any reason not to format whole comments option=3DTEX? (Sorry, but I don=92t understand why this is different.) Many thanks for your help, Pablo -- = http://www.ousia.tk ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________