From: Peter Rolf <indiego@gmx.net>
Subject: Re: TeX trigger in MP macro
Date: Fri, 04 Aug 2006 16:26:54 +0200 [thread overview]
Message-ID: <44D3592E.4050305@gmx.net> (raw)
In-Reply-To: <44D32CCA.4000505@elvenkind.com>
Taco Hoekwater wrote:
> Taco Hoekwater wrote:
>> Hi Peter,
>>
>> Peter Rolf wrote:
>>
>>> If someone can solve this problem I would be very glad.
>>
>> Adding a semicolon after the 'endgroup' command removes
>> the error.
>
> (I just looked at your pdf document).
>
> You probably want 'useMPgraphic' instead of 'uniqueMPgraphic'.
>
> Taco
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
The following code works here, but not at context live. What have I done
now? ;)
Peter
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
tex : pdfTeX, 3.141592-1.40.0-beta-20060213 (Web2C 7.5.5)
context : ver: 2006.08.02 23:31
cont-en : ver: 2006.08.02 23:31 fmt: 2006.8.4 mes: en
% interface=en output=pdftex
% Time-stamp: <Freitag, 04 August 2006 15:58:06; test.tex>
%
\setupcolors[state=start]
\def\DbgFill{0}
\startMPinclusions
def dbg_fill (text p) =
if (\DbgFill=0) :
fill p ;
fi
enddef ;
\stopMPinclusions
\startuseMPgraphic{My_SquareA}
begingroup
if (\DbgFill=0) :
fill OverlayBox withcolor green ;
fi
endgroup ;
\stopuseMPgraphic
\defineoverlay[MySquareA]
[\useMPgraphic{My_SquareA}]
\startuseMPgraphic{My_SquareB}
begingroup
dbg_fill(OverlayBox withcolor yellow) ;
endgroup ;
\stopuseMPgraphic
\defineoverlay[MySquareB]
[\useMPgraphic{My_SquareB}]
\starttext
\def\DbgFill{0}
{\bf DbgFill=0:}
\framed[background=MySquareA]{TestA}
\framed[background=MySquareB]{TestB}
\def\DbgFill{1}
{\bf DbgFill=1:}
\framed[background=MySquareA]{TestA}
\framed[background=MySquareB]{TestB}
\stoptext
%%% Local Variables:
%%% mode: context
%%% TeX-master: ""
%%% End:
next prev parent reply other threads:[~2006-08-04 14:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-03 12:29 Peter Rolf
2006-08-03 23:01 ` Hans Hagen
2006-08-04 10:57 ` Peter Rolf
2006-08-04 11:14 ` Taco Hoekwater
2006-08-04 11:17 ` Taco Hoekwater
2006-08-04 12:27 ` Peter Rolf
2006-08-04 12:42 ` Taco Hoekwater
2006-08-04 13:04 ` Peter Rolf
2006-08-04 14:26 ` Peter Rolf [this message]
2006-08-04 14:42 ` stange error in Live ConTeXt Taco Hoekwater
2006-08-04 16:22 ` Peter Rolf
2006-09-06 18:54 ` Patrick Gundlach
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=44D3592E.4050305@gmx.net \
--to=indiego@gmx.net \
--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).