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

Intertext is unsupported by mathjax - find some workaround #213

Open Lycanic opened 8 months ago

Lycanic commented 8 months ago

I have seen people use \intertext to have lines of explanations within _align_ed equations. Ideally, we would have these lines of text between mathJax equations which remained correctly aligned. However, having some kind of workaround to end and restart the mathematics environment such that the text still flows well (even if the correct alignment were lost) would be better than the current situation, where the \intertext command is just written verbatim in the equation.

Minimal Failing example:

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{align*}
  a&+b\\ \intertext{so} b&+c +d
\end{align*}

\end{document}

I have seen discussions online which imply that intertext is entirely unviable for mathjax due to its underlying systems.