It would be really awesome to be able to use CalcuLaTeX as a pandoc filter plugin.
Given a rock with mass $m_{rock}$ thrown by a force of $F_0$ acting over a duration $dt_{force}$,
calculate its airtime and the max height it achieves.
Given:
~~~ {calculatex #eq:facts}
g = 9.81 m/s^2
m_{rock} = 10 kg
F_0 = 1000 N
dt_{force} = 0.1 s
~~~
Solution:
~~~ {calculatex #eq:velocity}
y_{vel} = F_0 / m_{rock} * dt_{force} = ?
~~~
~~~ {calculatex #eq:airtime}
airtime = y_{vel} / g * 2 = ?
~~~
~~~ {calculatex #eq:heightmax}
height_{max} = y_{vel} * airtime / 4 = ? cm
~~~
Given a rock with mass $m_{rock}$ thrown by a force of $F_0$ acting over a duration $dt_{force}$,
calculate its airtime and the max height it achieves.
Given:
$$
g = 9.81 m/s^2
m_{rock} = 10 kg
F_0 = 1000 N
dt_{force} = 0.1 s
$$ {#eq:facts}
Solution:
$$
y_{vel} = F_0 / m_{rock} * dt_{force} = 10 m/s
$$ {#eq:velocity}
$$
airtime = y_{vel} / g * 2 = 2.039 s
$$ {#eq:airtime}
$$
height_{max} = y_{vel} * airtime / 4 = 5.097 m
$$ {#eq:heightmax}
Passing additional code block classes through to the generated equation block enables compatibility with pandoc-crossref, too.