MathJax-dev
MathJax-dev copied to clipboard
Make combinerMJlist more configurable
See also this pull request on MathJax: https://github.com/mathjax/MathJax/pull/433
This change lets me use combineMJlist outside of a MathJax project directory, to create my own custom combined configuration file.
For example, I use it with the command line
$MJXDEV/combineMJlist $MJX mathjax-config-pubreader.lis .
The output lands in the current directory (".")
My ".lis" file is modified such that the first line gives the value to put in the "load complete" call at the end of the generated config file, and looks like this:
LOAD-COMPLETE-PATH: /corehtml/pmc/js/mathjax-config-pubreader.js
jax/input/MathML/config.js
jax/output/SVG/config.js
...
jax/output/SVG/autoload/mtable.js
SVG: {
scale: 90,
linebreaks: {
automatic: true,
width: "container"
}
},
showProcessingMessages: false,
MathZoom: {
styles: {
"#MathJax_Zoom": {
"background-color": "#eee",
"position": "static",
"overflow": "auto !important",
},
"#MathJax_ZoomFrame": {
"max-width": "95%",
"display": "block",
"width": "99in",
"left": "8px",
"z-index": "1"
}
}
}
Sorry I was a little hasty submitting this.
Please use this commit: https://github.com/Klortho/MathJax-dev/commit/6be1361f3e69b27af41d2a5703d3391eb4d475bc
See this compare view for all of the changes since when I forked: https://github.com/Klortho/MathJax-dev/compare/f20e729c46e729e0c736045d7139ffe1b2aae039...6be1361f3e69b27af41d2a5703d3391eb4d475bc
Oh dear, this never registered -- @Klortho is this still relevant?
(PS: And didn't we want to set up a chat about the zoom?)
I'm not sure if people will understand what I write
My turn: oh dear, I never noticed your comment above. @pkra , if you guys are still using this tool, then yes, absolutely, this is still relevant. If not, then not. If you're moving to using a more standard packaging tool, then no.
Funny how spam sometimes help.
Anyway.
Thanks for the follow-up, @Klortho! I suspect we'll continue to use these tools for 2.x, so we should revisit this.
ping @dpvc