From 58f3898761057d0fbe0ac047a8980178f7546b4f Mon Sep 17 00:00:00 2001 From: Dan F-M Date: Sun, 12 Jul 2026 10:21:47 -0400 Subject: [PATCH] Fix equation rendering in quickstart tutorial Replace the `eqnarray` environment nested inside `$$...$$` with `aligned`. MathJax treats `eqnarray` as its own display-math environment, so nesting it inside `$$` triggers the 'Erroneous nesting of equation structures' error in the rendered docs. Fixes #271 Co-Authored-By: Claude Opus 4.8 (1M context) --- docs/tutorials/quickstart.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/tutorials/quickstart.ipynb b/docs/tutorials/quickstart.ipynb index 244f4f53..2e1155d2 100644 --- a/docs/tutorials/quickstart.ipynb +++ b/docs/tutorials/quickstart.ipynb @@ -76,17 +76,17 @@ "where\n", "\n", "$$\n", - "\\begin{eqnarray}\n", - " k_1(r) &=& \\theta_1^2 \\, \\exp \\left(-\\frac{r^2}{2\\,\\theta_2} \\right) \\\\\n", - " k_2(r) &=& \\theta_3^2 \\, \\exp \\left(-\\frac{r^2}{2\\,\\theta_4}\n", + "\\begin{aligned}\n", + " k_1(r) &= \\theta_1^2 \\, \\exp \\left(-\\frac{r^2}{2\\,\\theta_2} \\right) \\\\\n", + " k_2(r) &= \\theta_3^2 \\, \\exp \\left(-\\frac{r^2}{2\\,\\theta_4}\n", " -\\theta_5\\,\\sin^2\\left(\n", " \\frac{\\pi\\,r}{\\theta_6}\\right)\n", " \\right) \\\\\n", - " k_3(r) &=& \\theta_7^2 \\, \\left [ 1 + \\frac{r^2}{2\\,\\theta_8\\,\\theta_9}\n", + " k_3(r) &= \\theta_7^2 \\, \\left [ 1 + \\frac{r^2}{2\\,\\theta_8\\,\\theta_9}\n", " \\right ]^{-\\theta_8} \\\\\n", - " k_4(r) &=& \\theta_{10}^2 \\, \\exp \\left(-\\frac{r^2}{2\\,\\theta_{11}} \\right)\n", + " k_4(r) &= \\theta_{10}^2 \\, \\exp \\left(-\\frac{r^2}{2\\,\\theta_{11}} \\right)\n", " + \\theta_{12}^2\\,\\delta_{ij}\n", - "\\end{eqnarray}\n", + "\\end{aligned}\n", "$$\n", "\n", "We can implement this kernel in `tinygp` as follows (we'll use the R&W results as the hyperparameters for now):"