-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System package information and spkg-configure for mathjax #30296
Comments
comment:4
For availability of mathjax in distributions, see https://repology.org/project/mathjax/versions |
comment:6
The commit only indicates where the system directory should be inserted. I don't plan to work on this ticket. Hoping that people knowledgeable about the Jupyter notebook and/or documentation building will be interesting in working on it. New commits:
|
Commit: |
comment:7
There is also a pip-installable package https://pypi.org/project/py-mathjax/, but I think using it has not benefits for us. |
comment:8
Also |
comment:10
Replying to @mkoeppe:
The change diff --git a/build/make/Makefile.in b/build/make/Makefile.in
index ed5294cc4e..3d65767bf7 100644
--- a/build/make/Makefile.in
+++ b/build/make/Makefile.in
@@ -289,7 +289,7 @@ base: $(inst_patch) $(inst_pkgconf)
# produce plots.
DOC_DEPENDENCIES = sagelib $(inst_sphinx) \
| $(SAGERUNTIME) $(inst_maxima) $(inst_networkx) $(inst_scipy) $(inst_sympy) \
- $(inst_matplotlib) $(inst_pillow) $(inst_mathjax) $(inst_mpmath) \
+ $(inst_matplotlib) $(inst_pillow) $(inst_mpmath) \
$(inst_ipykernel) $(inst_jupyter_client) $(inst_conway_polynomials) \
$(inst_tachyon) $(inst_jmol) $(inst_thebe) $(inst_ipywidgets)
diff --git a/build/pkgs/mathjax/type b/build/pkgs/mathjax/type
index a6a7b9cd72..134d9bc32d 100644
--- a/build/pkgs/mathjax/type
+++ b/build/pkgs/mathjax/type
@@ -1 +1 @@
-standard
+optional avoids building mathjax, but then Sphinx doesn't find it when building the documentation. So if we want to use the version bundled with |
comment:11
|
This comment has been minimized.
This comment has been minimized.
Changed commit from |
Changed branch from u/mkoeppe/system_package_information_and_spkg_configure_for_mathjax to none |
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to mathjax |
comment:16
Replying to @mkoeppe:
See and the various answers there, including which states
So it's possible that the smaller version of MathJax Configuring Jupyter Notebook to use Sage's fuller MathJax |
comment:17
Replying to @slel:
This should be investigated. |
This comment has been minimized.
This comment has been minimized.
Changed keywords from mathjax to mathjax, sd111 |
comment:41
Replying to @antonio-rojas:
One copy to Other question: the location of the system mathjax is |
comment:42
The mathjax3 tarball is around 5Mb. I think this is not so big. Then is it worth while to detect the system mathjax and copy it instead of downloading the tarball? |
comment:43
Replying to @kwankyu:
mathjax doesn't provide an install script, so unfortunately there's no standard location and it's up to each distro to decide where to install it. On Arch we use |
comment:44
Replying to @antonio-rojas:
mathjax is a javascript library, and perhaps unique in that among sage spkgs. I doubt if
|
comment:45
Given that the spread of mathjax 3 in distributions is so low, I don't think that there is a need to support system packages providing it. If this changes in the future, |
comment:46
Replying to @kwankyu:
It is kind of an awkward fit, since there's no reliable way of detecting via |
comment:47
One would probably only want to search for the system library when also system |
comment:48
Replying to @orlitzky:
I agree. Still as this mathjax package is not big and does not take time to install, I doubt if it would ever be worth while to put necessary efforts for this package. Hence I suggest closing this ticket as "won't fix". |
comment:49
Replying to @kwankyu:
Sage's mathjax has "never" worked for me. This is probably due to font stripping (#18596 comment:4), but undoing that would make the package larger. So I'd quite like the ability to use the unbroken copy my distro provides, regardless of any time/bandwidth savings. Ultimately I can write the spkg-configure if no one else does it. I'll probably wait until the mathjax-3.x upgrade is done though. |
comment:50
Replying to @orlitzky:
Okay. Thanks. Does mathjax3 (#25833) work for you? |
comment:53
Replying to Michael Orlitzky:
Now that mathjax3 is well in place, would you do the work? From Matthias: |
comment:54
Replying to Kwankyu Lee:
Now I'm waiting for my distro package to be upgraded (https://bugs.gentoo.org/837722), but yes, I'll get to it eventually. |
On the question of the many copies of mathjax in |
On conda, the |
Use "tex-chtml.js" instead of "mathjax/tex-chtml.js" as sphinx's mathjax_path, relative to MATHJAX_DIR. The additional "mathjax" subdirectory will be added to MATHJAX_DIR by spkg-configure and sage_conf. Closes: sagemath#30296
@orlitzky found a good solution. |
#36098 just got positive review. I am not sure if that may close this issue. |
I used a |
Resolves sagemath#30296 URL: sagemath#36098 Reported by: Michael Orlitzky Reviewer(s): Kwankyu Lee, Michael Orlitzky
After #31035, our
mathjax
spkg is only used in our sphinx documentation. We currently ship a "stripped" version of mathjax 2.7.4 (seebuild/pkgs/mathjax/spkg-src
; #25032, #18596); #25833 proposes an upgrade to 3.x.We add an
spkg-configure.m4
script for the standard packagemathjax
, as well as corresponding system package information inbuild/pkgs/mathjax/distros/
using https://repology.org/projects/?search=mathjaxRandom references:
py-mathjax/pypi/py-mathjax at master · kiwi0fruit/py-mathjax
https://github.com/kiwi0fruit/py-mathjax/tree/master/pypi/py-mathjax
Debian JavaScript Maintainers / mathjax · GitLab
https://salsa.debian.org/js-team/mathjax
sphinx/setup.py at 3.x · sphinx-doc/sphinx
https://github.com/sphinx-doc/sphinx/blob/3.x/setup.py
Math support for HTML outputs in Sphinx — Sphinx 4.0.0+ documentation
https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax
sphinx-ext-mathjax - Google Search
https://www.google.com/search?safe=off&sxsrf=ALeKk03spVlQ9ALPLJJCbNfF9EIdC_LYuQ%3A1596929073175&ei=MTQvX8mUCuKU0PEPu-yOiAE&q=sphinx-ext-mathjax&oq=sphinx-ext-mathjax&gs_lcp=CgZwc3ktYWIQAzIFCAAQzQIyBQgAEM0CMggIABDNAhCLAzIICAAQzQIQiwMyCAgAEM0CEIsDOgQIABBHOgcIIxCwAhAnOgcIIRAKEKABOgUIIRCgAToFCCEQqwJQmyhY4UVgtFBoAHABeACAAWqIAeUHkgEDOS4ymAEAoAEBqgEHZ3dzLXdpergBA8ABAQ&sclient=psy-ab&ved=0ahUKEwiJ8Yyx4IzrAhViCjQIHTu2AxEQ4dUDCAw&uact=5
Math support for HTML outputs in Sphinx — Sphinx 4.0.0+ documentation
https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax
sphinx/mathjax.py at 3.x · sphinx-doc/sphinx
https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/ext/mathjax.py
CC: @jcamp0x2a @paulmasson @slel @egourgoulhon @orlitzky @kwankyu @jhpalmieri @nthiery @enriqueartal @kiwifb @antonio-rojas @tobihan @Etn40ff @tobiasdiez
Component: packages: standard
Keywords: mathjax, sd111
Author: Samuel Lelièvre, ...
Branch/Commit: public/30296 @
5c624ab
Issue created by migration from https://trac.sagemath.org/ticket/30296
The text was updated successfully, but these errors were encountered: