Re: [NTG-context] offset for background overlay

2020-04-13 Thread Wolfgang Schuster
mf schrieb am 13.04.2020 um 17:21: Thanks also for the explanation of backgroundoffset: it's an offset relative only to the background, and it moves in the opposite direction of the content offset of \framed. Looks like \framed[...,offset=VALUE,backgroundoffset=frame,...] is equivalent to

Re: [NTG-context] offset for background overlay

2020-04-13 Thread mf
Or maybe a method in MP to set the bounding box of the resulting overlay? setbounds in combination with leftenlarged, topenlarged etc. Thanks Wolfgang, this is the kind of solution I was looking for: \startuseMPgraphic{cell:triangle} path p ; p := unittriangle rotated 90 xscaled 2.5

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Wolfgang Schuster
mf schrieb am 11.04.2020 um 23:59: Thanks Hans and Wolfgang. @Wolfgang: your solution is clearer, but unfortunately it works only for this MWE. In the real case the triangle extends over 2 rows, but the table has more than 2 rows. I tried grouping the first two rows in a

Re: [NTG-context] offset for background overlay

2020-04-11 Thread mf
Thanks Hans and Wolfgang. @Wolfgang: your solution is clearer, but unfortunately it works only for this MWE. In the real case the triangle extends over 2 rows, but the table has more than 2 rows. I tried grouping the first two rows in a \bTABLEbody[background=triangle], but it doesn't work.

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Wolfgang Schuster
Hans Hagen schrieb am 11.04.2020 um 19:41: On 4/11/2020 4:15 PM, mf wrote: Hello list, this MWE is a simplified version of a real case: \startuseMPgraphic{cell:triangle}    path p ; p := unittriangle rotated 90 xscaled 2.5 OverlayWidth yscaled 2.5 OverlayHeight ;    draw p withcolor red ;

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Hans Hagen
On 4/11/2020 4:15 PM, mf wrote: Hello list, this MWE is a simplified version of a real case: \startuseMPgraphic{cell:triangle}   path p ; p := unittriangle rotated 90 xscaled 2.5 OverlayWidth yscaled 2.5 OverlayHeight ;   draw p withcolor red ; \stopuseMPgraphic

[NTG-context] offset for background overlay

2020-04-11 Thread mf
Hello list, this MWE is a simplified version of a real case: \startuseMPgraphic{cell:triangle} path p ; p := unittriangle rotated 90 xscaled 2.5 OverlayWidth yscaled 2.5 OverlayHeight ; draw p withcolor red ; \stopuseMPgraphic \defineoverlay[triangle][{\uniqueMPgraphic{cell:triangle}}]