[OS X TeX] \ne in a definetyping environment in context
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Tue Feb 15 08:52:10 EST 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 MacOSX-TeX
mailing list