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
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
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
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.
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 ;
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
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}}]