ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Strange StartPage in Metapost
@ 2001-09-09 11:13 Patrick Gundlach
  2001-09-09 12:00 ` Frans Goddijn
  2001-09-10 19:58 ` Strange StartPage in Metapost Hans Hagen
  0 siblings, 2 replies; 11+ messages in thread
From: Patrick Gundlach @ 2001-09-09 11:13 UTC (permalink / raw)


Hi out there in the deep Cyberscpace ;-),

--------------------------------myfile.tex----------
\%output=pdf
showframe
\setupcolors[state=start]
\setuppapersize[S6][S6]

\startreusableMPgraphic{DemoFrame}
StartPage ; 
pickup pencircle scaled 2pt ; 
Field[Text][Text] := Field[Text][Text] enlarged .5cm ;
draw (llcorner Field[Text][Text] -- ulcorner Field[Text][Text]);
StopPage ;
\stopreusableMPgraphic

\defineoverlay[DemoFrame]{\reuseMPgraphic{DemoFrame}}
%\setupbackgrounds[page][background=DemoFrame]

\starttext
\dorecurse{10}{\input tufte \par}
\stoptext
------------------------------end----------

when I texexec this, I get strange results.
In my opinion, only the \input tufte should be typeset (and, of course the 
\showframe). But as you might see, the DemoFrame also gets typeset. But I 
did not connect  the overlay to the background. Only when I comment out the 
line with \defineoverlay, the mpgraphic is not drawn. So there are two 
problems here:

1) why is this graphic drawn (even though I have not put it in the 
background)?
2) why is this placed on an incorrect place? (It seems that the page starts 
at the upper left corner of the text field, so the vertical line is shifted 
to the right and down.)

This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1)
entering extended mode
(./startpage.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2001.7.11  fmt: 2001.9.9  int: english  mes: english

Randomizer initialized to 931223677.This is MetaPost, Version 0.641 (Web2C 
7.3.1)
(startpage-mpgraph.mp [1] )

-- 
Viele Grüße, 

    Patrick Gundlach


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

end of thread, other threads:[~2001-09-18  0:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Your message of "Mon, 17 Sep 2001 10:14:35 +0200." <5.1.0.14.1.20010917101415.02f38ae8@server-1>
2001-09-17  9:27 ` Strange StartPage in Metapost Patrick Gundlach
2001-09-17 11:41   ` Hans Hagen
2001-09-18  0:07     ` Uwe Koloska
2001-09-09 11:13 Patrick Gundlach
2001-09-09 12:00 ` Frans Goddijn
2001-09-09 14:26   ` Patrick Gundlach
2001-09-09 15:30     ` Fun with MetaFun Frans Goddijn
2001-09-10 19:58 ` Strange StartPage in Metapost Hans Hagen
2001-09-12 22:27   ` Uwe Koloska
2001-09-15  9:15     ` Patrick Gundlach
2001-09-17  8:14     ` 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).