[NTG-context] Question about text backgrounds

Alexandre Christe aleks.christe at gmail.com
Sat Sep 3 16:01:09 CEST 2022


Hi,

I just came across nofmultipars (which is great for splitting frames across
pages, unlike a simple framed). Is there an equivalent for floats?

The MWE would contain

\startuseMPgraphic{mp:textFrame}
begingroup;
path p ;
for i = 1 upto nofmultipars :
p := (ulcorner multipars[i]) -- (llcorner multipars[i]) -- (llcorner
multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm) --
cycle ;
fill p withcolor "darkgreen" ;
endfor;
endgroup;
\stopuseMPgraphic

together with

\definetextbackground
[exampleFrame]
[
mp=mp:textFrame,
location=paragraph,
]

Assuming I have between \starttextbackground[exampleFrame] and
\starttextbackground[exampleFrame] also a figure in addition to text
paragraphs. Would it be possible to also draw a rule next to it?

Best regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220903/c71aad74/attachment.htm>


More information about the ntg-context mailing list