From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64143 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: custom colors for verbatim in mkiv Date: Thu, 2 Dec 2010 11:43:37 +0100 Message-ID: <5327A97C-A759-41EC-9013-D934225EAAD4@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291286664 17220 80.91.229.12 (2 Dec 2010 10:44:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2010 10:44:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 02 11:44:19 2010 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 1PO6e9-0005pi-9l for gctc-ntg-context-518@m.gmane.org; Thu, 02 Dec 2010 11:44:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C7C49CA89C; Thu, 2 Dec 2010 11:44:12 +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 0fbgrdXZ60+4; Thu, 2 Dec 2010 11:44:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D867ECA899; Thu, 2 Dec 2010 11:44:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5FE72CA899 for ; Thu, 2 Dec 2010 11:44:05 +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 c2ksEcXX395k for ; Thu, 2 Dec 2010 11:43:54 +0100 (CET) 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 2853ECA893 for ; Thu, 2 Dec 2010 11:43:54 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oB2AhrEG022898 for ; Thu, 2 Dec 2010 11:43:53 +0100 Original-Received: from [93.210.227.53] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 50714144 for ntg-context@ntg.nl; Thu, 02 Dec 2010 11:43:53 +0100 X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDCaHRys - 131b037219db - 20101202 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:64143 Archived-At: Hi all, pardon my ignorance, but how can I define custom colors for pretty printing xml in current mkiv? I tried defining a palet, I tried defining the usual colors prettyone etc., but to no avail. And, on a related note: are the files pret-lua.lua pret-mp.lua pret-tex.lua pret-xml.lua no longer part of mkiv? What has replaced them? I attach an example which works with mkii and with my older installation of mkiv (2010.10.22 16:46) but not with the current beta (2010.12.02 08:51). Thomas \setupcolors[state=start] \definecolor[paleblue][r=0.5,g=0.5,b=0.9] \definecolor[palered] [r=0.9,g=0.5,b=0.5] \definecolor[palecyan][r=0.41,g=0.84,b=0.84] \setuptyping[option=color, % palet=colorpretty, bodyfont=10pt, before={\startframedtext[width=\makeupwidth, background=screen, frame=off, backgroundscreen=.9]}, after={\stopframedtext}] \definepalet[MYcolors] [prettyone=paleblue, prettytwo=palecyan, prettythree=palered, prettyfour=darkgreen] \definepalet[XMLcolorpretty][MYcolors] \starttext \startXML
hello world
\stopXML \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________