ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: \ne in a definetyping environment in context
       [not found] ` <DD3865FC-B7EC-4A4C-9E63-39F49D1C478C-hPWwJ4didUYmnvkBusLcMw@public.gmane.org>
@ 2011-02-15 13:52   ` Wolfgang Schuster
  0 siblings, 0 replies; only message in thread
From: Wolfgang Schuster @ 2011-02-15 13:52 UTC (permalink / raw)
  To: TeX on Mac OS X Mailing List; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 750 bytes --]


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


[-- Attachment #2: Type: text/plain, Size: 349 bytes --]

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex


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

only message in thread, other threads:[~2011-02-15 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <DD3865FC-B7EC-4A4C-9E63-39F49D1C478C@suddenlink.net>
     [not found] ` <DD3865FC-B7EC-4A4C-9E63-39F49D1C478C-hPWwJ4didUYmnvkBusLcMw@public.gmane.org>
2011-02-15 13:52   ` \ne in a definetyping environment in context Wolfgang Schuster

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