MathJax-dev icon indicating copy to clipboard operation
MathJax-dev copied to clipboard

Make combinerMJlist more configurable

Open Klortho opened this issue 11 years ago • 5 comments

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"
        }
      }
    }

Klortho avatar Apr 10 '13 19:04 Klortho

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

Klortho avatar Apr 10 '13 21:04 Klortho

Oh dear, this never registered -- @Klortho is this still relevant?

(PS: And didn't we want to set up a chat about the zoom?)

pkra avatar Mar 17 '15 20:03 pkra

I'm not sure if people will understand what I write

ghost avatar Mar 09 '16 23:03 ghost

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.

Klortho avatar Mar 11 '16 01:03 Klortho

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

pkra avatar Mar 11 '16 08:03 pkra