You need to do
npm install mathjax-full
npm install yargs
npm install [email protected]
If there is a node_modules/mathjax-full/node_modules directory, you should
remove it (it should only contain speech-rule engine, and the last line above
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2016 Stack Exchange | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| { | |
| "component": "mhchem", | |
| "targets": ["input/tex/mhchem"], | |
| "exclude": ["input/tex/mhchem/mhchem_parser.d.ts"] | |
| } |
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> | |
| <title>Change Script Sizes</title> | |
| <script type="text/x-mathjax-config"> | |
| MathJax.Hub.Register.StartupHook("mml Jax Ready", function () { | |
| var MML = MathJax.ElementJax.mml; | |
| var math = MML.math.prototype.defaults; |
You need to do
npm install mathjax-full
npm install yargs
npm install [email protected]
If there is a node_modules/mathjax-full/node_modules directory, you should
remove it (it should only contain speech-rule engine, and the last line above
| #! /usr/bin/env node | |
| /************************************************************************* | |
| * | |
| * tikz-filter | |
| * | |
| * Uses MathJax v3 to convert math to svg within TikZ svg output. | |
| * | |
| * ---------------------------------------------------------------------- | |
| * |
| !function(){"use strict";var t,e,r={335:function(t,e,r){var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var a,n,o=r.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},i=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],a=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&a>=t.length&&(t=void 0),{value:t&& |
| use IPC::Open2; | |
| use JSON; | |
| # | |
| # Package provides | |
| # | |
| # my $svg = MathJax->Typeset(tex, options); | |
| # MathJax->ResetTeX; | |
| # | |
| package MathJax; |