All,

In working through the beginning chapters of the metafun manual, I am  
getting a very unusual effect when I open the resulting pdf file in  
Preview on Mac OS X. Here's a snapshot of what I see.

http://online.redwoods.edu/instruct/darnold/context/meta.gif

In acrobat, it looks fine.

http://online.redwoods.edu/instruct/darnold/context/meta.pdf

Any thoughts?

\setuppapersize[S6][S6]

\usetypescriptonce [map]      [times,helvetica,palatino] [texnansi]
\usetypescriptonce [serif]    [times]                    [name,texnansi]
\usetypescriptonce [sans]     [helvetica]                [name,texnansi]
\usetypescriptonce [palatino] [texnansi]

\setupbodyfont [palatino,10pt]

\startbuffer[mpenv]
\startMPenvironment
   \usetypescriptonce[map][times,helvetica,palatino][texnansi]
   \usetypescriptonce[serif][times][name,texnansi]
   \usetypescriptonce[sans][helvetica][name,texnansi]
   \usetypescriptonce[palatino][texnansi]
   \setupbodyfont[palatino,10pt]
   \definefont[RotFont][RegularBold]
\stopMPenvironment
\stopbuffer

\definefont[RotFont][RegularBold]

\getbuffer[mpenv]

\setupcolors[state=start]

\starttext

\startuseMPgraphic{axis}
   tickstep := 1cm ; ticklength := 2mm ;
   drawticks unitsquare xscaled 8cm yscaled 3cm ;
   tickstep := tickstep/2 ; ticklength := ticklength/2 ;
   drawticks unitsquare xscaled 8cm yscaled 3cm ;
\stopuseMPgraphic

\startuseMPgraphic{points}
   z0 = (0.5cm,1.5cm) ; z1 = (2.5cm,2.5cm) ;
   z2 = (6.5cm,0.5cm) ; z3 = (2.5cm,1.5cm) ;
\stopuseMPgraphic

\startuseMPgraphic{path}
   str := "z0---z1---z2---z3---cycle" ;
\stopuseMPgraphic

\startbuffer
\startlinecorrection[blank]
\startMPcode
   string str ; defaultfont := "\truefontname{Mono}" ;
   \includeMPgraphic{axis}
   \includeMPgraphic{points}
   \includeMPgraphic{path}
   label.lft(str,(14.5cm,2.5cm)) ;
   drawwholepath scantokens(str) ;
\stopMPcode
\stoplinecorrection
\stopbuffer

\getbuffer


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

Reply via email to