* MetaFun: nofmultipars wrong?
@ 2018-09-25 1:24 Henri Menke
2018-09-25 12:04 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Henri Menke @ 2018-09-25 1:24 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
Dear list,
I used to be under the impression that when you wanted a background
frame around a piece of text, you'd use a loop over nofmultipars.
However, I realized that even when the contained material breaks across
pages, the counter remains 1 on the second page.
Another issue is that the frame containing the page break has a stray
blank line at the end.
Is this something that changed recently when switching to the one-pass
processing? I have attached the output of beta 2018.09.24 14:11 (which
I believe is the latest).
Cheers, Henri
---
\startuseMPgraphic{pageframe}
for i=1 upto nofmultipars :
draw (ulcorner multipars[i] -- urcorner multipars[i]) withcolor red ;
draw (llcorner multipars[i] -- lrcorner multipars[i]) withcolor red ;
label.lft(decimal i, ulcorner multipars[i]) withcolor red ;
endfor ;
\stopuseMPgraphic
\definetextbackground
[PageFrame]
[mp=pageframe,
location=paragraph]
\starttext
\samplefile{knuth}
\starttextbackground[PageFrame]
\samplefile{knuth}
\stoptextbackground
\samplefile{knuth}
\starttextbackground[PageFrame]
\samplefile{knuth}
\samplefile{knuth}
\samplefile{knuth}
\stoptextbackground
\stoptext
[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 12419 bytes --]
[-- Attachment #3: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MetaFun: nofmultipars wrong?
2018-09-25 1:24 MetaFun: nofmultipars wrong? Henri Menke
@ 2018-09-25 12:04 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2018-09-25 12:04 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henri Menke
On 9/25/2018 3:24 AM, Henri Menke wrote:
> Dear list,
>
> I used to be under the impression that when you wanted a background
> frame around a piece of text, you'd use a loop over nofmultipars.
> However, I realized that even when the contained material breaks across
> pages, the counter remains 1 on the second page.
>
> Another issue is that the frame containing the page break has a stray
> blank line at the end.
>
> Is this something that changed recently when switching to the one-pass
> processing? I have attached the output of beta 2018.09.24 14:11 (which
> I believe is the latest).
label.lft(decimal multilocs[i], ulcorner multipars[i]) withcolor red ;
> Cheers, Henri
>
> ---
>
> \startuseMPgraphic{pageframe}
> for i=1 upto nofmultipars :
> draw (ulcorner multipars[i] -- urcorner multipars[i]) withcolor red ;
> draw (llcorner multipars[i] -- lrcorner multipars[i]) withcolor red ;
> label.lft(decimal i, ulcorner multipars[i]) withcolor red ;
> endfor ;
> \stopuseMPgraphic
>
> \definetextbackground
> [PageFrame]
> [mp=pageframe,
> location=paragraph]
>
> \starttext
>
> \samplefile{knuth}
>
> \starttextbackground[PageFrame]
> \samplefile{knuth}
> \stoptextbackground
>
> \samplefile{knuth}
>
> \starttextbackground[PageFrame]
> \samplefile{knuth}
> \samplefile{knuth}
> \samplefile{knuth}
> \stoptextbackground
>
> \stoptext
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-25 12:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25 1:24 MetaFun: nofmultipars wrong? Henri Menke
2018-09-25 12:04 ` Hans Hagen
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).