ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* color conversion causes error with MPgraphic
@ 2012-01-08 18:32 Steffen Wolfrum
  2012-01-08 23:36 ` Hans Hagen
  2012-01-09  9:12 ` rvhassel
  0 siblings, 2 replies; 28+ messages in thread
From: Steffen Wolfrum @ 2012-01-08 18:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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'
	<main ctx instance>: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}
                                                  
<inserted text> ...:=\MPcolor {\overlaylinecolor }
                                                  ; BaseLineSkip:=\the \base...
\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
                                                  \egroup \placeMPgraphic \d...
\handleuseMPgraphic ...hics \processMPgraphic {#3}
                                                  \endgroup 
\douseMPgraphic ...{\@@MPG \currentMPgraphicname }
                                                  \empty \endMPgraphicgroup 
<to be read again> 
                   }
...
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2012-01-11 12:22 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-08 18:32 color conversion causes error with MPgraphic Steffen Wolfrum
2012-01-08 23:36 ` Hans Hagen
2012-01-09  7:02   ` Steffen Wolfrum
2012-01-09  9:12 ` rvhassel
2012-01-09 10:43   ` Fwd: " Steffen Wolfrum
2012-01-09 10:49     ` luigi scarso
2012-01-09 11:00   ` Steffen Wolfrum
2012-01-09 11:07     ` luigi scarso
2012-01-09 11:41       ` rvhassel
2012-01-09 11:57         ` luigi scarso
2012-01-09 12:01         ` Steffen Wolfrum
2012-01-09 12:03           ` Steffen Wolfrum
2012-01-09 12:53           ` Patrick Gundlach
2012-01-09 12:55             ` Patrick Gundlach
2012-01-10  7:26           ` rvhassel
2012-01-10  7:39             ` luigi scarso
2012-01-10  8:40               ` Hans Hagen
2012-01-10  9:33                 ` rvhassel
2012-01-10 12:32                 ` idea for a ConTeXt keyboard rvhassel
2012-01-10 20:22                   ` Pontus Lurcock
2012-01-10 20:28                   ` Hans Hagen
2012-01-11 10:30                     ` Philipp A.
2012-01-11 10:34                       ` luigi scarso
2012-01-11 12:22                       ` rvhassel
2012-01-10  8:33             ` Fwd: color conversion causes error with MPgraphic Steffen Wolfrum
2012-01-10  8:36             ` Jörg Hagmann
2012-01-10  8:44             ` Fwd: " Hans Hagen
2012-01-09 12:39     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).