LATEX in chat
It would be great if you added LATEX support to discord client (even Facebook Messenger has that feature), you could easily write readable math equations without any problems, also text formatting would be a lot easier.
Please consider my request, i believe it could make Discord even better and could make new math-people interested in using Discord.
-
+1. We've been using facebook for short equations instead of being able to keep it in our group discord channel. It's ridiculous that we get syntax highlighting for brainfuck (https://gist.github.com/Almeeida/41a664d8d5f3a8855591c2f1e0e07b19) and not for latex.
0 -
This has already been addressed here:
https://support.discordapp.com/hc/en-us/community/posts/360030118671-latex-implementation
and here:
https://twitter.com/discordapp/status/1025661220181954560?lang=en
It would be great if they added this feature, but it's probably not going to happen any time soon.
In the meantime, there are bots which support LaTeX rendering such as
TeXit: https://top.gg/bot/510789298321096704
and Mathbot: https://top.gg/bot/mathbot5 -
Yes this would be great!
It could be done easily using markdown syntax using mathjax, katex, or even github's math rendering system, all of which use simplified varieties of LaTeX's/TeX's math notation syntax.Side notes and known caveats w/ each:
GitHub's math rendering system,
only outputs images rather than mathml, html, or (best option for accessibility) mathml & html, like the other two options, preventing easy copying and limiting reasonable support given discords current multimedia. As it just inputs the info from the parameter in the requesting URL into a template of the LaTeX standalone class and outputs to png.
MathJaxFor overall support, ease of use, customizability (for compatibility and use), would be a great pick but unfortunately it is the slowest of all the options.
It also allows limited macro definitions in both LaTeX and TeX styles, which are usually global to the instance of the MathJax system being used, so you would either need to sanities the input for non math mode things, or be careful in how you set things up. It would likely not be difficult to make these customizations server and/or channel specific so that admins can set up custom macros.KaTeX
Not as customizable as MathJax, but it is noticeably lighter weight, and simpler to implement (though more restrictive and manual of a process).
However, it currently has some significant rendering and consistency errors/bugs. Between modifying the syntax, names, and functionality of std LaTeX lib items, as well as some commonly used packages, as well as, having (currently as of 2021/04/06) issues with sizing and rendering of sub scripts and superscripts, and many other things that resize and move elements around. It can be said that the package is just not as mature as the other two.Anyway, I really hope to see this implemented one day, as using things like the math bot are just not as good of solutions, for discussion, as implementing some system like the ones mentioned above that are commonly used for rendering math from markdown syntax (even json segmented markdown like discord has, see ipnb files for the jupyter systems).
5
請登入寫評論。
評論
3 條評論