Default $\langle{\text{bra}}|\text{ket}\rangle$ \newcommand in every post


$$\ket{\text{Since I always fight with "|\rangle" in my posts, can't we have }}$$


$$\ket{\text{as default, to make life easier? }}$$

• that would indeed make life easier. I don't know how much control we actually have on implementing custom macros though. Also, something should be done to prevent this from clashing with custom macros that people might have included in their posts in the meantime. If someone defined, say, \bra as something different in their post, this would break the formatting (although this is fixed by simply having macros defined in the post take precedence). I suspect this sort of thing would be better handled with some browser extension or script (e.g. a tempermonkey script)
– glS Mod
May 9, 2020 at 12:09
• Related: "Can custom TeX/MathJax commands be defined by default for a site?" at SE.Math.Meta.
– Nat
May 13, 2020 at 22:43
• I'd support this. Honestly, we're going to be replacing MathJax in the not too distant future (won't explain, just informing), so I wouldn't worry too much about over-engineering a solution in the current system. Just defining such custom commands seems like an appropriate step for now.
– Nat
May 13, 2020 at 22:45
• @Nat I did remember this being discussed before, though nothing came out of it. Who's "we" here? Moving away from mathjax is fine, there are already arguably better alternatives around, but I don't see moving away from a latex system supporting macros anytime soon... I mean that would break a giant amount of posts
– glS Mod
May 13, 2020 at 22:59
• @Nat Who said MathJax is being replaced in the near future? Do you have a reference for this? Feb 6, 2021 at 23:20