From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46581 Path: news.gmane.org!not-for-mail From: Andrey Riabushenko Newsgroups: gmane.comp.tex.context Subject: Looks like a bug in \typefile[option=LANG] Date: Wed, 31 Dec 2008 15:09:26 +0200 Message-ID: <200812311509.27052.cdome@bk.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230729447 15514 80.91.229.12 (31 Dec 2008 13:17:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 13:17:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 31 14:18:35 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LI0xu-0000CY-1J for gctc-ntg-context-518@m.gmane.org; Wed, 31 Dec 2008 14:18:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E45CC1FCF5; Wed, 31 Dec 2008 14:17:09 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23376-02-5; Wed, 31 Dec 2008 14:16:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C50411FC6A; Wed, 31 Dec 2008 14:13:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9541D1FC6A for ; Wed, 31 Dec 2008 14:12:59 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23439-03 for ; Wed, 31 Dec 2008 14:11:50 +0100 (CET) Original-Received: from mx38.mail.ru (mx38.mail.ru [194.67.23.16]) by ronja.ntg.nl (Postfix) with ESMTP id F05E41FDF0 for ; Wed, 31 Dec 2008 14:08:49 +0100 (CET) Original-Received: from [89.252.10.6] (port=58574 helo=89.252.10.6.freenet.com.ua) by mx38.mail.ru with asmtp id 1LI0ob-000IjY-00 for ntg-context@ntg.nl; Wed, 31 Dec 2008 16:08:49 +0300 User-Agent: KMail/1.9.7 Content-Disposition: inline X-Spam: Not detected X-Mras: Ok X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:46581 Archived-At: I have defined a new float environment for source file listings. \definefloat [listing] [listings] \definetyping[listing][numbering=file] \placelisting[lst:set]{Example of set tree} { \typefile[listing][option=C]{set.cpp} } It works just as expected. Then I have tried to change standard color palet with my own palet. \definepalet[corp-pretty][prettyone=corp-color-darkblue, prettytwo=corp-color-blue, prettythree=corp-color-lightblue, prettytwoone=corp-color-grey, prettyfour=corp-color-green, prettyfourone=corp-color-green, prettyfourtwo=corp-color-green, prettyfourthree=corp-color-green, prettyfourfour=corp-color-orange, prettysixone=corp-color-orange, prettysixtwo=corp-color-orange prettyeight=corp-color-orange, prettynine=corp-color-orange] \definefloat [listing] [listings] \definetyping[listing][numbering=file, palet=corp-pretty] \placelisting[lst:set]{Example of set tree} { \typefile[listing][option=C]{set.cpp} } The colors did not appear, in the texexec output I got lots of errors like color : TEXcorp-pretty:prettythree is not defined color : TEXcorp-pretty:prettythree is not defined color : TEXcorp-pretty:prettyone is not defined color : TEXcorp-pretty:prettytwo is not defined color : TEXcorp-pretty:prettythree is not defined color : TEXcorp-pretty:prettyfour is not defined NOTICE \typefile LOOKS FOR PALET "TEXcorp-pretty" and not "corp-pretty" as I have defined. There is some bug or "feature" that makes an implicit assumption of the palet prefix name - TEX. I have managed to make it work by definition a palet with name TEXcorp-pretty and still passing as palet option of \definetyping the name corp-pretty, but it is a ugly hack. ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________