ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* reusableMPgraphic
@ 2021-07-12 16:02 Thomas A. Schmitz
  2021-07-12 16:18 ` reusableMPgraphic Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas A. Schmitz @ 2021-07-12 16:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

I don’t know if I’m overlooking something really basic or if this is a bug. The following MWE compiles with mkiv, but not with lmtx:

\startreusableMPgraphic{fold}
   fill unitsquare xyscaled (1mm,1mm) withcolor blue ;
\stopreusableMPgraphic    

\definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight]
\setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}

\setupbackgrounds [page][background=foldingmarkslayer]

\starttext

Test

\stoptext

The error I get:

tex error on line 6 in file ./test.tex: Use of \meta_usempgraphic_nop doesn't match its definition

Any pointers? Thanks

Thomas
___________________________________________________________________________________
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] 4+ messages in thread

* Re: reusableMPgraphic
  2021-07-12 16:02 reusableMPgraphic Thomas A. Schmitz
@ 2021-07-12 16:18 ` Wolfgang Schuster
  2021-07-15 21:10   ` reusableMPgraphic Jairo A. del Rio
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2021-07-12 16:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz

Thomas A. Schmitz schrieb am 12.07.2021 um 18:02:
> Hi all,
>
> I don’t know if I’m overlooking something really basic or if this is a bug. The following MWE compiles with mkiv, but not with lmtx:
>
> \startreusableMPgraphic{fold}
>     fill unitsquare xyscaled (1mm,1mm) withcolor blue ;
> \stopreusableMPgraphic
>
> \definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight]
> \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}
>
> \setupbackgrounds [page][background=foldingmarkslayer]
>
> \starttext
>
> Test
>
> \stoptext
>
> The error I get:
>
> tex error on line 6 in file ./test.tex: Use of \meta_usempgraphic_nop doesn't match its definition
>
> Any pointers? Thanks

meta-ini.mkxl

-\def\meta_usempgraphic_nop#=#*#=%
+\tolerant\def\meta_usempgraphic_nop#=#*#=%
   {\meta_begin_graphic_group{#1}%
    ...
    \meta_end_graphic_group}

Wolfgang

___________________________________________________________________________________
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] 4+ messages in thread

* Re: reusableMPgraphic
  2021-07-12 16:18 ` reusableMPgraphic Wolfgang Schuster
@ 2021-07-15 21:10   ` Jairo A. del Rio
  2021-07-15 21:37     ` reusableMPgraphic Thomas A. Schmitz
  0 siblings, 1 reply; 4+ messages in thread
From: Jairo A. del Rio @ 2021-07-15 21:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1829 bytes --]

Hi, list! Is this already fixed in a new upload? I'm compiling old
documents and having the same problem as Thomas, although Wolfgang's
comment fixes it nicely.

Cordially,

Jairo

El lun, 12 de jul. de 2021 a la(s) 11:18, Wolfgang Schuster (
wolfgang.schuster.lists@gmail.com) escribió:

> Thomas A. Schmitz schrieb am 12.07.2021 um 18:02:
> > Hi all,
> >
> > I don’t know if I’m overlooking something really basic or if this is a
> bug. The following MWE compiles with mkiv, but not with lmtx:
> >
> > \startreusableMPgraphic{fold}
> >     fill unitsquare xyscaled (1mm,1mm) withcolor blue ;
> > \stopreusableMPgraphic
> >
> > \definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight]
> > \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}
> >
> > \setupbackgrounds [page][background=foldingmarkslayer]
> >
> > \starttext
> >
> > Test
> >
> > \stoptext
> >
> > The error I get:
> >
> > tex error on line 6 in file ./test.tex: Use of \meta_usempgraphic_nop
> doesn't match its definition
> >
> > Any pointers? Thanks
>
> meta-ini.mkxl
>
> -\def\meta_usempgraphic_nop#=#*#=%
> +\tolerant\def\meta_usempgraphic_nop#=#*#=%
>    {\meta_begin_graphic_group{#1}%
>     ...
>     \meta_end_graphic_group}
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2778 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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] 4+ messages in thread

* Re: reusableMPgraphic
  2021-07-15 21:10   ` reusableMPgraphic Jairo A. del Rio
@ 2021-07-15 21:37     ` Thomas A. Schmitz
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas A. Schmitz @ 2021-07-15 21:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 7/15/21 11:10 PM, Jairo A. del Rio wrote:
> Hi, list! Is this already fixed in a new upload? I'm compiling old
> documents and having the same problem as Thomas, although Wolfgang's
> comment fixes it nicely.
> 
> Cordially,

There hasn't been a new upload since I asked my question, so for the 
time being, you have to apply the patch yourself.

Thomas
___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2021-07-15 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 16:02 reusableMPgraphic Thomas A. Schmitz
2021-07-12 16:18 ` reusableMPgraphic Wolfgang Schuster
2021-07-15 21:10   ` reusableMPgraphic Jairo A. del Rio
2021-07-15 21:37     ` reusableMPgraphic Thomas A. Schmitz

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).