Hi,

I have two questions concerning MP graphics.

What's going on here? The “abcdefghi” text is not displayed in the second
graphic and the “A” is stretched to match the size of the first graphic. Can
someone explain why this happens and if this is expected?

\startreusableMPgraphic{foo}
  draw textext("abcdefghi");
  picture p; p := currentpicture;
\stopreusableMPgraphic

\startreusableMPgraphic{bar}
  addto currentpicture also p; %% not printed
  draw textext("A");           %% distorted
\stopreusableMPgraphic

\starttext
  \reuseMPgraphic{foo}
  \reuseMPgraphic{bar}
\stoptext


Does \includeMPgraphic only work with useMPgraphics (in contrast to
reusableMPgraphic)?

%% works with useMPgraphics, though
\startreusableMPgraphic{alpha}
  draw textext("abcdefghi");
\stopreusableMPgraphic

\startreusableMPgraphic{beta}
  \includeMPgraphic{alpha}
  draw textext("A"); %% not printed
\stopreusableMPgraphic

\starttext
  \reuseMPgraphic{alpha}
  \reuseMPgraphic{beta}
\stoptext


Marco

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________________
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 via email to