ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: color conversion causes error with MPgraphic
Date: Sun, 8 Jan 2012 19:32:02 +0100	[thread overview]
Message-ID: <8653EA2C-098D-4536-B255-CA9089423140@st.estfiles.de> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2012-01-08 18:32 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-08 18:32 Steffen Wolfrum [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8653EA2C-098D-4536-B255-CA9089423140@st.estfiles.de \
    --to=context@st.estfiles.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).