ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Compilation error with \ifnum
@ 2015-05-05 10:42 Maggyero
  0 siblings, 0 replies; only message in thread
From: Maggyero @ 2015-05-05 10:42 UTC (permalink / raw)
  To: ntg-context


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

Dear list members,

Why the following code gives me the following error?

Code:

\begingroup \catcode`\"=12
    \gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A%
    \ifnum\mathcode`\-=45 \else
        \mathchardef\std@minus\mathcode`\-\relax
    \fi
    \mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax}
\endgroup
\definemathcommand[xyz][nolop]{\newmcodes@
\kern\zeropoint\mfunction{fancy-function-name'*.:}}
\starttext
$\xyz$
\stoptext

Error:

tex error       > error on line 13 in file
/Users/maggyero/Desktop/test.tex: ! Extended mathchar used as mathchar
(4203026)
<to be read again>
=
\newmcodes ...thcode `\."613A\ifnum \mathcode `\-=
                                                  45 \else \mathchardef
\std...
<argument> \newmcodes @
             \kern \zeropoint \mfunction {fancy-function-name'*.:}
\486>nolop #1->\mathop {#1
                          }\nolimits
l.13 $\xyz
        $

Thank you in advance.


Maggyero

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-05 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-05 10:42 Compilation error with \ifnum Maggyero

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