Skip to content

Commit

Permalink
Add counter support
Browse files Browse the repository at this point in the history
See
https://github.com/mathjax/MathJax-third-party-extensions/tree/master/counters
for more information. `\value{name}`, although supposedly supported by
the extension, does not seem to work. Perhaps this is because the
extension is two years old. Hopefully, `\value{..}` is not particularly
useful.

This fixes #445.
  • Loading branch information
sigvef committed Jun 5, 2016
1 parent 758f4a8 commit a466f20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wikipendium/wiki/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@

{% if mathjax %}
<script type="text/x-mathjax-config">
MathJax.Ajax.config.path["Contrib"] = "//cdn.mathjax.org/mathjax/contrib";
MathJax.Hub.Config({
TeX: {
extensions: ['AMSmath.js', 'AMSsymbols.js']
},
extensions: ['[Contrib]/counters/counters.js'],
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$'], ['\\[','\\]']],
Expand Down

0 comments on commit a466f20

Please sign in to comment.