* Question about text backgrounds
@ 2022-09-03 14:14 Alexandre Christe via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Christe via ntg-context @ 2022-09-03 14:14 UTC (permalink / raw)
To: ntg-context; +Cc: Alexandre Christe
Hmmm it seems the trick lies in adding
\setupfloats
[freeregion=no]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Question about text backgrounds
@ 2022-09-03 14:01 Alexandre Christe via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Christe via ntg-context @ 2022-09-03 14:01 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Alexandre Christe
[-- Attachment #1.1: Type: text/plain, Size: 786 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1058 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-03 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-03 14:14 Question about text backgrounds Alexandre Christe via ntg-context
-- strict thread matches above, loose matches on Subject: below --
2022-09-03 14:01 Alexandre Christe via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).