ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* staticMPfigure
@ 2008-06-10 10:02 bbvogel
  2008-06-10 12:50 ` staticMPfigure Hans Hagen
  0 siblings, 1 reply; 21+ messages in thread
From: bbvogel @ 2008-06-10 10:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

When I run the example below (current beta, pdftex, live.contextgarden.net) 
the generated pdf does not contain any pictures.
Any suggestion how to solve this? Or is the command obsolete?

Thanks,

B. Vogel

%test.tex
\startstaticMPfigure{center}
 draw fullcircle scaled 2cm ;
 dotlabel.bot(textext("(0,0)"),origin) ;
\stopstaticMPfigure

\startstaticMPfigure{radius}
 draw fullcircle scaled 2cm ;
 drawarrow (0,0)--(1cm,0) ;
 label.bot(textext("$r$"),(5mm,0)) ;
\stopstaticMPfigure

\starttext

Circle centered \usestaticMPfigure[center][width=1cm] at origin with radius
\usestaticMPfigure[radius][width=1cm] $r=1\,\text{cm}$.

\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread
* staticMPfigure
@ 2008-04-02 20:22 Wolfgang Werners-Lucchini
  2008-04-03  9:12 ` staticMPfigure Taco Hoekwater
  0 siblings, 1 reply; 21+ messages in thread
From: Wolfgang Werners-Lucchini @ 2008-04-02 20:22 UTC (permalink / raw)
  To: ntg-context

Hallo,

the following example is a cooked down version of something I found 
on the net. Compiling this

%------------------------------------------------
\setupcolors[state=start]

\forceMPTEXcheck{LABEL}

\startMPinclusions
vardef LABEL@\#(expr s, p)= label@\#(textext("%
   \framed[width=1.5cm]{" & s & "}"),p)
enddef ;
\stopMPinclusions

\startstaticMPfigure{tst}
  LABEL.llft("Test", (1,1) ) ;
\stopstaticMPfigure

\starttext
\midaligned{\usestaticMPfigure[tst]}
\stoptext
%------------------------------------------------

I got the following error:

%------------------------------------------------
! Illegal parameter number in definition of \@MPG@@@.
<to be read again> 
                   (
<argument> vardef LABEL@##(
                           expr s, p)= label@##(textext("\framed 
[width=1.5c...

\dodostartuseMPgraphic ...useMPgraphic {#1}{#2}{#3
                                                  }}\elabelgroup 
\dodostartMPpage ...aphic {@@}#1\stopuseMPgraphic 
                                                  \useMPgraphic 
{@@}\dostopf...
l.14 endfig; \stopMPpage
%------------------------------------------------

What is wrong here?

Wolfgang                        
___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2008-06-11 12:27 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.4251.1207220924.4340.ntg-context@ntg.nl>
2008-04-10 15:57 ` staticMPfigure Wolfgang Werners-Lucchini
2008-04-10 16:10   ` staticMPfigure Hans Hagen
2008-04-10 21:41     ` staticMPfigure Aditya Mahajan
2008-04-10 22:01       ` staticMPfigure Mojca Miklavec
2008-04-10 22:23         ` staticMPfigure Aditya Mahajan
2008-04-10 22:38           ` staticMPfigure Mojca Miklavec
2008-04-11  7:44             ` staticMPfigure Hans Hagen
2008-04-11 10:31               ` staticMPfigure Mojca Miklavec
2008-04-11 12:16                 ` staticMPfigure Hans Hagen
2008-06-10 10:02 staticMPfigure bbvogel
2008-06-10 12:50 ` staticMPfigure Hans Hagen
2008-06-10 13:31   ` staticMPfigure bbvogel
2008-06-10 14:18     ` staticMPfigure Peter Rolf
2008-06-11  6:57       ` staticMPfigure bbvogel
2008-06-11  9:41         ` staticMPfigure bbvogel
2008-06-11 10:07         ` staticMPfigure Peter Rolf
2008-06-11 11:41           ` staticMPfigure bbvogel
2008-06-11 12:27             ` staticMPfigure Peter Rolf
  -- strict thread matches above, loose matches on Subject: below --
2008-04-02 20:22 staticMPfigure Wolfgang Werners-Lucchini
2008-04-03  9:12 ` staticMPfigure Taco Hoekwater
2008-04-03 10:19   ` staticMPfigure 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).