PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

Make Loading of MathJax Extensions Configurable at the Document Level #350

Closed jasonu closed 8 years ago

jasonu commented 8 years ago

Per this discussion in the support forum: https://groups.google.com/d/msg/mathbook-xml-support/IvU4donIqrg/KWxtyyUwDwAJ improve loading of MathJax extensions so that it can be configured on a per-document basis.

davidfarmer commented 8 years ago

I think "configured" should be narrowly interpreted to mean "can add new ones". If you need a package that is missing, then it can be added.

If you don't need a particular package, I speculate that the performance improvement by omitting it is negligible, and so that feature should have a very low priority.

On Mon, 25 Jul 2016, Jason Underdown wrote:

Per this discussion in the support forum: https://groups.google.com/d/msg/mathbook-xml-support/IvU4donIqrg/KWxtyyUwDwAJ improve loading of MathJax extensions so that it can be configured on a per-document basis.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LHfMTPp-vHC3ucsTicWiKS6c0jOnks5qZaLagaJpZM4JUz-3.gif]

rbeezer commented 8 years ago

My current thought is to have

docinfo/mathjax/extension

You can have several of these - the indicated package is a MathJax extension to model some existing LaTeX package of the same name. You get a \require{} MathJax-load on the HTML side and a \usepackage{} (late) in the LaTeX preamble.

If that works for your project, great. If it doesn't (conflicts, etc) then tough. You can, of course, change the order of the "extension" elements, but that is the only recourse you'd have.

All the necessary information is clearly present in the author's source and no other project needs to be concerned with a package used this way. If the package is popular, we could make it "permanent" and commit to supporting it, if we wanted to.

I do not like the way the extpfiel package is currently incorporated (an addition for an early adopter), so would be happy to see that change.

On 07/26/2016 03:41 AM, davidfarmer wrote:

I think "configured" should be narrowly interpreted to mean "can add new ones". If you need a package that is missing, then it can be added.

If you don't need a particular package, I speculate that the performance improvement by omitting it is negligible, and so that feature should have a very low priority.

On Mon, 25 Jul 2016, Jason Underdown wrote:

Per this discussion in the support forum: https://groups.google.com/d/msg/mathbook-xml-support/IvU4donIqrg/KWxtyyUwDwAJ improve loading of MathJax extensions so that it can be configured on a per-document basis.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LHfMTPp-vHC3ucsTicWiKS6c0jOnks5qZaLagaJpZM4JUz-3.gif]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/350#issuecomment-235232258, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cuArpEyF0njLlxrhgLxWEzONr1kbks5qZeRAgaJpZM4JUz-3.

rbeezer commented 8 years ago

Implemented at 2bfaf064

See post at discussion referenced above, or in sample article.