[OS X TeX] \ne in a definetyping environment in context
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Tue Feb 15 14:52:10 CET 2011
Am 14.02.2011 um 01:37 schrieb David Arnold:
> All,
>
> I have the following in a Context file:
>
> \definetyping[XXX]
>
> \startXXX
> If int(N/2) \ne N/2
>
> Then
> Disp "N MUST BE EVEN"
> Stop
> End
> \stopXXX
>
> Is there an easy way to replace the \ne with code that will produce the normal "not equals" symbol produced by amsmath?
Use the \startlines environment.
MkII:
\startlines\tt
If int(N/2) $\ne$ N/2
Then
Disp "N MUST BE EVEN"
Stop
End
\stoplines
MkIV:
\definelines[XXX][style=mono]
\startXXX
If int(N/2) $\ne$ N/2
Then
Disp "N MUST BE EVEN"
Stop
End
\stopXXX
or
\startlines[style=mono]
If int(N/2) $\ne$ N/2
Then
Disp "N MUST BE EVEN"
Stop
End
\stoplines
Wolfgang
More information about the macostex-archives
mailing list