Source: matplotlib2 Version: 2.2.3-5 Severity: important User: [email protected] Usertags: sphinx1.8
Dear Maintainer, matplotlib2 fails to build with Sphinx 1.8, currently available in experimental: # build the doc [...] /usr/bin/make -C doc html make[1]: Entering directory '/<<PKGBUILDDIR>>/doc' Running Sphinx v1.8.3 Warning, treated as error: while setting up extension matplotlib.sphinxext.mathmpl: directive u'math' is already registered, it will be overridden make[1]: *** [Makefile:20: html] Error 2 This was fixed in matplotlib 3.x in this commit, please backport it: https://github.com/matplotlib/matplotlib/commit/f87e9f46daf42ad7 That commit switches from generating PNG images for math formulas to MathJax library, which renders the math formulas on client side. To package it for Debian, please add this line to conf.py: mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML' and make your documentation package depend on libjs-mathjax. Also upstream has noticed that some math renders incorrectly with MathJax, there is a follow-up commit which fixes it: https://github.com/matplotlib/matplotlib/commit/a101de79650e077a -- Dmitry Shachnev
signature.asc
Description: PGP signature

