Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

! in front of a relation symbol R should be equivalent to \not R #102

Open
christianp opened this issue Jan 29, 2019 · 5 comments
Open

! in front of a relation symbol R should be equivalent to \not R #102

christianp opened this issue Jan 29, 2019 · 5 comments

Comments

@christianp
Copy link

A student using AsciiMath recently needed to write something equivalent to the LaTeX \not \subset. As far as I can tell, AsciiMath doesn't currently have a generic not syntax to draw a line through the following symbol.

There are a couple of constants defined this way already: !in and !=.

In christianp/asciimath2tex#4, I've separated out the built-in constants that act like relations, and added a rule to the grammar that says if they're preceded by a ! character, put a \not in front of the TeX output.

The MathML 3 spec contains an operator dictionary; I suppose everything in that list that has a "not" variant should follow this rule.

Might this lead to breaking changes? I suppose a statement like 5!le120 would fall foul of this, so you'd have to insist on a space: 5! le 120.

@davidfarmer
Copy link

There already is an ambiguity between 5! = 120 and 5 != 120,
so this suggestion does not break anything. Personally, I like the idea
of using spaces to clarify the meaning.

However, I think it is better to just identify the small number of missing
"not"ed relations, and just implement them specifically. The ones I see as
important are subset, superset, and equiv. Maybe if you used the successor
relations (which I never do) then you might possibly want to negate them.

Another missing relation is "proper subset", which is \subsetneq in
TeX (it is sube with a slash only through the lower part).

If everyone used sub to mean "subset and possibly equal to", then
we would never need to use sube, and then !sube could convert to
\subsetneq. But I don't see people liking that.

Maybe subne is a reasonable option?

@christianp
Copy link
Author

Good point about spacing!

\nexists is another symbol the student needed. You're right that the subset relations are the most commonly used, but we might as well add at least the successor relations. I can see someone using the logical entailment and operators, too.

Is there a philosophy of minimalism behind the number of constants in AsciiMath, or are things just added as needed?

@pkra
Copy link
Contributor

pkra commented Jan 31, 2019

If I may be so bold: The W3C MathOnWeb CG has a dormant task force on "text based" formats and I think you might find more people interested in standardization in the group.

(FYI Joining a call does not require formally joining the group, you can just show up - but maybe give us a heads-up.)

@davidfarmer
Copy link

davidfarmer commented Feb 1, 2019 via email

@davidfarmer
Copy link

davidfarmer commented Feb 1, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants