On Tue, Apr 28, 2015 at 09:06:29PM +0200, Jerome BENOIT wrote: > > So you should be able to avoid this issue by setting > > GAPDoc2HTMLProcs.MathJaxURL:="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; > > in the the file makedocrel.g or whatever the program that call GAPDoc is > > used. > > > > But of course, we should try to solve the problem globally. > > > > One solution: > > > > 1) I patch GAPDoc/lib/GAPDoc2HTML.gi to > > use > > GAPDoc2HTMLProcs.MathJaxURL:="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; > > as the default value > > I would try to avoid this.
The alternative is to do that in every package makedocrel.g file. > > 2) I change gap-gapdoc to Recommends libjs-mathjax and fonts-mathjax-extras. > > this sounds good. > > > 3) then we will need to rebuild the affected packages > > this is not an issue, but rather annoying I agree. > > > Better idea ? > > Do you know if it is possible to avoid the absolute file:// URL > > (file:///usr/share/javascript/mathjax/MathJax.js) which does not > > play well with webserver ? > > > > We can do it by creating a symlink > > mathjax --> /usr/share/javascript/mathjax > > in the doc directory of the package and set > > GAPDoc2HTMLProcs.MathJaxURL:="mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; > > This does not sounds reasonable. Why not ? > If I remember well, for docbook stuff there is a machinery that transparently > via some catalog grabs > meta data files when available while WWW are let unchanged. Quick man look > gives update-catalog(8). > Something similar here would be definitely the best answer. Could you elaborate ? update-catalog works at compile time, not at runtime. Here there is only one set of HTML files. They are not normally in the webspace. The user would need to set up a web browser to point to the GAP directories. Maybe dwww does that but it seems broken now. If you have a better way to handle it, please explain. Cheers, -- Bill. <ballo...@debian.org> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org