* Typo in m-tikz
@ 2021-12-13 18:05 Aditya Mahajan via ntg-context
2021-12-13 18:19 ` Aditya Mahajan via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-13 18:05 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Aditya Mahajan
Hi,
There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The module ends with a spurious `\stopmodule`:
https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113
(Or rather, the corresponding `\startmodule` is missing).
This causes an interesting error message on the following test file:
\usemodule[tikz]
\usetypescriptfile[euler]
\definetypeface[mainfont][rm][serif][pagella][default]
\definetypeface[mainfont][mm][math] [pagellaovereuler][default]
\definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, features=none]
\setupbodyfont[mainfont,11pt]
\starttext
$\dfrac{1}{2}$
\stoptext
which gives:
system > module wrapping error in 'tikz'
close source > level 2, order 67, name '/opt/luametatex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source > level 2, order 68, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-euler.mkiv'
open source > level 3, order 69, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 3, order 69, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
open source > level 3, order 70, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
close source > level 3, order 70, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
suggestion > use \withcedilla instead of \c
suggestion > use \withcaron instead of \v
close source > level 2, order 70, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-euler.mkiv'
open source > level 2, order 71, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 2, order 71, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
fonts > typescripts > unknown library 'pagellaovereuler'
open source > level 2, order 72, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
close source > level 2, order 72, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
fonts > defining > font with asked name 'unknown' is not found using lookup 'file'
fonts > defining > unable to define 'unknown' as 'mainfont-11pt-rm-tf-0--0'
fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mr--3'
fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mr--2'
fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mr--1'
fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mb--3'
fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mb--2'
fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mb--1'
tex error > tex error on line 10 in file ./test.tex: Math error: parameter 'fractionrule' in style 2 is not set
<line 3.10>
$\dfrac{1}{2}$
And since tikz is a latex module, in the true LaTeX spirit, the error goes away (for obvious reasons) if I move the \usemodule[tikz] to after the font definitions. It took quite a while to figure out what is happening.
Aditya
___________________________________________________________________________________
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: Typo in m-tikz
2021-12-13 18:05 Typo in m-tikz Aditya Mahajan via ntg-context
@ 2021-12-13 18:19 ` Aditya Mahajan via ntg-context
2021-12-13 19:12 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-13 18:19 UTC (permalink / raw)
To: Aditya Mahajan via ntg-context; +Cc: Aditya Mahajan
On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote:
> Hi,
>
> There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The module ends with a spurious `\stopmodule`:
>
> https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113
>
> (Or rather, the corresponding `\startmodule` is missing).
> [...]
> And since tikz is a latex module, in the true LaTeX spirit, the error goes away (for obvious reasons) if I move the \usemodule[tikz] to after the font definitions. It took quite a while to figure out what is happening.
Actually, the missing \startmodule is not a culprit for this error. Even after fixing that, something goes wrong. Here is a minimal example:
\permanent\protected\def\starttikzinput
{\pushoverloadmode
\pushcatcodetable
\setcatcodetable\texcatcodes
\unprotect
\catcode`\@=11
\catcode`\|=12
\catcode`\!=12
\autoparagraphmode\zerocount}
\permanent\protected\def\stoptikzinput
{\autoparagraphmode\plusone
\protect
\popcatcodetable
\popoverloadmode}
\starttikzinput
\input t-pgf
\stoptikzinput
\usetypescriptfile[euler]
\definetypeface[mainfont][rm][serif][pagella][default]
\definetypeface[mainfont][mm][math] [pagellaovereuler][default]
\definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, features=none]
\setupbodyfont[mainfont,11pt]
\starttext
$\dfrac{1}{2}$
\stoptext
which gives the same error: parameter 'fractionrule' in style 2 is not set
Not sure what is happening here.
Aditya
___________________________________________________________________________________
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: Typo in m-tikz
2021-12-13 18:19 ` Aditya Mahajan via ntg-context
@ 2021-12-13 19:12 ` Hans Hagen via ntg-context
2021-12-13 19:17 ` Aditya Mahajan via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-13 19:12 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
On 12/13/2021 7:19 PM, Aditya Mahajan via ntg-context wrote:
> On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote:
>
>> Hi,
>>
>> There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The module ends with a spurious `\stopmodule`:
>>
>> https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113
>>
>> (Or rather, the corresponding `\startmodule` is missing).
>> [...]
>> And since tikz is a latex module, in the true LaTeX spirit, the error goes away (for obvious reasons) if I move the \usemodule[tikz] to after the font definitions. It took quite a while to figure out what is happening.
>
> Actually, the missing \startmodule is not a culprit for this error. Even after fixing that, something goes wrong. Here is a minimal example:
>
> \permanent\protected\def\starttikzinput
> {\pushoverloadmode
> \pushcatcodetable
> \setcatcodetable\texcatcodes
> \unprotect
> \catcode`\@=11
> \catcode`\|=12
> \catcode`\!=12
> \autoparagraphmode\zerocount}
>
> \permanent\protected\def\stoptikzinput
> {\autoparagraphmode\plusone
> \protect
> \popcatcodetable
> \popoverloadmode}
>
> \starttikzinput
> \input t-pgf
> \stoptikzinput
>
>
> \usetypescriptfile[euler]
> \definetypeface[mainfont][rm][serif][pagella][default]
> \definetypeface[mainfont][mm][math] [pagellaovereuler][default]
> \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, features=none]
> \setupbodyfont[mainfont,11pt]
>
> \starttext
> $\dfrac{1}{2}$
> \stoptext
>
> which gives the same error: parameter 'fractionrule' in style 2 is not set
>
> Not sure what is happening here.
can you test with the \protect \unprotect removed from these definitions?
--
-----------------------------------------------------------------
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] 4+ messages in thread
* Re: Typo in m-tikz
2021-12-13 19:12 ` Hans Hagen via ntg-context
@ 2021-12-13 19:17 ` Aditya Mahajan via ntg-context
0 siblings, 0 replies; 4+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-13 19:17 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Aditya Mahajan
On Mon, 13 Dec 2021, Hans Hagen wrote:
> On 12/13/2021 7:19 PM, Aditya Mahajan via ntg-context wrote:
> > On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote:
> >
> > > Hi,
> > >
> > > There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex).
> > > The module ends with a spurious `\stopmodule`:
> > >
> > > https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113
> > >
> > > (Or rather, the corresponding `\startmodule` is missing).
> > > [...]
> > > And since tikz is a latex module, in the true LaTeX spirit, the error goes
> > > away (for obvious reasons) if I move the \usemodule[tikz] to after the
> > > font definitions. It took quite a while to figure out what is happening.
> >
> > Actually, the missing \startmodule is not a culprit for this error. Even
> > after fixing that, something goes wrong. Here is a minimal example:
> >
> > \permanent\protected\def\starttikzinput
> > {\pushoverloadmode
> > \pushcatcodetable
> > \setcatcodetable\texcatcodes
> > \unprotect
> > \catcode`\@=11
> > \catcode`\|=12
> > \catcode`\!=12
> > \autoparagraphmode\zerocount}
> >
> > \permanent\protected\def\stoptikzinput
> > {\autoparagraphmode\plusone
> > \protect
> > \popcatcodetable
> > \popoverloadmode}
> >
> > \starttikzinput
> > \input t-pgf
> > \stoptikzinput
> >
> >
> > \usetypescriptfile[euler]
> > \definetypeface[mainfont][rm][serif][pagella][default]
> > \definetypeface[mainfont][mm][math] [pagellaovereuler][default]
> > \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8,
> > features=none]
> > \setupbodyfont[mainfont,11pt]
> >
> > \starttext
> > $\dfrac{1}{2}$
> > \stoptext
> >
> > which gives the same error: parameter 'fractionrule' in style 2 is not set
> >
> > Not sure what is happening here.
>
> can you test with the \protect \unprotect removed from these definitions?
That fixes the issue, both in the test file and in my bigger document.
Thanks,
Aditya
___________________________________________________________________________________
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-12-13 19:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 18:05 Typo in m-tikz Aditya Mahajan via ntg-context
2021-12-13 18:19 ` Aditya Mahajan via ntg-context
2021-12-13 19:12 ` Hans Hagen via ntg-context
2021-12-13 19:17 ` Aditya Mahajan via ntg-context
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).