News for hackers. Stuff that matters.
Re:MathML with Pandoc by seanhunter on Sunday May 04, 2025 @12:17AM (#43884449)
The limit formatting the author doesn’t like isn’t a bug in pandoc I don’t think - it looks to me as if they have just written it ambiguously in latex.

If you write a limit as \lim_{n \to \infty} etc etc then LaTex gets to decide whether to write your limit in inline style (next to the limit) or below. If you want it always to be below then you need to write

\lim\limits_{n \to \infty}

It’s the same deal with summations and integrals.

Re:MathML with Pandoc by JadeNB on Wednesday May 07, 2025 @09:43AM (#43915584)
> If you write a limit as \lim_{n \to \infty} etc etc then LaTex gets to decide whether to write your limit in inline style (next to the limit) or below. If you want it always to be below then you need to write

In display mode, without modifications, LaTeX has no choice; `$$\lim_{n \to \infty}$$` in the default LaTeX compiler will always put `{n \to \infty}` below `\lim`, unless you or some package have monkeyed with things to change that default behavior. (In inline mode, similarly, $\lim_{n \to \infty}$ will by default always place `{n \to \infty}` as a subscript of `\lim`, unless you or some package have changed the default behavior.)