From: Wolfgang Schuster <schuster.wolfgang-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
To: TeX on Mac OS X Mailing List
<macosx-tex-yNUTs0qEFpZ/1wmUHrjjoYdd74u8MsAO@public.gmane.org>
Cc: mailing list for ConTeXt users
<ntg-context-wvrSQK3plZs@public.gmane.org>
Subject: Re: \ne in a definetyping environment in context
Date: Tue, 15 Feb 2011 14:52:10 +0100 [thread overview]
Message-ID: <E1B963B0-1555-4971-8B83-9743C00BCFD9@gmail.com> (raw)
In-Reply-To: <DD3865FC-B7EC-4A4C-9E63-39F49D1C478C-hPWwJ4didUYmnvkBusLcMw@public.gmane.org>
[-- 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
parent reply other threads:[~2011-02-15 13:52 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <DD3865FC-B7EC-4A4C-9E63-39F49D1C478C-hPWwJ4didUYmnvkBusLcMw@public.gmane.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1B963B0-1555-4971-8B83-9743C00BCFD9@gmail.com \
--to=schuster.wolfgang-gm/ye1e23mwn+bqq9rbeug@public.gmane.org \
--cc=macosx-tex-yNUTs0qEFpZ/1wmUHrjjoYdd74u8MsAO@public.gmane.org \
--cc=ntg-context-wvrSQK3plZs@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).