ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Henri Menke <henrimenke@gmail.com>
Subject: Re: MetaFun: nofmultipars wrong?
Date: Tue, 25 Sep 2018 14:04:47 +0200	[thread overview]
Message-ID: <0dbdf783-76c4-9c07-7110-5fc0e779c4a8@xs4all.nl> (raw)
In-Reply-To: <4c0fc649-2d11-ac8d-4d8c-22c774c379bf@gmail.com>

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
___________________________________________________________________________________

      reply	other threads:[~2018-09-25 12:04 UTC|newest]

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

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=0dbdf783-76c4-9c07-7110-5fc0e779c4a8@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=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).