I have created a custom theme, and I have modifyed layout.html with:
{% set script_files = ["_static/mathjax_config.js"] + script_files %}
mathjax_config.js looks like this:
//MathJax.Hub.Config({
window.MathJax = {
"HTML-CSS": {
scale: 90,
preferredFont: "STIX",
webFont: "STIX-Web",
},
TeX: {
extensions: ["AMSmath.js","AMSsymbols.js","mhchem.js"],
Macros: {
mat: ["\\boldsymbol{\#1}", 1],
sign: ["\\operatorname{sign}", 0],
Tr: ["\\operatorname{Tr}", 0],
abs: ["\\operatorname{abs}", 0],
bra: ["\\left<\#1\\right|", 1],
ket: ["\\left|\#1\\right>", 1],
braket: ["\\left<\#1\\middle|\#2\\right>", 2],
braopket: ["\\left<\#1\\middle|\#2\\middle|\#3\\right>", 3],
},
},
SVG: {
scale: 90,
font: "STIX-Web",
},
//});
};
On Saturday, July 18, 2015 at 7:59:02 PM UTC+2, Joseph Slater wrote:
>
> How do I activate it? I've run in circles trying to figure out how to make
> it happy.
>
> In conf.py I have
>
> extensions = [
> 'sphinx.ext.pngmath',
> ]
>
> Before that I have sys.path.append(
> os.path.abspath('/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/'))
> which includes sphinx/ext
>
> (Using a Mac with python and sphinx installed via macports)
>
>
> I've tried using mathjax, with
> mathjax_path="
> https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
> "
>
> Of course, with
> extensions = [
> 'sphinx.ext.mathjax',
> ]
>
> What could be the problem? I really don't care which one works, but I need
> one of them to work!
> Thank you in advance,
> Joe
>
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.