On 8/16/2021 4:28 PM, Fabrice Couvreur via ntg-context wrote:
Hello,
I don't understand why this macro works with this simple example but
return the following error if I use it for chapters in my book.
Thanks
Fabrice
%%%%
\setupbodyfont
[newcomputermodern-book,11pt]
\unexpanded\def\N{\math{\mathbb{N}}\autoinsertnextspace}
\defineenumeration
[test]
[title=yes,
text={Test},
style=italic]
\starttext
\N
\starttest
\m{\forall n \in \N}
\stoptest
\stoptext
%%%%
tex error > tex error on line 64 in file ./terminale_suites_2.tex:
Use of \N doesn't match its definition
maybe it gets redefined someplace?
just before the error you can say
\show\N or \meaning\N or \tracingall and see what the machinery expects
-----------------------------------------------------------------
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
___________________________________________________________________________________