Hello,
MathJax is a great tool for rendering maths online :) .
Scribble [1] is a documentation language (think of it as an alternative to LaTeX with HTML output), and I created a package (available at [2]) which allows Scribble users to easily typeset math using MathJax.
For example, one can write the following file, compile it with scribble, and obtain an HTML page which loads the MathJax library to typeset the math.
#lang scribble/manual
@require[scribble-math]
@use-mathjax[]
Let's write some @${m \alpha \tau h} !
I am not a lawyer, and therefore am uncertain concerning licensing issues.
1) I'm minimizing the official MathJax repo [3] and am including it as a subdirectory [4] of the scribble-math package (in order for it to get downloaded by the package manager), keeping the LICENSE file intact inside that MathJax subdirectory.
Does distributing Mathjax in a subdirectory, with its own license, have an impact on the license of the rest of the scribble-math code or repository?
2) The scribble-math code instructs scribble to copy the MathJax directory into the output directory, along with the produced HTML file.
Is this copy a sort of linking which could taint the license of the scribble-math code itself?
I am not aware of any linking / tainting issues concerning the Apache License v2, these legal terms are vague and subject to interpretation, so I feel it's better to ask at the source.
3) Is there any impact on the license of the source scribble documents which make use of the scribble-math library?
4) The resulting HTML files contain a tiny piece of code which writes a script tag which loads the MathJax.js file.
Is there any impact on the license of the generated HTML files themselves?
Is there any impact on the source scribble documents used to generate these files?
5) I am considering the possibility to perform the rendering as a pre-processing step, via MathJax-node. Does the HTML generated by MathJax-node have any licensing impact on the source or HTML documents?
6) The STIX-Web and TeX fonts are included in the MathJax format in HTML-CSS format. Are there any issues related to distributing those, as long as they are left in their respective subfolders, without altering the LICENSE files?
FWIW, currently, the scribble-math code is based on an existing math package for Scribble, and keeps the original license of that former package (LGPLv3), but I might discard the few relevant files and switch the scribble-math code to a Public Domain / CC0 "license".
I would like to make it easier for Scribble users to beautifully typeset math using MathJax, but I wouldn't want this to set up a licensing trap, forcing users to change the license of their documentation (either source or generated HTML). Note that I cannot afford to pay a lawyer to answer these questions, and asking at the source will give a more definitive answer at any rate.
Thank you very much,
Georges Dupéron