ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri Menke <henrimenke@gmail.com>
To: ntg-context@ntg.nl
Subject: MetaFun: nofmultipars wrong?
Date: Tue, 25 Sep 2018 13:24:40 +1200	[thread overview]
Message-ID: <4c0fc649-2d11-ac8d-4d8c-22c774c379bf@gmail.com> (raw)

[-- 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
___________________________________________________________________________________

             reply	other threads:[~2018-09-25  1:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-25  1:24 Henri Menke [this message]
2018-09-25 12:04 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c0fc649-2d11-ac8d-4d8c-22c774c379bf@gmail.com \
    --to=henrimenke@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).