asciimath / asciimathml

A new home for asciimathml
http://asciimath.org/
MIT License
958 stars 184 forks source link

Suggested symbols #81

Closed hgiesel closed 6 years ago

hgiesel commented 6 years ago

asciimathml already supports , so why not? One usage is showing adjoint functors. Suggested input would --|, to mirror |--

This is used for showing normal subgroups, but there might also other uses. Suggested input would be <|, and |>.

drlippman commented 6 years ago

Thanks for the suggestion. For the triangle operators, my only concern would be that it might cause backwards compatibility issues, for someone who's written something like |x|>3 without leaving spaces.

FWIW, if you're using MathJax for display, you could add these symbols yourself using a custom config like:

<script type="text/x-mathjax-config">
  MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready",function () {
    AM = MathJax.InputJax.AsciiMath.AM;
    AM.newsymbol({input:"--|", tag:"mo", output:"\u22A3", tex:"dashv", ttype:AM.TOKEN.CONST});
  });
</script>
hgiesel commented 6 years ago

I consider it a golden rule to always surround operators with spaces, but anyway ;)

And thanks for the suggestion. But because 99% of the time I look at my markup through a text editor anyway, I don't mind too much, but I would to love to see the syntax be expanded to cover more use cases.