Dear ConTeXt users (and developers),

I am very fond of the presentation capabilites of ConTeXt, especially in
connection with the Metafun macros. A big hand for the ConTeXt team!

Now I want to link some checkboxes to a MPgraphic (a fieldstack
actually) and I thought, that the best approach would be via the layer
mechanism described in section 5.4 of the Metafun manual.

I got the background picture and the checkboxes, but unfortunately the
checkboxes were not in the intended positions (saved in register macros)
but rather in the top left corner of the image.

The same happened when I tried to reproduce the example from the Metafun
manual: The texts show up in the top left corner of the boundig box of
the circle.

\setupcolors    [state=start]
\setuppapersize [S6][S6]

\definelayer    [test]

\startuseMPgraphic{oeps}
  path p ; p := fullcircle scaled 6cm ;
  fill p withcolor .8white ;
  draw p withpen pencircle scaled 1mm withcolor .625red ;
  register ("somepos-1",0cm,0cm,center currentpicture) ;
  register ("somepos-2",3cm,1cm,(-1cm,-1cm)) ;
  register ("somepos-3",2cm,0cm,(-2cm,2cm)) ;
\stopuseMPgraphic

\setMPlayer [test] [somepos-1] [location=c]
  {Does it work all right?}

\setMPlayer [test] [somepos-2]
  {\framed
    [width=\MPlayerwidth,height=\MPlayerheight,
     background=color,backgroundcolor=white]
    {It Works!}}

\starttext
  \getMPlayer [test]{\useMPgraphic{oeps}}
\stoptext

Does somebody have an idea what might go wrong? Do I miss an important
setting or activation? (I am using ConTeXt  ver: 2005.01.31  fmt:
2005.4.26  int: english  mes: english in connection with tetex 3.0-13 on
a linux box.)
Or might this rather be a problem with the acrobat reader (version 7.0
on linux but also version 5 on windows)?

I also tried to get some debug information via activating testmode 
(1. running texexec with the --mode=test option and 
 2. with  \getMPlayer [test]
[state=start,option=test]{\useMPgraphic{oeps}} in the document.) But I
can not find the position information in the logfiles.

Any help would be greatly appreciated.

Best regards,

  Richard



_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to