ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* z0---z1---z2---z3---cycle strange effect
@ 2007-06-04 23:05 David Arnold
  2007-06-14  8:59 ` Mojca Miklavec
  0 siblings, 1 reply; 5+ messages in thread
From: David Arnold @ 2007-06-04 23:05 UTC (permalink / raw)
  To: Context Mailing List List

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
___________________________________________________________________________________


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

end of thread, other threads:[~2007-06-14 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-04 23:05 z0---z1---z2---z3---cycle strange effect David Arnold
2007-06-14  8:59 ` Mojca Miklavec
2007-06-14  9:04   ` Mojca Miklavec
2007-06-14 11:03     ` Alan Bowen
2007-06-14  9:24   ` Taco Hoekwater

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).