[NTG-context] Text with background (overlay with a line by MP)

Procházka Lukáš LPr at pontex.cz
Sat Mar 19 23:34:05 CET 2011


On Sat, 19 Mar 2011 23:13:46 +0100, Aditya Mahajan <adityam at umich.edu> wrote:

> You do not need yshifted. But you need to set the bounding box of the
> resulting image correctly.
>
> \startuniqueMPgraphic{Label}
>   path p; p := (0,0) -- (OverlayWidth,0);
>   draw p withpen pencircle scaled 1mm withcolor .667red;
>   setbounds currentpicture to boundingbox OverlayBox ;
> \stopuniqueMPgraphic
>
> Aditya

Perfect, thank you.

Lukas




More information about the ntg-context mailing list