From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73687 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: color conversion causes error with MPgraphic Date: Sun, 8 Jan 2012 19:32:02 +0100 Message-ID: <8653EA2C-098D-4536-B255-CA9089423140@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326047546 13567 80.91.229.12 (8 Jan 2012 18:32:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2012 18:32:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 08 19:32:16 2012 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 1RjxXQ-0006JP-8b for gctc-ntg-context-518@m.gmane.org; Sun, 08 Jan 2012 19:32:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ACB35CB1C5; Sun, 8 Jan 2012 19:32:11 +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 fVicRMhwl+KM; Sun, 8 Jan 2012 19:32:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A5BDCB1B0; Sun, 8 Jan 2012 19:32:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8651CB1B0 for ; Sun, 8 Jan 2012 19:32:06 +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 LDH9vGn8UvHX for ; Sun, 8 Jan 2012 19:32:05 +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 37313CABBD for ; Sun, 8 Jan 2012 19:32:04 +0100 (CET) Original-Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.40]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q08IW4WA013066 for ; Sun, 8 Jan 2012 19:32:04 +0100 Original-Received: from [89.247.14.208] (helo=[192.168.1.4]) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1RjxXH-0007k0-OB for ntg-context@ntg.nl; Sun, 08 Jan 2012 19:32:03 +0100 X-Mailer: Apple Mail (2.1084) X-Df-Sender: Njk4NTgw X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.67.31.40; 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: 06Gj6w4Qt - 0efaedc9046d - 20120108 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:73687 Archived-At: Hi, when I run this example ... \setupcolors[state=stop,conversion=never]%needed for specific reason in project \startuseMPgraphic{Test} z1 = (-233,0) ; z2 = (-220,22) ; fill z1 for i=2 upto 2: .. z[i] endfor .. z1 & cycle ; \stopuseMPgraphic \defineoverlay[TTest] [\leftaligned {\scale[height=\overlayheight]{\useMPgraphic{Test}}}] \starttext \framedtext[frame=off,loffset=1em,roffset=1em,background=TTest]{\input knuth\par} \setupTABLE[frame=off,offset=1ex] \setupTABLE[row][each][align={middle,lohi}] \bTABLE \bTR \bTD[nr=3,background=TTest] drei \eTD \eTR \eTABLE \stoptext ... I get this error: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/colo-ini.lua:461: bad argument #2 to 'format' (string expected, got nil) stack traceback: [C]: in function 'format' ...text/tex/texmf-context/tex/context/base/colo-ini.lua:461: in function 'mpcolor' ...text/tex/texmf-context/tex/context/base/colo-ini.lua:792: in function 'mpcolor'
:1: in main chunk. system > tex > error on line 25 in file MP_MkIV.tex: LuaTeX error ... 15 \starttext 16 17 \framedtext[frame=off,loffset=1em,roffset=1em,background=TTest]{\input knuth\par} 18 19 \setupTABLE[frame=off,offset=1ex] 20 \setupTABLE[row][each][align={middle,lohi}] 21 \bTABLE 22 \bTR 23 \bTD[nr=3,background=TTest] drei \eTD 24 \eTR 25 >> \eTABLE 26 27 \stoptext 28 29 \ctxcommand ...\directlua \zerocount {commands.#1} ...:=\MPcolor {\overlaylinecolor } ; BaseLineSkip:=\the \base... \processMPgraphic ...e ;\!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \d... \handleuseMPgraphic ...hics \processMPgraphic {#3} \endgroup \douseMPgraphic ...{\@@MPG \currentMPgraphicname } \empty \endMPgraphicgroup } ... l.25 \eTABLE ? Process aborted The problem is the usage of "conversion=never" ... but I need this for other reason in my project. Any help? Steffen ___________________________________________________________________________________ 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 ___________________________________________________________________________________