From a3c92d9f88e19355504c23c226df3fa5db037d92 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sat, 26 Sep 2026 14:11:49 -0400 Subject: [PATCH] fix math rendering in docs with Sphinx 9 from Sphinx 8 -> 9, we no longer can use \begin{align} in math, instead it is automatically inferred. This fixes broken math on the rtd docs. --- docs/reference/special-theme-elements.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/reference/special-theme-elements.md b/docs/reference/special-theme-elements.md index c641c5e73..2cc6ef83e 100644 --- a/docs/reference/special-theme-elements.md +++ b/docs/reference/special-theme-elements.md @@ -116,12 +116,10 @@ Link to above: {eq}`my_label2` A really long math equation $$ -\begin{align} \mathrm{SetConv} \left( \{(x^{c},y^{c})\}_{c=1}^{C} \right)(x) \left( \{(x^{c},y^{c})\}_{c=1}^{C} \right)(x) \left( \{(x^{c},y^{c})\}_{c=1}^{C} \right)(x) &= \sum_{c=1}^{C} y^{(c)} w_{\theta} \left( x - x^{(c)} \right) \sum_{c=1}^{C} y^{(c)} w_{\theta} \left( x - x^{(c)} \right) \sum_{c=1}^{C} y^{(c)} w_{\theta} \left( x - x^{(c)} \right)\\ &= \left( y^{(c')} w_{\theta} \left( x - x^{(c')} \right) \right) + \sum_{c \neq c'} y^{(c)} w_{\theta} \left( x - x^{(c)} \right) \\ &= 0 + \sum_{c \neq c'} y^{(c)} w_{\theta} \left( x - x^{(c)} \right) -\end{align} $$ Full width equations work @@ -129,12 +127,10 @@ Full width equations work ```{math} :class: full-width -\begin{align} \mathrm{SetConv} \left( \{(x^{c},y^{c})\}_{c=1}^{C} \right)(x) \left( \{(x^{c},y^{c})\}_{c=1}^{C} \right)(x) \left( \{(x^{c},y^{c})\}_{c=1}^{C} \right)(x) &= \sum_{c=1}^{C} y^{(c)} w_{\theta} \left( x - x^{(c)} \right) \sum_{c=1}^{C} y^{(c)} w_{\theta} \left( x - x^{(c)} \right) \sum_{c=1}^{C} y^{(c)} w_{\theta} \left( x - x^{(c)} \right)\\ &= \left( y^{(c')} w_{\theta} \left( x - x^{(c')} \right) \right) + \sum_{c \neq c'} y^{(c)} w_{\theta} \left( x - x^{(c)} \right) \\ &= 0 + \sum_{c \neq c'} y^{(c)} w_{\theta} \left( x - x^{(c)} \right) -\end{align} ``` +++