Is it possible to force inline math block to align vertically with equal sign

Hi,

I have a math equation that contains a fraction with uneven height in the numerator and denominator:

$forall F in cal(F), y_(t+1)(F) = y_(t)(F)(1+ eta |chi_t (F)|)$ where $eta = (sqrt(ln(m)))/(n sqrt((ln(m n log(n) / 4)))log(m)log(n))$

This results in a line where the fraction floats above the line:

Is it possible to align the fraction part with the rest of the line as would happen in latex:

$\forall F \in \mathcal{F}, y_{t+1}(F) = y_{t}(F)(1+ \eta |\chi_t (F)|)$ where $\eta = \frac{\sqrt{\ln(m)}}{n \sqrt{\ln(m n \frac{\log(n)}{4})}\log(m)\log(n)}$

would produce:

Hi and welcome to the forum!

I’m unable to reproduce the behavior, the provided code snippet seems to align as intended in typst:

image

Unless I misunderstood the question?

Hi, thanks for your answer.

You’re right the default behavior is what I wanted, this was due to an interaction with the template I use for this document and I forgot to test this in a clean environment.

2 Likes