inducer / inducer/relate

Enable equation numbers

Open
#226 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
435
Forks
124
Avg merge
5h 40m
Merged PRs (30d)
14

Description

This ought to do it:

https://mathjax.readthedocs.io/en/latest/tex.html#automatic-equation-numbering

``` diff
diff --git a/relate/templates/base.html b/relate/templates/base.html
index b0f7273..e26ed4d 100644
--- a/relate/templates/base.html
+++ b/relate/templates/base.html
@@ -149,6 +149,9 @@
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
+ TeX: {
+ equationNumbers: "AMS"
+ }
});


```

but all I get is `[Math Processing Error]`.

cc @lukeolson

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in relate/templates/base.html and compare the shown MathJax configuration with the automatic equation-numbering documentation linked in the issue. Reproduce the [Math Processing Error] and verify that equation numbering works without the error; no test file is mentioned.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.