I think I could solve all the problems. Attached the finalized working example.
I created the
https://wiki.contextgarden.net/MetaPost#Layer_sets_as_individual_pages entry
with it. Feel free to modify.
Cheers
Emanuel
On Feb. 16 2024, at 7:56 am, Mikael Sundqvist wrote:
> Hi,
>
> not sure I
Hi,
not sure I get what you are missing. But you can try
setbounds currentpicture to (fullsquare scaled 200) ;
in base. And then do
\dorecurse{5}{
\startTEXpage[offset=1DK]
\useMPgraphic{layerset#1}
\stopTEXpage
}
if that is the looping you are after.
/Mikael
On Fri, Feb 16, 2024 at 6:54 AM
Resp. the solution should be such that each generated PDF page has the same
dimension, the same background colour and a page number and the metapost
content on each page has the same scaling factor.
On Feb. 15 2024, at 11:10 pm, Emanuel Han via ntg-context
wrote:
> Dear Mikael,
>
> I actually
Dear Mikael,
I actually need to keep the \dorecurse mechanism of the mwe (from line 44 on),
because I need the "setbounds currentpicture to TheFrame" and also because I
need page numbering inside the MPpage, as done with draw
textext(decimal(currentime)).
So, how can I use the
Dear Mikael,
thanks a lot!
this seems to be the solution! And it looks beatiful enough to me
I'll try to port all my layers to this new method and see if I run into new
problems again
Emanuel
On Feb. 15 2024, at 8:19 am, Mikael Sundqvist wrote:
> Hi
>
> On Thu, Feb 15, 2024 at 1:03 AM
Hi
On Thu, Feb 15, 2024 at 1:03 AM Emanuel Han via ntg-context
wrote:
>
> Dear list,
>
> the attached .tex file is the minimal working example we discussed today in
> the online meeting.
>
> I realized that the approach of looping through k of p[k] is not fitting my
> needs, because it's not