Strange behavior of a macro
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
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 -----------------------------------------------------------------
participants (2)
-
Fabrice Couvreur
-
Hans Hagen