At 10:35 PM 9/6/2001 +0200, Frans Goddijn wrote:
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>\startreusableMPgraphic{omcirkeld}
> draw fullcircle xyscaled (OverlayWidth)
> withpen pencircle scaled OverlayLineWidth
> withcolor OverlayLineColor ;
> path b ; b := boundingbox currentpicture ;
> currentpicture := currentpicture shifted (-1pt,+3pt) ;
> setbounds currentpicture to b ;
>\stopreusableMPgraphic
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>\defineoverlay[omcirkeld][\reuseMPgraphic{omcirkeld}]
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\startreusableMPgraphic{omcirkeld}
draw fullcircle xyscaled (OverlayWidth)
withpen pencircle scaled OverlayLineWidth
withcolor OverlayLineColor ;
path b ; b := boundingbox currentpicture ;
currentpicture := currentpicture shifted (-.05*EmWidth,0*ExHeight) ;
setbounds currentpicture to b enlarged 3pt ;
\stopreusableMPgraphic
You can prevent the clipping by enlarging the boundingbox a bit; for
illustrative purposes, you can add an extra line:
draw boundingbox currentpicture withcolor red ;
to see what this box is
since backgrounds are centered a larger boundingbox does not hurt
>Now I wonder, should I make the c!voorgrond something like c!achtergrond
>(which didn't work when I tried of course ;=}}}
hm, what do you want to achieve here? the foreground can be accessed, for
special purposes, like in
background={graphic-1,graphic-2,foreground,graphic-3}
there is also foregroundcolor, which cna be used for a 'non interefering'
coloring of content
with regards to the macro: you should set the font outsite the framed, so
that it will adapt itself to the font characteristics. Also, \font is not
needed:
you probably want to use the serif, so
\def\FransP
{\midaligned{\definedfont[Whow][PFont sa 1]\omcirkeld....}
Instead of PFont you can use a name but indirectness makes this macro
useable in other docs with other fonts:
\definefontsynonym[PFont][Serif] % or [PFont]
[oneoffransoldstylefonts] or whatever
etc etc etc
hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------