On Feb 16, 2024, at 6:03 PM, João Felipe Contreras <jfcm...@gmail.com> wrote:Hello everybody!
I'm making some notes based on a 3blue1brown video. At a certain point in the video, he shows the Lotka-Volterra equations with the variables represented by figures of rabbits and foxes.I tried to represent this using MathJax and the <mglyph> element of MathML. The initial result has the icons floating above the symbols.
\(
\def\fox{\mmlToken{mglyph}[src="imgs/fox.svg" width="50px"]{}}
\def\rabbit{\mmlToken{mglyph}[src="imgs/rabbit.svg"]{}}
\)
\[\begin{align}
\frac{{d\rabbit}}{dt} &= \rabbit(\alpha - \beta \fox) \\
\frac{d\fox}{dt} &= \fox(\delta \rabbit - \gamma)
\end{align}\]<bug1_mathjax.png>
It seems to be a problem that could be solved with a negative value of the "valign" parameter (responsible for aligning baselines). However, when attempting to do this, all symbols that are at the top of the fraction float.
\(
\def\fox{\mmlToken{mglyph}[src="imgs/fox.svg" width="50px" valign="-15px"]{}}
\def\rabbit{\mmlToken{mglyph}[src="imgs/rabbit.svg" valign="-15px"]{}}
\)
\[\begin{align}
\frac{{d\rabbit}}{dt} &= \rabbit(\alpha - \beta \fox) \\
\frac{d\fox}{dt} &= \fox(\delta \rabbit - \gamma)
\end{align}\]<bug2_mathjax.png>
How should I proceed to correct this issue?
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/491be87a-b3ff-4053-ad80-b1fa5745cdf8n%40googlegroups.com.
<bug1_mathjax.png><bug2_mathjax.png>