On Mon, Oct 04, 2021 at 12:26:35PM +0200, Drew Parsons wrote:
> Source: mathjax
> Followup-For: Bug #989649
> 
> It's not always so simple as adding the conf.py patch.
> 
> For the example of fenics-dolfinx 0.3.0-3 (in experimental), the
> lintian privacy-breach-generic warning complains about
> 
>   https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
>   
> But there is no local tex-mml-chtml.js file to replace it with.

That shouldn't be a problem; have a look at
/usr/lib/python3/dist-packages/sphinx/ext/mathjax.py
This is where the tex-mml-chtml.js file is referred to, but that is
overridden by the mathjax_path config file variable.

Unfortunately, though, this completely fails to work with Firefox:

http://docs.mathjax.org/en/v2.7-latest/installation.html#firefox-and-local-fonts

MathJax.js tries to load "file:///extensions/MathMenu.js?V=2.7.9" and
similar, and I cannot fathom how to set things up so that the
[MathJax] path becomes "/usr/share/javascript/mathjax" rather than
"".  I also tried putting a symlink to /usr/share/javascript/mathjax
in the documentation directory and setting mathjax_path to there, but
that fails in the same way.

Any suggestions would be most welcome!

I might post a query to the Debian MathJax maintainers to see if they
have any idea.

Best wishes,

   Julian

Reply via email to