Thanks for your tips Wolfgang! I switched to a solution as on the
wiki, using overlays and frames in place of layers. After setting the
boudingboxes right it works! I have to increase the \objectoffset
though, because otherwise the graphic is chopped of:
\setuppapersize[A5][A5]
\setuppagenumbering
Am 04.04.2011 um 01:22 schrieb Tim Steenvoorden:
> Thanks Peter! You are right it is easier to draw both the wave and the
> line in Metapost. And the dx=-\cutspace is just what I needed for left
> pages!
>
> I striped the frames out of the code and placed just the graphics in
> the layer with a
Thanks Peter! You are right it is easier to draw both the wave and the
line in Metapost. And the dx=-\cutspace is just what I needed for left
pages!
I striped the frames out of the code and placed just the graphics in
the layer with a reuseMPgraphic. Also, I pulled out the definition of
the wave i
On Fri, 1 Apr 2011, Tim Steenvoorden wrote:
(Untested).
\startuniqueMPgraphic{wave}
numeric periods, width;
path wave;
periods := 3 + 1/4;
width := periods * 2*pi;
wave:= origin for x=0 step 0.1 until width:
-- (x,x*sin(x))
endfor;
pickup pencircle scaled 1pt;
draw w
Am 01.04.2011 11:39, schrieb Tim Steenvoorden:
> Dear list,
>
> I'm trying to make some fancy chapter headers. With MetaPost I drew a
> wave, which I'd like to place in the margin. I've read details.pdf and
> metafun.pdf, but I don't manage to get the positioning right. The wave
> should begin whe
Dear list,
I'm trying to make some fancy chapter headers. With MetaPost I drew a
wave, which I'd like to place in the margin. I've read details.pdf and
metafun.pdf, but I don't manage to get the positioning right. The wave
should begin where the bottomframe ends and move on to the page
border. Als