chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

\ensuremath does not ensure math #212

Open Lycanic opened 11 months ago

Lycanic commented 11 months ago

\ensuremath should toggle to math mode when used outside of math mode, as in the pdf compilation. Currently, it appears to be ignored when outside of math mode.

Minimal Failing example:

\documentclass{article}
\begin{document}

$\ensuremath{\chi}$

\ensuremath{\chi}

\end{document}
christianp commented 11 months ago

Yep: the plasTeX implementation of ensuremath notes that it's wrong and needs to be filled in.