-
Notifications
You must be signed in to change notification settings - Fork 231
Expanding AsciiMath syntax
From https://groups.google.com/d/msg/mathjax-users/mlTWH77ZVWo/hag6rP6wq00J
AsciiMath doesn't have a command for obtaining bold-italic letters, but you can add one by inserting
<script type="text/x-mathjax-config">
MathJax.Hub.Register.StartupHook("AsciiMath Jax Config",function () {
var AM = MathJax.InputJax.AsciiMath.AM;
AM.symbols.push(
{input:"mathbi", tag:"mstyle", atname:"mathvariant", atval:"bold-italic",
output:"mathbi", tex:null, ttype:AM.TOKEN.UNARY}
);
});
</script>
to your HTML file somewhere before the script that loads MathJax.js
itself. Then you can use mathbf(m)
to obtain the bold-italic "m" that you are looking for.
Davide
From https://groups.google.com/d/msg/mathjax-users/NSLX6psnRLM/N1zOGpXmFbgJ
AsciiMath doesn't seem to have a symbol for complement (what would be
produced by \complement
in TeX), but you can use the Unicode reference
directly. Since that symbol is at U+2201, you can use ∁_A B
to get the result you are looking for.
Davide
From https://groups.google.com/d/msg/mathjax-users/23fsyOHJepc/uqGWqN7wfd0J
Is there anyway to get aligned formulas through AsciiMath Input? I searched on LaTeX input before and knew that
\begin{align} \end{align}
and&=
is great for simple alignment.
I don't believe there is a natural way to do that, but you can probably approximate it using arrays. Something like
{: (a,=,b), ( ,=, c) :}
might do what you want. On the other hand, since TeX has nice constructs for that, why not use TeX? There are Mathjax configurations that load both TeX and AsciiMath, so you could mix the two if you want to do most of the typesetting in AsciiMath.
Davide