Compare commits

...

1378 Commits

Author SHA1 Message Date
Georges Dupéron
1419620d68 Fixed typo 2017-05-02 16:52:53 +02:00
Georges Dupéron
8bdc1999fa Allow builds of v2.7.1-racket-mini-source branch 2017-05-02 16:01:43 +02:00
Georges Dupéron
2287de322d make the openssl line easier to substitue (move the decrypted file to its destination after the command, not as part of it) 2017-03-22 00:23:27 +01:00
Georges Dupéron
0585c0b74a Fix script 2017-03-21 01:46:34 +01:00
Georges Dupéron
0d6a3a49dd Fix script 2017-03-21 01:42:22 +01:00
Georges Dupéron
9fb852d1ef Fix script 2017-03-21 01:38:18 +01:00
Georges Dupéron
6f8805033c Fix script 2017-03-21 01:35:52 +01:00
Georges Dupéron
9bb1d81212 Fix script 2017-03-20 20:13:56 +01:00
Georges Dupéron
a555db20c9 Fix script 2017-03-20 20:12:46 +01:00
Georges Dupéron
73a45ea0ec Fix script 2017-03-20 20:07:08 +01:00
Georges Dupéron
0b9355a7d1 Fixed script 2017-03-20 20:01:02 +01:00
Georges Dupéron
ec4623a80f Fixed script. 2017-03-20 19:38:24 +01:00
Georges Dupéron
062820300a Fixed issues with deploy script 2017-03-20 18:59:02 +01:00
Georges Dupéron
7e0a9e441e Fixed issues with deploy script 2017-03-20 18:58:07 +01:00
Georges Dupéron
f0b14cecf3 Fixed auto-deploy script 2017-03-20 18:16:59 +01:00
Georges Dupéron
655648db7f Fixed auto-deploy script 2017-03-20 18:10:14 +01:00
Georges Dupéron
ebf429472f Use deploy key instead of secret token. 2017-03-20 18:04:02 +01:00
Georges Dupéron
8f56ffa76c Remove files in the right order so that .gitignore is taken into account 2016-08-08 02:08:50 +02:00
Georges Dupéron
745f99f219 Forgot comma 2016-08-08 02:03:53 +02:00
Georges Dupéron
c822826836 npm was wrong, the extra packages were NOT extraneous. Added them back to .travis.yml 2016-08-08 01:59:29 +02:00
Georges Dupéron
e011a62960 Removed extra files, simplified npm install command 2016-08-08 01:56:11 +02:00
Georges Dupéron
fe7bce53af travis test 2016-08-08 01:51:55 +02:00
Georges Dupéron
91c1cf63b8 travis test 2016-08-08 01:47:29 +02:00
Georges Dupéron
7ae9962028 travis test 2016-08-08 01:45:26 +02:00
Georges Dupéron
621bfa5c68 travis test 2016-08-08 01:42:23 +02:00
Georges Dupéron
4cc4d13be8 Fixed GH token 2016-08-08 01:37:36 +02:00
Georges Dupéron
3fa882906f travis test 2016-08-08 01:18:07 +02:00
Georges Dupéron
2be5e99d92 travis test 2016-08-08 01:14:48 +02:00
Georges Dupéron
673d907988 travis test 2016-08-08 01:12:15 +02:00
Georges Dupéron
68b5d75dc5 Made .travis.yml remove unwanted MathJax components. 2016-08-08 01:09:09 +02:00
Georges Dupéron
6b0ce952f9 Included AMS extensions in default config for Racket. 2016-08-08 00:43:42 +02:00
Georges Dupéron
6e42bb8f2d Adjusted Gruntfile.js to generate a mini MathJax for Racket 2016-08-08 00:41:29 +02:00
Georges Dupéron
f7d426c155 Merge branch 'MathJax-grunt-cleaner' into v2.6-latest 2016-08-08 00:40:17 +02:00
Peter Krautzberger
8b7f3d5959 Merge pull request #9 from brianboyko/brianboyko-patch-1
Add missing comma
2016-02-17 09:24:33 +01:00
Brian Boyko
1f34ae1858 Bugfix - missing comma
Replaced missing comma in line 232.
2016-02-16 11:37:55 -06:00
Peter Krautzberger
96955f5ce2 Merge pull request #8 from mathjax/v2.6
update for MathJax v2.6.0
2016-02-15 20:42:46 +01:00
Peter Krautzberger
d4ab1b35c9 Merge pull request #1382 from mathjax/develop
Merge develop into master for 2.6.1 release
2016-02-08 17:46:12 +01:00
Peter Krautzberger
e213c8454c Merge pull request #1381 from mathjax/issue1346
package.json: bump version to 2.6.1
2016-02-08 17:33:55 +01:00
Peter Krautzberger
6f4638759a package.json: bump version to 2.6.1 2016-02-08 16:30:50 +01:00
Davide P. Cervone
d739bf80b8 Merge pull request #1380 from mathjax/issue1346
package.json: bump version to 2.6.1-rc.1
2016-02-08 10:20:11 -05:00
Peter Krautzberger
688017dff1 npm: bump version to 2.6.1-rc.1 2016-02-08 15:54:51 +01:00
Peter Krautzberger
9900cba932 Merge pull request #1379 from mathjax/issue1346
Continuous Integration: update npm API key
2016-02-08 15:48:57 +01:00
Peter Krautzberger
b00c69bf57 Continuous Integration: update enpm API key 2016-02-08 15:38:49 +01:00
Davide P. Cervone
8a89555d84 Repack and recombine for 2.6.1 2016-02-07 15:48:33 -05:00
Davide P. Cervone
7a03186c26 Fix missing comma spotted by minifier. 2016-02-07 15:42:34 -05:00
Davide P. Cervone
11b5897959 Update version numbers of changed files 2016-02-07 15:34:12 -05:00
Davide P. Cervone
fdd0b7787f Set some menuSettings to null so that the defaults work properly, but they still appear in the list so people know about them. 2016-02-07 14:11:52 -05:00
Davide P. Cervone
581ff4daae Merge pull request #1373 from mathjax/issue1346
npm publish via continuous integration
2016-02-07 07:46:50 -05:00
Davide P. Cervone
d0ecea125f Merge branch 'menu-patch' into develop 2016-02-06 19:28:43 -05:00
Davide P. Cervone
beb8efaa04 Use correct event handler for keypress, and delete previous error if we are reprocessing the scripts. 2016-02-06 17:44:25 -05:00
Peter Krautzberger
1c2a3966e1 Continuous Integration: simplify regex for allowed branches and tags 2016-02-06 22:24:52 +01:00
Davide P. Cervone
78fce5d3dc Fix [Math Processing Error] objects to work with new menu code in 2.6.0. 2016-02-06 13:42:16 -05:00
Davide P. Cervone
6000aa1d78 Bring menuSettings up to date in MathJax.js and default.js, and add localization IDs for menu items where they were missing (i.e, implied). 2016-02-06 12:40:09 -05:00
Davide P. Cervone
32c540b355 Merge branch 'issue1009' into develop. Issue #1009. 2016-02-06 10:42:31 -05:00
Davide P. Cervone
0e07941eeb Merge pull request #1376 from dpvc/tabindex
Add configuration for tabIndex attribute.
2016-02-06 10:38:31 -05:00
Davide P. Cervone
d1a569c905 Add jax parameter to getTabOrder() so that, if overridden, you can identify the jax (and it asociated script). 2016-02-06 10:35:31 -05:00
Davide P. Cervone
a597f2107e Fix formatting 2016-02-06 09:26:29 -05:00
Davide P. Cervone
7df65c9d7a Fix inTabOrder menu action, change default, and factor out code for setting/unsetting the tab index (in case the page author wants to call it. 2016-02-06 09:26:29 -05:00
zorkow
a1bfe0afcf Adds configuration for excluding MathJax elements from tab order. 2016-02-06 09:26:29 -05:00
Peter Krautzberger
6b65f86a5b Continuous Integration: allow tags to trigger builds 2016-02-04 16:08:20 +01:00
Peter Krautzberger
09b2361efd Continuous Integration: add npm deployment 2016-02-04 12:38:10 +01:00
Peter Krautzberger
2ef26ad680 Continuous Integration: restrict builds to master 2016-02-04 12:37:04 +01:00
Peter Krautzberger
6ca711a811 Initial continuous integration
* Work towards resolving #1346
* package json: add empty test (run by travisCI by default)
* add minimal .travis.yml
2016-02-04 12:13:55 +01:00
Davide P. Cervone
0a33759241 Add text-rending:optimizeLegibility to integrals and other characters that extend well past their width. Resolves issue #1009 2016-02-01 11:07:25 -05:00
Davide P. Cervone
0740dd4735 Only set movablelimits for nodes of class OP 2016-01-30 08:44:31 -05:00
Davide P. Cervone
b11a9b1b65 Handle movablelimits on TeXAtom of class OP in toMathML, NativeMML, and MathML input. 2016-01-29 14:12:42 -05:00
Davide P. Cervone
b69e0a63b1 Don't need extra spacing in \varprojlim and \varinjlim now that the renderers handle the positioning better. 2016-01-28 17:14:28 -05:00
Davide P. Cervone
9ec8e34ee5 Remove lspace and rspace from being used by renderers other than NativeMML. 2016-01-28 16:52:24 -05:00
Davide P. Cervone
54ac450144 Fix spacing for operators with movablelimits that are converted to <mo> 2016-01-28 16:38:59 -05:00
Davide P. Cervone
e8186ee317 Fix #1259 for \mathop and \operatorname as well. 2016-01-27 14:52:24 -05:00
Davide P. Cervone
2b5f6103cc Merge branch 'issue1360' into develop. Issue #1360. 2016-01-27 14:40:13 -05:00
Davide P. Cervone
43cd305e02 Merge branch 'issue1348' into develop. Issue #1348. 2016-01-27 14:39:37 -05:00
Peter Krautzberger
91cf225965 update for MathJax v2.6.0 2016-01-27 17:33:42 +01:00
Peter Krautzberger
5fbf0b2531 update for MathJax v2.6.0 2016-01-27 17:29:21 +01:00
Davide P. Cervone
d478573b33 Return the NODES array in getNodesByClass(). 2016-01-27 01:15:07 -05:00
Davide P. Cervone
1318ffeb88 Fix CHTML.getNode() to handle nested tags, and fix CHTMLchildNode() for munderover and msubsup elements. Resolves issue #1360 2016-01-26 14:59:32 -05:00
Davide P. Cervone
e315be2978 Reorganize fraction layout in order to align fraction lines better. (Probably should do something similar for munderover and possibly msupsub as well.) Resolves issue #1348. 2016-01-26 12:21:25 -05:00
Davide P. Cervone
24a6cf7c25 Merge branch 'issue1359' into develop. Issue #1359. 2016-01-26 11:05:34 -05:00
Davide P. Cervone
60de3854b9 Merge branch 'issue1353' into develop. Issue #1353. 2016-01-26 11:05:02 -05:00
Davide P. Cervone
1f570173b5 Merge branch 'issue1197' into develop. Issue #1197. 2016-01-25 13:55:09 -05:00
Davide P. Cervone
618f8d0466 Merge branch 'issue1259' into develop. Issue #1259. 2016-01-25 13:54:45 -05:00
Davide P. Cervone
5c4bf98e90 Merge branch 'issue1321' into develop. Issue #1321. 2016-01-25 13:54:21 -05:00
Davide P. Cervone
27d4db2424 Merge branch 'issue1350' into develop. Issue #1350. 2016-01-25 13:54:05 -05:00
Davide P. Cervone
9d3e6f378c Merge branch 'issue1358' into develop. Issue #1358. 2016-01-25 13:53:27 -05:00
Davide P. Cervone
4d0af10b8d If measurements can't be taken in getHDW(), move the test elements to the document.body instead in hopes that it is visible. Resolves issue #1353. 2016-01-25 12:02:24 -05:00
Davide P. Cervone
99782aee54 Remove padding from elements where CSS overrides it. Resolves issue #1359. 2016-01-25 08:43:47 -05:00
Davide P. Cervone
dc450d6bc7 Handle movablelimits on TeXAtom elements. Resolves issue #1197. 2016-01-24 18:26:50 -05:00
Davide P. Cervone
404c73c30a Don't allow movablelimits in the base of \underset and \overset. Resolves issue #1259. 2016-01-24 15:32:12 -05:00
Davide P. Cervone
6eddcc8f5d Don't pass font to math inside text boxes. Resolves issue #1321. 2016-01-24 15:25:36 -05:00
Davide P. Cervone
4182b58c14 Don't allow assistive MathML to become part of the selection. Resolves issue #1350. 2016-01-24 13:29:31 -05:00
Davide P. Cervone
bd817dab40 Combine configuration with page's configuration. Resolves issue #1358. 2016-01-24 11:40:27 -05:00
Peter Krautzberger
0715ef97f8 Merge pull request #1345 from mathjax/develop
Release v2.6.0
2015-12-30 22:00:40 +01:00
Davide P. Cervone
3ba60663df Add new packed directories for PlainSource and lki localization 2015-12-30 11:50:19 -05:00
Davide P. Cervone
8c023bef43 Repack and recombine final updates 2015-12-30 11:49:42 -05:00
Davide P. Cervone
d0d59b6876 Make AssistiveMML menu item not hidden, and make it add and remove the MathML when toggled. Refactor AssistiveMML extension so that the Add and Remove functions can be called by the menu change. 2015-12-30 11:39:27 -05:00
Davide P. Cervone
db1ce61854 Fix \centerdot using wrong glyph (only works for MathJax TeX fonts). 2015-12-30 09:40:15 -05:00
Davide P. Cervone
436115f581 Repack and recombine for v2.6.0 2015-12-29 10:00:54 -05:00
Davide P. Cervone
80649cb16c Remove unused variable identified by compressor 2015-12-29 09:57:31 -05:00
Davide P. Cervone
ba0de5c8a0 Update version numbers to 2.6.0 2015-12-29 09:36:52 -05:00
Davide P. Cervone
b3f1a8afa6 Merge pull request #1329 from pkra/pkra-jax
New PlainSource output jax by pkra
2015-12-29 08:49:48 -05:00
Davide P. Cervone
53bf45396f Merge pull request #1343 from mathjax/issue1248
Update locales for v2.6
2015-12-29 08:48:34 -05:00
Peter Krautzberger
76fae189a7 localization: updates from MathJax-i18n 2015-12-29 13:27:47 +01:00
Peter Krautzberger
2df90a2826 Merge pull request #1 from dpvc/plainsource-patch
Remove unneeded code, add missing support for zoom, and adjust CSS
2015-12-29 11:27:15 +01:00
Davide P. Cervone
38007fdc5b Update AsciiMath to include changes since MathJax 2.5 2015-12-28 15:59:15 -05:00
Davide P. Cervone
4c50eb0864 Remove unneeded code, add missing support for zoom, and adjust CSS to display better. 2015-12-28 09:26:43 -05:00
Davide P. Cervone
f3728603a9 Remove unused variable 2015-12-28 07:35:37 -05:00
Davide P. Cervone
ae8ae0cb72 Fix a number of issues found by running IE8. 2015-12-23 19:40:41 -05:00
Davide P. Cervone
46676fd233 Merge branch 'issue1314' into develop. Issue #1314. 2015-12-18 05:52:05 -05:00
Davide P. Cervone
7f864b11be Merge branch 'issue1338' into develop. Issue #1338. 2015-12-18 05:51:51 -05:00
Davide P. Cervone
0727dd5ae3 Make right clip be the width+1000 rather than a fixed size. Issue #1314 2015-12-18 05:48:19 -05:00
Davide P. Cervone
916965b777 Make clip rect larger so that wide math will not beclipped. Resolves issue #1314 2015-12-17 19:58:32 -05:00
Davide P. Cervone
e7c11c969a Fix focus problems due to overly aggressive CSS, and done add space around HTML-CSS output (which was causing problems). 2015-12-17 17:00:42 -05:00
Davide P. Cervone
32c2d9b9fc Change cache-breaking value in MathJax.js 2015-12-14 11:45:34 -05:00
Davide P. Cervone
e65a12f7a5 Repack and recombine for 2.6.0-beta.2 2015-12-14 11:36:45 -05:00
Davide P. Cervone
f1b4a178c0 Fix multiply defined var's as discovered by yuicompressor. 2015-12-14 11:35:57 -05:00
Davide P. Cervone
a1460f8993 Update version numbers for 2.6.0-beta.2 2015-12-14 10:14:34 -05:00
Davide P. Cervone
20f42d692d Merge branch 'issue1332' into develop. Issue #1332. 2015-12-14 10:10:25 -05:00
Peter Krautzberger
fbd7d6e9b0 plainSource: snsure IE8 compatibility 2015-12-13 15:40:54 +01:00
Davide P. Cervone
3737c8d84b Merge branch 'preview-disable' into develop 2015-12-11 16:14:37 -05:00
Davide P. Cervone
0b00aceae2 Merge branch 'issue1235' into develop. Issue #1235. 2015-12-11 16:14:16 -05:00
Davide P. Cervone
e78c9d4ccb Merge pull request #1333 from mathjax/issue1328
improve npm workflows
2015-12-11 14:22:23 -05:00
Davide P. Cervone
bfcb0e94b5 Recompute the bounding box for an mrow with stretchable embellished operators that didn't actually stretch. Resolves issue #1332. 2015-12-11 11:53:53 -05:00
Peter Krautzberger
1eb5682885 package.json: consistent keyword capitalization 2015-12-10 16:57:43 +01:00
Peter Krautzberger
310bfbac0b package.json: add keywords to mark as browser-only 2015-12-10 16:54:32 +01:00
Davide P. Cervone
5973694116 Make a flag for output jax to control fast preview (so we don't have to maintain a blakc-list here). 2015-12-09 16:26:41 -05:00
Davide P. Cervone
7342aebe66 Allow page to enable/disable previews via API calls (for use with editor previews, for example). 2015-12-09 16:16:45 -05:00
Davide P. Cervone
e894193e51 Move location of assistive MathML to be more closely related to the position of the typeset math. Issue #1235. 2015-12-08 19:02:37 -05:00
Davide P. Cervone
d776874898 Merge branch 'issue1280' into develop. Issue #1280. 2015-12-08 18:07:36 -05:00
Davide P. Cervone
e3a2603361 Merge branch 'issue1312' into develop. Issue #1312. 2015-12-08 18:06:50 -05:00
Davide P. Cervone
f60da6ff0e Merge pull request #1322 from mathjax/issue1235
Update AssistiveMML
2015-12-08 18:03:47 -05:00
Peter Krautzberger
65c72a10f3 add package.json and .npmignore to improve npm workflows; fixes #1328 2015-12-08 17:19:50 +01:00
Peter Krautzberger
040ddd652c plainTeX output jax: check MathML input for TeX and asciimath annotation and use it. 2015-12-08 11:15:55 +01:00
Davide P. Cervone
a729427ca6 Remove debugging log messages. 2015-12-06 11:02:27 -05:00
Davide P. Cervone
58d698f355 More improvements to function-apply with operators. Issue #1312 2015-12-06 08:16:25 -05:00
Davide P. Cervone
21dd8a4b46 Make sure main container element gets width set when using right margin for negative size 2015-12-06 07:49:24 -05:00
Davide P. Cervone
757660863f Handle boxes with negative widths in CHTML. Resolves issue #1280 2015-12-05 18:43:31 -05:00
Davide P. Cervone
b231a0537c Merge branch 'issue1326' into develop. Issue #1326. 2015-12-05 13:45:29 -05:00
Davide P. Cervone
a911742bd2 Merge branch 'issue1324' into develop. Issue #1324. 2015-12-04 14:37:47 -05:00
Davide P. Cervone
e47e221afa Merge branch 'issue1312' into develop. Issue #1312. 2015-12-04 14:37:32 -05:00
Davide P. Cervone
eb6f1c0123 Merge branch 'issue1323' into develop. Issue #1323. 2015-12-04 14:37:15 -05:00
Davide P. Cervone
80125f99f1 Merge branch 'issue1316' into develop. Issue #1316. 2015-12-04 14:36:49 -05:00
Davide P. Cervone
3ff16901e6 Undo change in \underline (remove accent=false) since this produces poor results. Issue #1255. 2015-12-04 10:31:51 -05:00
Davide P. Cervone
206dc7f490 Make horizontal stretchy characters use multiple extenders rather than CSS transform. Issue #1326 2015-12-04 10:28:54 -05:00
Davide P. Cervone
49003fe4ac Fix vertical stretchy characters to use multiple extenders rather than CSS transform. Issue #1326 2015-12-03 11:49:55 -05:00
Davide P. Cervone
0e4b3f05e2 Make scaling basd on a list rather than hard-coded if-then statements. Issue #1324 2015-12-03 08:11:39 -05:00
Davide P. Cervone
1c938cc48e Add CommonHTML to the 'Scale All Math' list. Issue #1324. 2015-12-03 08:02:08 -05:00
Davide P. Cervone
458cd7a760 Improve heuristics for adding function-apply following operators. Issue #1312. 2015-12-03 07:43:00 -05:00
Davide P. Cervone
6a7ac1740f Copy empty Presentation MathML elements verbatim rather than inserting <mi> with the name of the element, as neede for Content MathML. Resolves issue #1323. 2015-12-02 15:21:24 -05:00
Davide P. Cervone
2307a753b2 Fix problem with mtext losing initial spacing when the mtext containe only one printable character. Issue #1316. 2015-12-02 14:58:53 -05:00
Davide P. Cervone
3cdcd73b01 Merge branch 'issue1295' into develop. Issue #1295. 2015-12-02 11:19:58 -05:00
Davide P. Cervone
aa21c9fedd Merge branch 'issue1287' into develop. Issue #1287. 2015-12-02 11:19:08 -05:00
Davide P. Cervone
4246f20ed4 Merge branch 'issue1255' into develop. Issue #1255. 2015-12-02 11:17:33 -05:00
Peter Krautzberger
21a10de3eb Update AssistiveMML
Add `role=presentation` to root element and parent of the plain MathML

Fixes #1235
2015-11-30 21:34:16 +01:00
Peter Krautzberger
ae99be9f67 Merge pull request #1299 from physikerwelt/patch-2
[mediawiki-texvc.js] Add missing symbols from upstream texvc
2015-11-25 15:31:25 +01:00
Peter Krautzberger
b28461f032 plainsource outpt: first commit 2015-11-18 13:47:36 +01:00
Moritz Schubotz
05fe60e8fa Add missing symbols
Not all symbols from the class other_literals2 were supported
cf mathjax#1236
2015-11-06 16:52:54 +01:00
Davide P. Cervone
ea98a6e562 Make height/depth of horizontal stretchy characters be maximum of the height/depth of the component parts, rather than TeX's approach of using the extender's height and depth. Also, make over-brace and other over macros not set accent=false so they match TeX and the under versions better. Resolves #1255. 2015-11-02 09:22:36 -05:00
Davide P. Cervone
7c39f064d0 Handle scriptlevel set on arrays via an mstyle node (affects smallmatrix). Resolves issue #1295. 2015-11-01 19:22:11 -05:00
Davide P. Cervone
abab9db28e Merge pull request #1292 from mathjax/pkra-eqreset
Update test/sample-dynamic.html
2015-10-28 14:48:25 -04:00
Peter Krautzberger
70a78850a3 Update sample-dynamic.html
Address review comments
2015-10-28 16:09:59 +01:00
Peter Krautzberger
5bed91bbcd Update sample-dynamic.html
Add reset for equations counters.
2015-10-28 15:35:57 +01:00
Davide P. Cervone
04bb13e932 Lookup stack container for stretchy operators for msubsup in CHTML. Resolves issue #1287. 2015-10-18 07:33:24 -04:00
Davide P. Cervone
ecbfb344c3 Move event handler to maction element rather than duplication it in two places (for HTML-CSS output). 2015-10-17 23:36:13 -04:00
Davide P. Cervone
415be7eaf7 Add explicit table border-spacing since Firefox seems to need this to avoid too large a space around the math when focusing. If the spacing is too small, it seems that Firefox fails to treat the inlein-table as a table, so use 3px and use the margin to remove it so there is no change in position. 2015-10-17 23:35:24 -04:00
Davide P. Cervone
83b482f4b4 Fix typo in bbox for mfrac, and add ability to draw debugging bounding box for a given element. 2015-10-17 22:19:54 -04:00
Davide P. Cervone
4c85dc09b9 Make mactions nest properly in SVG output 2015-10-17 06:01:15 -04:00
Davide P. Cervone
c68c690468 Make sure CHTML zoom has access to the proper container 2015-10-17 06:01:03 -04:00
Davide P. Cervone
b679e7e4df Merge branch 'issue1279' into develop. Issue #1279. 2015-10-14 09:09:35 -04:00
Davide P. Cervone
48e3ed1047 Merge branch 'issue1283' into develop. Issue #1283. 2015-10-14 08:01:41 -04:00
Davide P. Cervone
169d08bcd7 Merge branch 'issue1285' into develop. Issue #1285. 2015-10-14 08:00:38 -04:00
Davide P. Cervone
c8d09126b5 Make table frame and lines respect the scaling factor for the table (so they get thicker if the table is scaled). Issue #1279 2015-10-13 06:23:17 -04:00
Davide P. Cervone
c8ea88e195 Make horizontal lines have minimum lickness of 1px so they don't disappear. Issue #1279. 2015-10-13 06:15:32 -04:00
Davide P. Cervone
3b8ab2e5c1 Round em's to nearest pixel to avoid WebKit alignment issues. Resolves issue #1283. 2015-10-11 18:57:38 -04:00
Davide P. Cervone
7c3fbd95cc Mark CHTML output so that tex2jax won't re-process it. Resolves issue #1285. 2015-10-11 14:31:41 -04:00
Davide P. Cervone
0c77e8c880 Repack and recombine for 2.6-beta.1 2015-10-08 20:54:21 -04:00
Davide P. Cervone
225ac4680f Update version numbers of changed files 2015-10-08 20:52:14 -04:00
Davide P. Cervone
974b5d34c8 Merge branch 'issue1281' into develop. Issue #1281. 2015-10-08 20:46:10 -04:00
Davide P. Cervone
74c7898fca Merge branch 'issue1279' into develop. Issue #1279. 2015-10-08 20:45:59 -04:00
Davide P. Cervone
015c36ef84 Merge branch 'issue1278' into develop. Issue #1278. 2015-10-08 20:45:41 -04:00
Davide P. Cervone
bd5c6d7496 Scale pixels by the scaling factor in effect for node (since they are not relative units and won't be scaled automatically). Issue #1279 2015-10-08 08:35:59 -04:00
Davide P. Cervone
4765effa5f Make sure horizontal lines have units in pixels rather than ems so they are less likely to disappear 2015-10-08 08:19:05 -04:00
Davide P. Cervone
9da8bc6fdb Have non-token elements get the correct scaling factor (using the proper mathsize) rather than setting it to 1. This resolves issue #1281. 2015-10-08 08:12:29 -04:00
Davide P. Cervone
47163b5c70 Add missing ':focus' in CSS for handling outline better 2015-10-08 08:07:30 -04:00
Davide P. Cervone
1fa9bbaef0 Force width of mrow if there is negative space within the mrow (to work around WebKit bug). Resolves issue #1278. 2015-10-07 18:06:49 -04:00
Davide P. Cervone
e3f65aa912 Merge branch 'issue1282' into develop. Issue #1282. 2015-10-07 17:59:52 -04:00
Davide P. Cervone
4d6190c581 Use inline-table to make focus outline work better for all browsers. Resolves issue #1282 2015-10-06 20:48:15 -04:00
Davide P. Cervone
45853fad3e Merge branch 'issue1276' into develop. Issue #1276. 2015-10-06 20:33:51 -04:00
Davide P. Cervone
6535c031ed Fix alignment problems with horizontal stretched characters. Resolves issue #1276. 2015-10-03 08:31:17 -04:00
Davide P. Cervone
2fbc393e1a Merge branch 'issue1272' into develop. Issue #1272. 2015-10-02 12:48:04 -04:00
Davide P. Cervone
f6b72dda3a Merge branch 'issue1271' into develop. Issue #1271. 2015-10-02 12:47:55 -04:00
Davide P. Cervone
1f758f1110 Merge branch 'issue1273' into develop. Issue #1273. 2015-10-02 12:47:43 -04:00
Davide P. Cervone
fe5d05f07b Fix spacing of eqnarray environment. Resolves issue #1272 2015-09-30 21:51:36 -04:00
Davide P. Cervone
7200c2e9a5 Add support for PreviewHTML and CommonHTML to noErrors extension. Resolves issue #1271 2015-09-29 23:10:12 -04:00
Davide P. Cervone
90fdfd4783 Fix isMathJaxNode() to work with NativeMML output and don't worry about tagName starting with 'mjx-' since CHTML doesn't do that anymore. Fix isJax() to call isMathJaxNode() properly. Remove isMathJaxNode() call from HashCheck(), since that is taken care of in getJaxFor() automatically. Resolves issue #1273. 2015-09-29 22:01:11 -04:00
Davide P. Cervone
60c69e1d1f Combine updated files 2015-09-19 17:27:41 -04:00
Davide P. Cervone
c83db737ec Fix problems found during packing of files 2015-09-19 17:26:48 -04:00
Davide P. Cervone
ce99625de7 Repack files 2015-09-19 17:26:13 -04:00
Davide P. Cervone
2557ccedae Update version number to 2.6-beta for beta release 2015-09-19 10:08:08 -04:00
Davide P. Cervone
358e79765c Added support for \mathchoice now that the old CommonHTML is named PreviewHTML. 2015-09-18 15:58:50 -04:00
Davide P. Cervone
65d9ee1160 Change MJXf-* to MJXp-* (since we renamed FastHTML to PreviewHTML) 2015-09-18 15:49:41 -04:00
Davide P. Cervone
f0c93c2d98 Fix problem with fractions in quirks mode in Safari and IE. Resolves issue #1035 2015-09-18 15:43:01 -04:00
Davide P. Cervone
245b847abc Merge pull request #1267 from mathjax/fix_separator_bug
Fixes the menu bug introduced by giving separators a role.
2015-09-17 06:13:56 -04:00
Davide P. Cervone
b2a53ac6bc Merge pull request #1262 from dpvc/more-menu
A few menu display tweaks
2015-09-17 06:13:23 -04:00
zorkow
90f77e33a5 Fixes the menu bug introduced by giving separators a role. 2015-09-16 11:31:56 +01:00
Davide P. Cervone
1af1680715 Update configurations and add new ones 2015-09-15 08:46:25 -04:00
Davide P. Cervone
dd2ba79883 Change dialog close button text to be more specific 2015-09-15 08:27:42 -04:00
Davide P. Cervone
45817c1519 merge branch 'develop' into more-menu (fix conflicts with Volker's changes) 2015-09-14 07:27:21 -04:00
Davide P. Cervone
980091128a Merge pull request #1265 from mathjax/add_more_aria
Add some more ARIA
2015-09-14 07:20:48 -04:00
Davide P. Cervone
1c0597b921 Merge pull request #1257 from mathjax/issue1250
Improve RTL support in HTML-CSS (fixes #1250)
2015-09-14 07:00:51 -04:00
Davide P. Cervone
54854f88c1 Merge pull request #1263 from dpvc/issue1250
Use less-aggressive CSS for ltr and inline-block, and do Edge check within the extension.
2015-09-14 06:59:40 -04:00
Davide P. Cervone
00af8c161e Use isEdge for MSEdge detection 2015-09-14 06:57:01 -04:00
zorkow
7c870b6d93 Cleaned code. 2015-09-14 11:55:50 +01:00
Davide P. Cervone
6a7fe67146 Merge branch 'develop' into issue1250. (Bring in detect-edge changes) 2015-09-14 06:55:05 -04:00
Davide P. Cervone
253c5a7b04 Merge branch 'detect-edge' into develop 2015-09-14 06:53:16 -04:00
zorkow
3b099e971a Fixes labelling for close buttons. 2015-09-14 02:03:21 +01:00
zorkow
e3a62c0dfe Fixes the menu role. 2015-09-14 01:43:57 +01:00
zorkow
3e190fc5f4 Adds additional aria elements for the menu items. 2015-09-14 01:28:13 +01:00
Davide P. Cervone
6f461fdb5c Make keyboard menus work with [Math Processing Error] elements. 2015-09-13 18:59:08 -04:00
Davide P. Cervone
031dccee98 Fix CHTML issues due to change from custom tags to span-with-class approach (i.e., replace uses of getElementsByTagName). Also fix some issues found by running the test suite. 2015-09-13 17:48:29 -04:00
Davide P. Cervone
31992363fd Fix problems found during the running of the testsuite. (First, make sure event is non-null, but I think that was already the case. So we don't need the later tests for it. Then use clientX and clienY even if they are zero.) 2015-09-13 17:44:11 -04:00
Davide P. Cervone
104434c674 Add mobile detection for Chrome and enable alternate context menu trigger (double-tap and hold) 2015-09-13 11:27:54 -04:00
Davide P. Cervone
79bd8996ed Add warning when switching to NativeMML in Edge 2015-09-13 11:09:55 -04:00
Davide P. Cervone
620e303b10 Detect Microsoft Edge, and also set isMobile for Window Phone 2015-09-13 10:57:34 -04:00
Davide P. Cervone
d7f946e5cb Handle keyboard events and menu placement better in IE < 9 2015-09-12 17:35:41 -04:00
Davide P. Cervone
3fa5b2d2ad Don't let svg element be focusable in IE. 2015-09-12 17:33:56 -04:00
Davide P. Cervone
f54168eed3 Fix spacing for eqnarray environment now that it is handled in AMSarray 2015-09-12 15:09:01 -04:00
Davide P. Cervone
649b7b2863 Properly handle left-hand space for first script after <none/> in CHTML mmultiscripts 2015-09-12 15:00:06 -04:00
Davide P. Cervone
0412d8ec7e Fixed CHTML.addElement to be able to create non-span elements (e.g., the <a> needed for href attributes) 2015-09-12 14:23:35 -04:00
Davide P. Cervone
17e02d710c Fix removal of previously rendered CHTML output (for Rerender, etc) to lok for class rather than node type, now that we switched to all spans again (sigh). 2015-09-12 14:19:37 -04:00
Davide P. Cervone
e172b04928 Use less-aggressive CSS for ltr and inline-block, and do Edge check within the extension. 2015-09-12 13:23:29 -04:00
Davide P. Cervone
4c5314c95f Merge branch 'issue1192' into develop. Issue #1192. 2015-09-12 11:11:39 -04:00
Davide P. Cervone
49e0852d36 Don't focus the math element if the menu was closed via a mouse click. 2015-09-12 10:16:24 -04:00
Davide P. Cervone
8645c8ce94 Don't show focus on dialog boxes opened by mouse events (only keyboard), and don't show focus for close icon when clicking with mouse 2015-09-12 10:08:50 -04:00
Davide P. Cervone
0cf2a52745 Add styling to make mouse-based menu display look as the same as before (no focus highlighting, though focus is still set) 2015-09-12 08:58:20 -04:00
Davide P. Cervone
9d508c72d8 Also make 'role' use setAttribute() 2015-09-12 08:38:02 -04:00
Davide P. Cervone
b1647c98e7 Make sure CommonHTML output is marked by isMathJax 2015-09-12 07:30:54 -04:00
Davide P. Cervone
bde96342e6 Move .MathJax:focus to right after .MathJax CSS, and make sure full-width equations are full width when converted to display:inline-block 2015-09-12 06:59:50 -04:00
Davide P. Cervone
2756525e73 Make sure aria attributes use setAttribute so they appear properly in the DOM 2015-09-12 06:58:06 -04:00
Davide P. Cervone
c2ef3d9312 Localize 'Close Window' in HelpDialog 2015-09-12 06:57:24 -04:00
Davide P. Cervone
50260bbcac Localize 'Close Window' string 2015-09-11 18:00:56 -04:00
Davide P. Cervone
94363d94bb merge branch 'assistive-mml' into develop 2015-09-11 17:06:12 -04:00
Davide P. Cervone
89f15693f7 Remove debugging log message and timer 2015-09-11 12:26:28 -04:00
Davide P. Cervone
3a15f83059 Adjust role for SVG output and put aria-label on the SVG element rather than the enclosing span; add role and aria-label to CHTML output. Resolves issue #1192. 2015-09-11 10:44:50 -04:00
Davide P. Cervone
a09993d75a Fix About box to show correct font for CommonHTML, and make it easier to add new output formats later. 2015-09-11 09:50:53 -04:00
Peter Krautzberger
bbdbe19eda update mml3.js
Extend Microsoft Edge workaround to Internet Explorer.
2015-09-09 17:33:59 +02:00
Peter Krautzberger
2c79bd4090 Update mml3.js
Fixes #1252.

* Add workaround for MS Edge bug. 
* Prettify xslt string.
2015-09-09 11:45:59 +02:00
Peter Krautzberger
98a8deecf6 Update MathJax.js: add UA detection for MS Edge
Cf. https://msdn.microsoft.com/en-us/library/hh869301.aspx
2015-09-09 11:40:23 +02:00
Davide P. Cervone
27bae487e6 Merge pull request #1242 from mathjax/integrate_keyboard_events
Integrate keyboard events.  Resolves issue #939
2015-09-07 06:18:36 -04:00
zorkow
d3a4535ec8 Merge branch 'develop' into integrate_keyboard_events 2015-09-04 15:00:59 +01:00
Peter Krautzberger
593a393bfc Improve RTL support in HTML-CSS
Add CSS to prevent browser interference
2015-09-04 10:21:34 +02:00
Davide P. Cervone
2639c8fd44 Merge branch 'fast-preview' into develop 2015-09-03 09:48:30 -04:00
Davide P. Cervone
3253d39fc9 Merge branch 'issue1247' into develop. Issue #1247. 2015-09-03 09:41:13 -04:00
Davide P. Cervone
3fdbe03b2a Update AsciiMath to current version. Issue #1247. 2015-09-03 09:39:55 -04:00
Davide P. Cervone
936f85b537 Merge branch 'issue1251' into develop. Issue #1251. 2015-09-03 09:36:11 -04:00
Davide P. Cervone
184e8860de Merge pull request #1249 from mathjax/issue1248
update locales for v2.6
2015-09-03 09:18:46 -04:00
Davide P. Cervone
748b9b26f8 Merge pull request #1254 from mathjax/issue1253
Update html files in /test
2015-09-03 08:53:05 -04:00
Peter Krautzberger
0906dea8f1 update html files in /test: update meta tags; improve sample-dynamic2.html to include asciimath notation 2015-09-02 15:42:24 +02:00
zorkow
03e761dafe Makes if/return statements uniform to codebase. 2015-09-02 14:08:50 +01:00
zorkow
03c0aac634 Changed single quotes to double quotes for styling. 2015-09-02 13:52:21 +01:00
zorkow
b81019676f Fixes focusing on first and last element when moving between Maths elements. 2015-09-02 13:36:00 +01:00
Davide P. Cervone
78e9737b21 Rename FastHTML to PreviewHTML and FHTML-preview.js to fast-preview.js 2015-09-01 18:45:20 -04:00
zorkow
74c2b46da5 Consistently places menu on maths elements by adding scroll offset. 2015-09-01 23:12:46 +01:00
zorkow
0922aa2ebc Moves keyboard menu to centroid. 2015-09-01 21:27:25 +01:00
zorkow
0e1a33263f Adds to keyboard driven menus to FastHTML. 2015-09-01 21:16:29 +01:00
zorkow
7867707d5b Fixes deactivation problem in last submenu. 2015-09-01 21:16:07 +01:00
zorkow
a7e4c1a14c Adds final submenu closing and opening on left/right key. 2015-09-01 21:05:49 +01:00
zorkow
56deff3a7d Resets focus on last Maths element when closing popup windows. 2015-09-01 19:42:18 +01:00
zorkow
7054f37677 Integrates and moves improved CSS for outline. 2015-09-01 19:34:50 +01:00
zorkow
db2869a2d3 Increase in minimum width of source window to fix problem on Chrome. 2015-09-01 19:08:08 +01:00
zorkow
516874b50c Corrects keys and focusing on popup boxes. 2015-09-01 18:52:45 +01:00
zorkow
94b0d7d1ee Merge branch 'develop' into integrate_keyboard_events
Conflicts:
	unpacked/jax/output/CommonHTML/jax.js
2015-09-01 18:30:46 +01:00
Peter Krautzberger
4a1aaf6097 locales: add newly added locales to MathJax.js 2015-09-01 18:11:53 +02:00
Peter Krautzberger
42403dc869 i18n: add newly added locales 2015-09-01 16:01:45 +02:00
Davide P. Cervone
07eb553f8d Merge branch 'chtml' into develop. Issue #1051. 2015-09-01 08:13:11 -04:00
Davide P. Cervone
c812f8909d Merge branch 'chtml-spans' into chtml 2015-09-01 08:08:34 -04:00
Davide P. Cervone
bc360cd262 Make sure primes are taken from the correct variant font (now that we have more than one to work with). Resolves issue #1251 2015-09-01 08:02:02 -04:00
zorkow
afdd671999 Proper keyhandling for popup windows. 2015-09-01 03:46:07 +01:00
zorkow
6cc308b5d0 Enables to untrigger menu with space. 2015-09-01 02:40:41 +01:00
zorkow
f73453512b Hides math element walking behind shift. 2015-09-01 02:21:06 +01:00
zorkow
faeae3e105 Fixes interference problems with submenu timer. 2015-09-01 01:58:38 +01:00
zorkow
c890d8183d Removes occurrence of elementsbyclassname. 2015-09-01 01:29:55 +01:00
zorkow
ad8a8704d4 Fixes scroll position and involuntary mouse interaction. 2015-09-01 00:58:53 +01:00
zorkow
2143219d9b Adds navigation role to main menu. 2015-08-31 21:08:27 +01:00
zorkow
0895c284d3 Passes through unused key events. 2015-08-31 19:56:07 +01:00
zorkow
f73d5f0094 Caches focused node. 2015-08-31 19:50:55 +01:00
zorkow
fbb70fb658 Removes logging and prototype addition. 2015-08-31 14:41:07 +01:00
Peter Krautzberger
e575948a88 Update locales for v2.6 release
Fixes #1248
2015-08-31 15:06:35 +02:00
Davide P. Cervone
e6f15a4bec Convert use of custom tags to span-with-class 2015-08-29 08:24:44 -04:00
zorkow
576d6b2132 Cleans event function. 2015-08-29 02:11:15 +01:00
zorkow
986ee52e8a Focuses popup windows. 2015-08-29 01:57:33 +01:00
zorkow
189d4a8a81 Adds tabbing and menu key event for for all renderers. 2015-08-29 01:02:33 +01:00
zorkow
d73dbe2860 Adds prototype definition for indexOf. 2015-08-29 00:30:34 +01:00
zorkow
9654bd4256 Navigation of RTL menus. 2015-08-29 00:09:43 +01:00
zorkow
66b56d9ac9 Moves posting code for keyboard triggered menus. 2015-08-28 22:52:45 +01:00
zorkow
583f4a60dc Fixes some scolling issues. 2015-08-28 18:42:28 +01:00
zorkow
d18bfbf66d Removes redundant methods. 2015-08-28 16:52:34 +01:00
zorkow
7f4c56df9b Removes all caching of DOM elements. 2015-08-28 16:51:20 +01:00
zorkow
0d60b0654b Removes caching of active element. 2015-08-28 12:29:19 +01:00
Davide P. Cervone
944000c76f Set min-width properly on tables with labels so that they don't overlap (596). 2015-08-26 19:21:47 -04:00
Davide P. Cervone
52ba4e6fa9 Fix default value for minlabelspacing (failed if unitless values were used) 2015-08-26 17:23:58 -04:00
Davide P. Cervone
8d4a15abc1 Fix problems with indentAlign='right'. 2015-08-26 17:17:55 -04:00
zorkow
1c07cf3189 Removes all caching of MathJax nodes. 2015-08-26 14:17:08 +01:00
zorkow
39109bf88a Removes caching of MathJax nodes. 2015-08-26 13:56:30 +01:00
Davide P. Cervone
d0e4e1b8f5 Handle explicit width correctly for tables in SVG (don't remove extra column spacing) 2015-08-26 08:47:42 -04:00
zorkow
1228bb89ad Introduces accessor function for cached MathJax nodes. 2015-08-26 13:38:44 +01:00
Davide P. Cervone
f886216f2c Handle explicit width correctly (don't remove extra column spacing) 2015-08-26 06:58:46 -04:00
Davide P. Cervone
3d4bc8cd0f Handle indentshift properly in HTML-CSS output (don't need to scale it) 2015-08-26 06:39:23 -04:00
Davide P. Cervone
b06c7a5f20 Make sure transform is non-null to avoid problems when it is appended later. 2015-08-26 06:23:04 -04:00
Davide P. Cervone
c3f4606576 Fix problem with dahsed rowlines in mtable caused by changing to px for rules (and using top border for horizontal lines) 2015-08-25 16:55:33 -04:00
Davide P. Cervone
1abb78e9c9 Merge branch 'semantic-enhance' into develop 2015-08-25 15:32:24 -04:00
Davide P. Cervone
31e4b98a58 Merge remote-tracking branch 'mathjax/develop' into develop 2015-08-25 15:22:58 -04:00
Davide P. Cervone
463c88e4be Don't use monospace for MS, and use smart quotes, like CommonHTML. 2015-08-25 15:14:48 -04:00
Davide P. Cervone
0a4da7e3b4 Do quotes and text in one shot, like HTML-CSS and SVG (resolves some problems with the ms tests in the test suite). 2015-08-25 15:13:16 -04:00
Davide P. Cervone
930c5d3fb3 Make maction use the correct core node 2015-08-25 12:13:15 -04:00
Davide P. Cervone
3032239f7e Make fraction spacing consistent with HTML-CSS and SVG output 2015-08-25 12:12:51 -04:00
zorkow
816259d6ff Introduces accessor methods for all cached HTML nodes. 2015-08-25 13:48:00 +01:00
Davide P. Cervone
37d7a91a69 Only use mathsize on token elements 2015-08-25 08:09:43 -04:00
Davide P. Cervone
bea44b3029 Avoid problem with empty base element 2015-08-24 19:32:27 -04:00
Davide P. Cervone
0714de5336 Force a little more space in fractions, and get the spacing right for \atop 2015-08-24 18:03:45 -04:00
Davide P. Cervone
b80e69967b Add scaling factor to length2em computations (since containers set font-size, the absolute dimensions need to be adjusted to compensate). Make an mbase version to make that easier. 2015-08-24 18:00:28 -04:00
Davide P. Cervone
d139834179 Make sure mspace and mfrac set their scaling factors. 2015-08-24 13:56:58 -04:00
Davide P. Cervone
bf330af3f7 Make sure tables with labels are properly aligned (in case they are in an mrow with other stuff, though they shouldn't be). 2015-08-24 13:12:47 -04:00
Davide P. Cervone
e59f6d6484 Make sure parents of percentage-width elements have percentage widths. 2015-08-24 13:11:47 -04:00
zorkow
e29e3c9e99 Fixes activation problem for submenu anchor. 2015-08-24 17:01:50 +01:00
Davide P. Cervone
5296f1111f Make mtextFontInherit take the math scaling factor into account (issue 826). 2015-08-24 10:59:07 -04:00
Davide P. Cervone
3100f10c4a Don't count spacing (in paddingLeft and Right) as part of the width of an <mo> element 2015-08-24 10:45:47 -04:00
Davide P. Cervone
d400e00812 Handle math italic with mtextFontInherit, record unkown character axis properly, and get correct scaling for unknown characters. 2015-08-24 10:08:24 -04:00
Davide P. Cervone
6e1301e681 Update CHTML to get the proper node for handling horizontal stretchy characters. 2015-08-24 08:23:20 -04:00
Davide P. Cervone
966444bc31 Fix zoom scaling, and fix handling over overlaps on top and bottom 2015-08-22 12:13:15 -04:00
Davide P. Cervone
5f00f6facd Rename mapchars to remapchars property for consistency (was wrong in mo.CHTMLcanStretch). 2015-08-22 10:12:03 -04:00
Davide P. Cervone
fc04b1943d Fix typo in handling UTF-16 characters 2015-08-22 09:37:39 -04:00
Davide P. Cervone
2cce710826 Handle align attribute for munderover 2015-08-22 07:52:25 -04:00
Davide P. Cervone
f5928643b8 Make smartquotes into regular quotes for monospaced output 2015-08-22 07:52:06 -04:00
Davide P. Cervone
e7961f0dd2 Make phantom background colors not disappear, make spaces be kept in char boxes, and handle mrow-enclosed atom in superscripts (still needs work, like TWO mrows, etc., and should be made part of mml jax). 2015-08-22 07:50:56 -04:00
Davide P. Cervone
787006163b Don't count frame width in frame spacing, and add padding to fake td for equal heights. 2015-08-22 07:50:49 -04:00
Davide P. Cervone
94d236457c Fix vertical align percentage to be of initial image height (to be consistent with others) 2015-08-22 07:50:39 -04:00
zorkow
9266592219 Merge branch 'abstract_menu_entry_class' into add_tabbing 2015-08-21 13:11:22 +01:00
Volker Sorge
a3eef41c83 Merge pull request #1240 from mathjax/abstract_menu_entry_class
Adds level of subclassing for clickable menu items.
2015-08-21 21:10:28 +09:00
zorkow
72e1e6b5b5 Fixes case of disabled submenu entry. 2015-08-21 13:09:46 +01:00
zorkow
2f83433422 Makes Attributes interface uniform. 2015-08-21 12:59:28 +01:00
Davide P. Cervone
b5d6f31252 Add missind 'node' to CHTMLstretchH() call. 2015-08-21 07:46:01 -04:00
zorkow
64e8419ff1 Whitespace cleanup. 2015-08-21 12:37:26 +01:00
zorkow
4c54fe224e Fixes tangling active on mouseover. 2015-08-21 12:36:44 +01:00
zorkow
66fb6c9ab4 Fixes event problem 2015-08-21 12:27:15 +01:00
zorkow
70da9faa90 Introduces abstract superclass of all keyboard navigatable objects. 2015-08-21 05:35:20 +01:00
zorkow
85c1801fba Fixes issues with submenus. 2015-08-21 04:59:31 +01:00
zorkow
1be417af3a Combined keyboard and mouse navigation works. 2015-08-21 04:34:18 +01:00
Davide P. Cervone
43f59da6b9 Make 'dumb quotes' into 'smark quotes' 2015-08-20 11:21:34 -04:00
Davide P. Cervone
273a96a122 Handle unitless linethickness in mfrac 2015-08-20 11:16:22 -04:00
Davide P. Cervone
948620fa02 Handle missing elements better (see issue 486) 2015-08-20 10:32:21 -04:00
zorkow
5e88e80975 Merge branch 'abstract_menu_entry_class' into add_tabbing
Conflicts:
	unpacked/extensions/MathMenu.js
2015-08-20 14:48:50 +01:00
Davide P. Cervone
6b399e3726 Remove spacing from under and over scripts (see issue 815), and handle the bbox.D value better when there are multiple elements in an mrow. 2015-08-20 08:50:01 -04:00
zorkow
2c028aee22 Incorporates review suggestions. 2015-08-18 22:51:59 +01:00
zorkow
7c68c1cb1c WIP 2015-08-18 22:01:27 +01:00
zorkow
c6b98d45cc Injects abstract class for clickable items. 2015-08-18 18:01:57 +01:00
zorkow
973edc9686 Adds level of subclassing for clickable menu items. 2015-08-17 19:50:14 +01:00
Davide P. Cervone
cbdfa18ad1 More improvements to mmultiscripts in mhchem. 2015-08-17 14:06:58 -04:00
Davide P. Cervone
964a9e0c59 More improvements to mmultiscripts in mhchem. 2015-08-17 13:40:44 -04:00
Davide P. Cervone
e186e50c9e Incoporate changes that were lost during the rename of CHTML-preview to FHTML-preview 2015-08-17 09:16:43 -04:00
Davide P. Cervone
2e6b2bb3f0 Fix problem with prescripts being lost if they appear with no base at the end of the expression, and a problem with prescripts when they are before an open brace. 2015-08-12 09:24:31 -04:00
Davide P. Cervone
9b09bd9b2d Merge branch 'variable-centers' into chtml 2015-08-11 12:56:52 -04:00
Davide P. Cervone
49bdd1e9fa Merge branch 'issue1238' into develop. Issue #1238. 2015-08-11 08:37:02 -04:00
Davide P. Cervone
5210dbd4c7 Merge branch 'issue1233' into develop. Issue #1233. 2015-08-11 08:36:45 -04:00
Davide P. Cervone
ed25f37e1d Remove() method should remove display container if the jax is a displayed equation. 2015-08-10 19:49:54 -04:00
Davide P. Cervone
7a23ce9382 Update web fonts to have OS/2 and HHEA values agree, set line gap to 0, set OS/2 version to 4 and force typo metrics to be used (Firefox ignores this). These will still work with HTML-CSS output 2015-08-10 19:42:40 -04:00
Davide P. Cervone
c43a5250f0 Handle centerline for stretchy characters, and add centerline data to font files. 2015-08-10 19:40:30 -04:00
Davide P. Cervone
12bee3279d Remove namespaces (resolves issue #1238) and use createElementNS even in IE when possible (these nodes are temprary and never actually go into the DOM, so no need to trigger MathPlayer). I don't know if the m: is right for earlier IE, since element.nodeName may return that and cause the same problems as 1238. That should be checked. 2015-08-10 18:37:43 -04:00
Davide P. Cervone
98b748d088 First step in handling variable centerlines for fonts (still need to do stretchy characters and remove use of CENTERLINE) 2015-08-10 18:28:28 -04:00
Davide P. Cervone
da568bfff0 Merge branch 'fhtml' into chtml 2015-08-10 07:09:48 -04:00
Davide P. Cervone
d566b9b8bc Merge branch 'issue994' into develop. Issue #994. 2015-08-09 15:19:39 -04:00
Davide P. Cervone
3f4c47b4d7 Make maligngroup and malignmark be self-closing in MathML input, and make them produce no output in SVG mode. Resolves issue #1233. 2015-08-09 15:07:42 -04:00
Davide P. Cervone
ac8a9564ec Add compatibility CHTML-preview.js (it just calls the new one). 2015-08-09 15:04:36 -04:00
Davide P. Cervone
66cdd5fcab Change CHTML-preview to FHTML-preview, and make it backward compatible. 2015-08-05 17:53:27 -04:00
Davide P. Cervone
425c9df6e9 Move old CommonHTML to be FastHTML 2015-08-05 16:39:06 -04:00
Davide P. Cervone
99d32c7416 Merge branch 'issue1230' into develop. Issue #1230. 2015-08-05 15:03:44 -04:00
Davide P. Cervone
22364035fb Merge branch 'issue1074' into develop. Issue #1074. 2015-08-05 15:02:59 -04:00
Davide P. Cervone
c101f3877d Merge branch 'issue1095' into develop. Issue #1095. 2015-08-05 15:02:35 -04:00
Davide P. Cervone
723530ed1e Merge branch 'issue1231' into develop. Issue #1231. 2015-08-05 15:02:16 -04:00
Davide P. Cervone
62c9a327a5 Merge branch 'issue1229' into develop. Issue #1229. 2015-08-05 15:01:58 -04:00
Davide P. Cervone
9b6a1ae723 Change blacker to 1 since browsers now seem to handle that pretty well. Resolves issue #994. 2015-08-05 14:50:33 -04:00
Davide P. Cervone
c22f47aace Localize the Math Processing Error message text, and try harder to get the file and line number. Resolves issue #1230. 2015-08-04 16:20:00 -04:00
Davide P. Cervone
70e23004ea Work around problem with MathPlayer not being triggered by createElementNS in IE11. Resolves issue #1074. 2015-08-04 15:05:06 -04:00
Davide P. Cervone
f3374f9c05 Merge branch 'chtml-fonts-250' into chtml 2015-08-04 11:28:20 -04:00
Davide P. Cervone
cbb5547af1 Don't collapse borders for tables (this caused actual border rules to disappear when changing sizes in Firefox). See also issue #1095. 2015-08-04 11:21:03 -04:00
Davide P. Cervone
b1b6861a6c Use px rather than em for frames as well. Resolves issue #1095 in Safari. 2015-08-04 09:23:03 -04:00
Davide P. Cervone
922eabdf72 Use px rather than em for rule thicknesses, and use borderTop for wide rules rather than borderLeft. This makes them less likely to disappear. Resolves issue #1095. 2015-08-04 09:19:41 -04:00
Davide P. Cervone
4c06d67673 Make childCore use data[0].Core() if there is an inferred row (so that it matches Parent() in skipping inferred rows). Resolves issue #1231. 2015-08-03 18:16:12 -04:00
Davide P. Cervone
e72aa99513 Handle spacing of trailing binary operators properly. 2015-08-03 18:07:14 -04:00
Peter Krautzberger
8c2ed0c91c Merge pull request #1216 from cben/error-tip
Add debugging tips to error messages
2015-08-03 17:21:46 +02:00
Peter Krautzberger
98ea9c5c26 Merge pull request #5 from minrk/component
add component task
2015-08-03 10:53:41 +02:00
Davide P. Cervone
5c333a8b47 Fix depth of horizontal stretchy characters to match HTML-CSS (should be based on extender as originally done, but font metrics don't really work for that with minus sign for arrows, for example). 2015-08-02 17:16:15 -04:00
Davide P. Cervone
92deaa0993 Handle WebKit problems with negative depth (again). 2015-08-02 17:01:01 -04:00
Davide P. Cervone
ead271e0e6 Change fonts from having ascent=descent to having midpoint at .25em, and adjust font handling to do offsets from that. 2015-08-02 15:14:14 -04:00
Davide P. Cervone
930e35a39d Merge branch 'issue1225' into develop. Issue #1225. 2015-08-02 08:55:52 -04:00
Davide P. Cervone
16476f8d44 Merge branch 'issue1224' into develop. Issue #1224 2015-08-02 08:55:38 -04:00
Davide P. Cervone
1de28f5a9a Make \operatorname and \DeclareMathOperator skip \limits if it follows them. Resolves issue #1225. 2015-07-30 09:45:45 -04:00
Davide P. Cervone
7cbea14c75 Handle braces properly in text mode when looking for matching math delimiters. Resolves issue #1224 2015-07-30 09:25:25 -04:00
Min RK
85cdc0c13e add component task
- removes png image fonts
- disables imageFont in HTML-CSS config
2015-07-29 21:45:39 -07:00
Min RK
48322fc7e5 add grunt-regex-replace 2015-07-29 21:13:51 -07:00
Min RK
eec24e97fe add node_modules to .gitignore 2015-07-29 21:12:23 -07:00
Davide P. Cervone
4149a87a96 Autoload AssisitveMML if the menu item is set and the extension isn't loaded. 2015-07-24 09:25:11 -04:00
Davide P. Cervone
8d38947024 Add aria attributes for the normal and assistive output. 2015-07-24 07:20:10 -04:00
Davide P. Cervone
1dff53daa8 Make sure mml2jax doesn't process the assistive MathML. 2015-07-24 07:19:27 -04:00
Peter Krautzberger
a02ed2e604 Update package name 2015-07-24 10:40:51 +02:00
Peter Krautzberger
08932e468f fix linting errors
* add strict mode
* fix trailing commas
2015-07-24 10:39:25 +02:00
Peter Krautzberger
1350d174f6 Merge pull request #4 from errantmind/master
fix: mathmlInput removing TeX folders instead of MathML
2015-07-24 10:03:01 +02:00
James Bates
5173fc16bb fix mathmlInput removing TeX folders instead of MathML 2015-07-24 00:05:17 -05:00
Davide P. Cervone
82e0daf2c6 Add a hidden menu item that controls the AssistiveMML extension. 2015-07-23 17:09:43 -04:00
Davide P. Cervone
f0cc437b1e Refactor code to make a separate configuration section with dynamically generated stylesheet. Use a class for the added MathML rather than explicit CSS. 2015-07-23 16:40:18 -04:00
Davide P. Cervone
d8357a2d03 Change CSS to that recommended by the Yahoo Accessibility team at https://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html 2015-07-23 15:14:02 -04:00
Davide P. Cervone
f3273f6e62 First draft of assistive MathML extension. Still needs configuration, and we need to make sure the mml2jax exteion doesn't try to process the hidden MathML. 2015-07-23 11:33:07 -04:00
Davide P. Cervone
24f0388bda Merge branch 'issue1188' into develop. Issue #1188. 2015-07-23 08:07:24 -04:00
Davide P. Cervone
414ae76423 Merge branch 'issue1211' into develop. Issue #1211. 2015-07-23 08:06:54 -04:00
Beni Cherniavsky-Paskin
6eff72ba8a Since we probably can't give informative traceback, tell user how to obtain one. 2015-07-22 23:34:23 +03:00
Davide P. Cervone
ca53ebdd73 More fixes for #1188 to prevent empty object problems 2015-07-20 15:18:46 -04:00
Davide P. Cervone
26ebc33c37 Treat missing super- or subscript as <none/> when not properly paired in multiscripts. (Issue 1188) 2015-07-20 15:10:41 -04:00
Davide P. Cervone
d613dabd8e Treat missing super- or subscript as <none/> when not properly paired in multiscripts. Resolves issue #1188. 2015-07-20 15:06:37 -04:00
Davide P. Cervone
efb24b7fc2 Properly detect the extra web fonts in IE10+. Resolves issue #1211. 2015-07-20 11:33:27 -04:00
Davide P. Cervone
d127b1bcb7 Merge branch 'issue596' into develop. Issue #596. 2015-07-16 15:39:20 -04:00
Davide P. Cervone
f42c71feca Merge branch 'issue956' into develop. Issue #956. 2015-07-16 15:39:05 -04:00
Davide P. Cervone
4c8158ca36 Merge branch 'issue1028' into develop. Issue #1028. 2015-07-16 15:38:41 -04:00
Davide P. Cervone
e0bf912cf3 Merge pull request #1210 from CalebKester/develop
Update MathZoom.js with global border-box support
2015-07-16 10:11:31 -04:00
CalebKester
2dd603aa41 Update MathZoom.js with global border-box support
With a lot of sites using the global box-sizing it breaks the zoom box on large equations when the zoom goes wider than the screen.  This fix will explicitly add content-box on this element to prevent a global override.
2015-07-16 08:44:52 -05:00
Davide P. Cervone
d70612a519 Don't need to add extra mtd for tags any longer. 2015-07-14 14:35:02 -04:00
Davide P. Cervone
a33c5d1437 Don't allow labels to overlap equations in CommonHTML mode. Because CommonHTML allows tables that fill 100% of the width, making this work for centered equations is sub-optimal as we have to leave space on both sides of the equation to balance the label width. Issue #596. 2015-07-13 14:10:56 -04:00
Davide P. Cervone
bcdb2f1048 Don't allow labels to overlap equations in HTML-CSS mode. Because HTML-CSS allows tables that fill 100% of the width, making this work for centered equations is sub-optimal as we have to leave space on both sides of the equation to balance the label width. Issue #596. 2015-07-13 10:52:04 -04:00
Davide P. Cervone
b9e428e2cf Don't allow labels to overlap the equations in SVG mode. Resolves issue #596. Some situations still may not be optimal. 2015-07-11 16:23:17 -04:00
Davide P. Cervone
fd65c2917b Use mmultiscripts for atoms with prescripts. Resolves issue #956. 2015-07-10 18:13:40 -04:00
Davide P. Cervone
e7c928fa3e Handle spacing in alignedat environment (like 811 and 982). Resolves issue #1028. 2015-07-10 11:43:23 -04:00
Davide P. Cervone
a9ab53ece8 Merge branch 'issue1085' into develop. Issue #1085. 2015-07-09 11:27:32 -04:00
Davide P. Cervone
d2cf7edb0f Merge branch 'issue1173' into develop. Issue #1173. 2015-07-09 11:27:05 -04:00
Davide P. Cervone
af7bfcf8c3 Merge branch 'issue1194' into develop. Issue #1194. 2015-07-09 11:26:07 -04:00
Davide P. Cervone
67e7351e1d Merge branch 'issue1208' into develop. Issue #1208. 2015-07-09 11:25:08 -04:00
Davide P. Cervone
6fd9c45c14 Add more detail to browser detection for Safari (since Windows Mobile thinks its Safari). Resolves issue #1085. 2015-07-08 17:20:28 -04:00
Davide P. Cervone
2f37a00c6f Use extra parentheses to avoid warning message in debug mode. Resolves at least one line from issue #1173. 2015-07-08 17:11:58 -04:00
Davide P. Cervone
c03acb6d7d Fix problem where automatic numbering affects \binom and friends. Resolves issue #1194 2015-07-08 17:05:57 -04:00
Davide P. Cervone
15c9159cb2 Merge branch 'issue1199' into develop. Resolves issue #1199. 2015-07-08 15:37:49 -04:00
Davide P. Cervone
8d39915c25 Merge branch 'issue1176' into develop. Resolves issue #1176. 2015-07-08 15:36:02 -04:00
Davide P. Cervone
fd8c901274 Merge branch 'issue1072' into develop. Resolves issue #1072. 2015-07-08 15:34:26 -04:00
Davide P. Cervone
cd12ba63d9 Make chunking parameters only be used when fast preview is enabled. 2015-07-08 15:30:49 -04:00
Peter Krautzberger
31da784b6f Merge pull request #1 from mathjax/mj-node
update for MathJax v2.5 release, fixes #3
2015-06-30 21:43:13 +02:00
Davide P. Cervone
122ca09352 Fix problem with dot delimiter not being recognized as a delimiter because TEXDEF.delimiter[.] returns an empty string. Resolves issue #1199. 2015-06-29 10:23:32 -04:00
Davide P. Cervone
ca6ffc7b41 Use scale of 1 if bbox.scale is not set (affects fractions, for example). Resolves issue #1072. 2015-06-29 09:54:37 -04:00
Davide P. Cervone
a154d7ded1 Merge branch 'hotfix-2.5.3' into develop 2015-04-30 17:51:07 -04:00
Peter Krautzberger
ba9afeb5a7 Merge pull request #1181 from mathjax/hotfix-2.5.3
Merge v2.5.3 for release
2015-04-30 23:26:13 +02:00
Davide P. Cervone
d7419676e2 Repack and recombine 2015-04-30 17:14:37 -04:00
Davide P. Cervone
72af812dfe Changed the wrong version number in the previous commit. 2015-04-30 17:13:44 -04:00
Davide P. Cervone
805986318b Change version numbers. 2015-04-30 15:27:45 -04:00
Davide P. Cervone
242c9356f5 Put off moving math in containers with display:none from the hidden div where they are typeset to their proper locations until AFTER they have been remeasured. Resolves issue #1179. 2015-04-30 13:44:03 -04:00
Davide P. Cervone
325f149ef7 Merge remote-tracking branch 'mathjax/hotfix-2.5.2' into develop 2015-04-29 10:54:31 -04:00
Peter Krautzberger
9995bf3fda Merge pull request #1166 from mathjax/hotfix-2.5.2
Merge v2.5.2 for release
2015-04-29 16:26:46 +02:00
Davide P. Cervone
e3f1a68bbe Make sure that paths with scale() transforms retain the scaling when they are translated. Issue #1176 and mathjax/MathJax-node#93. 2015-04-28 18:26:49 -04:00
Davide P. Cervone
7df7e227c5 Make sure the correct jax is passed to the postInputHooks. 2015-04-28 18:25:06 -04:00
Davide P. Cervone
0360f44783 Merge pull request #1172 from christianp/var-in-global-scope
fix typo which put a variable in global scope
2015-04-23 06:59:42 -04:00
Christian Perfect
5d3ffd40f2 fix typo which put a variable in global scope
missing comma meant that SETTINGS was put in global scope
2015-04-23 08:56:34 +01:00
Davide P. Cervone
e533634f37 Add a postInputHooks list so that we can attach global filters like the MathML semantic enhancement filter. 2015-04-21 17:34:48 -04:00
Davide P. Cervone
6b73beacd5 Merge branch 'issue995' into develop. Issue #955. 2015-04-21 16:48:22 -04:00
Davide P. Cervone
d4b1fa042a Merge branch 'issue1072' into develop. Issue #1072. 2015-04-21 16:45:12 -04:00
Davide P. Cervone
2af7fde2d9 Merge branch 'issue1155' into develop. Issue #1155. 2015-04-21 16:44:38 -04:00
Davide P. Cervone
9290d82858 Merge branch 'issue928' into develop. Issue #928. 2015-04-21 16:43:56 -04:00
Davide P. Cervone
3d951361fe Merge branch 'issue567' into develop. Issue #567. 2015-04-21 16:43:28 -04:00
Davide P. Cervone
e22bcd1398 Merge branch 'issue1036' into develop. Issue #1036. 2015-04-21 16:42:03 -04:00
Davide P. Cervone
bdc1528939 Merge branch 'issue1089' into develop. Issue #1089. 2015-04-21 16:41:32 -04:00
Davide P. Cervone
add4af85c3 Repack and recombine 2015-04-21 12:49:01 -04:00
Davide P. Cervone
d47dbd1c52 Update version numbers. 2015-04-21 11:49:54 -04:00
Davide P. Cervone
6aba7a2170 Fix handling of colored backgrounds on math elements in IE, and on mspace/mpadded elements in IE < 8. 2015-04-20 13:18:14 -04:00
Davide P. Cervone
993715cc03 Merge remote-tracking branch 'dpvc/hotfix-2.5.2' into hotfix-2.5.2 2015-04-20 08:56:34 -04:00
Davide P. Cervone
4292f9ed6b Don't insert mstyle in InternalMath() when not necessary. 2015-04-20 08:27:43 -04:00
Davide P. Cervone
e35dd5fd43 Merge pull request #1168 from mathjax/issue1162
Updating contributing.md
2015-04-18 12:02:33 -04:00
Davide P. Cervone
d3ccf6fe89 Fix transforms so they work for IE9. 2015-04-18 10:42:21 -04:00
Davide P. Cervone
c2c33b634e Fix @font-face to work with IE8. 2015-04-18 06:57:27 -04:00
Davide P. Cervone
64ed60ac51 Change how combining characters are handled so that they show up in IE but are still placed properly in Chrome (putting them over a non-breaking space got the baseline wrong in Chrome for some reason, and over a space got the width wrong). 2015-04-17 17:22:48 -04:00
Davide P. Cervone
562786da5e Update HTML-CSS fonts to be usable by CommonHTML, and remove the CommonHTML fonts. Update @font-face to include the new formats. 2015-04-17 16:01:57 -04:00
Peter Krautzberger
3ad8dc5a29 updated contributing.md
Fixing typos to address comments
2015-04-16 21:08:55 +02:00
Peter Krautzberger
f22a1adab7 updating contributing.md
* Fix more relative links
* fix TOC structure
* minor changes to core section
2015-04-16 14:31:35 +02:00
Peter Krautzberger
79127fb44b Updating Commit.md
* fix broken links
* re-write bug report instructions
* restructure core development advice.
2015-04-16 10:51:17 +02:00
Davide P. Cervone
0fb87f3dea Right-justify prescripts in mmultiscript elements. Resolves issue #1072. 2015-04-15 19:55:23 -04:00
Davide P. Cervone
8f20749a48 Add arc/fown/smile as horizontal stretchy delimiters. 2015-04-15 13:33:42 -04:00
Davide P. Cervone
6830d889e8 Add try/catch around initial browser setup, just in case there is an error. See issue #1155. 2015-04-15 11:43:47 -04:00
Davide P. Cervone
be57176825 Add arc/fown/smile as horizontal stretchy delimiters. Issue #928. 2015-04-15 11:17:22 -04:00
Davide P. Cervone
65937e6c4d Merge pull request #1165 from dpvc/issue1137
Issue #1137
2015-04-15 10:15:39 -04:00
Peter Krautzberger
9263cc4506 simplify browser check
as per @dpvc's suggestion
2015-04-15 10:10:21 -04:00
Peter Krautzberger
c91a420b1d fix IE version check 2015-04-15 10:10:21 -04:00
Peter Krautzberger
95c00da5ea for #1137: disable CHTMLpreview.js on IE<8 2015-04-15 10:10:21 -04:00
Davide P. Cervone
fc3f34c28a Add \overparen and \underparen for creating stretchy parens above and below other elements. Issues #928 and #567. 2015-04-15 10:08:20 -04:00
Davide P. Cervone
521d4ee513 Add roll-over from mathjax/latest to mathjax/x.y-latest for references to the CDN (to make sure that all files come from the same version). Resolves issue #1036. 2015-04-14 16:24:27 -04:00
Davide P. Cervone
2c44d2ecac Use correct name for maligngroup elements in toMathML output. Resolves issue #1089 2015-04-14 14:59:22 -04:00
Davide P. Cervone
4cce3df7b3 Merge pull request #1160 from mathjax/issue1157
fix Readme: bad links to documentation. Issue #1157.
2015-04-14 11:01:43 -04:00
Davide P. Cervone
6e2db6a08d Merge pull request #1100 from mathjax/issue1088
Removing PNG from MathMenu and MathEvents.  Issue #1088.
2015-04-14 11:00:25 -04:00
Davide P. Cervone
9c5682cdb4 Merge pull request #1156 from dpvc/issue1088
Make text-based close boxes appear closer to the original versions, and ...
2015-04-14 10:59:21 -04:00
Davide P. Cervone
b9e3761714 Merge branch 'issue1139' into hotfix-2.5.2. Issue #1139. 2015-04-13 18:03:10 -04:00
Davide P. Cervone
7aead86339 Merge branch 'issue1152' into hotfix-2.5.2. Issue #1152. 2015-04-13 18:02:54 -04:00
Davide P. Cervone
b474fc7f52 Merge branch 'issue1151' into hotfix-2.5.2. Issue #1151. 2015-04-13 18:02:44 -04:00
Davide P. Cervone
feb05eb185 Merge branch 'issue1163' into hotfix-2.5.2. Issue #1163. 2015-04-13 18:02:27 -04:00
Davide P. Cervone
55c88eb608 Fix HTML-CSS bounding boxes for annotation-xml nodes when used illegally as first semantics child. 2015-04-13 17:59:59 -04:00
Davide P. Cervone
3beda8db4e Properly set displaystyle and scriptlevel, and make sure the contents is enclosed in a single element. Resolves both parts of issue #1152, but at the cost of possibly redundent mstyle elements. These could be filtered out in the combineRelations() post-filter, when we can check if the displaystyle and script levels need setting. 2015-04-13 17:33:44 -04:00
Davide P. Cervone
dbe594872f Avoid infinite loop when \mathchoice is used in munderover. Resolves issue #1151. 2015-04-13 17:30:12 -04:00
Davide P. Cervone
4a4221b78b Make sure that unknown characters in an mrow force the mrow to be measured. Resolves issue #1163. 2015-04-13 17:18:07 -04:00
Davide P. Cervone
b8a48d9cd7 Properly measure final HTML-CSS output to make sure we have the right size. Resolves issue #1158. 2015-04-13 16:15:07 -04:00
Peter Krautzberger
e8a6498405 fix Readme: bad links to documentation
Thanks to @berdario for providing this fix.
2015-04-13 16:56:41 +02:00
Davide P. Cervone
c5b2aa2515 Round height and depth of final SVG element to pixel size in order to try to get the baseline right. Resolves issue #995 (I hope). 2015-04-10 16:30:30 -04:00
Davide P. Cervone
ea697f335a Make text-based close boxes appear closer to the original versions, and remove data URI for image in MathEvents. One motivatino for the change is the mobile menu close icon needs a background, which was missing in the previous version. 2015-04-09 14:58:24 -04:00
Davide P. Cervone
c994ee9994 Make zoom box handle overlaps properly, and position full-width tables better. 2015-04-08 10:48:40 -04:00
Davide P. Cervone
02066cb7cc Handle explicit line breaks (this were being skipped if linebreak wasn't set to automatic). 2015-04-08 09:40:44 -04:00
Davide P. Cervone
24861d0205 Adjust bbox for \vecenter when it is repositioned 2015-04-03 15:37:15 -04:00
Davide P. Cervone
13e92c2813 Handle negative skips properly (have mrow append to the right). 2015-04-02 16:13:18 -04:00
Davide P. Cervone
3c47494d28 Handle empty table cells (still need to do something about setting the widths of columns with no entry in the top row). 2015-04-02 16:12:35 -04:00
Davide P. Cervone
7343e81dba Handle combining characters so that they work in IE. 2015-04-02 14:30:45 -04:00
Davide P. Cervone
3270781b2c Avoid crashing in IE8, but still need to make EOT fonts in order for it tow work. 2015-04-02 13:45:34 -04:00
Davide P. Cervone
1e214fca3f Merge pull request #1097 from mathjax/issu844
composer.json author info
2015-04-02 08:22:31 -04:00
Peter Krautzberger
7395bbbb3d Merge pull request #1148 from jaredwindover/dev_Preview_Patch
Retypeset if changes while typesetting
2015-04-02 13:48:15 +02:00
Davide P. Cervone
7e52f9edd1 Make sure we set relative mtable widths when needed. 2015-04-01 19:11:03 -04:00
Davide P. Cervone
bfe88a01a2 Make nodes starting with 'mxj-' count as having isMathJax set. 2015-04-01 18:56:27 -04:00
Davide P. Cervone
9b37d422b4 Don't use negative depths (Safari doesn't handle it properly), so store an extra bbox parameter that gives the negative depth and adjust for it in munderover, where it makes a difference. Might want to do this in mtable as well. 2015-04-01 18:43:00 -04:00
Davide P. Cervone
b917b1a0c5 Get the font name right in the @font-face directivs. (argh) 2015-04-01 17:15:03 -04:00
Davide P. Cervone
47928642a2 Add support for displayIndent and displayAlign 2015-04-01 13:09:49 -04:00
Davide P. Cervone
cdbe31db43 Add support for linebreaking in mmultiscripts 2015-04-01 12:39:08 -04:00
Davide P. Cervone
6d637bb391 Handle linebreaking in msubsup. 2015-04-01 12:11:19 -04:00
Davide P. Cervone
2b3cb0cb0d Add preliminary support for line breaking. Still need to handle the compound constructs like msubsup, munderover, mfenced, etc. as special cases. 2015-04-01 11:27:08 -04:00
Jared Windover
c3ed6ec086 Making dpvc's changes 2015-03-31 16:35:03 -04:00
Davide P. Cervone
4a8cb8ad5b Don't need to do anything special to handle stretchy cores. 2015-03-30 13:57:00 -04:00
Davide P. Cervone
06534d81a1 Add support for menclose elements 2015-03-30 13:45:19 -04:00
Davide P. Cervone
e78aa248f4 Add support for maction 2015-03-30 09:41:04 -04:00
Davide P. Cervone
577b37ee60 Make mtable row and column lines extend through frame spacing even when no frame is used (consistent with HTMLCSS and SVG output) 2015-03-29 08:08:18 -04:00
Davide P. Cervone
9b4107f3b4 Better spacing for munderover, and improved CHTMLdrawBBox. 2015-03-29 07:49:58 -04:00
Davide P. Cervone
3ec5d396a3 Save the label width before changing the state. 2015-03-28 12:23:50 -04:00
Davide P. Cervone
9a5928be6e Add fuller support for mtables and their attributes. 2015-03-28 11:39:45 -04:00
Davide P. Cervone
9b0378af9b Don't need SCRIPTFACTOR or MJXc-script CSS now that the scaling is done explicitly. 2015-03-24 12:30:15 -04:00
Davide P. Cervone
ac30932664 Make merror use surrounding font rather than MathJax fonts, and handle size of unknown text properly. 2015-03-21 08:15:45 -04:00
Davide P. Cervone
ed7807ac36 Handle stretchy bases in mmultiscripts 2015-03-21 07:16:46 -04:00
Davide P. Cervone
51742a79cc Copy scaling factors to new bbox in mpadded. 2015-03-21 07:16:17 -04:00
Davide P. Cervone
d2fd86b75a If the container's width is 0, also check for max-width before looking at parent element (finds container width better). 2015-03-20 13:54:54 -04:00
Davide P. Cervone
75baf0e3ce Add scaling to match surrounding font, add equation chunking, and fix some issues with zooming. 2015-03-20 11:20:04 -04:00
Davide P. Cervone
8dd6d3329a Remove debugging bounding box for mmultiscripts. 2015-03-19 17:58:50 -04:00
Peter Krautzberger
8484e90345 #1100/#1088: convert MenuArrow-15.png to base64 and drop it 2015-03-19 22:20:30 +01:00
Davide P. Cervone
a659ffd62d Add mmultiscript support 2015-03-19 17:02:48 -04:00
Peter Krautzberger
bbd05107a7 #1100 add cursor:pointer to MathJax_Menu_Close class 2015-03-19 21:10:16 +01:00
Peter Krautzberger
2abf1649ee 1100: code clean up 2015-03-19 21:03:31 +01:00
Davide P. Cervone
a4872ff48d Handle HoverBBox (modulo getting em size mesurements) 2015-03-18 17:19:59 -04:00
Davide P. Cervone
e24c7996fe Fix bboxes (again) when mathsize is used, and fix the ID's when zooming. 2015-03-18 17:05:11 -04:00
Davide P. Cervone
fff2255bae Adjsut merror bounding box to match default CSS. 2015-03-18 14:54:33 -04:00
Davide P. Cervone
4ee1aa59e7 Add support for mglyph 2015-03-18 14:43:54 -04:00
Davide P. Cervone
f5103c709a Add support for annotation-xml used illegally as first child of semantics. 2015-03-18 14:03:42 -04:00
Davide P. Cervone
ed85cf61ee Fix HTML-CSS bounding boxes for annotation-xml nodes when used illegally as first semantics child. 2015-03-18 13:04:52 -04:00
Davide P. Cervone
640b0d5f16 Add support for <ms> element 2015-03-18 12:13:32 -04:00
Davide P. Cervone
f64e50f9eb Use BBOX.updateFrom() in semantics, and handle mstyle with no children. 2015-03-18 11:28:17 -04:00
Davide P. Cervone
95f632a6bd Add autoload ability and stubs for the elements that need autoloading. 2015-03-18 11:23:45 -04:00
Davide P. Cervone
ef47023ba6 Handle bold accents (and potentially, stretchy characters). 2015-03-18 11:01:37 -04:00
Davide P. Cervone
548eba8ef0 Fix regression where bounding boxes aren't adjusted for mathsize 2015-03-18 10:43:51 -04:00
Davide P. Cervone
0306af8564 Use flushText() rather than adding the text by hand. 2015-03-17 12:31:09 -04:00
Davide P. Cervone
87abfa1085 Use removedStyles when checking for font-based variant. 2015-03-17 12:27:14 -04:00
Davide P. Cervone
e971f875d4 Handle stretchy embellished operators. 2015-03-17 12:15:04 -04:00
Davide P. Cervone
6478163a39 Make mn handle italic correction and skew like mn does. 2015-03-17 07:09:06 -04:00
Peter Krautzberger
df17921e8b WIP #1088: change submenu indicators to a more common Unicode point 2015-03-17 11:32:38 +01:00
Davide P. Cervone
0020f2a822 Adjust CHTMLhandleScale() so that \large, etc. affect fractions and other such constructs. (Do the scaling on the mstyle element rather than the individual token elements.) 2015-03-17 06:29:50 -04:00
Peter Krautzberger
f739e64131 WIP for #1088: switch from PNG to \&times; 2015-03-17 11:20:49 +01:00
Davide P. Cervone
b7868268f9 Handle mathsize, fontsize, style=font-size, setting scriptlevel, and other size changing functions. Get proper bounding boxes for these, and store the scale in the bbox object so that we can refer to it during bbox computations. 2015-03-16 19:25:27 -04:00
Davide P. Cervone
cc370bfcba spacing can be handled within the CHTMLdefaultNode() routine. 2015-03-16 12:00:10 -04:00
Davide P. Cervone
3205a1c1e8 Handle VCENTER TeXatom. 2015-03-16 11:03:52 -04:00
Davide P. Cervone
930a959f71 Fix some bboxes that weren't converted when changing to the BBOX object. 2015-03-16 10:44:35 -04:00
Davide P. Cervone
1bfcea3c48 Support mtextFontInherit 2015-03-16 10:35:02 -04:00
Davide P. Cervone
f570364139 Break CHTMLhandleStyle() into two parts, one that sets the styles and removes the unwanted ones, and CHTMLhandleBBox() that adjustst the BBOX based on the styles. Use this to handle inheritance of font-family, font-weight, and font-style from mstyle with style attributes. 2015-03-16 09:44:43 -04:00
Davide P. Cervone
3d371041a6 Add ability to look up styles that have been removed from mstyle with a style attribute. 2015-03-16 09:43:19 -04:00
Davide P. Cervone
5d3508d830 Add support for style='font-family:...', fontfamily, fontweight, and fontstyle attributes. Cache the results in case they are used more than once. 2015-03-16 09:18:35 -04:00
Peter Krautzberger
391a7a6b91 composer.json author info
should correspond to copyright owner
2015-03-16 08:53:43 +01:00
Davide P. Cervone
6a81434b16 Remove font-based styles (this will be looked up later on token elements) 2015-03-15 10:40:09 -04:00
Davide P. Cervone
d31dad0e79 Adjust bounding box to accound for border and padding 2015-03-15 10:11:54 -04:00
Davide P. Cervone
edfe289983 Handle msup and msub children properly. 2015-03-15 09:25:44 -04:00
Davide P. Cervone
d3b5895468 Create a bbox object with methods for scaling, combining, etc, rather than scaleBBox, combineBBoxes, etc. 2015-03-15 08:52:01 -04:00
Davide P. Cervone
c52d2aaa0c Add some FIXME comments. 2015-03-14 19:06:09 -04:00
Davide P. Cervone
e202cde5ed Add support for href, class, RDFa, aria, and other attributes. 2015-03-14 19:01:21 -04:00
Davide P. Cervone
beabbc7a17 Add bevelled fraction support 2015-03-14 18:40:58 -04:00
Davide P. Cervone
35bd8e0acd Better positioning of extender in vertical stretchy delimiters. 2015-03-14 18:15:45 -04:00
Davide P. Cervone
8ed1db868b Add fondata-extra.js and support for it. 2015-03-14 18:08:10 -04:00
Davide P. Cervone
5107ef02dc Don't need to add the fake nodes again, since already handled by setTeXclass() already does that. (We didn't use it initially.) 2015-03-14 17:59:47 -04:00
Davide P. Cervone
c9ee9fa242 Add font data for the rest of the MathJax fonts, and support for loading them. Currently, there is support for one extra file (not the multiple extra ones from HTML-CSS). 2015-03-14 17:43:17 -04:00
Davide P. Cervone
3443bb6016 Add new otf fonts (more formats needed), and add support for web fonts in addition to local ones 2015-03-13 18:40:10 -04:00
Davide P. Cervone
15ab276598 Move unkown character styles to fontdata.js (they are font-dependent) 2015-03-13 15:49:58 -04:00
Davide P. Cervone
c58b546ad7 Cache measurements of unknown characters so they don't have to be remeasured later. 2015-03-13 14:42:24 -04:00
Davide P. Cervone
563dd09fa7 Handle undefined characters (these need measurement,so cause reflows). 2015-03-13 13:34:29 -04:00
Davide P. Cervone
29efa89877 Fix computation of depths to not use width as the default (oops). 2015-03-13 13:12:12 -04:00
Davide P. Cervone
d786c11add Simplify the handling of dimensions in mpadded 2015-03-12 20:01:28 -04:00
Davide P. Cervone
5f8821a0a8 Another try at getting mpadded correct (especially for boxes with small heights). 2015-03-12 19:47:38 -04:00
Davide P. Cervone
1b6393cb3d Handle rfix in fontdata (won't be necessary if the fonts are rebuilt, but need it for now), fix spaces so that they are relative to the correct font, and make sure they come after any pending text. 2015-03-11 20:34:47 -04:00
Davide P. Cervone
a406adcb4d Add support for space characters, and adjust fuzz to work better with Chrome. 2015-03-11 15:52:03 -04:00
Davide P. Cervone
ba50c5c690 Handle spacing via classes, get bbox right for MathML spacing, and temporarily restore table formatting. 2015-03-10 21:22:27 -04:00
Davide P. Cervone
83b120d061 Merge branch 'baseline-fonts' into chtml 2015-03-10 20:18:18 -04:00
Davide P. Cervone
59c9f45592 Fix some spacing, and a few minor formatting issues. 2015-03-10 20:17:33 -04:00
Davide P. Cervone
117f29096d Fix wrong property name 2015-03-10 19:54:28 -04:00
Davide P. Cervone
1968831dd0 Use correct offset for \atop and friends 2015-03-10 19:47:27 -04:00
Davide P. Cervone
fdb10e64c4 Rework radicals to match TeX results better for nested radicals (spacing is critical, since the stretchy parts are designed to add up properly with the algorithm). 2015-03-10 19:39:09 -04:00
Davide P. Cervone
a6f9e65af3 Simplify mfrac layout. (Don't try to force the division line to be on the baseline so that it is always raised to the correct place by a vertical align of .25em; instead, just shift the whole stack appropriately. This may cause misalignment if we can't measure the parts exactly, however, but should speed things up a bit.) 2015-03-10 19:08:32 -04:00
Davide P. Cervone
d878d3add2 Don't need bbox.H and bbox.D now that ascent and descent are equal (so center is baseline). 2015-03-10 16:00:42 -04:00
Davide P. Cervone
9ed49e85e4 Alter fonts to make ascent=descent so that line-height:0 makes its axis along the baseline. That should simplify things (though it may make unknown characters harder to handle -- we'll see). 2015-03-10 13:38:23 -04:00
Davide P. Cervone
434606ae1f Use proper spacing before msubsup. 2015-03-09 16:23:00 -04:00
Davide P. Cervone
e5a09146dd Use proper thickness for separation of root from base. 2015-03-09 15:59:16 -04:00
Davide P. Cervone
36da633619 Implement TeX rules for radicals. 2015-03-09 15:40:26 -04:00
Davide P. Cervone
f629bfe783 Better bounding boxes for horizontal stretchy characters, and handle case where no extenders are needed. 2015-03-09 10:14:39 -04:00
Davide P. Cervone
af043917bd Handle horizontal stretchy characters. (still need to add some font data and check overbraces when extenders aren't needed.) 2015-03-09 09:31:09 -04:00
Davide P. Cervone
1e826519af Add vertical stretchy delimiters 2015-03-08 15:04:57 -04:00
Davide P. Cervone
7764748a63 Get position of overscript correct, and don't combine bboxes unnecessarily. 2015-03-08 09:48:49 -04:00
Davide P. Cervone
8b9c18e1b4 Only update bbox widths when the boxes exist 2015-03-07 11:18:55 -05:00
Davide P. Cervone
d6bb1f55d5 Fix \mathchoice to use renamed CHTMLcreateNode function 2015-03-07 11:12:01 -05:00
Davide P. Cervone
dc923adf8f Fix comments at top of file. 2015-03-07 11:11:36 -05:00
Davide P. Cervone
3619421fab Add some comments to separate the methods from one another 2015-03-07 11:00:49 -05:00
Davide P. Cervone
f9849b87d3 Convert tabls to spaces 2015-03-07 10:55:47 -05:00
Davide P. Cervone
c502910eb7 Better handling of bboxes in mfrac, msubsup, munderover, mspace. 2015-03-07 10:54:46 -05:00
Davide P. Cervone
61db5330a7 Add combineBBoxes() method, and use it in mpadded and mrow. Also use bbox.t and bbox.b to indicate the actual extent of ink (which can be altered by mpadded). This will be used in zooming to determine the size of the box needed for the actual ink. These are similar to bbox.l and bbox.r, which can be outside the width of the objects. 2015-03-06 11:57:21 -05:00
Davide P. Cervone
553a71bb44 Make sure that mphantom acts like a box with text, so that the sizing and baseline positioning are correct. 2015-03-05 15:43:36 -05:00
Davide P. Cervone
e630f1f1f2 Use original bounding box for CHTMLdimen computations in mpadded. 2015-03-05 08:04:18 -05:00
Davide P. Cervone
09bdc86660 Make msubsup one routine so that munderover can call it for moveable limits. 2015-03-05 07:59:23 -05:00
Davide P. Cervone
8f0747965c Implement TeX spacing for super and subscripts 2015-03-05 07:39:05 -05:00
Davide P. Cervone
b8ae3b9817 Actually set the height of the under- or over-script when baseline spacing is not wanted, and make sure the proper node type is created for mover. 2015-03-04 17:35:12 -05:00
Davide P. Cervone
0ba42d10b0 Fix depth of stack when underscript depth is negative. 2015-03-04 17:10:04 -05:00
Davide P. Cervone
f3fdb12f8c Fix accents to work in Safari (also simplifies the structure in this case). 2015-03-04 17:03:24 -05:00
Davide P. Cervone
e72eef13c5 Mark need to rework for Safari. 2015-03-04 13:09:43 -05:00
Davide P. Cervone
23b66a9ae9 Implement TeX spacing for munderover, including delta offsets, skew values, proper accents, and so on. Still need stretchy characters. Still need to fix a spacing problem with accents in Safari. 2015-03-04 13:08:06 -05:00
Davide P. Cervone
18e5a0ef6d Rename CHTMLstretchChild to CHTMLstretchChildV, and add CHTMLstretchChildH (still to be implemented in mo). 2015-03-04 12:54:46 -05:00
Davide P. Cervone
09aebdbf27 Refactor bounding box utility routines. 2015-03-04 12:51:09 -05:00
Davide P. Cervone
96e8ce8410 Maintain skew data in bbox. 2015-03-04 12:40:28 -05:00
Davide P. Cervone
625229566f Adjust merror CSS. 2015-03-01 18:12:45 -05:00
Davide P. Cervone
74e054397c Give mpadded elements the correct bbox. 2015-03-01 18:04:23 -05:00
Davide P. Cervone
8de643d619 Clear all useMMLspacing flags for mfenced. 2015-03-01 17:54:41 -05:00
Davide P. Cervone
f43f94a9e1 Update mpadded to work with new custom tags and line-height 2015-03-01 14:14:29 -05:00
Davide P. Cervone
c1402235ba Implement TeX fraction rules (still need to do bevelled fraction). 2015-03-01 12:56:17 -05:00
Davide P. Cervone
03ff8e5a25 Add TeX font parameters, and switch to TeX.axis_height rather than AXISHEIGHT. (Use in mtable will be fixed later.) 2015-03-01 10:48:53 -05:00
Davide P. Cervone
7b723003bf Fix up some CSS, and some other minor details. 2015-03-01 10:39:13 -05:00
Davide P. Cervone
6399338521 Preliminary change to custom tag names (for easier readability, and less chance of CSS bleed-through). 2015-02-27 10:55:43 -05:00
Davide P. Cervone
8f5677f2de Remove unwanted '+' from @font-face declaration. 2015-02-27 10:36:21 -05:00
Davide P. Cervone
a26b6426fe Make bounding boxes for character based on line-height:0 rather than line-height:normal (the other varried too much from browser to browser and failed to match the internal dimensions). The HFUZZ and DFUZZ may need to be adjusted, and may need to be made browser specific (argh), but that might be able to be done through CSS. 2015-02-27 10:35:06 -05:00
Davide P. Cervone
a05227995c Merge branch 'develop' into chtml. (Update to v2.5.1) 2015-02-25 18:44:54 -05:00
Davide P. Cervone
ad66602529 Merge remote-tracking branch 'dpvc/hotfix-2.5' into develop 2015-02-25 18:34:17 -05:00
Peter Krautzberger
574d4a3e96 Merge pull request #1065 from dpvc/hotfix-2.5
Release of v2.5.1
2015-02-25 17:39:43 +01:00
Davide P. Cervone
48b594afce Repack and recombine for v2.5.1 release. 2015-02-25 11:05:38 -05:00
Davide P. Cervone
960108c712 Fix version number of MathJax as a whole. 2015-02-25 10:59:15 -05:00
Davide P. Cervone
5f53a23e58 Force measurement of unknown characters, even when noReflows is active. 2015-02-25 10:59:01 -05:00
Davide P. Cervone
89d259dac4 Use line-height:0 to make alignments easier, and line-height:normal for character boxes. Add ascent/descent data to fonts, and use that to get correct bounding boxes for characters (requires fixing the fonts to get PC/Mac ascent/descent to be the same). 2015-02-25 10:36:53 -05:00
Davide P. Cervone
22a19a18e2 Use variables for LINEH and LINED values. 2015-02-23 14:31:08 -05:00
Davide P. Cervone
b9c5ff1d81 Get height and depth for ALL character boxes (so large ops, etc, have correct size, since line-height kills that) 2015-02-23 12:36:51 -05:00
Davide P. Cervone
8f0e833ba6 Remove integral hack that was needed for Times, and don't add TeX space to mspace elements. 2015-02-23 12:11:56 -05:00
Davide P. Cervone
adfa16e3ae Center large ops, and add preliminary italic correction support. 2015-02-23 12:01:48 -05:00
Davide P. Cervone
909140b314 Make axis height a variable. 2015-02-23 11:26:50 -05:00
Davide P. Cervone
13dff04736 Improve handling of <mo> elements: find correct large operator font (still need to handle centering); handle accent substitution (still need to fix munderover to get spacing right). 2015-02-23 11:19:37 -05:00
Davide P. Cervone
95c029ddd3 Add some missing caches, add some space characters (so they don't have to be special cased in the text handling), and fix up some variant chaining. 2015-02-23 11:15:57 -05:00
Davide P. Cervone
3c6dcf717b Clean up style formatting. 2015-02-23 10:02:14 -05:00
Davide P. Cervone
8e1e853346 Implement TeX spacing (as well as MathML spacing) 2015-02-23 09:55:37 -05:00
Davide P. Cervone
2837c5f114 Preliminary support for TeX fonts (currently only uses local fonts, and doesn't load data not already in the fontdata file. 2015-02-22 18:54:22 -05:00
Davide P. Cervone
b2f1a0f830 Better handling of scaling in fractions. Use a variable for the script scaling factor. Clean up some bounding box computations. 2015-02-22 18:51:21 -05:00
Davide P. Cervone
1763ac7188 Handle propagation of bounding box sizes better. 2015-02-22 10:59:35 -05:00
Davide P. Cervone
4ef56bb007 Better fraction layout (works in XHTML). 2015-02-22 10:54:33 -05:00
Davide P. Cervone
1cbf00d54d Better handling of scriptlevel 2015-02-22 10:46:10 -05:00
Davide P. Cervone
8623acf05a Support old-style background and color attributes 2015-02-22 10:41:13 -05:00
Davide P. Cervone
665f56aab1 Repack and recombine changes for v2.5.1 2015-02-20 09:50:28 -05:00
Davide P. Cervone
6286c63239 Fix var problems identified by YUI. 2015-02-20 09:47:47 -05:00
Davide P. Cervone
705f738228 Merge branch 'issue1053' into hotfix-2.5. Issue #1053. 2015-02-20 09:26:26 -05:00
Peter Krautzberger
627ab61df8 Update with recent fixes from @davidcarlisle
Fixes #1024
2015-02-20 09:23:05 -05:00
Davide P. Cervone
f87cb5cf42 Bump version numbers for updated files 2015-02-19 17:43:07 -05:00
Davide P. Cervone
81131da3fc Handle variant within handleText() rather than in handleToken(). 2015-02-19 09:28:47 -05:00
Davide P. Cervone
201b5d5987 Merge branch 'develop' into chtml 2015-02-19 09:01:10 -05:00
Davide P. Cervone
13ebde0937 Correct computation of TeX class for maction elements (handle embellished operators correctly). 2015-02-19 08:59:23 -05:00
Davide P. Cervone
3308957304 Fix some comments. 2015-02-19 08:58:01 -05:00
Davide P. Cervone
9d8c48ec51 Fix zooming in CommonHTML. 2015-02-18 17:26:00 -05:00
Davide P. Cervone
783ffadb20 Merge pull request #1064 from mathjax/issue1024-mml3js
Update with recent fixes from @davidcarlisle
2015-02-18 16:59:00 -05:00
Davide P. Cervone
fe0d977494 Handle padding in measured children when noReflows is used (e.g., in maction tags around operators). 2015-02-17 16:03:25 -05:00
Davide P. Cervone
8ea3a8329d Better layout for fractions (works in xhtml). 2015-02-17 14:56:51 -05:00
Peter Krautzberger
05f9233886 Update with recent fixes from @davidcarlisle
Fixes #1024
2015-02-17 11:02:36 +01:00
Davide P. Cervone
e9ed0a1315 These have been moved to the mml element jax. 2015-02-15 16:09:01 -05:00
Davide P. Cervone
49c3e3a156 Don't set font-size of maction span (the elements it contains do that themselves). 2015-02-14 15:43:40 -05:00
Davide P. Cervone
15b3928891 Break HTML-CSS output into phases so that the final measurement can be done all at once. Restores timing improvements that were lost due to a change made in the testing for v2.5. 2015-02-14 15:30:37 -05:00
Davide P. Cervone
b1a2b4fe03 Don't cache the value of 'selected', since calls to isEmbellished() can be made before the expression is in place, and the values of displastyle and scriptlevel are known. Resolves issue #1053. 2015-02-11 09:34:25 -05:00
Davide P. Cervone
cb13a059bb Localize a variable that was accidentally global. Resolves problem 2 of #1050. 2015-02-09 16:16:30 -05:00
Davide P. Cervone
8c9fc2122b Make sure these extensions pas on ALL arguments to the routines they override. (Needed for fix to toHTML to allow measurements to be grouped.) 2015-02-09 12:45:18 -05:00
Peter Krautzberger
17c275cc15 update for MathJax v2.5 release 2015-02-07 18:33:10 +01:00
Davide P. Cervone
f21589ea9a Merge branch 'issue1039' into hotfix-2.5. Issue #1039. 2015-02-05 18:32:50 -05:00
Davide P. Cervone
1e67bf954f Merge branch 'issue1033' into hotfix-2.5. Issue #1033. 2015-02-05 18:31:15 -05:00
Davide P. Cervone
df200f22f3 Merge branch 'issue1006' into hotfix-2.5. Issue #1006. 2015-02-05 18:28:43 -05:00
Davide P. Cervone
f5b7bf59b3 Remove README-branch.txt, which is no longer needed. Issue #1039 2015-02-05 18:24:27 -05:00
Davide P. Cervone
9531b299d4 Make sure children of mtable are mtr or mlabeledtr (was incorrectly making an mtd instead of an mtr). Resolves issues #1006 and #1032. 2015-02-05 16:47:17 -05:00
Davide P. Cervone
6d6720ecf5 Don't convert delimiters to unicode in \genfrac (since that is now done by \bigg and \big later on). Resolves issue #1033. 2015-02-05 16:42:46 -05:00
Peter Krautzberger
55df93cdf8 Merge pull request #1027 from mathjax/develop
Release v2.5
2015-01-30 15:12:55 +01:00
Davide P. Cervone
a9dbd62628 Repack and recombine for v2.5 2015-01-29 11:02:39 -05:00
Davide P. Cervone
106283ff72 Fix more var issues (noted by YUI compression) 2015-01-29 10:57:05 -05:00
Davide P. Cervone
bc8d472f2f Fix more var issues (noted by YUI compression) 2015-01-29 10:55:05 -05:00
Davide P. Cervone
964f7b4500 Fix var issues (noted by YUI compression) 2015-01-29 10:38:05 -05:00
Davide P. Cervone
737fbc01df Fix var issues (noted by YUI compression) 2015-01-29 10:34:58 -05:00
Davide P. Cervone
e4982cb703 Fix unneeded variable (noted by YUI compression) 2015-01-29 10:32:36 -05:00
Davide P. Cervone
714b9702fa Fix use of var and a few undefined variable names (noted by YUI compression) 2015-01-29 10:24:28 -05:00
Davide P. Cervone
f5c10288dd Update copyright dates. 2015-01-29 10:21:06 -05:00
Davide P. Cervone
31fcf19d92 Update file versions to 2.5.0. Ready for release! 2015-01-28 14:49:36 -05:00
Davide P. Cervone
0433a7b0ee Some fixes to get things to work in older IE versions. 2015-01-28 14:46:15 -05:00
Davide P. Cervone
64f237405e Merge branch 'issue1021' into develop. Issue #1021. 2015-01-28 11:46:58 -05:00
Davide P. Cervone
85f9612242 Add handling of CommonHTML to noErrors.js. Issue #1021 2015-01-28 11:45:01 -05:00
Davide P. Cervone
da8b1ea1ff Make super- and subscripts respect height of stretched characters. 2015-01-28 11:43:19 -05:00
Davide P. Cervone
5b232c93e8 Fix problem with width of equations with line breaking. 2015-01-27 08:17:00 -05:00
Davide P. Cervone
477903cc79 Fix problem with positioning of colored rectangles (when combined combitionings add up to zero). 2015-01-27 08:16:20 -05:00
Davide P. Cervone
94b7c4243b Don't set overlay W/H if it has already been removed (IE8). 2015-01-26 15:19:18 -05:00
Davide P. Cervone
90af9db319 Fix NativeMMLelement to work with IE8 and below when MathPlayer isn't in place. 2015-01-26 12:03:43 -05:00
Davide P. Cervone
dd3da20704 Change 0em to 0 to make reftest for 776 easier. 2015-01-25 12:38:48 -05:00
Davide P. Cervone
ecc8e7c350 Change from setting form=infix to adding an empty <mi>, since MathML spacing and TeX spacing are slightly different. Issue #811. 2015-01-25 11:46:16 -05:00
Davide P. Cervone
1bb9758dc8 Trap errors with document.namespace (it crashes IE10 in standards mode). 2015-01-24 15:45:09 -05:00
Davide P. Cervone
646a977b8c Update version to beta-4 2015-01-24 13:48:49 -05:00
Davide P. Cervone
f6b374813f Merge branch 'issue1018' into develop. Issue #1018. 2015-01-24 13:38:00 -05:00
Davide P. Cervone
20e1e01735 Merge branch 'issue1016' into develop. Issue #1016. 2015-01-24 13:37:41 -05:00
Davide P. Cervone
8f9d982af6 Scale displayIndent to HTML size, since the shift is outside the font-size scaling. This was required by the change to issue 769. (Issue #768.) 2015-01-24 05:15:21 -05:00
Davide P. Cervone
efa443ce65 Check for toCommonHTML first, and allow errors to propagate (restarts should restart, not be trapped here). Resolves issue #1018. 2015-01-23 12:45:26 -05:00
Davide P. Cervone
cd235d5b0e Handle background color properly when there is an indentshift. 2015-01-23 11:31:17 -05:00
Davide P. Cervone
646568650e Handle head properly in another location when looking for script tags. Issue #1016. 2015-01-22 11:02:58 -05:00
Davide P. Cervone
b86a77bee3 Merge remote-tracking branch 'dpvc/develop' into develop 2015-01-22 10:16:31 -05:00
Davide P. Cervone
08cb7160f5 Fix scaling of indentshift in HTML-CSS; since is outside the font-size change, it doesn't need HTMLCSS.scale. 2015-01-22 10:15:12 -05:00
Davide P. Cervone
237635132a Use document.head when available, and look up scripts via namespace if not found without it. Resolves issue #1016. 2015-01-22 10:09:21 -05:00
Davide P. Cervone
af8efeafd5 Merge remote-tracking branch 'dpvc/develop' into develop 2015-01-21 08:54:00 -05:00
Davide P. Cervone
cb5df6ef2f Merge branch 'issue1013' into develop. Issue #1013. 2015-01-21 08:50:34 -05:00
Davide P. Cervone
b372e76378 Merge pull request #1012 from mathjax/helpdialog-typo
fix typo in helpdialog.js
2015-01-20 14:23:54 -05:00
Davide P. Cervone
598c1e7c07 When closing table cells, get new table pointer. Resolves issue #1013. 2015-01-20 14:21:34 -05:00
Christian Perfect
e5f69e3ed2 fix typo in helpdialog.js 2015-01-20 16:49:16 +00:00
Davide P. Cervone
4e9a33e256 Set sh and sd on svg object (not mml object). 2015-01-17 14:00:28 -05:00
Davide P. Cervone
9f14997b79 Make \overline{\lim_{x}} have correct spacing for overline with Firefox. Issue #490. 2015-01-17 08:25:14 -05:00
Davide P. Cervone
b30c8f2f30 Set movablelimits on the base mo not the munderover node. Issue #901. 2015-01-16 11:18:26 -05:00
Davide P. Cervone
93fd3bfa64 Fix incorrect code for tab. 2015-01-16 10:06:41 -05:00
Davide P. Cervone
0df957f3c0 Don't escape \n, \r, or \t in toMathML text output. (Issue #847.) 2015-01-16 09:48:00 -05:00
Davide P. Cervone
d6939060ed Don't produce error for empty annotation in CommonHTML output. (Issue #805) 2015-01-16 08:58:26 -05:00
Davide P. Cervone
0420fc6f07 Merge branch 'issue991' into develop. Issue #991. 2015-01-15 15:04:04 -05:00
Davide P. Cervone
dc7919693d Accidentally reused variable y, so change to Y. Issue #991. 2015-01-15 15:02:50 -05:00
Davide P. Cervone
c95cb11c19 Use min-width on NativeMML zoom box for full-width tables. Issue #918. 2015-01-15 14:18:51 -05:00
Davide P. Cervone
13321458eb Merge branch 'issue993' into develop. Issue #993. 2015-01-15 11:43:35 -05:00
Davide P. Cervone
1b8811bf76 Add test for full-width tables in NativeMML. Issue #993. 2015-01-15 11:38:36 -05:00
Davide P. Cervone
4adc5726f6 Merge pull request #1005 from mathjax/texvc
Add wikipedia-texvc extension
2015-01-15 10:45:26 -05:00
Peter Krautzberger
6ff3894316 minor corrections to #1003 as discussed there 2015-01-14 22:58:20 +01:00
Davide P. Cervone
af20e4cc1d Merge branch 'issue949' into develop. Issue #949. 2015-01-14 11:19:48 -05:00
Davide P. Cervone
8d6ffccb16 Merge branch 'issue991' into develop. Issue #991. 2015-01-14 11:19:31 -05:00
Davide P. Cervone
b87f15fed5 Merge branch 'issue993' into develop. Issue #993. 2015-01-14 11:19:04 -05:00
Davide P. Cervone
dac51a9f69 Fix problem with empty scripts in SVG output. Issue #949. 2015-01-14 11:12:22 -05:00
Davide P. Cervone
b60fb9b741 Use origin pad.y since it can change during Add(). Resolves issue #991. 2015-01-13 10:58:25 -05:00
Davide P. Cervone
cdff7d26f0 Add width CSS to semantics annotation when needed by Firefox. Resolves issue #993. 2015-01-13 10:17:36 -05:00
Davide P. Cervone
0182094a37 Merge branch 'issue1002' into develop. Issue #1002. 2015-01-12 09:37:56 -05:00
Davide P. Cervone
24bfd6baf2 Merge branch 'issue997' into develop. Issue #997. 2015-01-12 09:37:34 -05:00
Davide P. Cervone
df92acc959 Merge branch 'issue1000' into develop. Issue #1000. 2015-01-12 09:36:46 -05:00
Davide P. Cervone
a2c3b7cdc2 Use currentColor rather than black for SVG output. Resolves issue #1002. 2015-01-11 09:51:17 -05:00
Davide P. Cervone
856d839ce9 Don't set tabindex, as it causes unwanted focus outlines. Revisit this later when we do accessibility update. Resolves issue #997. 2015-01-11 09:25:41 -05:00
Davide P. Cervone
2431a90a9f Rename variable used for displayIndent so it doesn't conflict with previous usage. Also, handle '0em' and similar values as '0'. Resolves issue #1000. 2015-01-11 09:20:30 -05:00
physikerwelt (Moritz Schubotz)
cfe05db863 MediaWiki-texvc support
We add a conversion table that converts MediaWiki specific
markup to standard LaTeX. This approach is more or less
maitenance free, and relies on the existence some special
macros mostly originating from amsmath and amsfonts package.

In the future one could expand the macros with semantic annotation
like for instance that $\\mathbb{R}$ stands for the semantic
concept reals, if it was produced using the texvc macro $\\reals$.
2015-01-09 23:27:30 +01:00
Davide P. Cervone
ae48c34e64 Update cache breaking string. 2015-01-07 08:34:04 -05:00
Davide P. Cervone
3bc43682dc Merge branch 'issue998' into develop. Issue #998. 2015-01-07 08:31:18 -05:00
Davide P. Cervone
e4265d3969 Implement toCommonHTML for \mathchoice. Resolves issue #998. 2015-01-07 08:30:48 -05:00
Davide P. Cervone
debd0c88b6 Update cache breaking for next push to CDN. 2015-01-06 17:50:42 -05:00
Davide P. Cervone
cce02ddfde Don't produce doube exponent/subscript errors for UnderOver constructs like \underline and \overbrace. Resolves issue reported on StackExchange. 2015-01-06 17:47:48 -05:00
Davide P. Cervone
d6b6b2e249 Fix indenting of toMathML output. 2015-01-05 11:04:55 -05:00
Davide P. Cervone
9fd243d9bd Make NativeMML attributes work the same as toMathML ones (makes sure href/style/etc are passed on properly). 2015-01-05 10:57:07 -05:00
Davide P. Cervone
05d2a862d5 Merge commit 'e1efbefb' into develop (bring develop up to date with
pull #954).
2014-12-31 17:08:14 -05:00
Davide P. Cervone
fa9fd91dcb Merge branch 'issue857' into develop. Issue #857. 2014-12-31 17:02:31 -05:00
Davide P. Cervone
dfb8b48e9a Update AsciiMath jax to current version of AsciiMathML.js. Resolves issue#857. 2014-12-31 17:01:42 -05:00
Davide P. Cervone
9d153e3a11 Make sure that tagged equations get mtables with the correct displaystyle (now that displaystyle is no longer inherited, see issue #839.) 2014-12-31 10:10:50 -05:00
Davide P. Cervone
4b6a2f4ec3 Add priority 100 to label reset so that it comes after other post-filters (in particular, the CTHML-preview, which can load files). Resolves second issue in #970. 2014-12-31 08:07:38 -05:00
Davide P. Cervone
88a96372c0 Update version numbers for 2.5.0-beta 2014-12-30 18:27:01 -05:00
Davide P. Cervone
8a1db4b859 Make HTML-CSS measure the final math element so that the right amount of place is left for it (particularly a problem in Safari). 2014-12-30 18:21:05 -05:00
Davide P. Cervone
034041e6d3 Adjust times so that the second pass doesn't take so long (we may need to tweak these further). 2014-12-30 18:20:20 -05:00
Davide P. Cervone
3f5730a59f Merge branch 'CHTML-preview' into develop 2014-12-30 17:55:48 -05:00
Davide P. Cervone
0305716511 Allow configuration to disable CHTML-preivew, but still allow menu to override. Make loading of this page enable preview by default. Fix handling of preview color. Fix restart when CommonHTML config is loaded but jax.js isn't. 2014-12-30 17:53:20 -05:00
Davide P. Cervone
ba23831ebc Merge pull request #806 from christianp/ctop
Use ctop.js instead of XSLT in Content MathML extension.

Finally getting to merge this.  At long last!
2014-12-30 16:12:38 -05:00
Davide P. Cervone
ba4d1b13fe Merge remote-tracking branch 'dpvc/develop' into develop 2014-12-30 16:09:21 -05:00
Davide P. Cervone
2f3d09cc30 Change version back so merge of ctop is clean. 2014-12-30 16:04:13 -05:00
Davide P. Cervone
8d30bda6bd Merge pull request #979 from mathjax/issue922
update locales for 2.5.  Issue #922
2014-12-29 11:03:39 -05:00
Peter Krautzberger
e29bd7f41e added bcc locale; added bcc and sco in MathJax.js 2014-12-29 16:51:10 +01:00
Davide P. Cervone
5ccdf60b52 Merge pull request #964 from mathjax/issue921
add mml3 extension.  Issue #921.
2014-12-29 10:31:15 -05:00
Peter Krautzberger
12d8eef96b import fixes for RTL+elementary math; source: https://code.google.com/p/web-xslt/ 2014-12-29 16:14:34 +01:00
Davide P. Cervone
0c2107dc75 Force actiontype to be output even when equal to the default 2014-12-28 19:03:24 -05:00
Davide P. Cervone
519ff32aae Handle mstyle defaults properly for attribute input/output. 2014-12-28 18:03:16 -05:00
Davide P. Cervone
2ea8bf10d5 Firefox 33 implemented column and row-spacing, so don't do the hack to get around it. 2014-12-28 16:42:10 -05:00
Davide P. Cervone
0da7c458ea Don't include attributes that are their defaults in NativeMML output 2014-12-28 15:54:33 -05:00
Davide P. Cervone
edce81f691 Prevent use of id's in previews from confusing HTMLspanElement() calls. 2014-12-28 12:02:34 -05:00
Davide P. Cervone
81b87c1ea3 Fix wrong error message for double exponents 2014-12-28 07:17:47 -05:00
Davide P. Cervone
1044df8076 When processing an array of elements, don't add any that are already included in the list. 2014-12-28 07:11:34 -05:00
Davide P. Cervone
de9c66f927 Escape braces in mathPalette (avoids error with \brace). 2014-12-28 06:30:18 -05:00
Davide P. Cervone
91875b3558 Don't show attributes that don't have default values (e.g., open/close for mrow). 2014-12-28 06:29:38 -05:00
Davide P. Cervone
bdd370b037 Merge branch 'issue949' into develop. Issue #949. 2014-12-27 12:51:09 -05:00
Davide P. Cervone
bb5f0cf279 Merge branch 'issue966' into develop. Issue #966. 2014-12-27 12:50:44 -05:00
Davide P. Cervone
3f98e4759d Merge branch 'issue982' into develop. Issue #982. 2014-12-27 12:50:04 -05:00
Davide P. Cervone
8fd8bf258b Handle linebreaking in a base with empty superscript or subscript. Resolves issue #949. 2014-12-27 11:59:15 -05:00
Davide P. Cervone
0529b5d78c Take base.x into account for positioning of super ans subscripts. Resolves issue #966. 2014-12-27 08:56:58 -05:00
Davide P. Cervone
501b96c859 Save preview in script.MathJax to fix issue #975. 2014-12-26 17:49:59 -05:00
Davide P. Cervone
fc7faf4b54 Properly handle spacing around operators in second column of aligned and gathered environments. Issue #982 2014-12-26 17:07:02 -05:00
Peter Krautzberger
f785418e8a pull in update from ctop/mml3.xslt that adds left/\right mlongdiv notation 2014-12-17 09:19:01 +01:00
Peter Krautzberger
9c273c5be4 update locales for 2.5; fixes #922 2014-12-16 12:35:35 +01:00
Peter Krautzberger
ac50815d58 update stylesheet to pull in latest fixes from David Carlisle 2014-12-16 10:39:17 +01:00
Davide P. Cervone
a719a551e1 Merge branch 'issue972' into develop. Issue #972. 2014-12-07 07:10:24 -05:00
Davide P. Cervone
301ee4f300 Merge branch 'issue950' into develop. Issue #950. 2014-12-07 07:10:09 -05:00
Davide P. Cervone
f6bf4c13e3 Merge branch 'issue931' into develop. Issue #931. 2014-12-07 07:09:49 -05:00
Davide P. Cervone
e33e00bfaf Merge branch 'issue971' into develop. Issue #971. 2014-12-07 07:09:27 -05:00
Davide P. Cervone
3cd6cf59e3 Merge branch 'issue937' into develop. Issue #937. 2014-12-07 07:08:45 -05:00
Davide P. Cervone
b937bee874 Merge branch 'issue969' into develop. Issue #969. 2014-12-07 07:08:11 -05:00
Davide P. Cervone
7e395523a8 Merge branch 'issue930' into develop. Issue #930. 2014-12-07 07:07:43 -05:00
Davide P. Cervone
a6ef2a5c2f Merge branch 'issue944' into develop. Issue #944. 2014-12-07 07:06:10 -05:00
Davide P. Cervone
54fb042b77 Fixed capitalization of \defincolor in autoload-all. Resolves issue #972. 2014-12-07 06:58:52 -05:00
Davide P. Cervone
3f3f27005a IE9+ has a name limits of 31 for font-family, so the long names cause problems; fortunately, FontFaceBug is only needed for IE8 and below, so make that be version dependent. Resolves issue #950. 2014-12-06 20:24:41 -05:00
Davide P. Cervone
ae0f3fe3b3 Add more version information for Safari, and use Em rounding for Safari 8.0 (also 6.2, 7.1, which have the same WebKit version). Resolves issue #931. 2014-12-06 18:00:31 -05:00
Davide P. Cervone
a714a91dc6 Add a flag to Get() to look up only the inherited value, not the one from the element itself, so that toMathML() doesn't have to delete and replace the attibutes. Resolves issue #971. 2014-12-06 17:36:23 -05:00
Davide P. Cervone
252fda6762 Merge branch 'common-html' into CHTML-preview 2014-12-06 10:24:03 -05:00
Davide P. Cervone
19c464508d Merge branch 'issue970' into common-html 2014-12-06 10:23:21 -05:00
Davide P. Cervone
da37204eb2 Handle moveable limits on munderover. Resolves issue #970. 2014-12-06 10:22:01 -05:00
Davide P. Cervone
2cbe3ebb92 Merge branch 'common-html' into CHTML-preview 2014-12-06 09:57:16 -05:00
Davide P. Cervone
cd3a550252 Merge branch 'issue968' into common-html 2014-12-06 09:56:45 -05:00
Davide P. Cervone
1fe80b441a Handle <mlabeledtr> by dropping the label for now. Resolves issue #968. 2014-12-06 09:54:45 -05:00
Davide P. Cervone
bf3d52af54 Fix incorrect width for minus sign in delimiter data, and don't modify depth of the minus sign (was being done for arrow extenders, but do that for the extenders only). Resolves issue #937. 2014-12-06 08:18:42 -05:00
Davide P. Cervone
9a3f435a99 Make fractions be TeX class ORD rather than INNER (as appears to be the case with TeX, despite the claims in the TeXbook to the contrary). Also, fix a problem with getting the correct form attribute for mo elements. Resolves issue #969. 2014-12-05 20:54:15 -05:00
Peter Krautzberger
905ce5ffa8 renaming extension; pull in David Carlisle's new and improves xsl 2014-12-05 23:35:22 +01:00
Davide P. Cervone
f6293beea6 Add the SVG transform for flipping characters AFTER we have added colors and borders (since they can alter the svg.element, moving it lower in the chain and even removing it). Resolves issue #930. 2014-12-04 16:56:35 -05:00
Davide P. Cervone
ac5206fcd9 Use Hub.Rerender() rather than Hubl.Reprocess() for scaling changes. Resolves issue #944. 2014-12-04 16:04:42 -05:00
Peter Krautzberger
1807d55d22 switch hascolspan to false() as in http://www.w3.org/Math/draft-spec/doctop.js 2014-11-27 15:29:27 +01:00
Peter Krautzberger
37fb13fb6f fix references to content-mathml extension 2014-11-26 21:48:34 +01:00
Peter Krautzberger
55c59f0ef5 created mml3-mml2 extension for #921 2014-11-26 21:41:20 +01:00
Davide P. Cervone
142857afa2 Remove unneeded grouping from regular expression (performance improvement) 2014-11-20 09:35:56 -05:00
Davide P. Cervone
7b5596fd4a Merge pull request #959 from physikerwelt/TeXML
XML-escape TeX annotation (Resolves issue #935)
2014-11-20 08:06:59 -05:00
physikerwelt (Moritz Schubotz)
c526b2a5c5 XML-escape TeX annotation 2014-11-19 09:05:09 +01:00
Davide P. Cervone
9cefee80f9 Fixes for IE7 and 8. 2014-11-17 19:42:45 -05:00
Peter Krautzberger
a4b82c521e Merge pull request #954 from samccone/patch-1
Remove version from bower.json
2014-11-13 21:36:05 +01:00
Sam Saccone
e1efbefb2e Remove version from bower.json
following https://github.com/bower/bower.json-spec#version
2014-11-13 15:30:52 -05:00
Davide P. Cervone
8c616789ef Fix some local/global variable issues detected by doing the compression. 2014-11-08 09:30:24 -05:00
Davide P. Cervone
ff6d6935df Handle loading of CommonHTML jax better (do it when we detect it is not present, rather than trying to hook into the input jax require array). 2014-11-08 09:29:47 -05:00
Davide P. Cervone
d128cfbd5d Add menu item for fast preview, and check for it in the preview code. Make sure CHTML-preview.js is loaded in MathJax.js if the menu item is selected. 2014-11-02 10:03:26 -05:00
Davide P. Cervone
2babc14e1b Merge branch 'issue860' into develop. Issue #860. 2014-11-02 09:27:27 -05:00
Davide P. Cervone
ff8637377f Merge branch 'issue804' into develop. Issue #804. 2014-11-02 09:26:36 -05:00
Davide P. Cervone
771fc3981e Merge branch 'issue807' into develop. Issue #807. 2014-11-02 09:25:45 -05:00
Peter Krautzberger
8291a7cfe4 added template for mathjax-node 2014-10-16 21:37:16 +02:00
Davide P. Cervone
c1a457ff9e Merge branch 'issue912' into develop. Issue #912. 2014-10-12 16:59:12 -04:00
Davide P. Cervone
01bec60e5a Merge branch 'issue839' into develop. Issue #839. 2014-10-12 16:58:10 -04:00
Davide P. Cervone
69a57f4da4 Make displaystyle and scriptlevel be forced only if they are in the list of default properties. Resolves issue #912 better than before. 2014-10-12 16:57:18 -04:00
Davide P. Cervone
4238dc5734 Don't do the scriptlevel adjustment, as per discussion on w3c math list. 2014-10-12 10:43:49 -04:00
Peter Krautzberger
d41e74cfcd minor fixes for readme 2014-09-29 23:00:54 +02:00
Peter Krautzberger
f805e67beb add license and readme 2014-09-29 22:49:57 +02:00
Peter Krautzberger
07cd282feb first commit 2014-09-29 22:42:20 +02:00
Davide P. Cervone
b137d2e65d Add support for mfenced, and refactor mrow code to allow reuse of some pieces. 2014-09-20 14:07:27 -04:00
Davide P. Cervone
ff970b8af0 Add fake content so that the size of the box will be normalized for text. This may have to be fixed in the future if the space causes problems (perhaps a zero-width space would be better). 2014-09-19 10:46:15 -04:00
Davide P. Cervone
ad004ac668 Preserve RDFa and other non-standard attributes from MathML elements in the HTML-CSS or SVG output. Resolves issue #860, and also handles #502 as a side-effect. 2014-09-14 13:47:20 -04:00
Davide P. Cervone
9bf55785f0 Use proper value of base scaling to reset u and v in super- and subscript positioning. Resolves issue #804. 2014-09-14 11:02:16 -04:00
Davide P. Cervone
0a04a6ce19 Don't clip left or right-hand sides, only top and bottom (which are what need clipping to hide exctra height/depth, and prevent the positioning spans from overlaying the material above). Resolves issue #807, and may hekp issue #646. 2014-09-14 10:33:06 -04:00
Davide P. Cervone
ca196c8e0d Merge branch 'issue835' into develop. Issue #835. 2014-09-14 09:21:44 -04:00
Davide P. Cervone
a26454ac90 Merge branch 'issue917' into develop. Issue #917. 2014-09-14 09:21:18 -04:00
Davide P. Cervone
d38c5632ab Merge branch 'issue918' into develop. Issue #918. 2014-09-14 09:20:55 -04:00
Davide P. Cervone
fe06c828b4 Merge branch 'issue912' into develop. Issue #912. 2014-09-14 09:20:23 -04:00
Davide P. Cervone
f4be986816 Merge branch 'issue913' into develop. Issue #913. 2014-09-14 09:19:48 -04:00
Davide P. Cervone
3ee58a18a5 Merge branch 'issue906' into develop. Issue #906. 2014-09-14 09:18:56 -04:00
Davide P. Cervone
ab9570b614 Merge branch 'issue775' into develop. Issue #775. 2014-09-14 09:18:16 -04:00
Davide P. Cervone
f07278d3db Make zoom box large enough for overlaps (e.g., when \llap, \rlap, or \smash are used) in SVG and HTML-CSS output. Can't do it effectively for NativeMML, since we don't know anything about overlaps in that case. Resolves issue #835. 2014-09-13 15:34:52 -04:00
Davide P. Cervone
6ed822313f Set the internal bounding box data properly for mpadded elements. Resolves issue #917. 2014-09-13 15:29:49 -04:00
Davide P. Cervone
ce76662083 Have zoom box properly sized for tagged equations in NativeMML output. Resolves issue #918. 2014-09-13 15:26:11 -04:00
Davide P. Cervone
e0a81d5f7c Force displaystyle and scriptstyle to be included in toMathML output, since the defaults for these are complicated. Resolves issue #912. 2014-09-11 13:53:49 -04:00
Davide P. Cervone
e2e94d3c45 Check for undefined rather than false when deciding which attributes to allow for \mmlToken. Resolves issue #913. 2014-09-11 13:14:38 -04:00
Davide P. Cervone
98e3f098bd Add rules to mtable to properly handle displaystyle and scriptlevel as described in the MathML spec. Resolves issue #839. 2014-09-11 12:52:10 -04:00
Davide P. Cervone
e8c7ade7c4 Allow comma-separated parameters in \mmlToken. Resolves issue #906. 2014-09-11 08:34:26 -04:00
Davide P. Cervone
5d266d2f81 Take advantage of SVGdatStretched() rather than doing it by hand. 2014-09-11 08:05:29 -04:00
Davide P. Cervone
74253a955f Merge branch 'issue834' into develop. Issue #834. 2014-09-11 06:59:18 -04:00
Davide P. Cervone
84206a3f15 Merge branch 'issue769' into develop. Issue #769. 2014-09-11 06:58:42 -04:00
Davide P. Cervone
f307196e1a Merge branch 'issue490' into develop. Issue #490. 2014-09-11 06:57:47 -04:00
Davide P. Cervone
c30dd6647b Merge branch 'issue829' into develop. Issue #829. 2014-09-11 06:50:13 -04:00
Davide P. Cervone
0a89bc1ac5 Merge branch 'issue800' into develop. Issue #800. 2014-09-11 06:49:30 -04:00
Davide P. Cervone
1e219b4304 Get linebreaking size correct for zoom boxes, and do a better job of managing the width for full-width tables (only make the box as wide as necessary). Resolves issue #834. 2014-09-10 22:05:03 -04:00
Davide P. Cervone
a3fbae1037 fix min width of tables (em's inside are different from em's outside). 2014-09-10 19:59:34 -04:00
Davide P. Cervone
acd5857a99 Use alignment function for mtable with labels as well. 2014-09-09 20:07:07 -04:00
Davide P. Cervone
a9c66b5cee Fix the alignment function so that it handles overlapping on the left and right better, and so we don't have to do it in the linebreaking directly. 2014-09-09 19:22:02 -04:00
Davide P. Cervone
612e622e0b Add an empty <mo> to nested <munderover> used for overline and friends to avoid being an embellished operator that gets movablelimits. Resolves issue #490. 2014-09-09 12:35:00 -04:00
Davide P. Cervone
cfc6fa2ae0 Make fences use empty <mo> for blank delimiters so the result will not be an embellished operator. Also resolves issue #775. 2014-09-09 11:51:22 -04:00
Davide P. Cervone
871f395ce6 Make mrows that are embellished operators properly include the elements other than the core when stretched. Resolves issue #775. 2014-09-09 11:27:39 -04:00
Davide P. Cervone
ea42f427f6 Fix multiple problems with indentshift and indentalign in HTML-CSS and SVG output. (Negative values not handled properly, shift not applied to centering, SVG not handling shift past edges well, percentage shifts now in relation to container, etc.) Resolves issues #769 and #768. 2014-09-09 10:28:25 -04:00
Davide P. Cervone
82d0ea22c2 Fix a conflict with noReflows and mtextFontInherit. 2014-09-08 17:49:47 -04:00
Davide P. Cervone
177eade964 Use delimitershortfall and delimiterfactor for stretching vertical delimiters for SVG. 2014-09-08 15:27:31 -04:00
Davide P. Cervone
14fd3918ed Use delimitershortfall and delimiterfactor for stretching vertical delimiters. Resolves issue #829. 2014-09-08 15:23:42 -04:00
Davide P. Cervone
3ae1a46217 Take vertical offset into account in mpadded background color in SVG output. Resolves issue #800. 2014-09-04 19:41:19 -04:00
Davide P. Cervone
13b16f9b26 Merge branch 'node-issue3' into develop. Issue mathjax/MathJax-node#3. 2014-09-04 05:57:14 -04:00
Davide P. Cervone
d74208ef1f Merge branch 'node-issue18' into develop. Issue mathjax/MathJax-node#18. 2014-09-04 05:56:27 -04:00
Davide P. Cervone
ffd71440e6 Merge branch 'issue898' into develop. Issue #898. 2014-09-04 05:55:52 -04:00
Davide P. Cervone
8ddeed3a3c Merge branch 'issue902' into develop. Issue #902. 2014-09-04 05:55:18 -04:00
Davide P. Cervone
a27d83444f Merge branch 'issue903' into develop. Issue #903. 2014-09-04 05:52:20 -04:00
Davide P. Cervone
b938cf1576 Merge branch 'issue901' into develop. Issue 901. 2014-09-04 05:51:50 -04:00
Davide P. Cervone
5e14383a59 For glyphs with empty paths (e.g., space characters), just move the x position by the width of the character. Resolves mathjax/MathJax-node#3. 2014-09-03 14:47:57 -04:00
Davide P. Cervone
a4c6eb6753 Simplify output when SVG output extends beyond the top or bottom of the bounding box (makes the SVG entirely self-contained for MathJax-node output). Issue mathjax/MathJax-node#18. 2014-09-03 13:13:10 -04:00
Davide P. Cervone
5de7fdea28 Add space characters to STIX font data for HTML-CSS output. 2014-09-03 10:36:13 -04:00
Davide P. Cervone
e090b7821a Make SVG output not include emtpy attributes for unknown characters. Issue #898 and mathjax/MathJax-node#6. 2014-09-03 10:23:10 -04:00
Davide P. Cervone
56c2da92d5 Add font data for spaces from U+2000 to U+200B. Resolves issue #898. 2014-09-03 10:22:22 -04:00
Davide P. Cervone
6104e90859 Make \eqalignno and \leqalignno use mlabeledtr so numbers are positioned properly. resolves issue #902. 2014-09-02 10:45:44 -04:00
Davide P. Cervone
9ecb67ec22 Add minimal support for \hfill (just to handle column alignment in matrices and arrays). Issue #903. 2014-09-02 10:26:45 -04:00
Davide P. Cervone
96cf80d775 Allow \limits and \nolimits to be used between or after the super- and subscripts. Report errors for double super- and subscripts for munderover constructs. Make \underbrace and \overbrace allow \limits. Resolves issue #901. 2014-09-02 08:48:50 -04:00
Davide P. Cervone
4a4d88c26f Merge branch 'no-reflows' into develop 2014-09-01 14:13:52 -04:00
Davide P. Cervone
210d336e90 Merge branch 'issue826' into develop. Issue #826. 2014-09-01 14:08:15 -04:00
Davide P. Cervone
e3cda76345 Merge branch 'issue900' into develop. Issue #900. 2014-09-01 14:07:30 -04:00
Davide P. Cervone
302e28cd38 Fix incorrect TeX class for \buildrel. Resolves issue #900. 2014-08-28 19:04:33 -04:00
Davide P. Cervone
467e59a484 Change default for noReflows to true, and add it to default.js 2014-08-28 19:00:30 -04:00
Davide P. Cervone
3848ac329b Fix scaling for text when mtextFontInherit is in effect and Scale All Math is not 100%. Issue #826 2014-08-24 18:23:37 -04:00
Davide P. Cervone
d5d1fbdf50 Merge branch 'issue375' into develop. Issue #375. 2014-08-24 09:57:04 -04:00
Davide P. Cervone
384964dfe1 Merge branch 'issue323' into develop. Issue #323. 2014-08-24 09:56:38 -04:00
Davide P. Cervone
2864aeed75 Merge branch 'issue776' into develop. Issue #776. 2014-08-24 09:55:41 -04:00
Davide P. Cervone
6d283451fd Add support for \{, \} and \\ inside \text{}, since {, }, and \ are used by MathJax in determining the extent of the \text box. This helps with issues #375 and #790. 2014-08-22 15:44:03 -04:00
Davide P. Cervone
a56931fff2 Fix use of HTMLCollections to work with IE8 (grrr!) 2014-08-22 14:17:55 -04:00
Davide P. Cervone
60f197f16c Disable MathPlayer for IE10 and above. 2014-08-22 13:31:55 -04:00
Davide P. Cervone
89c6f10cea Use \bigg or \big for the delimiters for \binom and other such constructs, rather than stretchy delimiters, as is done in TeX. Resolves isue #776. 2014-08-22 11:47:04 -04:00
Davide P. Cervone
58c20a9a4c Merge branch 'issue826' into develop. Issue #826. 2014-08-21 16:27:15 -04:00
Davide P. Cervone
ca3d539ca2 Merge branch 'issue832' into develop. Issue #832. 2014-08-21 16:26:46 -04:00
Davide P. Cervone
670f5809f8 Use large chunks and reduce processUpdateTime to get browser responsiveness. Remove the processing messages during output, since it will now be slower and the math is showing. 2014-08-20 14:49:29 -04:00
Davide P. Cervone
b7fbcc73b6 Fix scaling of unknown characters to handle 'Scale All Math' values properly. Issue #826. 2014-08-20 12:10:28 -04:00
Davide P. Cervone
1cd23252c1 Fix problem with percentage width being used too many times in HTML-CSS output. Resolves issue #832. 2014-08-20 09:30:04 -04:00
Davide P. Cervone
354e18df87 Don't do any delays if delay time is 0 (allows authors to go back to original functionality, if desired). Issue #872. 2014-08-20 09:07:26 -04:00
Davide P. Cervone
b85e5a48ad Merge branch 'issue872' into develop. Issue #872. 2014-08-20 07:59:26 -04:00
Davide P. Cervone
0104a90463 Merge branch 'issue845' into develop. Issue #845. 2014-08-20 07:59:01 -04:00
Davide P. Cervone
a5375851ee Merge branch 'issue805' into develop. Issue #805. 2014-08-20 07:56:44 -04:00
Davide P. Cervone
42c0f3243e Merge branch 'issue877' into develop. Issue #877. 2014-08-20 07:56:24 -04:00
Davide P. Cervone
1fa3c4f105 Merge branch 'issue891' into develop. Issue #891. 2014-08-20 07:55:27 -04:00
Davide P. Cervone
b8eb8c383b Add some short delays between input and output phases or processing so that messages can be udated, and the browser can respond to the user (in case multiple typeset calls are queued simultaneously). Resolves issue #872. 2014-08-19 16:58:51 -04:00
Davide P. Cervone
71444850ca Force separate web font names for bold, italic in WebKit. Resolves issue #845. 2014-08-19 16:58:22 -04:00
Davide P. Cervone
34c723aa9e Prevent empty annotation as first child of semantics element from producing an error. Resolves issue #805. 2014-08-19 16:57:27 -04:00
Davide P. Cervone
ddb96b1b66 Move CoreParent, CoreText, remap, and remapChars to element jax (since shared among the output jax), and fix positioning of double accents like \vec{\vec{x}}. Resolves issue #877. 2014-08-19 16:55:36 -04:00
Davide P. Cervone
cd5a06d347 Forgot to do the corresponding change in SVG output. Issue #891. 2014-08-19 16:53:47 -04:00
Davide P. Cervone
944e8ad1ce Forgot to do the corresponding change in SVG output. Issue #891. 2014-08-19 13:39:21 -04:00
Davide P. Cervone
b33ed4c54b Update use of RegExp.$n to account for Firefoxs change from empty string to undefined for unmatched groups. Resolves issue #891. 2014-08-19 13:35:11 -04:00
Davide P. Cervone
3ca32dc64b Merge branch 'issue873' into develop. Issue #873. 2014-08-19 09:04:36 -04:00
Davide P. Cervone
6ba49d616e Merge branch 'issue856' into develop. Issue #856. 2014-08-19 09:04:05 -04:00
Davide P. Cervone
f4d56e3baf Merge branch 'issue881' into develop. Issue #881. 2014-08-19 09:01:59 -04:00
Davide P. Cervone
0507240c3c Merge branch 'issue889' into develop. Issue #889. 2014-08-19 09:01:25 -04:00
Davide P. Cervone
adbc17aa34 Merge branch 'issue890' into develop. Issue #890. 2014-08-19 09:00:36 -04:00
Davide P. Cervone
e1cf022d8a Combine multiple elements into a single typesetting pass. Issue #873. 2014-08-18 15:36:09 -04:00
Davide P. Cervone
4fb5c5e4e5 Allow commas in place of decimals in TeX dimensions. Resolves issue #856. 2014-08-18 14:09:05 -04:00
Davide P. Cervone
5391986006 Allow \newenvironment to provide an optional argument. Issue #881 2014-08-18 13:46:43 -04:00
Davide P. Cervone
0710cca048 Fix spacing of open delimiter from \left...\right. Issue #889. 2014-08-18 12:54:34 -04:00
Davide P. Cervone
fb3d2c2d07 Make CHTML-preview previews inherit the surrounding color 2014-08-18 12:53:18 -04:00
Davide P. Cervone
4db6b017ee Make px-per-inch configurable and use 72dpi (pt = px in this case) 2014-08-18 11:29:21 -04:00
Davide P. Cervone
72a6a670bf Add ability to process units of px in \\[...] (not particularly accurate, however). Issue #890 2014-08-18 11:09:09 -04:00
Davide P. Cervone
4666badbe2 Merge branch 'issue693' into develop. Issue #693. 2014-08-18 10:11:48 -04:00
Davide P. Cervone
8726bd52a5 Merge branch 'DOMfilterHooks' into develop 2014-08-18 10:01:01 -04:00
Davide P. Cervone
b41981b3b3 Merge pull request #887 from dpvc/issue847
Don't remove entities or newlines from <annotation> elements.
2014-08-17 15:54:09 -04:00
Davide P. Cervone
1aa86d7cf6 Add noReflows flag to prevent taking measurements that cause reflows, when possible. This provides a 30 to 40% speed improvement, but can cause poor results in some browsers. 2014-08-17 14:14:39 -04:00
Davide P. Cervone
4ad33386ef Remove styling of preview (left over from use as an input postfilter) 2014-08-16 13:00:26 -04:00
Davide P. Cervone
8ebcd614c3 Properly handle restarts within the creation of the previews 2014-08-16 12:59:16 -04:00
Davide P. Cervone
f0c0c6386e Properly handle callbacks returned by pre- and postfilter hooks. 2014-08-16 12:58:51 -04:00
Davide P. Cervone
05c7aace26 Add CHTML-preview extension that uses the CommonHTML output jax to create fast previews that are replaced (more slowly) by the normal output jax. 2014-08-16 09:26:47 -04:00
Davide P. Cervone
3463017f85 Change .bbox to .CHTML to prevent conflicts with other output jax 2014-08-16 08:27:02 -04:00
Peter Krautzberger
143d071df0 Merge pull request #870 from Gefrierbrand/develop
Create composer.json
2014-08-05 20:57:57 +02:00
Peter Krautzberger
14f8b4a7ab Merge pull request #886 from pkra/issue816
remove version number from bower.json
2014-08-04 21:58:17 +02:00
Peter Krautzberger
71e318315c remove version number from bower.json to avoid (user) confusion; bower ignores it anyway 2014-08-04 17:18:08 +02:00
Davide P. Cervone
0864dfcd79 Remove commas that confuse IE8, work around IE8 problem with insertBefore when second argument is negative, fix mspaces with negative width, and add a hack to avoid negative spaces after \int to adjust for different spacing between CM and Times fonts. 2014-07-29 06:49:24 -04:00
Davide P. Cervone
781689e7e4 First version of CommonHTML output jax 2014-07-28 17:42:51 -04:00
Davide P. Cervone
7aab884fd0 Merge pull request #874 from pkra/nodejs
merging @dpvc's Nodejs branch into develop.
2014-07-21 10:06:35 -04:00
Davide P. Cervone
41df4b5cfa Merge pull request #864 from pkra/issue863
fixes #863
2014-07-18 11:42:38 -04:00
Nikolai Neff
38c5ad2196 Create composer.json 2014-07-16 19:28:44 +02:00
Peter Krautzberger
682bc7969e fixes #863 -- math.cloneNode should be set to true 2014-07-10 12:47:30 +02:00
Davide P. Cervone
44ee2cf762 Don't remove entities or newlines from <annotation> elements. Resolves issue #847. 2014-06-24 17:23:14 -04:00
Davide P. Cervone
d06675ae89 Mark SVG spans as MathJax ones properly. 2014-06-24 16:40:52 -04:00
Davide P. Cervone
6912edadbb Merge branch 'v2.4-latest' into develop 2014-06-13 05:37:18 -04:00
Davide P. Cervone
1c54436ae6 Merge branch 'v2.4-latest'. Release of version 2.4.0. 2014-06-13 05:36:42 -04:00
Davide P. Cervone
60e0a8c5cd Added CONTRIBUTING.md from Peter's branch 2014-06-12 11:30:50 -04:00
Davide P. Cervone
88de247409 Repack and recombine previous commit. 2014-06-12 10:16:28 -04:00
Davide P. Cervone
bbb5f6084b Put back mtdWidthBug for FF since it is still not right. Issue #813. 2014-06-12 10:15:32 -04:00
Davide P. Cervone
e28151126b Update README-branch.txt 2014-06-12 05:53:53 -04:00
Davide P. Cervone
1a895e2a7c Update version numbers, repack, and recombine 2014-06-12 05:53:13 -04:00
Davide P. Cervone
12313a6629 Add missing array in signal data 2014-06-08 21:09:00 -04:00
Davide P. Cervone
f9afa15ecc Correct ID for global glyph lookup 2014-06-08 21:08:31 -04:00
Davide P. Cervone
6dfaf0e464 Add comments 2014-06-08 21:00:01 -04:00
Davide P. Cervone
6ab067a14c Switch beta.mathjax.org to cdn.mathjax.org (since https users will never get this beta MathJax.js anyway). 2014-06-01 11:37:08 -04:00
Davide P. Cervone
b29833de63 Repack and recombine 2.4-beta-2 2014-06-01 11:35:06 -04:00
Davide P. Cervone
d92ae61db1 Fix variable reference turned up by packer 2014-06-01 10:54:47 -04:00
Davide P. Cervone
2e9b3c7c60 Make this rev=2.4-beta-2, and turn rackspace https into beta.mathjax.org (this will need to be changed to cdn.mathjax.org for the final release). 2014-06-01 10:41:27 -04:00
Davide P. Cervone
7c47e03240 Merge branch 'stretchy' into v2.4-beta 2014-06-01 10:26:26 -04:00
Davide P. Cervone
beeb356308 Merge branch 'issue729' into v2.4-beta. Issue #729. 2014-06-01 10:25:17 -04:00
Davide P. Cervone
87d38cd1f7 Merge branch 'issue814' into v2.4-beta. (semantic annotations in
toMathML output).  Issue #814.
2014-06-01 10:24:25 -04:00
Davide P. Cervone
d24b750cbf Don't add stretchy=dalse if it is not needed 2014-05-30 12:25:01 -04:00
Davide P. Cervone
668585f591 Fix several problems with stretchy delimiters in SVG output (minsize didn't always get processed, stretched characters weren't marked as such). 2014-05-30 12:17:09 -04:00
Davide P. Cervone
8eb029478e Fix bounding box problem in Firefox with stretchy delimiters (and remove alignment hack that doesn't seem to be needed any longer). resolves issue #729. 2014-05-30 12:15:25 -04:00
Davide P. Cervone
3a8afa4dcb Add support for semantics annotations to toMathML, and use a menu item to control it. 2014-05-29 15:37:59 -04:00
Davide P. Cervone
a314139f59 Merge branch 'issue814' into v2.4-beta. Issue #814. 2014-05-29 11:56:07 -04:00
Davide P. Cervone
54007abc60 Merge branch 'issue813' into v2.4-beta. Issue #813. 2014-05-29 11:55:44 -04:00
Davide P. Cervone
7a9833becd Add semantics annotation to NativeMML output. This is done in the NativeMML output jax rather than the input jax so that it can be done for any input format (that provides an encoding for it). Also, it avoids having the Show As MathML output include the annotation. Resolves issue #814. 2014-05-28 10:30:03 -04:00
Davide P. Cervone
e1f4656783 Remove some NativeMML work-arounds for FF >= 29 (apparently fixed in this version). Resolves issue #813. 2014-05-28 06:02:26 -04:00
Davide P. Cervone
0ebff03dc1 Merge branch 'issue820' into v2.4-beta. Issue #820. 2014-05-27 15:18:55 -04:00
Davide P. Cervone
7d9db89c8b Merge branch 'issue821' into v2.4-beta. Issue 821. 2014-05-27 15:18:47 -04:00
Davide P. Cervone
fe68969184 Merge branch 'issue824' into v2.4-beta. Issue #824. 2014-05-27 15:18:29 -04:00
Davide P. Cervone
4e3977082d Remove fonts from default VARIANT values, which where causing -smallOP to no inherit the normal fonts; this caused \int in STIX (and other fonts) not to be found, and so default to unknown character bboxes. Resolves issue #820. 2014-05-22 19:43:30 -04:00
Davide P. Cervone
71f731cbbb Trap error reading cookies. Resolves issue #821. 2014-05-22 18:10:35 -04:00
Davide P. Cervone
b84f7772f4 Fix zoom box sizes for tagged equations in HTML-CSS and NativeMML output. Issue #824. 2014-05-22 18:04:59 -04:00
Davide P. Cervone
ae3197913b Merge branch 'issue815' into v2.4-beta. Issue #815. 2014-05-22 15:28:22 -04:00
Davide P. Cervone
6c244ce4dd Merge branch 'issue811' into v2.4-beta. Issue #811. 2014-05-22 15:27:44 -04:00
Davide P. Cervone
11e4ba5101 Make glyph data be part of BBOX.GLYPH, and make sure that resets don't increment the counter for local <defs> elements. 2014-05-22 13:14:29 -04:00
Davide P. Cervone
b2ce6ef0a0 Make fallback parser clear itself after use, so there isn't an extra <math> element left over at the end (typsetting again causes problems). 2014-05-17 13:48:44 -04:00
Davide P. Cervone
3c98ab81dd Change where ID is modified so that the cache properly accounts for it. 2014-05-17 13:47:58 -04:00
Christian Perfect
0e0444ec3f Merge remote-tracking branch 'mathjax/develop' into ctop
Conflicts:
	unpacked/extensions/MathML/content-mathml.js
2014-05-16 14:18:39 +01:00
Christian Perfect
82dc8af1ae content-mathml: make it compatible with IE8; code style fixes 2014-05-16 14:15:53 +01:00
Davide P. Cervone
2a11309edd Add options useFontCache and useGlobalCache to control use of <use> elements. Also add Fixed() method to make shorter values for scale and viewport. 2014-05-14 14:30:28 -04:00
Davide P. Cervone
267a9a90eb Use width and height attributes rather than styles. 2014-05-14 09:30:05 -04:00
Davide P. Cervone
2c3a5f0b79 Apparently, node.js uses uppercase nodeName, so use toLowerCase() to change it. 2014-05-14 09:29:09 -04:00
Davide P. Cervone
18e0b76b17 Set cache-breaking revision number. 2014-05-13 20:34:05 -04:00
Davide P. Cervone
5538982def Remove space around accent operators (resolves issue #815). 2014-05-12 15:47:01 -04:00
Davide P. Cervone
713d536a68 Handle spacing for AMS alignments better (0 space between columns, but add space to left of operators. 2014-05-12 15:43:50 -04:00
Davide P. Cervone
16d0cfeb5d Update copyrights. 2014-05-08 09:08:25 -04:00
Davide P. Cervone
48f6c06df4 More repacking and recombining (the jax.js files didn't get updated, since they don't have dates that were changed) 2014-05-07 18:59:00 -04:00
Davide P. Cervone
3b3cbeece4 Repack and recombine 2014-05-07 17:16:20 -04:00
Davide P. Cervone
e92f3f2718 Change copyright and version numbers 2014-05-07 17:02:28 -04:00
Davide P. Cervone
1424afb792 Fix up variable issues identified by packer 2014-05-07 16:01:13 -04:00
Davide P. Cervone
ad0d7760f0 Improve handling of removal of &nbsp; for IE in AlignBox 2014-05-07 05:29:31 -04:00
Davide P. Cervone
214a230504 Make sure svg is defined before using its width 2014-05-06 07:00:29 -04:00
Davide P. Cervone
3ebb153763 Ignore mathsize for non-token elements when figuring scales. 2014-05-05 11:18:44 -04:00
Davide P. Cervone
ab3a7e429f Always use start marker in IE (fixes sizes of background colors, see mphantom color test). 2014-05-05 11:06:10 -04:00
Davide P. Cervone
0b4ee45777 Remove &nbsp; when msiePlaceBoxBug is in effect 2014-05-05 09:14:49 -04:00
Davide P. Cervone
085c80054c Add option to not show MathPlayer alert (helps with testsuite) 2014-05-05 07:55:16 -04:00
Davide P. Cervone
49ede41339 Handle MSIE padding bug properly when linebreaking mmultiscripts and when adding nulldelimiterspace wround fractions. 2014-05-04 17:46:34 -04:00
Davide P. Cervone
db87f413bb Avoid IE10 compatibility mode (which says v7.0) but documentMode = 9 problem with transformNode() call. 2014-05-04 15:52:53 -04:00
Davide P. Cervone
1e9dcb81f8 Mark functions that are turned into TEXCLASS.OP so that spacing can be improved for things that look like \left...\right. 2014-05-04 15:27:39 -04:00
Davide P. Cervone
09ce98092b Move generic font and fontdata to main jax object so that we are sure to have one (it will be overwritten when the actual font data are loaded). 2014-05-04 15:24:49 -04:00
Davide P. Cervone
81cec74252 Fix scaling problem with mpadded. 2014-05-04 15:23:50 -04:00
Christian Perfect
c17c4e6dfa content-mathml extension: load config from MathJax.Hub.Config
Config is loaded from `MathML.content-mathml`, and extends the CToP.settings object.
2014-05-02 15:44:58 +01:00
Christian Perfect
86a6c173cf Content-MathML extension: update CToP.js
from mathjax/ctop
2014-05-02 14:52:35 +01:00
Davide P. Cervone
061fe3488b Fix \enclose{}[arrow=1]{} to add updiagonalarrow. 2014-04-27 09:02:01 -04:00
Davide P. Cervone
462be1eaeb Make sure that <mo> with minsize or maxsize set are stretched. 2014-04-25 17:31:11 -04:00
Davide P. Cervone
7f509db1b5 Remove extra space in width (Firefox doesn't process it correctly). 2014-04-25 12:32:58 -04:00
Christian Perfect
e6a1aed03a copy ctop.js into the content-mathml extension
Developed in mathjax/ctop. Uses the MathML jax's DOMfilterHooks to manipulate MathML elements before they're parsed into the internal format.
2014-04-25 16:47:20 +01:00
Davide P. Cervone
75ffd88dc1 Add DOMfilterHooks to MathML input jax. 2014-04-25 11:22:23 -04:00
Davide P. Cervone
bf9f704e20 Merge branch 'issue799' into develop. Issue #799. 2014-04-25 09:12:13 -04:00
Davide P. Cervone
a9d11e1b92 Combine ctop.xsl and mml3mml2.xsl into one, but remove svg tranformation for summation. Issue #799. 2014-04-24 21:10:38 -04:00
Davide P. Cervone
c6d73f4689 Fix several loading issues with localization files (don't add menu div until files are loaded, and properly handle empty callbacks in loadDomain). 2014-04-22 12:31:03 -04:00
Davide P. Cervone
833b69cd2c Merge branch 'issue735' into develop. Issue #735. 2014-04-22 08:16:29 -04:00
Davide P. Cervone
e1a43b6996 Updated language names. Issue #753. 2014-04-22 08:13:16 -04:00
Davide P. Cervone
2470972f99 Merge pull request #797 from pkra/issue753
localization update for v2.4.  Issue #753.
2014-04-22 07:55:19 -04:00
Peter Krautzberger
6ce23c819e localization update for v2.4 2014-04-22 12:45:38 +02:00
Davide P. Cervone
3837d8db0e Make Chrome > 32.0 get bold-italic correctly. Issue #735. 2014-04-22 06:30:55 -04:00
Davide P. Cervone
6d6cb37923 Merge branch 'issue763' into develop. Issue #763. 2014-04-21 19:24:19 -04:00
Davide P. Cervone
21282b683f Merge branch 'issue794' into develop. Issue #794. 2014-04-21 19:23:38 -04:00
Davide P. Cervone
5d75c5d627 Merge branch 'issue353' into develop. Issue #353. 2014-04-21 19:20:45 -04:00
Davide P. Cervone
2b9b4054f1 Take fixphi into account when fixing the phi and varphi characters. Issue #353. 2014-04-21 19:20:23 -04:00
Davide P. Cervone
71925e6fe3 Merge branch 'more-linebreak-fixes' into develop 2014-04-21 18:16:52 -04:00
Davide P. Cervone
cb04ee618c Fix problems with linebreaks in fractions (scaling of lineleading, proper detection of auto indentalign, etc.) 2014-04-21 18:16:31 -04:00
Davide P. Cervone
521e6c9fda Remove extra level of nesting from \textit, \textbf, etc. 2014-04-21 15:24:30 -04:00
Davide P. Cervone
4d316d7f1a Merge branch 'fix-linebreaks' into develop 2014-04-21 09:53:22 -04:00
Davide P. Cervone
f54a8ebaaa Fix problem where forced linebreaks could cause lines to disappear (due to recent changes to the linebreaking algorithm). 2014-04-21 09:52:59 -04:00
Davide P. Cervone
76e6d1139d Merge branch 'issue793' into develop. Issue #793. 2014-04-21 05:59:44 -04:00
Davide P. Cervone
c548a7f0a6 Fix incorrect use of TeX_factor for relative sizes. 2014-04-21 05:59:18 -04:00
Davide P. Cervone
04295783bc Make sure \bmod gets space even in scripts. Resolves issue #794. 2014-04-21 05:57:10 -04:00
Davide P. Cervone
25bab8f05c Make \newenvironment perform the end substitution BEFORE testing if \end matches the corresponding \begin. This allows \newcommand to use \begin and \end in the substititions. Resolves issue #793. 2014-04-20 14:45:54 -04:00
Davide P. Cervone
1e8ae72201 Merge branch 'zoom-fix' into develop. Issues #749, #460, #423. 2014-04-11 07:56:49 -04:00
Davide P. Cervone
0c083deb4f Merge branch 'issue777' into develop. Issue #777. 2014-04-11 07:56:05 -04:00
Davide P. Cervone
662023bed4 Merge branch 'issue703' into develop. Issue #703. 2014-04-11 07:55:31 -04:00
Davide P. Cervone
d2620501da Get border size properly in IE < 10. 2014-04-11 07:36:40 -04:00
Davide P. Cervone
f8ad843365 Avoid warning about deprecated event.returnValue. 2014-04-10 22:49:49 -04:00
Davide P. Cervone
46ba400ad6 Work around WebKit bug with SVG sizes. Resolves issue #749. 2014-04-10 22:45:35 -04:00
Davide P. Cervone
6ba5f2a624 Make absolute sizes scale when zoomed. Resolves issue #460. 2014-04-10 20:48:28 -04:00
Davide P. Cervone
4c2f7ac7c9 Handle resizing better (it flickered when shrinking windows), and take original size into account when changing visibility. 2014-04-10 20:10:28 -04:00
Davide P. Cervone
26775b9520 Make zoom box fit inside closest parent with overflow clipping (if any). Also make the clicable background fit the area properly (it is restricted to that parent element). 2014-04-10 06:40:47 -04:00
Davide P. Cervone
432f5eba69 Move submenus to the left for RTL languages, and make menus open to the left as well. Resolves issue #777. 2014-04-09 17:23:03 -04:00
Davide P. Cervone
c33e0f06b8 Fix scaling for SVG (similar to HTML-CSS fixes). Issue #703 2014-04-09 16:00:10 -04:00
Davide P. Cervone
239cfe33e5 Fix a few bugs with scaling in HTML-CS mode. 2014-04-09 15:59:43 -04:00
Davide P. Cervone
defe996cf7 Fix mathsize in HTML-CSS output so that it acts as a zoom (spaces, math axis, etc, are all scaled). Issue #703. 2014-04-09 13:54:56 -04:00
Davide P. Cervone
a47b1fa009 Merge remote-tracking branch 'dpvc/issue687' into develop. Issue #687. 2014-03-23 05:48:38 -04:00
Davide P. Cervone
c212638e66 Merge remote-tracking branch 'dpvc/issue617' into develop. Issue #617. 2014-03-23 05:48:13 -04:00
Davide P. Cervone
309dbc5a4a If a break occurs at a space or operator that has non-zero width, don't remove next element's initial spacing. 2014-03-21 16:54:10 -04:00
Davide P. Cervone
12f969593d Remove initial space after a linebreak properly. Resolves #687. 2014-03-21 06:58:46 -04:00
Davide P. Cervone
2bb627844f Added support for linebreaking of mmultiscripts. Resolves issue #617. 2014-03-21 06:13:34 -04:00
Davide P. Cervone
283cff4289 Merge remote-tracking branch 'dpvc/issue763' into develop. Issue #763. 2014-03-20 05:50:04 -04:00
Davide P. Cervone
982d9f92f7 Merge remote-tracking branch 'dpvc/issue691' into develop. Issue #691. 2014-03-20 05:49:37 -04:00
Davide P. Cervone
6c4996b436 Merge remote-tracking branch 'dpvc/issue615' into develop. Issue #615. 2014-03-20 05:49:20 -04:00
Davide P. Cervone
b9379938a8 Merge remote-tracking branch 'dpvc/issue692' into develop. Issue #692.
the commit.
2014-03-20 05:48:57 -04:00
Davide P. Cervone
6a930736aa Merge remote-tracking branch 'dpvc/issue256' into develop. Issue #256. 2014-03-20 05:47:08 -04:00
Davide P. Cervone
921f9544c5 Merge remote-tracking branch 'dpvc/issue737' into develop. Issue #737. 2014-03-20 05:46:40 -04:00
Davide P. Cervone
a12a0e5918 Fix unitless width and height in HTML-CSS mglyph, and fix aspect ratio when only one is specified in SVG output. Resolves issue #763. 2014-03-19 16:49:23 -04:00
Davide P. Cervone
86388a5965 Clear \label even if there is no \tag or equation number. Resolves issue #691. 2014-03-19 12:32:48 -04:00
Davide P. Cervone
13d79045b5 Add check that font name is valid. Resolves issue #615. 2014-03-19 12:05:33 -04:00
Davide P. Cervone
bb8c8991e1 Merge remote-tracking branch 'dpvc/issue770' into develop. Issue #770. 2014-03-19 09:43:13 -04:00
Davide P. Cervone
6b93c17d9c Update version of ctop.xsl used in content-mathml extension. Issue #692. 2014-03-19 09:38:35 -04:00
Davide P. Cervone
f220993196 Remove new Function() calls, and isolate eval() to be used only when necessary. Resolves issue #256. 2014-03-18 17:19:36 -04:00
Davide P. Cervone
94c6711d86 Add ability to specify additional root paths like [MathJax]. Resolves issue #737. 2014-03-18 13:41:48 -04:00
Davide P. Cervone
0f659f5b3e Add support for dotted borders. Resolves issue #770. 2014-03-18 12:54:29 -04:00
Davide P. Cervone
6ed8a76d5e Merge remote-tracking branch 'dpvc/issue387' into develop. Issue #387. 2014-03-18 12:18:51 -04:00
Davide P. Cervone
24b57ec75e Fix problem with not having all borders specified. 2014-03-18 12:17:56 -04:00
Davide P. Cervone
1956063ecc Merge remote-tracking branch 'dpvc/issue751' into develop. Issue #751. 2014-03-18 11:50:34 -04:00
Davide P. Cervone
8b4176fc1c Move styling from mtext to merror, and allow the styles to be specified in the configuration. Resolves #387. 2014-03-16 08:55:29 -04:00
Davide P. Cervone
1092de83de Merge remote-tracking branch 'dpvc/font-fixes' into develop. 2014-03-14 14:35:30 -04:00
Davide P. Cervone
aacd4287b6 Merge remote-tracking branch 'dpvc/font-fixes' into develop. Resolves #501 and others. 2014-03-14 14:32:16 -04:00
Davide P. Cervone
63bbb8f28c Add cache-breaking values (when needed) for all javascript, font, and image files loaded from the CDN. Cache-breaking can be controlled on a file-by-file or global basis. Resolves issue #751. 2014-03-14 10:48:13 -04:00
Davide P. Cervone
858c818030 Merge pull request #750 from rbrito/recompress-pngs
images: Optimize PNG images further with optipng and advpng. (Closes #748)
2014-03-05 12:38:26 -05:00
Davide P. Cervone
cfb40e9190 Add one more font name to check for new web fonts locally. 2014-03-05 09:51:41 -05:00
Davide P. Cervone
81d9cce510 Work around stupid Fedora stix font package that incorrectly aliases all STIXGeneral fonts to STIX-Word fonts. Resolves issue #501. 2014-03-03 18:34:50 -05:00
Davide P. Cervone
4d4db67ad0 Make testCollection properly mark STIX fonts as not having the style characters, and fix testing for STIX or MathJax at beginning of font names. 2014-03-03 18:33:12 -05:00
Rogério Brito
22817277c6 images: Optimize PNG images further with optipng and advpng.
The commands used for recompression were:

    optipng -zc1-9 -zm1-9 -zs0-3 -f0-5 *.png
    advpng -z3 *.png
    advpng -z4 -i500 *.png

Note that advpng uses different algorithms when recompressing the image. The
3 refers to 7zip's deflate implementation, while 4 refers to Google's
zopfli.  For zopfli, the argument to -i specifies how many iterations to
run.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2014-02-24 17:25:50 -03:00
Davide P. Cervone
ff8e052806 Simplify font selection code for SVG output. 2014-02-23 14:52:44 -05:00
Davide P. Cervone
36194fe36a Add a new fonts parameter for HTML-CSS to simplify font configuration. 2014-02-23 14:52:43 -05:00
Davide P. Cervone
4ea4816553 Simplify handling of new web fonts when selected by menu. 2014-02-23 14:52:43 -05:00
Davide P. Cervone
0d2dc7fe27 Hack to allow new web fonts to be used locally. The naming of the new fonts should be changed to use the same name for both PC and Mac formats, but that is for a future release. Still need to test Linux. 2014-02-23 14:52:43 -05:00
Davide P. Cervone
c9f50f7797 Add extra DIV to prevent Font_Test DIV from adding space to the page, even temporarily. 2014-02-22 14:14:24 -05:00
Davide P. Cervone
d553f18625 Merge branch 'issue576' into develop. Issue #576. 2014-02-22 08:33:41 -05:00
Davide P. Cervone
2de09d8121 Add a check if defaultEm is zero, and retry after a delay if it is. WebKit seems to have this happen sometimes when web fonts are used for the page (though hard to reproduce). Resolves issue #576. 2014-02-21 16:21:09 -05:00
Davide P. Cervone
3614cd1671 Merge branch 'develop' into issue703 2014-02-21 11:06:47 -05:00
Davide P. Cervone
e67c01ca0b Merge branch 'issue376' into develop. Issue #376. 2014-02-21 10:53:07 -05:00
Davide P. Cervone
dfcc8ca0f7 Merge branch 'issue738' into develop. Issue #7348. 2014-02-21 10:52:43 -05:00
Davide P. Cervone
59ea9a8543 Merge branch 'issue734' into develop. Issue #734. 2014-02-21 10:47:39 -05:00
Davide P. Cervone
e66df30f25 Merge branch 'issue743' into develop. Issue #743. 2014-02-21 10:47:16 -05:00
Davide P. Cervone
d33e7c1144 Merge branch 'issue747' into develop. Issue #747. 2014-02-21 10:46:38 -05:00
Davide P. Cervone
f38dc200fc Make annotation NOT be a token element, by adding a new isChars flag to force its contents to be a chars node rather than an mtext node (which is why it was labelled isToken originally). Resolves issue #376. 2014-02-20 15:38:14 -05:00
Davide P. Cervone
8ed9207668 Don't use MathJax_MSIE_Frame for those vesions of IE that suppor position:fixed (7 and above, as it turns out). Resolves issue #738. 2014-02-20 14:29:31 -05:00
Davide P. Cervone
3118eeb9d7 Compress close and menu images, and only pre-load menu arrow when discoverability is requested. Resolves issue #734. 2014-02-20 12:59:28 -05:00
Davide P. Cervone
4e143688cc Add useMathMLspacing option to AsciiMath input jax. Resolves issue #743 2014-02-20 12:37:03 -05:00
Davide P. Cervone
0b3454ce25 Merge branch 'issue744' into develop. Issue #744. 2014-02-20 10:19:15 -05:00
Davide P. Cervone
6e46adc08f Merge branch 'issue547' into develop. Issue #547. 2014-02-20 10:18:45 -05:00
Davide P. Cervone
2a931136f4 Merge branch 'issue746' into develop. Issue #746. 2014-02-20 10:18:07 -05:00
Davide P. Cervone
23781aa8d6 Merge branch 'issue701' into develop. Issue #701. 2014-02-20 10:17:23 -05:00
Davide P. Cervone
4aa6fa613d Remove incorrect nodeValues for non-text nodes. Resolves issue #747. 2014-02-20 10:12:57 -05:00
Davide P. Cervone
2c303a8850 Change fuzz factor for Chrome square roots. Resolves issue #744. 2014-02-19 19:25:23 -05:00
Davide P. Cervone
7eaedb4639 Handle adding of nulldelimiterspace so taht it is properly included in the width of the fraction. Resolves issue #547. 2014-02-19 19:20:24 -05:00
Davide P. Cervone
f6bc6fa129 Make \\left...\\right be of TeX class INNER. Resolves issue #746. 2014-02-19 19:17:28 -05:00
Davide P. Cervone
9bed669135 Merge branch 'issue240' into develop. Issue #240. 2014-02-17 11:28:30 -05:00
Davide P. Cervone
1022eecd99 Merge branch 'issue719' into develop. Issue #719. 2014-02-17 11:26:20 -05:00
Davide P. Cervone
9220eae8c0 Merge branch 'issue709' into develop. Issue #709. 2014-02-17 11:25:41 -05:00
Davide P. Cervone
a205aea118 Merge branch 'issue624' into develop. Issue #624. 2014-02-17 11:25:08 -05:00
Davide P. Cervone
27c047afb6 Merge branch 'issue476' into develop. Issue #476. 2014-02-17 11:23:54 -05:00
Davide P. Cervone
bc19088423 Prevent mo's from being stretched more often than needed (check that they aren't already the right size when matching mrow size). Also, allow TeXAtom to stretch properly when part of an embellished operator. Issue #701. 2014-02-17 11:17:29 -05:00
Davide P. Cervone
c855a35eff Don't clip delimiters that stretch farther than they are they supposed to. (This is handled by letting them extend beyond their bounding box, but that means they can overlap the rows above or below. Idealy, this should alter the heights of the rows, but that could require restretching rows when equalrows is set, and could lead to looping to try to get the table to stablize. Resolves issue #701 for now. 2014-02-17 11:15:26 -05:00
Davide P. Cervone
9733c1b614 Make empty rows be the standard height and depth; indeed make ALL rows
have at least this height and depth.  Resolves both problems in issue #719.
2014-02-16 05:58:35 -05:00
Davide P. Cervone
d494748ded Changed regular expresion to account for new (longer) Rackspace address. Resolves issue #709. 2014-02-16 05:16:53 -05:00
Davide P. Cervone
a5f09d01f6 Fix string character reference to work with IE7. Resolves issue #624. 2014-02-15 17:49:16 -05:00
Davide P. Cervone
959218f7a9 Adjust positions of extenders for double-lined vertical arrows. (The horizontal position of the extender is off in teh fonts.) Resolves issue #476. 2014-02-15 16:44:49 -05:00
Davide P. Cervone
2927bbfc34 Merge branch 'issue470' into develop. Issue #470. 2014-02-15 12:38:21 -05:00
Davide P. Cervone
7313af12c2 Merge branch 'issue353' into develop. Issue #353. 2014-02-15 12:37:52 -05:00
Davide P. Cervone
243141db7c Merge branch 'issue328' into develop. Issue #328. 2014-02-15 12:37:30 -05:00
Davide P. Cervone
dabec97691 Merge branch 'issue586' into develop. Issue #586. 2014-02-15 12:37:06 -05:00
Davide P. Cervone
46ce16d9ba Merge branch 'issue619' into develop. Issue #619. 2014-02-15 12:36:39 -05:00
Davide P. Cervone
92c1a891dd Merge branch 'issue391' into develop. Issue #391. 2014-02-15 12:35:07 -05:00
Davide P. Cervone
6d6eccead0 Keep track of ID's uses on the page, and make unique ones if there are repeats. Resolves issue #240. 2014-02-15 11:15:07 -05:00
Davide P. Cervone
59c351a143 Improve layout for CD environment. HTML and SVG is improved; NativeMML is better, but still has some problems. Issue #470. 2014-02-15 08:21:03 -05:00
Davide P. Cervone
8c0f844333 Allow switching of phi and varphi (new fixphi configuration parameter controls this). Resolves issue #353. 2014-02-14 14:56:15 -05:00
Davide P. Cervone
c5e1e43f1c Skip _moz-math-* attributes in Firefox. Resolves issue #328 for now. 2014-02-14 14:29:41 -05:00
Davide P. Cervone
5a9c4c66dc Add more comments to document jax and extensions arrays, and fix default value of positionToHash. Issue #586. 2014-02-14 11:37:06 -05:00
Davide P. Cervone
b85d23d9a5 Fix incorrect index in mtable (issue #468 wasn't fixed for SVG), and make bounding box information correct for stretched character. Resolves issue #619. 2014-02-14 11:04:15 -05:00
Davide P. Cervone
86792eaf44 Merge branch 'issue707' into develop. Issue #707. 2014-02-14 10:36:18 -05:00
Davide P. Cervone
c52f0dff76 Don't use info.embellished if the SVGdata isn't available (avoids Math Processing Error). Issue #707. 2014-02-14 10:35:56 -05:00
Davide P. Cervone
3d68051118 Only set width to full for top-level math elements, and make svg.Align() handle expanding the box to accommodate larger lines. Resolves issue #391. 2014-02-14 10:02:06 -05:00
Davide P. Cervone
4cf38304ac Remove unneeded comment 2014-02-14 09:04:51 -05:00
Davide P. Cervone
8cd2eec33d Merge branch 'issue707' into develop. Issue #707. 2014-02-14 08:33:22 -05:00
Davide P. Cervone
6b6623bc5c Merge branch 'issue473' into develop. Issue #473. 2014-02-14 08:32:48 -05:00
Davide P. Cervone
5328112581 Merge branch 'issue632' into develop. Issue #632. 2014-02-14 08:32:20 -05:00
Davide P. Cervone
831b28d13b Merge branch 'issue739' into develop. Issue #739. 2014-02-14 08:31:42 -05:00
Davide P. Cervone
f01d347bb1 Merge branch 'issue684' into develop. Issue #684. 2014-02-14 08:30:28 -05:00
Davide P. Cervone
ca80d7df20 Merge branch 'issue623' into develop. Issue #623. 2014-02-14 08:28:59 -05:00
Davide P. Cervone
b043b3af31 Merge branch 'issue735' into develop. Issue #735. 2014-02-14 08:27:28 -05:00
Davide P. Cervone
cce9256bf9 Change mo to mspace (and remove extra mo) to avoid being an embellished operator more naturally. Issue #707. 2014-02-14 07:58:01 -05:00
Davide P. Cervone
d28ab8b766 Forced explicit linebreak between text elements to not look like an embellished operator. Resolves issue #707. Note however, that Firefox treats this differently (it seems not to treat mtext as space-like in this case). 2014-02-13 20:08:49 -05:00
Davide P. Cervone
03139aaec3 Add ability to unregister listeners for those you can register. Resolves issue #693. (For next feature release.) 2014-02-13 17:57:01 -05:00
Davide P. Cervone
a3fd08bb7a Add text-indent:0 to SVG and HTML-CSS output. Resolves issue #473. 2014-02-13 14:29:38 -05:00
Davide P. Cervone
5e3fe17461 Allow \Big and its brethren to have the delimiter in braces. Resolves issue #632. 2014-02-13 12:58:51 -05:00
Davide P. Cervone
cba90fb584 Fix use of limits in operatorname and DeclareMathOperator. Resolves issue #739. 2014-02-13 07:22:41 -05:00
Davide P. Cervone
002917e559 Make remapping from REMAP and variant.remap work the same, and when string value is used, go back and check for variant changes again. Resolves isse #684. 2014-02-13 06:55:59 -05:00
Davide P. Cervone
08ba269ccf Fix SPLIT routine for IE8 and below (index was wrong for when there are more than one match -- argh!). Resolves issue #623. 2014-02-12 16:05:20 -05:00
Davide P. Cervone
ebdbe6f04d Chrome 32 doesn't load bold-italics properly, so use FontFaceBug to get around that. Issue #735. 2014-02-12 11:02:03 -05:00
Davide P. Cervone
126bd1c373 Merge branch 'issue478' into develop. Issue #478. 2014-02-12 10:49:18 -05:00
Davide P. Cervone
6e597f8dca Merge branch 'issue377' into develop. Issue #377. 2014-02-12 10:48:45 -05:00
Davide P. Cervone
641d6698e8 Make mfenced match mrow+mo form, and make U+2223 and U+2225 stretchy in pre- and postfix positions (to match Firefox). Resolves issue #478. 2014-02-11 10:36:02 -05:00
Davide P. Cervone
7bf7ffef3d Merge branch 'hotfix-2.3' into develop. (This not merged into master,
but I don't want to run into merge conflicts later on with develop.)
2014-02-10 09:48:43 -05:00
Davide P. Cervone
8fb4157eb1 Make U+00A0 act as space in math mode. Resolves issue #377. 2014-02-10 09:34:59 -05:00
Davide P. Cervone
d26490a4db Merge branch 'issue389' into develop. Issue #389. 2014-02-10 08:43:41 -05:00
Davide P. Cervone
dd59bcff82 Correct condition for skipping empty braces. 2014-02-10 08:43:18 -05:00
Davide P. Cervone
ed624f333d Merge branch 'issue459' into develop. Issue #459. 2014-02-10 08:40:06 -05:00
Davide P. Cervone
0c8fdca0e6 Remove unneeded space in class name. 2014-02-10 08:37:53 -05:00
Davide P. Cervone
92fd895582 Merge branch 'issue348' into develop. Issue #348. 2014-02-10 08:34:55 -05:00
Davide P. Cervone
e1b0093946 Merge branch 'issue469' into develop. Issue #469. 2014-02-10 08:34:25 -05:00
Davide P. Cervone
fc5544fbba Merge branch 'issue561' into develop. Issue #561. 2014-02-10 08:33:48 -05:00
Davide P. Cervone
5fe727745f Merge branch 'issue614' into develop. Issue #614. 2014-02-10 08:32:44 -05:00
Davide P. Cervone
bcceb08590 Add \texttt and \textsf macros, and make them work with mtextFontInherit. Resolves issue #459. 2014-02-09 13:45:58 -05:00
Davide P. Cervone
61f671710e Make routine to skip initial spaces, and have it also skip empty braces. Issue #389. 2014-02-09 06:20:23 -05:00
Davide P. Cervone
5b1655a2fe Treat initial <mo> of split and multline (and other related environments) as infix (but remove initial space). Not sure this exactly matches LaTeX, but is closer than current behavior. Resolves issue #389. 2014-02-09 05:52:24 -05:00
Davide P. Cervone
c7be71b554 Put checking for screenX into try...catch for IE8 (grr). Resolves issue #348. 2014-02-08 15:55:21 -05:00
Davide P. Cervone
eb0cae8612 Fixed default value for mo@symmetric. Resolves issue #469. 2014-02-08 14:26:25 -05:00
Davide P. Cervone
2c2e2135b5 Add phasorangle notation to menclosed. Resolves issue#561. 2014-02-08 13:58:31 -05:00
Davide P. Cervone
70bbd42c9d Handle nested <math> elements without error. Resolves issue #614. 2014-02-08 13:02:56 -05:00
Davide P. Cervone
2afb80176c Merge branch 'issue681' into develop. Issue #681. 2014-02-08 11:28:03 -05:00
Davide P. Cervone
ba238a6393 Fixed accidental switching of true and false when testing for local font. Issue #681. 2014-02-08 11:27:36 -05:00
Davide P. Cervone
6e0a83a437 Merge branch 'issue715' into develop. Issue #715. 2014-02-07 10:09:17 -05:00
Davide P. Cervone
25d6ce9f65 Merge branch 'issue730' into develop. Issue #730. 2014-02-07 10:06:13 -05:00
Davide P. Cervone
73f58abb43 Merge branch 'issue559' into develop. Issue #559. 2014-02-07 10:04:46 -05:00
Davide P. Cervone
3fc0a5762b Merge branch 'issue517' into develop. Issue #517. 2014-02-07 10:03:10 -05:00
Davide P. Cervone
cdcc04d521 Merge branch 'issue580' into develop. Issue #580. 2014-02-07 10:01:53 -05:00
Davide P. Cervone
5cb8bbb968 Merge branch 'issue578' into develop. Issue #578. 2014-02-07 10:00:19 -05:00
Davide P. Cervone
363321b794 Merge branch 'issue667' into develop. Issue #667. 2014-02-07 09:56:14 -05:00
Davide P. Cervone
76a4ee314c Merge branch 'issue681' into develop. Issue #681. 2014-02-07 09:50:12 -05:00
Davide P. Cervone
8089fe3cb3 Merge branch 'issue685' into develop. Issue #685. 2014-02-07 09:45:51 -05:00
Davide P. Cervone
f1f109b586 Remove redundent check (if span is null, then div will be null, so only need to check for div). Issue #730. 2014-02-07 09:39:56 -05:00
Davide P. Cervone
997692713e Remove user configuration cookie (hasn't been used in 5 years). This should be reflected in a removal of the CookieConfig item from the localization files. Issue #559. 2014-02-06 16:46:18 -05:00
Davide P. Cervone
8dc99cef2d Add min and max width and height resets to CSS where appropriate. Resolves issue #517. 2014-02-06 15:20:19 -05:00
Davide P. Cervone
57d85a4f69 Fixed typo in 'important'. 2014-02-06 15:15:46 -05:00
Davide P. Cervone
72f9d5f408 Added '!important' to NativeMML CSS as well. (Issue #580.) 2014-02-06 15:07:35 -05:00
Davide P. Cervone
8f0ac563d6 Remove quoting of lquote and rquote when they appear within the content of the <ms> element. Not sure why this was ever done. Resolves issue #578. 2014-02-06 14:42:32 -05:00
Davide P. Cervone
4f10613b2a Add '!important' to CSS for display property. Resolves issue #580. 2014-02-06 14:31:17 -05:00
Davide P. Cervone
7bd8f9edb4 Fix use if for...in to avoid problems with elements added to Array.prototype. Resolves issue #667 2014-02-06 14:17:04 -05:00
Davide P. Cervone
6c50f1dae8 Clear font test div so that its width doesn't affect the page size. resolves issue #681. 2014-02-06 14:02:41 -05:00
Davide P. Cervone
6799f197ab Don't load menu or zoom code if showMathMenu is false. Resolves issue #685. 2014-02-06 13:27:14 -05:00
Davide P. Cervone
3b35ca9e16 Add more tests to check that the math is still in the page. Should resolve issue #730 (though we don't have their page and can't really test it). 2014-02-06 13:18:04 -05:00
Davide P. Cervone
67ee149dd2 Merge branch 'develop' of https://github.com/dpvc/MathJax into develop 2014-02-06 12:37:51 -05:00
Davide P. Cervone
169c2ed097 Fix size of accents in STIX and STIX-Web fonts. Resolves issue #715. 2014-02-06 12:33:37 -05:00
Davide P. Cervone
2c5ecf6303 Make sure measuring spans are removed from all elements (including the ones that were changed). Resolves second half of issue #576. 2014-02-06 11:54:26 -05:00
Davide P. Cervone
7a97969104 Fix a typo in comments and remove an unused variable 2014-02-06 11:02:55 -05:00
Davide P. Cervone
105266706c Merge branch 'sample-div' into develop 2014-01-25 10:33:59 -05:00
Grahack
c995c9f635 div not properly closed in sample-dynamic-2.html 2014-01-25 10:30:25 -05:00
Davide P. Cervone
65cc50ac5c Fixed font name table to work on Windows as well as Macs with the new web fonts installed locally 2014-01-13 15:49:16 -05:00
Davide P. Cervone
a57696fde5 Fix up comment. 2014-01-13 11:59:21 -05:00
Davide P. Cervone
86ac34e91b Fix new web fonts bold-italic variant (issue #716) and STIX-Web lower-case Greek in sans-serif and sans-serif-italic variants (issue #697). 2014-01-13 11:52:39 -05:00
Davide P. Cervone
b9685dd507 Fix incorrect min-width for mtd elements. Resolves issue #699. 2014-01-13 11:50:49 -05:00
Davide P. Cervone
b5454061cc Identify IE11 properly for now (more needs to be done with the browser detection code in teh future). Issue #658. 2014-01-10 14:47:00 -05:00
Davide P. Cervone
39527d2a34 Fix font names in font-test data so that local versions of the web fonts can be detected. This still has to be tested on Windows and Linux. Issue #711. 2014-01-08 13:32:26 -05:00
Davide P. Cervone
c54ac49108 Scale axis sizes properly for scripts. Issue #703. 2014-01-08 11:44:23 -05:00
Davide P. Cervone
2a54f5db8d Merge remote-tracking branch 'dpvc/issue672' into develop 2013-11-21 18:16:32 -05:00
Davide P. Cervone
f3aaf3a2a3 Merge branch 'v2.3-latest' 2013-11-21 18:15:54 -05:00
Davide P. Cervone
78ea6afbc8 Merge remote-tracking branch 'dpvc/issue672' into v2.3-latest 2013-11-21 18:15:30 -05:00
Davide P. Cervone
de0e1e1797 Repack and recombine previous commit. 2013-11-21 18:14:16 -05:00
Davide P. Cervone
5934b2b416 Merge remote-tracking branch 'dpvc/issue672' into develop 2013-11-21 17:51:13 -05:00
Davide P. Cervone
228de0aaaa Merge branch 'v2.3-latest' 2013-11-21 17:50:51 -05:00
Davide P. Cervone
7dc4bc7825 Merge remote-tracking branch 'dpvc/issue672' into v2.3-latest 2013-11-21 17:50:00 -05:00
Davide P. Cervone
d4fe0fdac2 Push math nodes onto mathArray individually to avoid problem in IE < 9 where push.apply doesn't work on a nodeList. Also, avoid duplicate elements in the array by checking for namespace prefixes. This needs to work for both HTML and XHTML. Resolves issue #672. 2013-11-21 08:49:43 -05:00
Davide P. Cervone
e46a997466 Merge remote-tracking branch 'dpvc/issue671' 2013-11-18 20:10:07 -05:00
Davide P. Cervone
6a198f6092 Repack MathJax.js from last commit 2013-11-18 20:02:43 -05:00
Davide P. Cervone
62cdfcfd34 Check for whether MathJax is already loaded before using MathJax variable for AuthorConfig. Resolves issue #671. 2013-11-18 20:01:54 -05:00
Davide P. Cervone
ff5a6de764 Merge branch 'v2.3-latest' 2013-11-17 08:05:11 -05:00
Davide P. Cervone
62a267ed8c Merge pull request #670 from dpvc/cdn-version-append
CDN version append
2013-11-17 04:58:21 -08:00
Davide P. Cervone
8af5b0eb79 Repack MathJax.js 2013-11-16 20:47:23 -05:00
Davide P. Cervone
8700fdf098 If coming from the CDN's mathjax/latest address, move to the explicit version (avoids CDN propagation issues when a new version is released). 2013-11-16 20:22:19 -05:00
Frédéric Wang
96a037171f Merge pull request #664 from mathjax/v2.3-latest
Update README-branch.txt
2013-11-11 05:39:49 -08:00
Frédéric Wang
705548fc37 Update README-branch.txt 2013-11-11 14:39:02 +01:00
Frédéric Wang
607319ad5e Merge pull request #663 from mathjax/v2.3-latest
V2.3 latest
2013-11-11 05:36:33 -08:00
Frédéric Wang
ef36d4b2a5 Repack and combine. #534 2013-11-11 14:30:46 +01:00
Frédéric Wang
9702afba15 Increase version numbers for 2.3 ; update languages. #534 2013-11-11 14:14:08 +01:00
Frédéric Wang
74c270f3c9 ... and now fix the issue myself. #650 2013-11-08 09:47:43 +01:00
Frédéric Wang
767225cd3e Revert third-party fix for lack of CLA #650 2013-11-08 09:42:57 +01:00
Frédéric Wang
a2ca632cac Merge pull request #662 from fred-wang/issue611
Issue611
2013-11-07 08:53:35 -08:00
Frédéric Wang
337361c1cd Regenerate the fonts. #611 2013-11-07 17:51:05 +01:00
Frédéric Wang
2fe803cfb1 Regenerate the font data (no longer in sync with the font files!) #611 2013-11-07 16:18:09 +01:00
Frédéric Wang
d1822362f2 Merge pull request #660 from fred-wang/issue656
MathMenu: fix typo in STIXLocal key, add strings for the new Web fonts. ...
2013-11-07 05:52:38 -08:00
Frédéric Wang
53b1201b54 Merge pull request #659 from fred-wang/issue636
MathJax.isPacked and MathJax.AuthorConfig mixup. #636
2013-11-07 05:51:18 -08:00
Frédéric Wang
0b753f67ad MathMenu: fix typo in STIXLocal key, add strings for the new Web fonts. #656 2013-11-05 16:10:04 +01:00
Frédéric Wang
0c85be88e0 Merge pull request #655 from jdh8/develop
Center display math in XHTML (#650)
2013-11-05 05:52:53 -08:00
Chen-Pang He
937434c77d Center display math in XHTML (#650) 2013-11-05 21:39:23 +08:00
Frédéric Wang
6cd37d02f9 Merge pull request #652 from fred-wang/issue530
Localisation updates from http://translatewiki.net. #530
2013-11-05 00:46:54 -08:00
Frédéric Wang
2b903c4310 Localisation updates from http://translatewiki.net. #530 2013-11-05 09:45:44 +01:00
Davide P. Cervone
0312b8ffa9 Merge pull request #645 from fred-wang/issue639
Add the matchFontHeight options to unpacked/config/default.js #639
2013-10-30 10:04:09 -07:00
Davide P. Cervone
1f013d76b3 Merge pull request #644 from dpvc/issue523
Resolves issue #523
2013-10-30 10:03:01 -07:00
Frédéric Wang
7364fffae2 Add caligraphic-bold and tex-oldstylebold. #612, #611 2013-10-30 16:16:32 +01:00
Frédéric Wang
3e36fd81d0 Add the matchFontHeight options to unpacked/config/default.js #639 2013-10-30 15:22:50 +01:00
Frédéric Wang
6448c0ce91 Merge pull request #643 from fred-wang/issue530
Localisation updates from http://translatewiki.net. #530
2013-10-30 07:09:07 -07:00
Frédéric Wang
139b799dbf Localisation updates from http://translatewiki.net. #530 2013-10-30 15:07:15 +01:00
Frédéric Wang
b3867893b2 Adding remap to latin modern and gyre fonts. #611 2013-10-30 12:57:07 +01:00
Frédéric Wang
e3a431826c Add some remap for Euler fonts. #611 2013-10-30 11:14:10 +01:00
Davide P. Cervone
08ec41cd86 More checks to make sure nesting level doesn't go below zero. Issue #523. 2013-10-28 18:45:21 -04:00
Davide P. Cervone
cd0b88e524 Don't let nesting count go below zero. Resolves issue #523. 2013-10-28 18:30:59 -04:00
Frédéric Wang
62afeb2ad5 Update fontdata to improve the list of stretchy operators. #611 2013-10-23 17:18:04 +02:00
Frédéric Wang
133df1675c Fix many issues with Asana Font. #611 2013-10-23 12:59:04 +02:00
Frédéric Wang
53b3160dfd MathJax.isPacked and MathJax.AuthorConfig mixup. #636 2013-10-22 15:34:05 +02:00
Frédéric Wang
359c61a827 Merge pull request #637 from fred-wang/bidi
Remove extra comma. #627
2013-10-22 01:13:17 -07:00
Frédéric Wang
1ca86fbc6b Remove extra comma. #627 2013-10-22 10:11:58 +02:00
Frédéric Wang
ad33b1f40c Merge pull request #635 from fred-wang/v2.3-beta
V2.3 beta
2013-10-21 05:32:31 -07:00
Frédéric Wang
90749a7afe Fix WARNINGs generated by the MathJax packer. #534 2013-10-21 14:30:16 +02:00
Frédéric Wang
b73eafd431 Bump version numbers. #534 2013-10-21 13:58:46 +02:00
Frédéric Wang
a259bcba88 Merge pull request #634 from fred-wang/bidi
Implement bidi on MathML token elements and fix incorrect rendering of RTL error messages
2013-10-21 04:49:55 -07:00
Frédéric Wang
28afef1a95 mglyph messages: pass the def to the MML.Error function. #627 2013-10-21 12:38:26 +02:00
Frédéric Wang
5828d63598 Merge branch 'master' into bidi 2013-10-21 11:15:58 +02:00
Frédéric Wang
4400d42d57 Merge pull request #633 from fred-wang/issue530
Localisation updates from http://translatewiki.net. #530
2013-10-21 01:21:31 -07:00
Frédéric Wang
72aa13ee89 Localisation updates from http://translatewiki.net. #530 2013-10-21 10:18:56 +02:00
Frédéric Wang
3fee31b7e4 Address review comments #627 2013-10-21 10:04:39 +02:00
Davide P. Cervone
89ad60fe70 Merge pull request #631 from fred-wang/issue44
Apply PNG post-processing compression to image fonts. #44

(Saves about 500KB in image sizes over all, but doesn't reduce disk usage for most people, because the data was already less than the block size for most disks.  Should reduce network traffic, however.)
2013-10-19 09:58:21 -07:00
Davide P. Cervone
068b907cd5 Merge pull request #630 from fred-wang/issue612
First step in Issue #612 (Move TeX/STIX font data from boldsymbol extension)
2013-10-19 07:22:48 -07:00
Frédéric Wang
759c26e7c8 Apply PNG post-processing compression to image fonts. #44 2013-10-19 16:21:19 +02:00
Frédéric Wang
6f3051e989 follow-up 2013-10-19 16:13:06 +02:00
Frédéric Wang
c1e33446f2 Address review comments. #612 2013-10-19 15:44:42 +02:00
Frédéric Wang
f76182da27 Merge branch 'master' into bidi 2013-10-18 15:05:50 +02:00
Frédéric Wang
dc1364ec25 Merge pull request #629 from fred-wang/issue530
Issue530
2013-10-18 06:04:31 -07:00
Frédéric Wang
461f9b4614 Update Farsi localization. #530 2013-10-18 15:01:40 +02:00
Frédéric Wang
a2046c05a3 Restore the direction=ltr on the MathJax containers. #627 2013-10-18 14:36:14 +02:00
Frédéric Wang
d2fed27a29 Move FONTDATA from boldsymbol.js to jax/output for STIX and TeX fonts. #612 2013-10-18 14:13:58 +02:00
Frédéric Wang
fdc34e3d88 SVG output: Consider dir=rtl for <mtext> elements that are rendered with an SVG <text> element. #474, #/610, #627 2013-10-18 11:32:28 +02:00
Frédéric Wang
aa8d543a45 follow-up: add directionality on remaining MathML error messages #627 2013-10-18 10:40:38 +02:00
Frédéric Wang
932b7e8f7c Experimental Bidi branch. #474, #/610, #627 2013-10-18 10:04:47 +02:00
Frédéric Wang
542bce301d Enable English strings in the localization test page. #626 2013-10-18 08:01:13 +02:00
Frédéric Wang
0835eadf81 Try to semi-automatically add direction marker in Farsi strings. #601, #530 2013-10-17 17:40:50 +02:00
Frédéric Wang
830502a0a3 Merge pull request #625 from fred-wang/issue621
Remove extra comma and useless newline in fontdata.js #621
2013-10-17 07:44:12 -07:00
Frédéric Wang
95fd93abb0 Remove extra comma and useless newline in fontdata.js #621 2013-10-17 16:42:16 +02:00
Frédéric Wang
5e22cd45a1 Merge pull request #613 from fred-wang/issue530
Import more non-English strings from TranslateWiki ; add the pt-br fallb...
2013-10-17 02:57:12 -07:00
Frédéric Wang
b8e8e80418 Import more non-English strings from TranslateWiki ; add the pt-br fallback for pt. #492 and #530 2013-10-17 11:52:49 +02:00
Frédéric Wang
88c26b359e Merge pull request #609 from fred-wang/preview
Preview
2013-10-15 08:35:52 -07:00
Frédéric Wang
36895de74c Merge pull request #608 from fred-wang/issue590
Make MathZoom check the new DoubleClick value. #590
2013-10-15 08:18:51 -07:00
Davide P. Cervone
26fa6590d7 Merge pull request #607 from fred-wang/issue602
Neo-Euler: don't remap to italic/bold-italic Plane 1 characters (Issue #602).
2013-10-15 07:50:35 -07:00
Frédéric Wang
f816446142 Make MathZoom check the new DoubleClick value. #590 2013-10-14 15:02:17 +02:00
Frédéric Wang
c60fdb4149 Neo-Euler: don't remap to italic/bold-italic Plane 1 characters since they are not available in the font. #602 2013-10-11 11:08:01 +02:00
Frédéric Wang
ba0fd27250 Merge pull request #606 from dpvc/issue604
Make sure TeXmathchoice saves the SVG data for its core.  Resolves issue...
2013-10-11 01:15:44 -07:00
Frédéric Wang
a9d812398b Address review comments. #557 2013-10-10 15:18:55 +02:00
Frédéric Wang
aad3a6edc2 Try to fix test failures #557. 2013-10-10 12:50:30 +02:00
Davide P. Cervone
a632d331b1 Make sure TeXmathchoice saves the SVG data for its core. Resolves issue #604. 2013-10-09 21:47:36 -04:00
Davide P. Cervone
412d3669d1 Merge pull request #599 from fred-wang/issue489
New branch for issue #489 ; regenerate the data.

There are still some issues to be resolved, but this will let the testing proceed as we work on some of the details.
2013-10-08 09:22:44 -07:00
Davide P. Cervone
50ea2bb867 Merge pull request #600 from fred-wang/issue530
Import language translations.  Issue #530
2013-10-08 09:13:08 -07:00
Frédéric Wang
8bfecdabd8 Import new translations from MathJax-i18n. #530 2013-10-08 14:20:24 +02:00
Frédéric Wang
97664574c1 Merge branch 'master' into issue530 2013-10-08 13:40:40 +02:00
Frédéric Wang
1ad11f6e89 New branch for issue #489 ; regenerate the data. 2013-10-08 11:43:30 +02:00
Davide P. Cervone
ff06343dd0 Merge pull request #598 from dpvc/issue558-loop
Improve width computation for MathML elements (issue #558)
2013-10-07 12:28:47 -07:00
Davide P. Cervone
8599abbc4c Mark the postTranslate call that does chunk updates as a partial one 2013-10-07 07:30:57 -04:00
Davide P. Cervone
81ed447228 Add the MatchWebFonts.js extension file 2013-10-07 06:52:19 -04:00
Davide P. Cervone
2755cbd037 Make web font loop into an extension (first draft) 2013-10-05 08:21:53 -04:00
Davide P. Cervone
37c282a983 Merge pull request #593 from dpvc/issue584
Resolve issue #584 (and also an issue with loading css files in Chrome)
2013-10-02 03:30:53 -07:00
Davide P. Cervone
c9766d4da8 Remove debugging message 2013-10-02 06:27:28 -04:00
Davide P. Cervone
c73c43e197 Remove old Chrome 5-beta test for stylesheet checking, and replace it with a check for linked stylesheets (which don't currently work -- luckily they are not used). Resolves issue #584. 2013-10-01 08:46:53 -04:00
Davide P. Cervone
a012354f38 Add support for matching web fonts in HTML-CSS. Change the names of the paramters that control it in NativeMML (so both have the same names). Add a global matchWebFonts option to control whether to do the loop to check for web fonts (off by default). Resolves more of issue #558. 2013-09-29 19:44:15 -04:00
Davide P. Cervone
c777547f97 Add a loop to check for font changes due to web fonts either in the math or the surrounding font. Resolves issue #558. 2013-09-29 16:23:42 -04:00
Davide P. Cervone
c05ab62ecc Add config option for matching font heights in NativeMML and HTML-CSS output (can't do it for SVG, since we aren't using native fonts) 2013-09-29 08:51:49 -04:00
Frédéric Wang
61129829f3 Import new languages from TranslateWiki. #530 2013-09-26 10:05:57 +02:00
Frédéric Wang
7e5dd1dd59 Merge pull request #579 from will-ob/develop
Change bower config filename
2013-09-25 06:26:24 -07:00
Davide P. Cervone
bbf543a840 Add some comments, and clear the list of DOM elements once we are done with it. 2013-09-23 21:19:04 -04:00
Davide P. Cervone
ed932ec458 Properly handle the width of math and mtd elements by explicitly setting the width from the child mrow (works around FF bug that gets these widths wrong). Resolves issue #558. 2013-09-23 20:56:25 -04:00
Will O'Brien
a8eba5dde7 Change bower config filename 2013-09-21 14:57:59 -04:00
Frédéric Wang
4ec3192904 Merge pull request #577 from fred-wang/issue557
Issue557
2013-09-17 11:25:54 -07:00
Frédéric Wang
badfa0b235 Merge pull request #574 from fred-wang/issue555
Issue555
2013-09-17 11:23:02 -07:00
Frédéric Wang
43d648b21d MathJax fonts: map capital fraktur I to the correct position. #555 2013-09-17 16:08:11 +02:00
Frédéric Wang
6e442e36bd Fix regression with HTML snippet preview. #557 2013-09-17 14:19:59 +02:00
Frédéric Wang
3922f0c07c Disallow mathml preview on IE < 9. #557 2013-09-11 12:16:50 +02:00
Davide P. Cervone
4d23091ff0 Merge pull request #565 from fred-wang/issue562
Fix Javascript error in MathEvent.js. #562
2013-09-10 06:23:47 -07:00
Davide P. Cervone
51fda7d475 Merge pull request #563 from fred-wang/issue556
Fixes issue #556
2013-09-10 05:55:33 -07:00
Frédéric Wang
e3914df187 Set the default mml2jax preview to "mathml". #557 2013-09-09 14:57:54 +02:00
Frédéric Wang
8c3c3f66b6 Fix Javascript error in MathEvent.js. #562 2013-09-09 09:58:18 +02:00
Frédéric Wang
be96d3dbfa Allow authors to use the MathJax variable to pass config as well as an AuthorInit function. Fix issue #556 2013-09-04 21:23:21 +02:00
Frédéric Wang
850f736aa7 Add preview=mathml,altimg to the mml2jax preprocessor. #557 2013-08-30 11:27:12 +02:00
Davide P. Cervone
86a908bda8 Merge pull request #552 from fred-wang/issue489-svg
Issue #489 svg.

Thanks!  I hadn't gotten to it yet.
2013-08-27 02:16:19 -07:00
Davide P. Cervone
0e92b24c2e Merge pull request #551 from fred-wang/issue484-ter
Resolves issues #484 and #506
2013-08-27 02:15:07 -07:00
Frédéric Wang
492738cb70 Fix placement issues with largeop and munderover. #489 2013-08-27 10:05:07 +02:00
Frédéric Wang
993fa899f6 Skip annotation and annotation-xml elements so that they won't be processed by the TeX/AsciiMath input (even when the MathML input is disabled). #484 2013-08-27 09:46:56 +02:00
Davide P. Cervone
441cd0ff7d Merge pull request #542 from fred-wang/i18n-bis
Regenerate localization data from MathJax-i18n: add Polish localization,... (Issue #530)
2013-08-08 05:23:45 -07:00
Frédéric Wang
ed66fc5dc6 Regenerate localization data from MathJax-i18n: add Polish localization, fix some errors and update qqq. Second round of issue #530. 2013-08-08 14:08:00 +02:00
Davide P. Cervone
bc64d36647 Merge pull request #541 from fred-wang/issue484-bis
Resolves issue #484 and #506 (duplicate)
2013-08-08 04:50:21 -07:00
Davide P. Cervone
c5f8c34b6a Merge pull request #540 from fred-wang/issue529
Resolves issue #492
2013-08-08 04:46:33 -07:00
Davide P. Cervone
99d7feddca Merge pull request #539 from fred-wang/issue492
Resolves issue #492
2013-08-08 04:22:40 -07:00
Frédéric Wang
0af5c438fa Fix how the locale is set from menu config / query param. #492 2013-08-08 12:56:13 +02:00
Frédéric Wang
f42ac43cd4 Fix more localization errors and update the test/localization.html accordingly ; Also force all menu items to display in the test. #529 2013-08-08 10:32:51 +02:00
Frédéric Wang
026e261e00 Merge branch 'master' into issue529 2013-08-08 09:26:25 +02:00
Davide P. Cervone
4491d2374b Merge pull request #535 from fred-wang/issue357
Resolves issue #357
2013-08-07 05:36:26 -07:00
Frédéric Wang
7fef0a4212 Fix typo in previous commit. 2013-08-07 14:18:41 +02:00
Frédéric Wang
17508905a7 Fix issues reported by Davide. #357 2013-08-07 14:14:31 +02:00
Frédéric Wang
ef596f650d Decrease the priority of the mml2jax preprocessors, so that the ASCIIMath/TeX/jsMath annotations inside MathML are not parsed. Fix issue #484. 2013-08-07 13:34:07 +02:00
Frédéric Wang
932ac5b242 Remove the space for the key of "Content MathML". 2013-08-05 18:20:58 +02:00
Frédéric Wang
1cf685a3a2 Merge branch 'develop' of github.com:mathjax/MathJax into issue357 2013-08-05 17:33:55 +02:00
Frédéric Wang
3653fcccaf Address Review comments. 2013-08-05 17:32:08 +02:00
Davide P. Cervone
f1be0de1d6 Merge pull request #533 from fred-wang/issue504-bis
Resolves issue #504
2013-08-02 08:58:02 -07:00
Davide P. Cervone
c9ac7f14d1 Merge pull request #532 from fred-wang/issue530
OK, I'm merging now.  You can do additional merge requests from this branch later if you want to.  (Issue #530)
2013-08-02 08:57:18 -07:00
Frédéric Wang
45f2a7514e Address review comments. 2013-08-02 17:43:15 +02:00
Davide P. Cervone
8644fb7160 Merge pull request #531 from fred-wang/issue393
Resolves Issue #393
2013-08-02 08:40:44 -07:00
Frédéric Wang
de34c0ec7b Implement language fallback. Fix issue #492. 2013-08-02 17:04:46 +02:00
Frédéric Wang
11959f25ab Regenerate localization data from MathJax-i18n. First round of issue #530. 2013-08-02 15:51:24 +02:00
Frédéric Wang
85f23cadea Update MathJax's Bower package version. 2013-08-02 14:53:51 +02:00
Frédéric Wang
095c80a731 Merge koodough's Bower branch into issue393 2013-08-02 14:53:10 +02:00
Frédéric Wang
f81e9d847d Add test/localization.html. Fix isssue #529. 2013-08-02 14:35:27 +02:00
Frédéric Wang
227aebed65 Fix some places where localization strings are wrongly used. #504 2013-08-02 14:26:55 +02:00
Davide P. Cervone
4263db98d3 Merge pull request #527 from fred-wang/issue482
This resolves issue #482.
2013-08-02 04:05:13 -07:00
Davide P. Cervone
1326cbdf44 Merge pull request #528 from fred-wang/issue481
This resolves issue #481
2013-08-02 04:03:43 -07:00
Frédéric Wang
108cda6097 Address second review. 2013-08-02 10:15:13 +02:00
Frédéric Wang
4ec11da1f1 Address review comments. 2013-08-02 09:58:58 +02:00
Davide P. Cervone
02261ae99f Merge remote-tracking branch 'dpvc/issue485' into develop
REsolves issue #485.
2013-07-31 15:03:47 -04:00
Davide P. Cervone
930c0a707b Merge remote-tracking branch 'dpvc/issue486' into develop
Resolves issue #486.
2013-07-31 15:03:29 -04:00
Frédéric Wang
30cb4b3961 Remove debug logging. Address review comment of issue #485. 2013-06-12 16:11:30 +02:00
Frédéric Wang
1cc5064462 Avoid accessing data[0] with under/over scripts and mlabeledtr too. Address review command of issue #486. 2013-06-12 16:06:56 +02:00
Frédéric Wang
bc9443b252 Expose some annotations to the Show Math As menu. Fix issue #357. 2013-06-03 17:12:11 +02:00
Frédéric Wang
96f16e1868 Address review comments for issue #481. 2013-05-31 09:14:47 +02:00
Frédéric Wang
cc34c39def Replace nonstandard MJX-arrow class by an "updiagonalarrow" menclose notation. Fix issue #481. 2013-05-30 12:17:19 +02:00
Frédéric Wang
d0e795705b WebKit NativeMML: only apply lspace/rspace in non-embellised mrow and set them to 0 otherwise. 2013-05-30 11:26:50 +02:00
Davide P. Cervone
2b1948f252 Force cases environment to use textstyle rather than displaystyle. Resolves issue #485. 2013-05-29 12:32:01 -04:00
Davide P. Cervone
681405debc Avoid accessing data[0] when not defined. Resolves issue #486. 2013-05-29 11:56:41 -04:00
Frédéric Wang
93065ef055 Native MathML: add workarounds for mi, mo (lspace/rspace), mmultiscripts and mspace (width) elements in WebKit. Fix issue #482. 2013-05-29 15:45:58 +02:00
Davide P. Cervone
55b5803d0a Add Italian to language menu, and add a missing comma. 2013-05-26 10:09:29 -04:00
Davide P. Cervone
7ee798cb17 Merge pull request #11 from nivit/master
Add Italian localization files
2013-05-26 07:03:23 -07:00
Davide P. Cervone
1065cbba06 Fixed typo (reported by Fred). 2013-05-26 06:12:37 -04:00
Nicola Vitale
8772e0d31a Use Unicode for letters with accent 2013-05-25 22:34:19 +02:00
Nicola Vitale
90d4062096 Renamed en.js to it.js 2013-05-25 22:16:15 +02:00
Nicola Vitale
f8757d29f3 Merge remote-tracking branch 'upstream/master' 2013-05-25 22:06:19 +02:00
Nicola Vitale
2bffa71e20 Translated to Italian 2013-05-25 22:04:47 +02:00
Davide P. Cervone
3d293ad2c2 Merge remote-tracking branch 'mathjax/v2.2-latest' into develop 2013-05-22 15:17:17 -04:00
Davide P. Cervone
6ba3072b74 Merge branch 'v2.2-latest' 2013-05-22 15:15:27 -04:00
Nicola Vitale
a43a4af8ae Add source files for Italian localization 2013-05-19 00:50:37 +02:00
Davide P. Cervone
298db2d804 Merge branch 'master' of https://github.com/mathjax/MathJax into develop 2013-05-17 06:08:54 -04:00
Davide P. Cervone
7125fb2740 Merge remote-tracking branch 'mathjax/master' into develop 2013-05-16 20:02:38 -04:00
Davide P. Cervone
f0a497e444 Merge branch 'v2.2-beta' into develop 2013-05-15 11:43:15 -04:00
Davide P. Cervone
23d0d6753e Merge branch 'v2.2-beta' into develop 2013-05-14 15:11:42 -04:00
Davide P. Cervone
c654c55d46 Merge branch 'v2.2-beta' into develop 2013-05-14 06:06:38 -04:00
Davide P. Cervone
c4ed4cadef Merge branch 'v2.2-beta' into develop 2013-05-11 18:11:52 -04:00
Davide P. Cervone
cea1722cb2 Merge branch 'v2.2-beta' into develop 2013-05-11 17:03:47 -04:00
Koodough
29de281184 homepage and keywords added 2013-03-09 18:20:39 -06:00
Sam Chambers
dde26859e8 added ./component.json for bower 2013-03-09 17:51:32 -06:00
Sam Chambers
722797218a added ./component.json for bower 2013-03-09 17:48:41 -06:00
27231 changed files with 134939 additions and 9364 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ config/local/*.js
!config/local/local.js !config/local/local.js
unpacked/config/local/*.js unpacked/config/local/*.js
!unpacked/config/local/local.js !unpacked/config/local/local.js
node_modules

7
.npmignore Normal file
View File

@ -0,0 +1,7 @@
.DS_Store
docs/build/html-mathjax-site
config/local/*.js
!config/local/local.js
unpacked/config/local/*.js
!unpacked/config/local/local.js
fonts/HTML-CSS/TeX/png

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
language: node_js
node_js:
- '5'
sudo: false
env:
global:
- secure: kPOwvkCDLpwJneCPeKUxbEZSsPWPpOpIK2wKf5Fm2BqJlUm+Wm8g5GZy1WHjo/IdNyb5mDIJzxWcr/uYDykehkNR1tRVrzUfRCVWqOFXGeI5P9e0zBaXp/GW3kfKivWNhpec8WSu9ZPjQhsRfDCjKRCHAB3JzwDWF8Kfl9UeBicFXQVRo+9zo3okRLsuJsEP/0MEtN0GxdsfKDleSW28AZLxu7raoJHHFY1t3QxMoYDd5312Pz7smv1/l4RG/P6XZZrtWEeVwctrNbU0CBO8tX8nqUCHA0bWyOW+crf4/NZZGg9e1RUq8eDbVUd7iGq81nr0+F7IvvwbvSLmpU2/b9hbcF4i4MpIE1Yy/0+zUhuTj1Yy8tw/irc8Y6Nc/g25BJBSCrfdPQnnbAESUv2ywbHC8vBztLca1xBQbQ+q0N0YYUK/mgxUiOznwTQ3PRIs/SENSdhFufT9pCRBp+lvkY+DVHSt6ogPYdRmyF/KPdcDWu5GqKrUs4KyroAzMLX/brw9+TjASnjTipnUWSlTQpoXjf1aQQuescqZMAbxEZH5ed6YvyPehdDqB8bpkeZ9OUkP8pV1kndSnnUsDH7Kn7ZyYUI20FNsU8Yqp1v94jOfrz2np2N9mJUT3teDy8k4yIxTERYSfbBcn4X30YX8fwRk/8skHRtgU4VOpUnIjkw=
script:
- cp travis-auto-deploy.sh ~/travis-auto-deploy.sh
- sh ~/travis-auto-deploy.sh
branches:
only:
- v2.6-racket-mini-source
- v2.7.1-racket-mini-source

259
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,259 @@
# Contributing to MathJax
You are interested in giving us a hand? That's awesome! We've put together some brief guidelines that should help you get started quickly and easily.
There are lots and lots of ways to get involved, this document covers:
* [reporting an issue](#reporting-an-issue)
* [bug reports](#bug-reports)
* [feature requests](#feature-requests)
* [change requests](#change-requests)
* [working on MathJax core](#working-on-mathjax-core)
* [key branches and tags](#key-branches--tags)
* [submitting pull requests](#submitting-pull-requests)
* [testing and quality assurance](#testing-and-quality-assurance)
* [writing documentation](#writing-documentation)
* [translation](#translation)
* [Conduct](#conduct)
## Reporting An Issue
If you're about to raise an issue because you think you've found a
problem with MathJax, or you'd like to make a request for a new
feature in the codebase, or any other reason… please read this first.
The GitHub issue tracker is the preferred channel for [bug reports](#bug-reports),
[feature requests](#feature-requests), [change requests](#change-requests) and [submitting pull
requests](#submitting-pull-requests), but please respect the following restrictions:
* Please **search for existing issues**. Help us keep duplicate issues
to a minimum by checking to see if someone has already reported your
problem or requested your idea.
* Please **do not** use the issue tracker for personal support
requests (use [the MathJax User Group](https://groups.google.com/forum/#!forum/mathjax-users)).
* Please **be civil**. Keep the discussion on topic and respect the
opinions of others. See also our [Conduct Guidelines](#conduct)
### Bug Reports
A bug is a _demonstrable problem_ that is caused by the code in the repository.
Good bug reports are extremely helpful - thank you!
Guidelines for bug reports:
1. **Use the GitHub issue search** &mdash; check if the issue has already been
reported.
2. **Check if the issue has been fixed** &mdash; look for [closed issues in the
current milestone](https://github.com/MathJax/MathJax/issues?&page=1&state=closed) or try to reproduce it
using the latest `develop` branch. Please note that we only pack MathJax for releases, so on the `develop` branch you have to use `/unpacked/MathJax.js` etc. to test.
3. **Share a live sample of the problem** &mdash; without a live page it is usually impossible to debug problems; see also the Bug Report Template below.
4. **Isolate the problem** &mdash; a live sample is a starting point but if you want to speed things up create a [reduced test
case](http://css-tricks.com/6263-reduced-test-cases/). Be specific about your setup (browser, OS versions etc). Use services like [jsbin](http://jsbin.com), [CodePen](http://codepen.io), [JSfiddle](http://jsfiddle.com) to make collaboration on minimal test cases easier for everyone. Use the unpacked copy of MathJax (`[...]/unpacked/MathJax.js` etc.) for better debugging.
5. **Include a screenshot/cast as a last resort** &mdash; Is your issue about a layout
or design feature / bug but hard to reproduce or isolate? Then please provide a screenshot or screencast. Tools like [LICEcap](http://www.cockos.com/licecap/) or [SauceLabs](http://www.saucelabs.com) allow you to quickly and easily record a screencasts. Make it an animated gif, embed it directly into your GitHub issue -- kapow!
6. Use the Bug Report template below or [click this
link](https://github.com/MathJax/MathJax/issues/new?title=Bug%3A&body=%23%23%23%20Issue%20Summary%0A%0A%23%23%23%20Steps%20to%20Reproduce%0A%0A1.%20This%20is%20the%20first%20step%0A%0AThis%20is%20a%20bug%20because...%0A%0A%23%23%23%20Technical%20details%0A%0A*%20MathJax%20Version%3A%20master%20-%20latest%20commit%3A%20%20INSERT%20COMMIT%20REF%0A*%20Client%20OS%3A%20%0A*%20Browser%3A%20%0A*%20)
to start creating a bug report with the template automatically.
A good bug report shouldn't leave others needing to chase you up for
more information. Be sure to include the details of your environment.
Here is a [real example](https://github.com/mathjax/MathJax/issues/820)
Template Example ([click to use](https://github.com/MathJax/MathJax/issues/new?title=Bug%3A&body=%23%23%23%20Issue%20Summary%0A%0A%23%23%23%20Steps%20to%20Reproduce%0A%0A1.%20This%20is%20the%20first%20step%0A%0AThis%20is%20a%20bug%20because...%0A%0A%23%23%23%20Technical%20details%0A%0A*%20MathJax%20Version%3A%20master%20-%20latest%20commit%3A%20%20INSERT%20COMMIT%20REF%0A*%20Client%20OS%3A%20%0A*%20Browser%3A%20%0A*%20)):
```
Short and descriptive example bug report title
### Issue Summary
A summary of the issue and the browser/OS environment in which it occurs. If
suitable, include the steps required to reproduce the bug.
### Steps to Reproduce
1. This is the first step
2. This is the second step
3. Further steps, etc.
Any other information you want to share that is relevant to the issue
being reported. Especially, why do you consider this to be a bug? What
do you expect to happen instead?
### Technical details:
* MathJax Version: 2.3 (latest commit: f3aaf3a2a3e964df2770dc4aaaa9c87ce5f47e2c)
* Client OS: Mac OS X 10.8.4
* Browser: Chrome 29.0.1547.57
```
### Feature Requests
Feature requests are welcome. Before you submit one be sure to have:
1. Read the
[Roadmaps](https://github.com/mathjax/MathJax/wiki/Mathjax-roadmap),
**use the GitHub search** and check the feature hasn't already been
requested.
2. Take a moment to think about whether your idea fits with the scope
and aims of the project, or if it might better fit being a [custom
extension](https://github.com/mathjax/MathJax-third-party-extensions).
3. Remember, it's up to *you* to make a strong case to convince the
project's leaders of the merits of this feature. Please provide as
much detail and context as possible, this means explaining the use
case and why it is likely to be common.
4. Clearly indicate whether this is a feature request for MathJax
core, input & output jax, or extensions.
### Change Requests
Change requests cover both architectural and functional changes to how
MathJax works. If you have an idea for a new or different dependency,
a refactor, or an improvement to a feature, etc - please be sure to:
1. **Use the GitHub search** and check someone else didn't get there first
2. Take a moment to think about the best way to make a case for, and
explain what you're thinking. Are you sure this shouldn't really be
a [bug report](#bug-reports) or a [feature
request](#feature-requests)? Is it really one idea or is it many?
What's the context? What problem are you solving? Why is what you
are suggesting better than what's already there? Does it fit with
the Roadmap?
## Working on MathJax core
You want to contribute code? Fantastic! Let's get you started.
### Key Branches & Tags
To get it out of the way:
- **[develop](https://github.com/MathJax/MathJax/tree/develop)** is
the development branch. All work on the next release happens here so
you should generally branch off `develop`. Do **NOT** use this branch
for a production site.
- **[master](https://github.com/MathJax/MathJax)** contains the latest
release of MathJax. This branch may be used in production. Do
**NOT** use this branch to work on MathJax's source.
### Submitting Pull Requests
Pull requests are awesome. If you're looking to raise a PR for
something which doesn't have an open issue, please think carefully
about [raising an issue](#reporting-an-issue) which your PR can close,
especially if you're fixing a bug. This makes it more likely that
there will be enough information available for your PR to be properly
tested and merged.
##### Need Help?
If you're not completely clear on how to submit / update / *do* Pull
Requests, please check out our [source control
policies](https://github.com/mathjax/MathJax/wiki/Source-control-policies). For
more insights, chech the excellent in depth [Git Workflow
guide](https://github.com/TryGhost/Ghost/wiki/Git-Workflow) from
Ghost, in particular
* [Ghost Workflow guide: commit messages](https://github.com/TryGhost/Ghost/wiki/Git-workflow#commit-messages)
### Testing and Quality Assurance
Never underestimate just how useful quality assurance is. If you're
looking to get involved with the code base and don't know where to
start, checking out and testing a pull request is one of the most
useful things you could do.
If you want to get involved with testing MathJax, there is a set of QA
Documentation [in our testing
framework](https://github.com/MathJax/MathJax-testing).
Essentially though, [check out the latest develop
branch](#working-on-mathJax-core), take it for a spin, and if you find
anything odd, please follow the [bug report guidelines](#bug-reports)
and let us know!
#### Checking out a Pull Request
These are some [excellent
instructions](https://gist.github.com/piscisaureus/3342247) on
configuring your GitHub repository to allow you to checkout pull
requests in the same way as branches:
<https://gist.github.com/piscisaureus/3342247>.
### Writing documentation
MathJax's main documentation can be found at [docs.mathjax.org](http://docs.mathjax.org).
The source of the docs is hosted in the
[mathjax/mathjax-docs](http://github.com/mathjax/mathjax-docs) repo here on GitHub.
The documentation is generated using [Sphinx-doc](http://sphinx-doc.org/) and hosted on
[Read the docs](http://readthedocs.org).
You can clone the repo and submit pull requests following the
[pull-request](#submitting-pull-requests) guidelines.
### Translation
If you wish to add or update translations of MathJax, please do it on
[TranslateWiki.net](https://translatewiki.net/w/i.php?title=Special:Translate&group=out-mathjax-0-all)
(and while you're there you can help other open source projects,
too, because you're awesome!).
For bug reports and other questions that don't fit on
TranslateWiki.net, head over to the
[mathjax/mathjax-i18n](https://github.com/mathjax/MathJax-i18n)
repository.
## Conduct
We are committed to providing a friendly, safe and welcoming environment for
all, regardless of gender, sexual orientation, disability, ethnicity, religion,
or similar personal characteristic.
Please be kind and courteous. There's no need to be mean or rude.
Respect that people have differences of opinion and that every design or
implementation choice carries a trade-off and numerous costs. There is seldom
a right answer, merely an optimal answer given a set of values and
circumstances.
Please keep unstructured critique to a minimum. If you have solid ideas you
want to experiment with, make a fork and see how it works.
We will exclude you from interaction if you insult, demean or harass anyone.
That is not welcome behaviour. We interpret the term "harassment" as
including the definition in the
[Citizen Code of Conduct](http://citizencodeofconduct.org/);
if you have any lack of clarity about what might be included in that concept,
please read their definition. In particular, we don't tolerate behavior that
excludes people in socially marginalized groups.
Private harassment is also unacceptable. No matter who you are, if you feel
you have been or are being harassed or made uncomfortable by a community
member, please contact one of the channel ops or any of the
[MathJax](https://github.com/MathJax/MathJax) core team
immediately. Whether you're a regular contributor or a newcomer, we care about
making this community a safe place for you and we've got your back.
Likewise any spamming, trolling, flaming, baiting or other attention-stealing
behaviour is not welcome.
We also suggest to read [discourse's
rules](http://blog.discourse.org/2013/03/the-universal-rules-of-civilized-discourse/)
## References
* We heavily borrowed from Mozilla and Ghost -- thank you!
* https://github.com/TryGhost/Ghost/blob/master/CONTRIBUTING.md
* https://github.com/mozilla/rust/wiki/Note-development-policy
* https://github.com/jden/CONTRIBUTING.md/blob/master/CONTRIBUTING.md
* http://blog.discourse.org/2013/03/the-universal-rules-of-civilized-discourse/

445
Gruntfile.js Normal file
View File

@ -0,0 +1,445 @@
/*
MathJax-grunt-cleaner
=====================
A grunt file to reduce the footprint of a MathJax installation
Latest version at https://github.com/pkra/MathJax-grunt-cleaner
Copyright (c) 2014 Mathjax Consortium
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:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
module.exports = function(grunt) {
"use strict";
// # Notes #
// NEVER remove:
//
// * LICENSE -- the Apache license.
// * jax/element/mml -- this implements MathJax"s internal format. Keep either the packed or unpacked copy.
//
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
clean: {
//
// ## Early choices
// `unpacked` for development
// ``packed` for production
unpacked: [
"unpacked"
],
packed: [
"config",
"docs",
"extensions",
"jax",
"localization",
"MathJax.js"
],
// If you don"t need combined configuration files or want to build your own:
allConfigs: [
"config",
"unpacked/config"
],
//
// ## Choosing a font
// See http://docs.mathjax.org/en/latest/font-support.html#font-configuration for background information
//
// 1. Remove font files and font data for fonts you won"t use.
// **IMPORTANT.** Make sure to prevent fallbacks and local fonts in your configuration!
//
//
fontAsana: [
"fonts/HTML-CSS/Asana-Math",
"jax/output/HTML-CSS/fonts/Asana-Math",
"unpacked/jax/output/HTML-CSS/fonts/Asana-Math",
"jax/output/SVG/fonts/Asana-Math",
"unpacked/jax/output/SVG/fonts/Asana-Math"
],
fontGyrePagella: [
"fonts/HTML-CSS/Gyre-Pagella",
"jax/output/HTML-CSS/fonts/Gyre-Pagella",
"unpacked/jax/output/HTML-CSS/fonts/Gyre-Pagella",
"jax/output/SVG/fonts/Gyre-Pagella",
"unpacked/jax/output/SVG/fonts/Gyre-Pagella"
],
fontGyreTermes: [
"fonts/HTML-CSS/Gyre-Termes",
"jax/output/HTML-CSS/fonts/Gyre-Termes",
"unpacked/jax/output/HTML-CSS/fonts/Gyre-Termes",
"jax/output/SVG/fonts/Gyre-Termes",
"unpacked/jax/output/SVG/fonts/Gyre-Termes"
],
fontLatinModern: [
"fonts/HTML-CSS/Latin-Modern",
"jax/output/HTML-CSS/fonts/Latin-Modern",
"unpacked/jax/output/HTML-CSS/fonts/Latin-Modern",
"jax/output/SVG/fonts/Latin-Modern",
"unpacked/jax/output/SVG/fonts/Latin-Modern"
],
fontNeoEuler: [
"fonts/HTML-CSS/Neo-Euler",
"jax/output/HTML-CSS/fonts/Neo-Euler",
"unpacked/jax/output/HTML-CSS/fonts/Neo-Euler",
"jax/output/SVG/fonts/Neo-Euler",
"unpacked/jax/output/SVG/fonts/Neo-Euler"
],
fontStix: [
"fonts/HTML-CSS/STIX",
"jax/output/HTML-CSS/fonts/STIX",
"unpacked/jax/output/HTML-CSS/fonts/STIX",
"jax/output/SVG/fonts/STIX",
"unpacked/jax/output/SVG/fonts/STIX"
],
fontStixWeb: [
"fonts/HTML-CSS/STIX-Web",
"jax/output/HTML-CSS/fonts/STIX-Web",
"unpacked/jax/output/HTML-CSS/fonts/STIX-Web",
"jax/output/SVG/fonts/STIX-Web",
"unpacked/jax/output/SVG/fonts/STIX-Web"
],
fontTeX: [
"fonts/HTML-CSS/TeX",
"jax/output/HTML-CSS/fonts/TeX",
"unpacked/jax/output/HTML-CSS/fonts/TeX",
"jax/output/SVG/fonts/TeX",
"unpacked/jax/output/SVG/fonts/TeX"
],
//
// Remove font formats
// If you know you only need a specific format of your remaining fonts (e.g., woff), then you can delete the others.
dropFonts: [ // if you use SVG output, you can drop all font formats (SVG output uses the data in `jax/output/SVG/fonts/...`)
"fonts"
],
eot: [
"fonts/**/eot"
],
otf: [
"fonts/**/otf"
],
png: [
"fonts/**/png"
],
svg: [ // **NOT** related to the SVG output!
"fonts/**/svg"
],
woff: [
"fonts/**/woff"
],
// ## Choose the input
// Remove input that you don"t need.
// **Note.** This includes combined configuration files.
asciimathInput: [
"config/AM*",
"config/TeX-MML-AM*",
"jax/input/AsciiMath",
"unpacked/config/AM*",
"unpacked/config/TeX-MML-AM*",
"unpacked/jax/input/AsciiMath"
],
mathmlInput: [
"config/MML*",
"config/TeX-MML*",
"config/TeX-AMS-MML*",
"jax/input/MathML",
"unpacked/config/MathML*",
"unpacked/jax/input/MathML"
],
texInput: [
"config/TeX*",
"jax/input/TeX",
"unpacked/config/TeX*",
"unpacked/jax/input/TeX"
],
// ## Extensions
extensionsAsciimath: [
"extensions/asciimath2jax.js",
"unpacked/extensions/asciimath2jax.js"
],
extensionsMathml: [
"extensions/MathML",
"extensions/mml2jax.js",
"unpacked/extensions/MathML",
"unpacked/extensions/mml2jax.js"
],
extensionsTeX: [
"extensions/TeX",
"extensions/jsMath2jax.js",
"extensions/tex2jax.js",
"unpacked/extensions/TeX",
"unpacked/extensions/jsMath2jax.js",
"unpacked/extensions/tex2jax.js"
],
extensionHtmlCss: [
"extensions/HTML-CSS",
"unpacked/extensions/HTML-CSS"
],
// ## Choose Output
htmlCssOutput: [
"config/*HTMLorMML.js",
"config/*HTMLorMML-full.js",
"unpacked/config/*HTMLorMML.js",
"unpacked/config/*HTMLorMML-full.js",
"jax/output/HTML-CSS",
"unpacked/jax/output/HTML-CSS"
],
mathmlOutput: [
"config/*HTMLorMML.js",
"config/*HTMLorMML-full.js",
"unpacked/config/*HTMLorMML.js",
"unpacked/config/*HTMLorMML-full.js",
"jax/output/NativeMML",
"unpacked/jax/output/NativeMML"
],
svgOutput: [
"config/*SVG.js",
"config/*SVG-full.js",
"unpacked/config/*SVG.js",
"unpacked/config/*SVG-full.js",
"jax/output/SVG",
"unpacked/jax/output/SVG"
],
commonHtmlOutput: [
"configs/*CHTML.js",
"configs/*CHTML-full.js",
"unpacked/config/*CHTML.js",
"unpacked/configs/*CHTML-full.js",
"jax/output/CommonHTML",
"unpacked/jax/output/CommonHTML",
"extensions/CHTML-preview.js",
"unpacked/extensions/CHTML-preview.js"
],
previewHtmlOutput: [
"jax/output/PreviewHTML",
"unpacked/jax/output/PreviewHTML",
"extensions/fast-preview.js",
"unpacked/extensions/fast-preview.js",
"extensions/CHTML-preview.js",
"unpacked/extensions/CHTML-preview.js"
],
plainSourceOutput: [
"jax/output/PlainSource",
"unpacked/jax/output/PlainSource"
],
// ## Locales
// Removes all locale files. Change this as needed to keep your preferred language.
// **NOTE.** English strings are hardcoded.
// **NOTE.** If you fix the locale, drop the menu entry: http://docs.mathjax.org/en/latest/options/MathMenu.html#configure-mathmenu
locales: [
"localization",
"unpacked/localization"
],
// ## Misc.
miscConfig: [
"config/local",
"unpacked/config/local",
"config/Accessible-full.js",
"unpacked/config/Accessible-full.js",
"config/Accessible.js",
"unpacked/config/Accessible.js",
//"config/default.js",
//"unpacked/config/default.js",
"config/Safe.js",
"unpacked/config/Safe.js"
],
fullConfig: [
"config/*-full.js"
],
restConfig: [
"config/AM_CHTML.js",
"config/AM_HTMLorMML.js",
"config/AM_SVG.js",
//"config/default.js",
"config/MML_CHTML.js",
"config/MML_HTMLorMML.js",
"config/MMLorHTML.js",
"config/MML_SVG.js",
"config/TeX-AMS_CHTML.js",
"config/TeX-AMS_HTML.js",
"config/TeX-AMS-MML_HTMLorMML.js",
"config/TeX-AMS-MML_SVG.js",
"config/TeX-AMS_SVG.js",
"config/TeX-MML-AM_CHTML.js",
"config/TeX-MML-AM_HTMLorMML.js",
"config/TeX-MML-AM_SVG.js"
],
a11yExtensions: [
"extensions/AssistiveMML.js",
"unpacked/extensions/AssistiveMML.js"
],
miscExtensions: [
"extensions/FontWarnings.js",
"extensions/HelpDialog.js",
"extensions/MatchWebFonts.js",
"extensions/MathEvents.js",
"extensions/MathMenu.js",
"extensions/MathZoom.js",
"extensions/Safe.js",
"extensions/CHTML-preview.js",
// "extensions/toMathML.js", // only remove `toMathML.js` if you know exactly what you are doing.
"unpacked/extensions/FontWarnings.js",
"unpacked/extensions/HelpDialog.js",
"unpacked/extensions/MatchWebFonts.js",
"unpacked/extensions/MathEvents.js",
"unpacked/extensions/MathMenu.js",
"unpacked/extensions/MathZoom.js",
"unpacked/extensions/Safe.js",
"unpacked/extensions/CHTML-preview.js"
// "unpacked/extensions/toMathML.js", // only remove `toMathML.js` if you know exactly what you are doing.
],
images: [
"images" // these are used in the menu. Removing them will give you 404 errors but nothing will break.
],
notcode: [
//".gitignore",
"docs",
"test",
"CONTRIBUTING.md",
"README-branch.txt",
"README.md",
"bower.json",
"composer.json",
".npmignore",
"package.json",
".travis.yml"
]
},
"regex-replace": {
// disable image fonts in default HTML-CSS config
noImageFont: {
src: ['unpacked/jax/output/HTML-CSS/config.js',
'config/default.js'],
actions: [
{
name: 'nullImageFont',
search: /imageFont:[^,]+,/,
replace: 'imageFont: null,',
}
]
}
}
});
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks('grunt-regex-replace');
grunt.registerTask("component", [
// components-mathjax excludes only PNG fonts
"regex-replace:noImageFont",
"clean:png",
]);
grunt.registerTask("template", [
// **Notes** on the template. When instructions say "Pick one", this means commenting out one item (so that it"s not cleaned).
//
// Early choices.
"clean:unpacked",
"clean:packed", // pick one -- packed for production, unpacked for development.
"clean:allConfigs", // if you do not need any combined configuration files.
// Fonts. Pick at least one! Check notes above on configurations.
"clean:fontAsana",
"clean:fontGyrePagella",
"clean:fontGyreTermes",
"clean:fontLatinModern",
"clean:fontNeoEuler",
"clean:fontStix",
"clean:fontStixWeb",
"clean:fontTeX",
// Font formats. Pick at least one (unless you use SVG output; then clean all).
"clean:dropFonts", // when using SVG output
"clean:eot",
"clean:otf",
"clean:png",
"regex-replace:noImageFont",
"clean:svg",
"clean:woff",
// Input. Pick at least one.
"clean:asciimathInput",
"clean:mathmlInput",
"clean:texInput",
// Output
"clean:htmlCssOutput",
"clean:mathmlOutput",
"clean:svgOutput",
// Extensions. You probably want to leave the set matching your choices.
"clean:extensionsAsciimath",
"clean:extensionsMathml",
"clean:extensionsTeX",
"clean:extensionHtmlCss",
// Other items
"clean:locales",
"clean:miscConfig",
// "clean:miscExtensions", // you probably want that
"clean:images",
"clean:notcode"
]);
grunt.registerTask("racket-mini", [
// Early choices.
"clean:unpacked",
// "clean:packed", // pick one -- packed for production, unpacked for development.
//"clean:allConfigs", // if you do not need any combined configuration files.
// Fonts. Pick at least one! Check notes above on configurations.
"clean:fontAsana",
"clean:fontGyrePagella",
"clean:fontGyreTermes",
"clean:fontLatinModern",
"clean:fontNeoEuler",
"clean:fontStix",
//"clean:fontStixWeb",
// "clean:fontTeX",
// Font formats. Pick at least one (unless you use SVG output; then clean all).
//"clean:dropFonts", // when using SVG output
"clean:eot",
"clean:otf",
"clean:png",
//"clean:svg",
//"clean:woff",
// Input. Pick at least one.
//"clean:asciimathInput",
//"clean:mathmlInput",
//"clean:texInput",
// Output
//"clean:htmlCssOutput",
//"clean:mathmlOutput",
// "clean:svgOutput",
// Extensions. You probably want to leave the set matching your choices.
//"clean:extensionsAsciimath",
//"clean:extensionsMathml",
//"clean:extensionsTeX",
//"clean:extensionHtmlCss",
// Other items
// "clean:locales",
"clean:miscConfig",
"clean:fullConfig",
"clean:restConfig",
// "clean:miscExtensions", // you probably want that
//"clean:images",
"clean:notcode"
]);
grunt.registerTask("mjNode", [
"clean:packed",
"clean:allConfigs",
"clean:dropFonts",
"clean:htmlCssOutput",
"clean:locales",
"clean:miscConfig",
"clean:images",
"clean:notcode",
"clean:miscExtensions"
]);
};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
This is release branch v2.2 of MathJax.

View File

@ -31,10 +31,17 @@ See <http://www.mathjax.org/> for additional details.
## Installation and Usage ## Installation and Usage
The MathJax installation and usage documentation is available in the The MathJax installation and usage documentation is available in a
`docs/html` directory of the MathJax distribution (see separate GitHub repository at
`docs/html/index.html` for the starting point). The documents are also
available on the MathJax web site on line at <http://www.mathjax.org/resources/docs/>. https://github.com/mathjax/mathjax-docs
The HTML versions are now available at
http://docs.mathjax.org/
where it is possible for you to submit corrections and modifications
directly to the documentation on line.
## Community ## Community

11
bower.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "MathJax",
"main": "./MathJax.js",
"homepage": "http://www.mathjax.org/",
"ignore": [
"**/.*",
"node_modules",
"components"
],
"keywords": ["math", "js", "LaTeX", "MathML", "AsciiMath"]
}

14
composer.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "mathjax/mathjax",
"type": "library",
"description": "MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.",
"keywords": ["math", "js", "LaTeX", "MathML", "AsciiMath"],
"homepage": "http://www.mathjax.org/",
"license": "Apache-2.0",
"authors": [
{
"name": "MathJax Consortium",
"homepage": "https://github.com/mathjax"
}
]
}

50
config/AM_CHTML-full.js Normal file

File diff suppressed because one or more lines are too long

46
config/AM_CHTML.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

50
config/AM_SVG-full.js Normal file

File diff suppressed because one or more lines are too long

44
config/AM_SVG.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

50
config/MML_CHTML-full.js Normal file

File diff suppressed because one or more lines are too long

46
config/MML_CHTML.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

50
config/MML_SVG-full.js Normal file

File diff suppressed because one or more lines are too long

46
config/MML_SVG.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/config/MMLorHTML.js * /MathJax/config/MMLorHTML.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
(function(c,g){var f="2.2";var a=MathJax.Hub.CombineConfig("MMLorHTML",{prefer:{MSIE:"MML",Firefox:"HTML",Opera:"HTML",Chrome:"HTML",Safari:"HTML",other:"HTML"}});var e={Firefox:3,Opera:9.52,MSIE:6,Chrome:0.3,Safari:2,Konqueror:4};var b=(g.version==="0.0"||g.versionAtLeast(e[g]||0));var d=(g.isFirefox&&g.versionAtLeast("1.5"))||(g.isMSIE&&g.hasMathPlayer)||(g.isSafari&&g.versionAtLeast("5.0"))||(g.isOpera&&g.versionAtLeast("9.52"));c.Register.StartupHook("End Config",function(){var h=(a.prefer&&typeof(a.prefer)==="object"?a.prefer[MathJax.Hub.Browser]||a.prefer.other||"HTML":a.prefer);if(b||d){if(d&&(h==="MML"||!b)){if(MathJax.OutputJax.NativeMML){MathJax.OutputJax.NativeMML.Register("jax/mml")}else{c.config.jax.unshift("output/NativeMML")}c.Startup.signal.Post("NativeMML output selected")}else{if(MathJax.OutputJax["HTML-CSS"]){MathJax.OutputJax["HTML-CSS"].Register("jax/mml")}else{c.config.jax.unshift("output/HTML-CSS")}c.Startup.signal.Post("HTML-CSS output selected")}}else{c.PreProcess.disabled=true;c.prepareScripts.disabled=true;MathJax.Message.Set(["MathJaxNotSupported","Your browser does not support MathJax"],null,4000);c.Startup.signal.Post("MathJax not supported")}})})(MathJax.Hub,MathJax.Hub.Browser);MathJax.Ajax.loadComplete("[MathJax]/config/MMLorHTML.js"); (function(c,g){var f="2.6.0";var a=MathJax.Hub.CombineConfig("MMLorHTML",{prefer:{MSIE:"MML",Firefox:"HTML",Opera:"HTML",Chrome:"HTML",Safari:"HTML",other:"HTML"}});var e={Firefox:3,Opera:9.52,MSIE:6,Chrome:0.3,Safari:2,Konqueror:4};var b=(g.version==="0.0"||g.versionAtLeast(e[g]||0));var d=(g.isFirefox&&g.versionAtLeast("1.5"))||(g.isMSIE&&g.hasMathPlayer)||(g.isSafari&&g.versionAtLeast("5.0"))||(g.isOpera&&g.versionAtLeast("9.52"));c.Register.StartupHook("End Config",function(){var h=(a.prefer&&typeof(a.prefer)==="object"?a.prefer[MathJax.Hub.Browser]||a.prefer.other||"HTML":a.prefer);if(b||d){if(d&&(h==="MML"||!b)){if(MathJax.OutputJax.NativeMML){MathJax.OutputJax.NativeMML.Register("jax/mml")}else{c.config.jax.unshift("output/NativeMML")}c.Startup.signal.Post("NativeMML output selected")}else{if(MathJax.OutputJax["HTML-CSS"]){MathJax.OutputJax["HTML-CSS"].Register("jax/mml")}else{c.config.jax.unshift("output/HTML-CSS")}c.Startup.signal.Post("HTML-CSS output selected")}}else{c.PreProcess.disabled=true;c.prepareScripts.disabled=true;MathJax.Message.Set(["MathJaxNotSupported","Your browser does not support MathJax"],null,4000);c.Startup.signal.Post("MathJax not supported")}})})(MathJax.Hub,MathJax.Hub.Browser);MathJax.Ajax.loadComplete("[MathJax]/config/MMLorHTML.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/config/Safe.js * /MathJax/config/Safe.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Hub.Register.StartupHook("End Config",function(){if(!MathJax.Hub.config.extensions){MathJax.Hub.config.extensions=[]}MathJax.Hub.config.extensions.push("Safe.js")});MathJax.Ajax.loadComplete("[MathJax]/config/Safe.js"); MathJax.Hub.Register.StartupHook("End Config",function(){if(!MathJax.Hub.config.extensions){MathJax.Hub.config.extensions=[]}MathJax.Hub.config.extensions.push("Safe.js")});MathJax.Ajax.loadComplete("[MathJax]/config/Safe.js");

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

54
config/TeX-AMS_CHTML.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

54
config/TeX-AMS_SVG.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

66
config/TeX-MML-AM_SVG.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@
* *
* --------------------------------------------------------------------- * ---------------------------------------------------------------------
* *
* Copyright (c) 2009-2013 The MathJax Consortium * Copyright (c) 2009-2015 The MathJax Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -76,17 +76,32 @@ MathJax.Hub.Config({
// A comma-separated list of input and output jax to initialize at startup. // A comma-separated list of input and output jax to initialize at startup.
// Their main code is loaded only when they are actually used, so it is not // Their main code is loaded only when they are actually used, so it is not
// inefficient to include jax that may not actually be used on the page. These // inefficient to include jax that may not actually be used on the page. These
// are found in the MathJax/jax directory. // are found in the MathJax/jax directory. The choices include
// //
jax: ["input/TeX","output/HTML-CSS"], // input/TeX
// input/MathML
// input/AsciiMath
//
// output/HTML-CSS
// output/NativeMML
// output/SVG
//
// If you change the input jax, you may need to include the appropriate
// preprocessor in the extensions array below.
//
jax: ["input/TeX", "output/HTML-CSS"],
// //
// A comma-separated list of extensions to load at startup. The default // A comma-separated list of extensions to load at startup. The default
// directory is MathJax/extensions. // directory is MathJax/extensions.
// //
// Example: extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"], // Example: extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
//
// You may wish to include "mml2jax.js" if you are using "input/MathML" in the
// jax array above, and "asciimath2jax.js" if you using "input/AsciiMath".
// Include "jsmath2jax.js" if you are converting from using jsMath to MathJax.
// //
extensions: ["tex2jax.js"], extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
// //
// Patterns to remove from before and after math script tags. If you are not // Patterns to remove from before and after math script tags. If you are not
@ -154,10 +169,12 @@ MathJax.Hub.Config({
// These two parameters control the alignment and shifting of displayed equations. // These two parameters control the alignment and shifting of displayed equations.
// The first can be "left", "center", or "right", and determines the alignment of // The first can be "left", "center", or "right", and determines the alignment of
// displayed equations. When the alignment is not "center", the second determines // displayed equations. When the alignment is not "center", the second determines
// an indentation from the left or right side for the displayed equations. // an indentation from the left or right side for the displayed equations. When
// the alignment is "center", the indent allows you to shift the center to the right
// or left (negative is left).
// //
displayAlign: "center", displayAlign: "center",
displayIndent: "0em", displayIndent: "0",
// //
// Normally MathJax will perform its starup commands (loading of // Normally MathJax will perform its starup commands (loading of
@ -195,7 +212,7 @@ MathJax.Hub.Config({
// reposition the browser to the #hash location from the page URL after // reposition the browser to the #hash location from the page URL after
// typesetting for the page. // typesetting for the page.
// //
positionToHash: false, positionToHash: true,
// //
// These control whether to attach the MathJax contextual menu to the // These control whether to attach the MathJax contextual menu to the
@ -223,12 +240,19 @@ MathJax.Hub.Config({
ALT: false, // require Alt or Option? ALT: false, // require Alt or Option?
CMD: false, // require CMD? CMD: false, // require CMD?
Shift: false, // require Shift? Shift: false, // require Shift?
discoverable: false, // make math menu discoverable on hover?
zscale: "200%", // the scaling factor for MathZoom zscale: "200%", // the scaling factor for MathZoom
renderer: null, // set when Jax are loaded
font: "Auto", // what font HTML-CSS should use font: "Auto", // what font HTML-CSS should use
context: "MathJax", // or "Browser" for pass-through to browser menu context: "MathJax", // or "Browser" for pass-through to browser menu
locale: null, // the language to use for messages
mpContext: false, // true means pass menu events to MathPlayer in IE mpContext: false, // true means pass menu events to MathPlayer in IE
mpMouse: false, // true means pass mouse events to MathPlayer in IE mpMouse: false, // true means pass mouse events to MathPlayer in IE
texHints: true // include class names for TeXAtom elements texHints: true, // include class names for TeXAtom elements
FastPreview: null, // use PreviewHTML output as preview?
assistiveMML: null, // include hidden MathML for screen readers?
inTabOrder: true, // set to true if math elements should be included in the tabindex
semantics: false // add semantics tag with original form in MathML output
}, },
// //
@ -237,8 +261,7 @@ MathJax.Hub.Config({
// jax that prevents it from operating properly). // jax that prevents it from operating properly).
// //
errorSettings: { errorSettings: {
message: ["[Math Processing Error]"], // HTML snippet structure for message to use message: ["[",["MathProcessingError","Math Processing Error"],"]"],
messageId: "MathProcessingError", // ID of snippet for localization
style: {color: "#CC0000", "font-style":"italic"} // style for message style: {color: "#CC0000", "font-style":"italic"} // style for message
}, },
@ -293,7 +316,7 @@ MathJax.Hub.Config({
// as listed below). You can add to (or remove from) this list to prevent // as listed below). You can add to (or remove from) this list to prevent
// MathJax from processing mathematics in specific contexts. // MathJax from processing mathematics in specific contexts.
// //
skipTags: ["script","noscript","style","textarea","pre","code"], skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
// //
// This is the class name used to mark elements whose contents should // This is the class name used to mark elements whose contents should
@ -380,7 +403,7 @@ MathJax.Hub.Config({
// as listed below). You can add to (or remove from) this list to prevent // as listed below). You can add to (or remove from) this list to prevent
// MathJax from processing mathematics in specific contexts. // MathJax from processing mathematics in specific contexts.
// //
skipTags: ["script","noscript","style","textarea","pre","code"], skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],
// //
// This is the class name used to mark elements whose contents should // This is the class name used to mark elements whose contents should
@ -433,12 +456,15 @@ MathJax.Hub.Config({
// //
// Controls whether mml2jax inserts MathJax_Preview spans to make a // Controls whether mml2jax inserts MathJax_Preview spans to make a
// preview available, and what preview to use, whrn it locates // preview available, and what preview to use, when it locates
// mathematics on the page. The default is "alttext", which means use // mathematics on the page. The default is "mathml" which means use
// the <math> tag's alttext attribute as the preview (until it is // the <math> tag as the preview (until it is processed by MathJax).
// processed by MathJax), if the tag has one. Set to "none" to // Set to "alttext", to use the <math> tag's alttext attribute as the
// preview, if the tag has one. Set to "none" to
// prevent the previews from being inserted (the math will simply // prevent the previews from being inserted (the math will simply
// disappear until it is typeset). Set to an array containing the // disappear until it is typeset). Set to "altimg" to use an image
// described by the altimg* attributes of the <math> element.
// Set to an array containing the
// description of an HTML snippet in order to use the same preview for // description of an HTML snippet in order to use the same preview for
// all equations on the page (e.g., you could have it say "[math]" or // all equations on the page (e.g., you could have it say "[math]" or
// load an image). // load an image).
@ -446,7 +472,7 @@ MathJax.Hub.Config({
// E.g., preview: ["[math]"], // E.g., preview: ["[math]"],
// or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]] // or preview: [["img",{src: "http://myserver.com/images/mypic.jpg"}]]
// //
preview: "alttext" preview: "mathml"
}, },
@ -490,7 +516,7 @@ MathJax.Hub.Config({
// //
// This is the amound of indentation (from right or left) for the tags. // This is the amound of indentation (from right or left) for the tags.
// //
TagIndent: ".8em", TagIndent: "0.8em",
// //
// This is the width to use for the multline environment // This is the width to use for the multline environment
@ -567,6 +593,22 @@ MathJax.Hub.Config({
// These parameters control the AsciiMath input jax. // These parameters control the AsciiMath input jax.
// //
AsciiMath: { AsciiMath: {
//
// Determines whether the unicode positions for phi and varphi are
// to be swapped or not. (Unicode originally had these reversed, and
// many fonts have them reversed as well.) When set to true, phi
// and varphi will correspond to the LaTeX macros of the same name.
//
fixphi: true,
//
// Determines whether the MathML should be marked so that the HTML-CSS
// and SVG output jax will use MathML spacing rules rather than TeX
// spacing rules. Since AsciiMath was designed for MathML output, the
// MathML rules are used by default.
//
useMathMLspacing: true,
// //
// Determines whether limits are placed above and below operators, // Determines whether limits are placed above and below operators,
// or next to them. (AsciiMath doesn't have separate in-line and // or next to them. (AsciiMath doesn't have separate in-line and
@ -700,6 +742,25 @@ MathJax.Hub.Config({
EqnChunkFactor: 1.5, EqnChunkFactor: 1.5,
EqnChunkDelay: 100, EqnChunkDelay: 100,
//
// This option indicates whether MathJax should try to correct the
// x-height of equations to match the size of the surrounding text.
//
matchFontHeight: true,
//
// When true, MathJax will not measure the widths or heights of the
// subexpressions as it creates its output, but instead will rely on
// its internal calculautions based on teh bounding boxes of the
// characters it uses, and will only take measurements when it
// absolutely has to. Since measurements cause display reflows, they
// slows down MathJax considerably, so without them MathJax runs
// faster, but can produce slightly less accurate character placements,
// especially in width fractions or roots.
//
noReflows: true,
// //
// These settings control automatic line breaking. It is off by // These settings control automatic line breaking. It is off by
// default, so only explicit line breaks are performed (via // default, so only explicit line breaks are performed (via
@ -779,6 +840,10 @@ MathJax.Hub.Config({
// //
minScaleAdjust: 50, minScaleAdjust: 50,
// This option indicates whether MathJax should try to correct the
// x-height of equations to match the size of the surrounding text.
matchFontHeight: true,
// //
// This allows you to define or modify the styles used to display // This allows you to define or modify the styles used to display
// various math elements created by MathJax. // various math elements created by MathJax.
@ -872,6 +937,10 @@ MathJax.Hub.Config({
EqnChunkFactor: 1.5, EqnChunkFactor: 1.5,
EqnChunkDelay: 100, EqnChunkDelay: 100,
// This option indicates whether MathJax should try to correct the
// x-height of equations to match the size of the surrounding text.
matchFontHeight: true,
// //
// These settings control automatic line breaking. It is off by // These settings control automatic line breaking. It is off by
// default, so only explicit line breaks are performed (via // default, so only explicit line breaks are performed (via
@ -907,6 +976,17 @@ MathJax.Hub.Config({
width: "container" width: "container"
}, },
//
// These are the styles used for merror elements in SVG output. Note
// that only a limited number of style attributes are supported by
// SVG, but you can at least change the colors and borders.
//
//
merrorStyle: {
fontSize:"90%", color:"#C00", background:"#FF8",
border: "1px solid #C00", padding:"3px"
},
// //
// This allows you to define or modify the styles used to display // This allows you to define or modify the styles used to display
// various math elements created by MathJax. // various math elements created by MathJax.
@ -962,6 +1042,20 @@ MathJax.Hub.Config({
showFontMenu: false, showFontMenu: false,
showContext: false, showContext: false,
showDiscoverable: false, showDiscoverable: false,
//
// These are the settings for the Annotation menu. If the <math> root has
// a <semantics> child that contains one of the following annotation
// formats, the source will be available via the "Show Math As" menu.
// Each format has a list of possible encodings.
//
semanticsAnnotations: {
"TeX": ["TeX", "LaTeX", "application/x-tex"],
"StarMath": ["StarMath 5.0"],
"Maple": ["Maple"],
"ContentMathML": ["MathML-Content", "application/mathml-content+xml"],
"OpenMath": ["OpenMath"]
},
// //
// These are the settings for the Show Source window. The initial // These are the settings for the Show Source window. The initial

View File

@ -12,7 +12,7 @@
* *
* --------------------------------------------------------------------- * ---------------------------------------------------------------------
* *
* Copyright (c) 2009-2013 The MathJax Consortium * Copyright (c) 2009-2015 The MathJax Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -0,0 +1,19 @@
/*
* /MathJax/extensions/AssistiveMML.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function(a,e,b,f){var c=b.config.menuSettings;var d=MathJax.Extension.AssistiveMML={version:"2.6.1",config:b.CombineConfig("AssistiveMML",{disabled:false,styles:{".MJX_Assistive_MathML":{position:"absolute!important",top:0,left:0,clip:(b.Browser.isMSIE&&(document.documentMode||0)<8?"rect(1px 1px 1px 1px)":"rect(1px, 1px, 1px, 1px)"),padding:"1px 0 0 0!important",border:"0!important",height:"1px!important",width:"1px!important",overflow:"hidden!important",display:"block!important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},".MJX_Assistive_MathML.MJX_Assistive_MathML_Block":{width:"100%!important"}}}),Config:function(){if(!this.config.disabled&&c.assistiveMML==null){b.Config({menuSettings:{assistiveMML:true}})}a.Styles(this.config.styles);b.Register.MessageHook("End Math",function(g){if(c.assistiveMML){return d.AddAssistiveMathML(g[1])}})},AddAssistiveMathML:function(g){var h={jax:b.getAllJax(g),i:0,callback:MathJax.Callback({})};this.HandleMML(h);return h.callback},RemoveAssistiveMathML:function(k){var h=b.getAllJax(k),l;for(var j=0,g=h.length;j<g;j++){l=document.getElementById(h[j].inputID+"-Frame");if(l&&l.getAttribute("data-mathml")){l.removeAttribute("data-mathml");if(l.lastChild&&l.lastChild.className.match(/MJX_Assistive_MathML/)){l.removeChild(l.lastChild)}}}},HandleMML:function(l){var g=l.jax.length,h,i,n,j;while(l.i<g){h=l.jax[l.i];n=document.getElementById(h.inputID+"-Frame");if(h.outputJax!=="NativeMML"&&n&&!n.getAttribute("data-mathml")){try{i=h.root.toMathML("").replace(/\n */g,"").replace(/<!--.*?-->/g,"")}catch(k){if(!k.restart){throw k}return MathJax.Callback.After(["HandleMML",this,l],k.restart)}n.setAttribute("data-mathml",i);j=f.addElement(n,"span",{isMathJax:true,unselectable:"on",className:"MJX_Assistive_MathML"+(h.root.Get("display")==="block"?" MJX_Assistive_MathML_Block":"")});j.innerHTML=i;n.style.position="relative";n.setAttribute("role","presentation");n.firstChild.setAttribute("aria-hidden","true");j.setAttribute("role","presentation")}l.i++}l.callback()}};b.Startup.signal.Post("AssistiveMML Ready")})(MathJax.Ajax,MathJax.Callback,MathJax.Hub,MathJax.HTML);MathJax.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/extensions/toMathML.js"],["loadComplete",MathJax.Ajax,"[MathJax]/extensions/AssistiveMML.js"],function(){MathJax.Hub.Register.StartupHook("End Config",["Config",MathJax.Extension.AssistiveMML])});

View File

@ -0,0 +1,19 @@
/*
* /MathJax/extensions/CHTML-preview.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
MathJax.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/extensions/fast-preview.js"],["loadComplete",MathJax.Ajax,"[MathJax]/extensions/CHTML-preview.js"]);

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/FontWarnings.js * /MathJax/extensions/FontWarnings.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
(function(b,d){var i="2.2";var a="http://www.stixfonts.org/";var f="https://github.com/mathjax/MathJax/tree/master/fonts/HTML-CSS/TeX/otf";var h=b.CombineConfig("FontWarnings",{messageStyle:{position:"fixed",bottom:"4em",left:"3em",width:"40em",border:"3px solid #880000","background-color":"#E0E0E0",color:"black",padding:"1em","font-size":"small","white-space":"normal","border-radius":".75em","-webkit-border-radius":".75em","-moz-border-radius":".75em","-khtml-border-radius":".75em","box-shadow":"4px 4px 10px #AAAAAA","-webkit-box-shadow":"4px 4px 10px #AAAAAA","-moz-box-shadow":"4px 4px 10px #AAAAAA","-khtml-box-shadow":"4px 4px 10px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=3, OffY=3, Color='gray', Positive='true')"},Message:{webFont:[["closeBox"],["webFont","MathJax is using web-based fonts to display the mathematics on this page. These take time to download, so the page would render faster if you installed math fonts directly in your system's font folder."],["fonts"]],imageFonts:[["closeBox"],["imageFonts","MathJax is using its image fonts rather than local or web-based fonts. This will render slower than usual, and the mathematics may not print at the full resolution of your printer."],["fonts"],["webfonts"]],noFonts:[["closeBox"],["noFonts","MathJax is unable to locate a font to use to display its mathematics, and image fonts are not available, so it is falling back on generic unicode characters in hopes that your browser will be able to display them. Some characters may not show up properly, or possibly not at all."],["fonts"],["webfonts"]]},HTML:{closeBox:[["div",{style:{position:"absolute",overflow:"hidden",top:".1em",right:".1em",border:"1px outset",width:"1em",height:"1em","text-align":"center",cursor:"pointer","background-color":"#EEEEEE",color:"#606060","border-radius":".5em","-webkit-border-radius":".5em","-moz-border-radius":".5em","-khtml-border-radius":".5em"},onclick:function(){if(c.div&&c.fade===0){if(c.timer){clearTimeout(c.timer)}c.div.style.display="none"}}},[["span",{style:{position:"relative",bottom:".2em"}},["x"]]]]],webfonts:[["p"],["webfonts","Most modern browsers allow for fonts to be downloaded over the web. Updating to a more recent version of your browser (or changing browsers) could improve the quality of the mathematics on this page."]],fonts:[["p"],["fonts","MathJax can use either the [STIX fonts](%1) or the [MathJax TeX fonts](%2). Download and install one of those fonts to improve your MathJax experience.",a,f]],STIXfonts:[["p"],["STIXPage","This page is designed to use the [STIX fonts](%1). Download and install those fonts to improve your MathJax experience.",a]],TeXfonts:[["p"],["TeXPage","This page is designed to use the [MathJax TeX fonts](%1). Download and install those fonts to improve your MathJax experience.",f]]},removeAfter:12*1000,fadeoutSteps:10,fadeoutTime:1.5*1000});if(MathJax.Hub.Browser.isIE9&&document.documentMode>=9){delete h.messageStyle.filter}var c={div:null,fade:0};var e=function(m){if(c.div){return}var j=MathJax.OutputJax["HTML-CSS"],n=document.body;if(b.Browser.isMSIE){if(h.messageStyle.position==="fixed"){MathJax.Message.Init();n=document.getElementById("MathJax_MSIE_Frame");h.messageStyle.position="absolute"}}else{delete h.messageStyle.filter}h.messageStyle.maxWidth=(document.body.clientWidth-75)+"px";var k=0;while(k<m.length){if(m[k] instanceof Array){if(m[k].length===1&&h.HTML[m[k][0]]){m.splice.apply(m,[k,1].concat(h.HTML[m[k][0]]))}else{if(typeof m[k][1]==="string"){var l=MathJax.Localization.lookupPhrase(["FontWarnings",m[k][0]],m[k][1]);l=MathJax.Localization.processString(l,m[k].slice(2),"FontWarnings");m.splice.apply(m,[k,1].concat(l));k+=l.length}else{k++}}}else{k++}}c.div=j.addElement(n,"div",{id:"MathJax_FontWarning",style:h.messageStyle},m);MathJax.Localization.setCSS(c.div);if(h.removeAfter){b.Register.StartupHook("End",function(){c.timer=setTimeout(g,h.removeAfter)})}d.Cookie.Set("fontWarn",{warned:true})};var g=function(){c.fade++;if(c.timer){delete c.timer}if(c.fade<h.fadeoutSteps){var j=1-c.fade/h.fadeoutSteps;c.div.style.opacity=j;c.div.style.filter="alpha(opacity="+Math.floor(100*j)+")";setTimeout(g,h.fadeoutTime/h.fadeoutSteps)}else{c.div.style.display="none"}};if(!d.Cookie.Get("fontWarn").warned){b.Startup.signal.Interest(function(m){if(m.match(/HTML-CSS Jax - /)&&!c.div){var j=MathJax.OutputJax["HTML-CSS"],n=j.config.availableFonts,l;var k=(n&&n.length);if(!k){h.HTML.fonts=[""]}else{if(n.length===1){h.HTML.fonts=h.HTML[n[0]+"fonts"]}}if(j.allowWebFonts){h.HTML.webfonts=[""]}if(m.match(/- Web-Font/)){if(k){l="webFont"}}else{if(m.match(/- using image fonts/)){l="imageFonts"}else{if(m.match(/- no valid font/)){l="noFonts"}}}if(l&&h.Message[l]){MathJax.Localization.loadDomain("FontWarnings",[e,h.Message[l]])}}})}})(MathJax.Hub,MathJax.HTML);MathJax.Ajax.loadComplete("[MathJax]/extensions/FontWarnings.js"); (function(b,d){var i="2.6.0";var a="http://www.stixfonts.org/";var f="https://github.com/mathjax/MathJax/tree/master/fonts/HTML-CSS/TeX/otf";var h=b.CombineConfig("FontWarnings",{messageStyle:{position:"fixed",bottom:"4em",left:"3em",width:"40em",border:"3px solid #880000","background-color":"#E0E0E0",color:"black",padding:"1em","font-size":"small","white-space":"normal","border-radius":".75em","-webkit-border-radius":".75em","-moz-border-radius":".75em","-khtml-border-radius":".75em","box-shadow":"4px 4px 10px #AAAAAA","-webkit-box-shadow":"4px 4px 10px #AAAAAA","-moz-box-shadow":"4px 4px 10px #AAAAAA","-khtml-box-shadow":"4px 4px 10px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=3, OffY=3, Color='gray', Positive='true')"},Message:{webFont:[["closeBox"],["webFont","MathJax is using web-based fonts to display the mathematics on this page. These take time to download, so the page would render faster if you installed math fonts directly in your system's font folder."],["fonts"]],imageFonts:[["closeBox"],["imageFonts","MathJax is using its image fonts rather than local or web-based fonts. This will render slower than usual, and the mathematics may not print at the full resolution of your printer."],["fonts"],["webFonts"]],noFonts:[["closeBox"],["noFonts","MathJax is unable to locate a font to use to display its mathematics, and image fonts are not available, so it is falling back on generic unicode characters in hopes that your browser will be able to display them. Some characters may not show up properly, or possibly not at all."],["fonts"],["webFonts"]]},HTML:{closeBox:[["div",{style:{position:"absolute",overflow:"hidden",top:".1em",right:".1em",border:"1px outset",width:"1em",height:"1em","text-align":"center",cursor:"pointer","background-color":"#EEEEEE",color:"#606060","border-radius":".5em","-webkit-border-radius":".5em","-moz-border-radius":".5em","-khtml-border-radius":".5em"},onclick:function(){if(c.div&&c.fade===0){if(c.timer){clearTimeout(c.timer)}c.div.style.display="none"}}},[["span",{style:{position:"relative",bottom:".2em"}},["x"]]]]],webFonts:[["p"],["webFonts","Most modern browsers allow for fonts to be downloaded over the web. Updating to a more recent version of your browser (or changing browsers) could improve the quality of the mathematics on this page."]],fonts:[["p"],["fonts","MathJax can use either the [STIX fonts](%1) or the [MathJax TeX fonts](%2). Download and install one of those fonts to improve your MathJax experience.",a,f]],STIXfonts:[["p"],["STIXPage","This page is designed to use the [STIX fonts](%1). Download and install those fonts to improve your MathJax experience.",a]],TeXfonts:[["p"],["TeXPage","This page is designed to use the [MathJax TeX fonts](%1). Download and install those fonts to improve your MathJax experience.",f]]},removeAfter:12*1000,fadeoutSteps:10,fadeoutTime:1.5*1000});if(MathJax.Hub.Browser.isIE9&&document.documentMode>=9){delete h.messageStyle.filter}var c={div:null,fade:0};var e=function(m){if(c.div){return}var j=MathJax.OutputJax["HTML-CSS"],n=document.body;if(b.Browser.isMSIE){if(h.messageStyle.position==="fixed"){MathJax.Message.Init();n=document.getElementById("MathJax_MSIE_Frame")||n;if(n!==document.body){h.messageStyle.position="absolute"}}}else{delete h.messageStyle.filter}h.messageStyle.maxWidth=(document.body.clientWidth-75)+"px";var k=0;while(k<m.length){if(m[k] instanceof Array){if(m[k].length===1&&h.HTML[m[k][0]]){m.splice.apply(m,[k,1].concat(h.HTML[m[k][0]]))}else{if(typeof m[k][1]==="string"){var l=MathJax.Localization.lookupPhrase(["FontWarnings",m[k][0]],m[k][1]);l=MathJax.Localization.processMarkdown(l,m[k].slice(2),"FontWarnings");m.splice.apply(m,[k,1].concat(l));k+=l.length}else{k++}}}else{k++}}c.div=j.addElement(n,"div",{id:"MathJax_FontWarning",style:h.messageStyle},m);MathJax.Localization.setCSS(c.div);if(h.removeAfter){b.Register.StartupHook("End",function(){c.timer=setTimeout(g,h.removeAfter)})}d.Cookie.Set("fontWarn",{warned:true})};var g=function(){c.fade++;if(c.timer){delete c.timer}if(c.fade<h.fadeoutSteps){var j=1-c.fade/h.fadeoutSteps;c.div.style.opacity=j;c.div.style.filter="alpha(opacity="+Math.floor(100*j)+")";setTimeout(g,h.fadeoutTime/h.fadeoutSteps)}else{c.div.style.display="none"}};if(!d.Cookie.Get("fontWarn").warned){b.Startup.signal.Interest(function(m){if(m.match(/HTML-CSS Jax - /)&&!c.div){var j=MathJax.OutputJax["HTML-CSS"],n=j.config.availableFonts,l;var k=(n&&n.length);if(!k){h.HTML.fonts=[""]}else{if(n.length===1){h.HTML.fonts=h.HTML[n[0]+"fonts"]}}if(j.allowWebFonts){h.HTML.webfonts=[""]}if(m.match(/- Web-Font/)){if(k){l="webFont"}}else{if(m.match(/- using image fonts/)){l="imageFonts"}else{if(m.match(/- no valid font/)){l="noFonts"}}}if(l&&h.Message[l]){MathJax.Localization.loadDomain("FontWarnings",[e,h.Message[l]])}}})}})(MathJax.Hub,MathJax.HTML);MathJax.Ajax.loadComplete("[MathJax]/extensions/FontWarnings.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/HTML-CSS/handle-floats.js * /MathJax/extensions/HTML-CSS/handle-floats.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["HTML-CSS/handle-floats"]={version:"2.2"};MathJax.Hub.Config({"HTML-CSS":{styles:{".MathJax_Display":{display:"table-cell",padding:"1em 0 ! important",width:(MathJax.Hub.Browser.isMSIE&&(document.documentMode||0)<8?"100%":"1000em")}}}});MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var a=MathJax.OutputJax["HTML-CSS"],b=a.Translate;a.Augment({Translate:function(c,f){b.call(this,c,f);if(c.MathJax.elementJax.HTMLCSS.display){var e=c.nextSibling;if(!e||e.className!=="MathJax_MSIE_Separator"){var d=a.Element("span",{className:"MathJax_MSIE_Separator"});c.parentNode.insertBefore(d,e)}}}});MathJax.Hub.Startup.signal.Post("HTML-CSS handle-floats Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/HTML-CSS/handle-floats.js"); MathJax.Extension["HTML-CSS/handle-floats"]={version:"2.6.0"};MathJax.Hub.Config({"HTML-CSS":{styles:{".MathJax_Display":{display:"table-cell",padding:"1em 0 ! important",width:(MathJax.Hub.Browser.isMSIE&&(document.documentMode||0)<8?"100%":"1000em")}}}});MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var a=MathJax.OutputJax["HTML-CSS"],b=a.Translate;a.Augment({Translate:function(c,f){b.apply(this,arguments);if(c.MathJax.elementJax.HTMLCSS.display){var e=c.nextSibling;if(!e||e.className!=="MathJax_MSIE_Separator"){var d=a.Element("span",{className:"MathJax_MSIE_Separator"});c.parentNode.insertBefore(d,e)}}}});MathJax.Hub.Startup.signal.Post("HTML-CSS handle-floats Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/HTML-CSS/handle-floats.js");

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,19 @@
/*
* /MathJax/extensions/MatchWebFonts.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function(c,b){var d="2.6.0";var a=MathJax.Hub.CombineConfig("MatchWebFonts",{matchFor:{"HTML-CSS":true,NativeMML:true,SVG:true},fontCheckDelay:500,fontCheckTimeout:15*1000,});MathJax.Extension.MatchWebFonts={version:d,config:a};c.Register.StartupHook("HTML-CSS Jax Ready",function(){var e=MathJax.OutputJax["HTML-CSS"];var f=e.postTranslate;e.Augment({postTranslate:function(h,g){if(!g&&a.matchFor["HTML-CSS"]&&this.config.matchFontHeight){b.timer.start(b,["checkFonts",this,h.jax[this.id]],a.fontCheckDelay,a.fontCheckTimeout)}return f.apply(this,arguments)},checkFonts:function(k,o){if(k.time(function(){})){return}var s=[],p,l,g=false;for(p=0,l=o.length;p<l;p++){script=o[p];if(script.parentNode&&script.MathJax.elementJax){script.parentNode.insertBefore(this.EmExSpan.cloneNode(true),script)}}for(p=0,l=o.length;p<l;p++){script=o[p];if(!script.parentNode){continue}g=true;var h=script.MathJax.elementJax;if(!h){continue}var r=script.previousSibling;var q=r.firstChild.offsetHeight/60;var j=r.lastChild.lastChild.offsetHeight/60;if(q===0||q==="NaN"){q=this.defaultEx;j=this.defaultEm}if(q!==h.HTMLCSS.ex||j!==h.HTMLCSS.em){var n=q/this.TeX.x_height/j;n=Math.floor(Math.max(this.config.minScaleAdjust/100,n)*this.config.scale);if(n/100!==h.scale){s.push(script);o[p]={}}}}o=o.concat(s);for(p=0,l=o.length;p<l;p++){script=o[p];if(script&&script.parentNode&&script.MathJax.elementJax){script.parentNode.removeChild(script.previousSibling)}}if(s.length){c.Queue(["Rerender",c,[s],{}])}if(g){setTimeout(k,k.delay)}}})});c.Register.StartupHook("SVG Jax Ready",function(){var f=MathJax.OutputJax.SVG;var e=f.postTranslate;f.Augment({postTranslate:function(h,g){if(!g&&a.matchFor.SVG){b.timer.start(b,["checkFonts",this,h.jax[this.id]],a.fontCheckDelay,a.fontCheckTimeout)}return e.apply(this,arguments)},checkFonts:function(j,l){if(j.time(function(){})){return}var q=[],n,k,g=false;for(n=0,k=l.length;n<k;n++){script=l[n];if(script.parentNode&&script.MathJax.elementJax){script.parentNode.insertBefore(this.ExSpan.cloneNode(true),script)}}for(n=0,k=l.length;n<k;n++){script=l[n];if(!script.parentNode){continue}g=true;var h=script.MathJax.elementJax;if(!h){continue}var p=script.previousSibling;var o=p.firstChild.offsetHeight/60;if(o===0||o==="NaN"){o=this.defaultEx}if(o!==h.SVG.ex){q.push(script);l[n]={}}}l=l.concat(q);for(n=0,k=l.length;n<k;n++){script=l[n];if(script.parentNode&&script.MathJax.elementJax){script.parentNode.removeChild(script.previousSibling)}}if(q.length){c.Queue(["Rerender",c,[q],{}])}if(g){setTimeout(j,j.delay)}}})});c.Register.StartupHook("NativeMML Jax Ready",function(){var e=MathJax.OutputJax.NativeMML;var f=e.postTranslate;e.Augment({postTranslate:function(g){if(!c.Browser.isMSIE&&a.matchFor.NativeMML){b.timer.start(b,["checkFonts",this,g.jax[this.id]],a.fontCheckDelay,a.fontCheckTimeout)}f.apply(this,arguments)},checkFonts:function(A,l){if(A.time(function(){})){return}var t=[],q=[],o=[],w,s,B;for(w=0,s=l.length;w<s;w++){B=l[w];if(B.parentNode&&B.MathJax.elementJax){B.parentNode.insertBefore(this.EmExSpan.cloneNode(true),B)}}for(w=0,s=l.length;w<s;w++){B=l[w];if(!B.parentNode){continue}var g=B.MathJax.elementJax;if(!g){continue}var v=document.getElementById(g.inputID+"-Frame");var k=v.getElementsByTagName("math")[0];if(!k){continue}g=g.NativeMML;var y=B.previousSibling;var z=y.firstChild.offsetWidth/60;var h=y.lastChild.offsetWidth/60;if(z===0||z==="NaN"){z=this.defaultEx;h=this.defaultMEx}var r=(z!==g.ex);if(r||h!=g.mex){var C=(this.config.matchFontHeight&&h>1?z/h:1);C=Math.floor(Math.max(this.config.minScaleAdjust/100,C)*this.config.scale);if(C/100!==g.scale){o.push([v.style,C])}g.scale=C/100;g.fontScale=C+"%";g.ex=z;g.mex=h}if("scrollWidth" in g&&(r||g.scrollWidth!==k.firstChild.scrollWidth)){g.scrollWidth=k.firstChild.scrollWidth;t.push([k.parentNode.style,g.scrollWidth/g.ex/g.scale])}if(k.MathJaxMtds){for(var u=0,p=k.MathJaxMtds.length;u<p;u++){if(!k.MathJaxMtds[u].parentNode){continue}if(r||k.MathJaxMtds[u].firstChild.scrollWidth!==g.mtds[u]){g.mtds[u]=k.MathJaxMtds[u].firstChild.scrollWidth;q.push([k.MathJaxMtds[u],g.mtds[u]/g.ex])}}}}for(w=0,s=l.length;w<s;w++){B=l[w];if(B.parentNode&&B.MathJax.elementJax){B.parentNode.removeChild(B.previousSibling)}}for(w=0,s=o.length;w<s;w++){o[w][0].fontSize=o[w][1]+"%"}for(w=0,s=t.length;w<s;w++){t[w][0].width=t[w][1].toFixed(3)+"ex"}for(w=0,s=q.length;w<s;w++){var x=q[w][0].getAttribute("style");x=x.replace(/(($|;)\s*min-width:).*?ex/,"$1 "+q[w][1].toFixed(3)+"ex");q[w][0].setAttribute("style",x)}setTimeout(A,A.delay)}})});c.Startup.signal.Post("MatchWebFonts Extension Ready");b.loadComplete("[MathJax]/extensions/MatchWebFonts.js")})(MathJax.Hub,MathJax.Ajax);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

19
extensions/MathML/mml3.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/Safe.js * /MathJax/extensions/Safe.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
(function(d,c){var f="2.2";var a=MathJax.Hub.CombineConfig("Safe",{allow:{URLs:"safe",classes:"safe",cssIDs:"safe",styles:"safe",fontsize:"all",require:"safe"},sizeMin:0.7,sizeMax:1.44,safeProtocols:{http:true,https:true,file:true,javascript:false},safeStyles:{color:true,backgroundColor:true,border:true,cursor:true,margin:true,padding:true,textShadow:true,fontFamily:true,fontSize:true,fontStyle:true,fontWeight:true,opacity:true,outline:true},safeRequire:{action:true,amscd:true,amsmath:true,amssymbols:true,autobold:false,"autoload-all":false,bbox:true,begingroup:true,boldsymbol:true,cancel:true,color:true,enclose:true,extpfeil:true,HTML:true,mathchoice:true,mhchem:true,newcommand:true,noErrors:false,noUndefined:false,unicode:true,verb:true}});var e=a.allow;if(e.fontsize!=="all"){a.safeStyles.fontSize=false}var b=MathJax.Extension.Safe={version:f,config:a,div1:document.createElement("div"),div2:document.createElement("div"),filter:{href:"filterURL",src:"filterURL",altimg:"filterURL","class":"filterClass",style:"filterStyles",id:"filterID",fontsize:"filterFontSize",mathsize:"filterFontSize",scriptminsize:"filterFontSize",scriptsizemultiplier:"filterSizeMultiplier",scriptlevel:"filterScriptLevel"},filterURL:function(g){var h=(g.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase();if(e.URLs==="none"||(e.URLs!=="all"&&!a.safeProtocols[h])){g=null}return g},filterClass:function(g){if(e.classes==="none"||(e.classes!=="all"&&!g.match(/^MJX-[-a-zA-Z0-9_.]+$/))){g=null}return g},filterID:function(g){if(e.cssIDs==="none"||(e.cssIDs!=="all"&&!g.match(/^MJX-[-a-zA-Z0-9_.]+$/))){g=null}return g},filterStyles:function(j){if(e.styles==="all"){return j}if(e.styles==="none"){return null}try{var i=this.div1.style,h=this.div2.style;i.cssText=j;h.cssText="";for(var g in a.safeStyles){if(a.safeStyles.hasOwnProperty(g)){var k=this.filterStyle(g,i[g]);if(k!=null){h[g]=k}}}j=h.cssText}catch(l){j=null}return j},filterStyle:function(g,h){if(typeof h!=="string"){return null}if(h.match(/^\s*expression/)){return null}if(h.match(/javascript:/)){return null}return(a.safeStyles[g]?h:null)},filterSize:function(g){if(e.fontsize==="none"){return null}if(e.fontsize!=="all"){g=Math.min(Math.max(g,a.sizeMin),a.sizeMax)}return g},filterFontSize:function(g){return(e.fontsize==="all"?g:null)},filterSizeMultiplier:function(g){if(e.fontsize==="none"){g=null}else{if(e.fontsize!=="all"){g=Math.min(1,Math.max(0.6,g)).toString()}}return g},filterScriptLevel:function(g){if(e.fontsize==="none"){g=null}else{if(e.fontsize!=="all"){g=Math.max(0,g).toString()}}return g},filterRequire:function(g){if(e.require==="none"||(e.require!=="all"&&!a.safeRequire[g.toLowerCase()])){g=null}return g}};d.Register.StartupHook("TeX HTML Ready",function(){var g=MathJax.InputJax.TeX;g.Parse.Augment({HREF_attribute:function(j){var i=b.filterURL(this.GetArgument(j)),h=this.GetArgumentMML(j);if(i){h.With({href:i})}this.Push(h)},CLASS_attribute:function(i){var j=b.filterClass(this.GetArgument(i)),h=this.GetArgumentMML(i);if(j){if(h["class"]!=null){j=h["class"]+" "+j}h.With({"class":j})}this.Push(h)},STYLE_attribute:function(i){var j=b.filterStyles(this.GetArgument(i)),h=this.GetArgumentMML(i);if(j){if(h.style!=null){if(j.charAt(j.length-1)!==";"){j+=";"}j=h.style+" "+j}h.With({style:j})}this.Push(h)},ID_attribute:function(j){var i=b.filterID(this.GetArgument(j)),h=this.GetArgumentMML(j);if(i){h.With({id:i})}this.Push(h)}})});d.Register.StartupHook("TeX Jax Ready",function(){var i=MathJax.InputJax.TeX,h=i.Parse,g=b.filter;h.Augment({Require:function(j){var k=this.GetArgument(j).replace(/.*\//,"").replace(/[^a-z0-9_.-]/ig,"");k=b.filterRequire(k);if(k){this.Extension(null,k)}},MmlFilterAttribute:function(j,k){if(g[j]){k=b[g[j]](k)}return k},SetSize:function(j,k){k=b.filterSize(k);if(k){this.stack.env.size=k;this.Push(i.Stack.Item.style().With({styles:{mathsize:k+"em"}}))}}})});d.Register.StartupHook("TeX bbox Ready",function(){var g=MathJax.InputJax.TeX;g.Parse.Augment({BBoxStyle:function(h){return b.filterStyles(h)}})});d.Register.StartupHook("MathML Jax Ready",function(){var h=MathJax.InputJax.MathML.Parse,g=b.filter;h.Augment({filterAttribute:function(i,j){if(g[i]){j=b[g[i]](j)}return j}})});d.Startup.signal.Post("Safe Extension Ready");c.loadComplete("[MathJax]/extensions/Safe.js")})(MathJax.Hub,MathJax.Ajax); (function(d,c){var f="2.6.0";var a=MathJax.Hub.CombineConfig("Safe",{allow:{URLs:"safe",classes:"safe",cssIDs:"safe",styles:"safe",fontsize:"all",require:"safe"},sizeMin:0.7,sizeMax:1.44,safeProtocols:{http:true,https:true,file:true,javascript:false},safeStyles:{color:true,backgroundColor:true,border:true,cursor:true,margin:true,padding:true,textShadow:true,fontFamily:true,fontSize:true,fontStyle:true,fontWeight:true,opacity:true,outline:true},safeRequire:{action:true,amscd:true,amsmath:true,amssymbols:true,autobold:false,"autoload-all":false,bbox:true,begingroup:true,boldsymbol:true,cancel:true,color:true,enclose:true,extpfeil:true,HTML:true,mathchoice:true,mhchem:true,newcommand:true,noErrors:false,noUndefined:false,unicode:true,verb:true}});var e=a.allow;if(e.fontsize!=="all"){a.safeStyles.fontSize=false}var b=MathJax.Extension.Safe={version:f,config:a,div1:document.createElement("div"),div2:document.createElement("div"),filter:{href:"filterURL",src:"filterURL",altimg:"filterURL","class":"filterClass",style:"filterStyles",id:"filterID",fontsize:"filterFontSize",mathsize:"filterFontSize",scriptminsize:"filterFontSize",scriptsizemultiplier:"filterSizeMultiplier",scriptlevel:"filterScriptLevel"},filterURL:function(g){var h=(g.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase();if(e.URLs==="none"||(e.URLs!=="all"&&!a.safeProtocols[h])){g=null}return g},filterClass:function(g){if(e.classes==="none"||(e.classes!=="all"&&!g.match(/^MJX-[-a-zA-Z0-9_.]+$/))){g=null}return g},filterID:function(g){if(e.cssIDs==="none"||(e.cssIDs!=="all"&&!g.match(/^MJX-[-a-zA-Z0-9_.]+$/))){g=null}return g},filterStyles:function(j){if(e.styles==="all"){return j}if(e.styles==="none"){return null}try{var i=this.div1.style,h=this.div2.style;i.cssText=j;h.cssText="";for(var g in a.safeStyles){if(a.safeStyles.hasOwnProperty(g)){var k=this.filterStyle(g,i[g]);if(k!=null){h[g]=k}}}j=h.cssText}catch(l){j=null}return j},filterStyle:function(g,h){if(typeof h!=="string"){return null}if(h.match(/^\s*expression/)){return null}if(h.match(/javascript:/)){return null}return(a.safeStyles[g]?h:null)},filterSize:function(g){if(e.fontsize==="none"){return null}if(e.fontsize!=="all"){g=Math.min(Math.max(g,a.sizeMin),a.sizeMax)}return g},filterFontSize:function(g){return(e.fontsize==="all"?g:null)},filterSizeMultiplier:function(g){if(e.fontsize==="none"){g=null}else{if(e.fontsize!=="all"){g=Math.min(1,Math.max(0.6,g)).toString()}}return g},filterScriptLevel:function(g){if(e.fontsize==="none"){g=null}else{if(e.fontsize!=="all"){g=Math.max(0,g).toString()}}return g},filterRequire:function(g){if(e.require==="none"||(e.require!=="all"&&!a.safeRequire[g.toLowerCase()])){g=null}return g}};d.Register.StartupHook("TeX HTML Ready",function(){var g=MathJax.InputJax.TeX;g.Parse.Augment({HREF_attribute:function(j){var i=b.filterURL(this.GetArgument(j)),h=this.GetArgumentMML(j);if(i){h.With({href:i})}this.Push(h)},CLASS_attribute:function(i){var j=b.filterClass(this.GetArgument(i)),h=this.GetArgumentMML(i);if(j){if(h["class"]!=null){j=h["class"]+" "+j}h.With({"class":j})}this.Push(h)},STYLE_attribute:function(i){var j=b.filterStyles(this.GetArgument(i)),h=this.GetArgumentMML(i);if(j){if(h.style!=null){if(j.charAt(j.length-1)!==";"){j+=";"}j=h.style+" "+j}h.With({style:j})}this.Push(h)},ID_attribute:function(j){var i=b.filterID(this.GetArgument(j)),h=this.GetArgumentMML(j);if(i){h.With({id:i})}this.Push(h)}})});d.Register.StartupHook("TeX Jax Ready",function(){var i=MathJax.InputJax.TeX,h=i.Parse,g=b.filter;h.Augment({Require:function(j){var k=this.GetArgument(j).replace(/.*\//,"").replace(/[^a-z0-9_.-]/ig,"");k=b.filterRequire(k);if(k){this.Extension(null,k)}},MmlFilterAttribute:function(j,k){if(g[j]){k=b[g[j]](k)}return k},SetSize:function(j,k){k=b.filterSize(k);if(k){this.stack.env.size=k;this.Push(i.Stack.Item.style().With({styles:{mathsize:k+"em"}}))}}})});d.Register.StartupHook("TeX bbox Ready",function(){var g=MathJax.InputJax.TeX;g.Parse.Augment({BBoxStyle:function(h){return b.filterStyles(h)}})});d.Register.StartupHook("MathML Jax Ready",function(){var h=MathJax.InputJax.MathML.Parse,g=b.filter;h.Augment({filterAttribute:function(i,j){if(g[i]){j=b[g[i]](j)}return j}})});d.Startup.signal.Post("Safe Extension Ready");c.loadComplete("[MathJax]/extensions/Safe.js")})(MathJax.Hub,MathJax.Ajax);

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/AMScd.js * /MathJax/extensions/TeX/AMScd.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/AMScd"]={version:"2.2",config:MathJax.Hub.CombineConfig("TeX.CD",{colspace:"5pt",rowspace:"5pt",harrowsize:"2.25em",varrowsize:"1.75em",hideHorizontalLabels:false})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.ElementJax.mml,e=MathJax.InputJax.TeX,d=e.Stack.Item,c=e.Definitions,a=MathJax.Extension["TeX/AMScd"].config;c.environment.CD="CD_env";c.special["@"]="CD_arrow";c.macros.minCDarrowwidth="CD_minwidth";c.macros.minCDarrowheight="CD_minheight";e.Parse.Augment({CD_env:function(f){this.Push(f);return d.array().With({arraydef:{columnalign:"center",columnspacing:a.colspace,rowspacing:a.rowspace,displaystyle:true},minw:this.stack.env.CD_minw||a.harrowsize,minh:this.stack.env.CD_minh||a.varrowsize})},CD_arrow:function(g){var l=this.string[this.i];if(!l.match(/[><VA.|=]/)){return this.Other(g)}else{this.i++}var o=this.stack.Top();if(!o.isa(d.array)||o.data.length){this.CD_cell(g)}var q=((o.table.length%2)===1);var i=(o.row.length+(q?0:1))%2;while(i){this.CD_cell(g);i--}var h;var f={minsize:o.minw,stretchy:true},k={minsize:o.minh,stretchy:true,symmetric:true};if(l==="."){}else{if(l==="|"){h=this.mmlToken(b.mo("\u2225").With(k))}else{if(l==="="){h=this.mmlToken(b.mo("=").With(f))}else{var r={">":"\u2192","<":"\u2190",V:"\u2193",A:"\u2191"}[l];var p=this.GetUpTo(g+l,l),m=this.GetUpTo(g+l,l);if(l===">"||l==="<"){h=b.mo(r).With(f);if(!p){p="\\kern "+o.minw}if(p||m){var j={width:"+11mu",lspace:"6mu"};h=b.munderover(this.mmlToken(h));if(p){p=e.Parse(p,this.stack.env).mml();h.SetData(h.over,b.mpadded(p).With(j).With({voffset:".1em"}))}if(m){m=e.Parse(m,this.stack.env).mml();h.SetData(h.under,b.mpadded(m).With(j))}if(a.hideHorizontalLabels){h=b.mpadded(h).With({depth:0,height:".67em"})}}}else{h=r=this.mmlToken(b.mo(r).With(k));if(p||m){h=b.mrow();if(p){h.Append(e.Parse("\\scriptstyle\\llap{"+p+"}",this.stack.env).mml())}h.Append(r.With({texClass:b.TEXCLASS.ORD}));if(m){h.Append(e.Parse("\\scriptstyle\\rlap{"+m+"}",this.stack.env).mml())}}}}}}if(h){this.Push(h)}this.CD_cell(g)},CD_cell:function(f){this.Push(d.cell().With({isEntry:true,name:f}))},CD_minwidth:function(f){this.stack.env.CD_minw=this.GetDimen(f)},CD_minheight:function(f){this.stack.env.CD_minh=this.GetDimen(f)}})});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/AMScd.js"); MathJax.Extension["TeX/AMScd"]={version:"2.6.0",config:MathJax.Hub.CombineConfig("TeX.CD",{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:false})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.ElementJax.mml,e=MathJax.InputJax.TeX,d=e.Stack.Item,c=e.Definitions,a=MathJax.Extension["TeX/AMScd"].config;c.environment.CD="CD_env";c.special["@"]="CD_arrow";c.macros.minCDarrowwidth="CD_minwidth";c.macros.minCDarrowheight="CD_minheight";e.Parse.Augment({CD_env:function(f){this.Push(f);return d.array().With({arraydef:{columnalign:"center",columnspacing:a.colspace,rowspacing:a.rowspace,displaystyle:true},minw:this.stack.env.CD_minw||a.harrowsize,minh:this.stack.env.CD_minh||a.varrowsize})},CD_arrow:function(g){var l=this.string.charAt(this.i);if(!l.match(/[><VA.|=]/)){return this.Other(g)}else{this.i++}var o=this.stack.Top();if(!o.isa(d.array)||o.data.length){this.CD_cell(g);o=this.stack.Top()}var q=((o.table.length%2)===1);var i=(o.row.length+(q?0:1))%2;while(i){this.CD_cell(g);i--}var h;var f={minsize:o.minw,stretchy:true},k={minsize:o.minh,stretchy:true,symmetric:true,lspace:0,rspace:0};if(l==="."){}else{if(l==="|"){h=this.mmlToken(b.mo("\u2225").With(k))}else{if(l==="="){h=this.mmlToken(b.mo("=").With(f))}else{var r={">":"\u2192","<":"\u2190",V:"\u2193",A:"\u2191"}[l];var p=this.GetUpTo(g+l,l),m=this.GetUpTo(g+l,l);if(l===">"||l==="<"){h=b.mo(r).With(f);if(!p){p="\\kern "+o.minw}if(p||m){var j={width:"+11mu",lspace:"6mu"};h=b.munderover(this.mmlToken(h));if(p){p=e.Parse(p,this.stack.env).mml();h.SetData(h.over,b.mpadded(p).With(j).With({voffset:".1em"}))}if(m){m=e.Parse(m,this.stack.env).mml();h.SetData(h.under,b.mpadded(m).With(j))}if(a.hideHorizontalLabels){h=b.mpadded(h).With({depth:0,height:".67em"})}}}else{h=r=this.mmlToken(b.mo(r).With(k));if(p||m){h=b.mrow();if(p){h.Append(e.Parse("\\scriptstyle\\llap{"+p+"}",this.stack.env).mml())}h.Append(r.With({texClass:b.TEXCLASS.ORD}));if(m){h.Append(e.Parse("\\scriptstyle\\rlap{"+m+"}",this.stack.env).mml())}}}}}}if(h){this.Push(h)}this.CD_cell(g)},CD_cell:function(f){var g=this.stack.Top();if((g.table||[]).length%2===0&&(g.row||[]).length===0){this.Push(b.mpadded().With({height:"8.5pt",depth:"2pt"}))}this.Push(d.cell().With({isEntry:true,name:f}))},CD_minwidth:function(f){this.stack.env.CD_minw=this.GetDimen(f)},CD_minheight:function(f){this.stack.env.CD_minh=this.GetDimen(f)}})});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/AMScd.js");

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/HTML.js * /MathJax/extensions/TeX/HTML.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/HTML"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX;var a=b.Definitions;a.Add({macros:{href:"HREF_attribute","class":"CLASS_attribute",style:"STYLE_attribute",cssId:"ID_attribute"}},null,true);b.Parse.Augment({HREF_attribute:function(e){var d=this.GetArgument(e),c=this.GetArgumentMML(e);this.Push(c.With({href:d}))},CLASS_attribute:function(d){var e=this.GetArgument(d),c=this.GetArgumentMML(d);if(c["class"]!=null){e=c["class"]+" "+e}this.Push(c.With({"class":e}))},STYLE_attribute:function(d){var e=this.GetArgument(d),c=this.GetArgumentMML(d);if(c.style!=null){if(e.charAt(e.length-1)!==";"){e+=";"}e=c.style+" "+e}this.Push(c.With({style:e}))},ID_attribute:function(e){var d=this.GetArgument(e),c=this.GetArgumentMML(e);this.Push(c.With({id:d}))},GetArgumentMML:function(d){var c=this.ParseArg(d);if(c.inferred&&c.data.length==1){c=c.data[0]}else{delete c.inferred}return c}});MathJax.Hub.Startup.signal.Post("TeX HTML Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/HTML.js"); MathJax.Extension["TeX/HTML"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX;var a=b.Definitions;a.Add({macros:{href:"HREF_attribute","class":"CLASS_attribute",style:"STYLE_attribute",cssId:"ID_attribute"}},null,true);b.Parse.Augment({HREF_attribute:function(e){var d=this.GetArgument(e),c=this.GetArgumentMML(e);this.Push(c.With({href:d}))},CLASS_attribute:function(d){var e=this.GetArgument(d),c=this.GetArgumentMML(d);if(c["class"]!=null){e=c["class"]+" "+e}this.Push(c.With({"class":e}))},STYLE_attribute:function(d){var e=this.GetArgument(d),c=this.GetArgumentMML(d);if(c.style!=null){if(e.charAt(e.length-1)!==";"){e+=";"}e=c.style+" "+e}this.Push(c.With({style:e}))},ID_attribute:function(e){var d=this.GetArgument(e),c=this.GetArgumentMML(e);this.Push(c.With({id:d}))},GetArgumentMML:function(d){var c=this.ParseArg(d);if(c.inferred&&c.data.length==1){c=c.data[0]}else{delete c.inferred}return c}});MathJax.Hub.Startup.signal.Post("TeX HTML Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/HTML.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/action.js * /MathJax/extensions/TeX/action.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/action"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml;b.Definitions.Add({macros:{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]}},null,true);b.Parse.Augment({Toggle:function(d){var e=[],c;while((c=this.GetArgument(d))!=="\\endtoggle"){e.push(b.Parse(c,this.stack.env).mml())}this.Push(a.maction.apply(a,e).With({actiontype:a.ACTIONTYPE.TOGGLE}))},Mathtip:function(d){var c=this.ParseArg(d),e=this.ParseArg(d);this.Push(a.maction(c,e).With({actiontype:a.ACTIONTYPE.TOOLTIP}))}});MathJax.Hub.Startup.signal.Post("TeX action Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/action.js"); MathJax.Extension["TeX/action"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml;b.Definitions.Add({macros:{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]}},null,true);b.Parse.Augment({Toggle:function(d){var e=[],c;while((c=this.GetArgument(d))!=="\\endtoggle"){e.push(b.Parse(c,this.stack.env).mml())}this.Push(a.maction.apply(a,e).With({actiontype:a.ACTIONTYPE.TOGGLE}))},Mathtip:function(d){var c=this.ParseArg(d),e=this.ParseArg(d);this.Push(a.maction(c,e).With({actiontype:a.ACTIONTYPE.TOOLTIP}))}});MathJax.Hub.Startup.signal.Post("TeX action Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/action.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/autobold.js * /MathJax/extensions/TeX/autobold.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/autobold"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.InputJax.TeX;a.prefilterHooks.Add(function(d){var c=d.script.parentNode.insertBefore(document.createElement("span"),d.script);c.visibility="hidden";c.style.fontFamily="Times, serif";c.appendChild(document.createTextNode("ABCXYZabcxyz"));var b=c.offsetWidth;c.style.fontWeight="bold";if(b&&c.offsetWidth===b){d.math="\\boldsymbol{"+d.math+"}"}c.parentNode.removeChild(c)});MathJax.Hub.Startup.signal.Post("TeX autobold Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/autobold.js"); MathJax.Extension["TeX/autobold"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.InputJax.TeX;a.prefilterHooks.Add(function(d){var c=d.script.parentNode.insertBefore(document.createElement("span"),d.script);c.visibility="hidden";c.style.fontFamily="Times, serif";c.appendChild(document.createTextNode("ABCXYZabcxyz"));var b=c.offsetWidth;c.style.fontWeight="bold";if(b&&c.offsetWidth===b){d.math="\\boldsymbol{"+d.math+"}"}c.parentNode.removeChild(c)});MathJax.Hub.Startup.signal.Post("TeX autobold Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/autobold.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/autoload-all.js * /MathJax/extensions/TeX/autoload-all.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/autoload-all"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var h={action:["mathtip","texttip","toggle"],AMSmath:["mathring","nobreakspace","negmedspace","negthickspace","intI","iiiint","idotsint","dddot","ddddot","sideset","boxed","substack","injlim","projlim","varliminf","varlimsup","varinjlim","varprojlim","DeclareMathOperator","operatorname","genfrac","tfrac","dfrac","binom","tbinom","dbinom","cfrac","shoveleft","shoveright","xrightarrow","xleftarrow"],begingroup:["begingroup","endgroup","gdef","global"],cancel:["cancel","bcancel","xcancel","cancelto"],color:["color","textcolor","colorbox","fcolorbox","DefineColor"],enclose:["enclose"],extpfeil:["Newextarrow","xlongequal","xmapsto","xtofrom","xtwoheadleftarrow","xtwoheadrightarrow"],mhchem:["ce","cee","cf"]};var c={AMSmath:["subarray","smallmatrix","equation","equation*"],AMScd:["CD"]};var d,g,b,a={macros:{},environment:{}};for(d in h){if(h.hasOwnProperty(d)){if(!MathJax.Extension["TeX/"+d]){var f=h[d];for(g=0,b=f.length;g<b;g++){a.macros[f[g]]=["Extension",d]}}}}for(d in c){if(c.hasOwnProperty(d)){if(!MathJax.Extension["TeX/"+d]){var e=c[d];for(g=0,b=e.length;g<b;g++){a.environment[e[g]]=["ExtensionEnv",null,d]}}}}MathJax.InputJax.TeX.Definitions.Add(a);MathJax.Hub.Startup.signal.Post("TeX autoload-all Ready")});MathJax.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/extensions/TeX/AMSsymbols.js"],["loadComplete",MathJax.Ajax,"[MathJax]/extensions/TeX/autoload-all.js"]); MathJax.Extension["TeX/autoload-all"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var h={action:["mathtip","texttip","toggle"],AMSmath:["mathring","nobreakspace","negmedspace","negthickspace","intI","iiiint","idotsint","dddot","ddddot","sideset","boxed","substack","injlim","projlim","varliminf","varlimsup","varinjlim","varprojlim","DeclareMathOperator","operatorname","genfrac","tfrac","dfrac","binom","tbinom","dbinom","cfrac","shoveleft","shoveright","xrightarrow","xleftarrow"],begingroup:["begingroup","endgroup","gdef","global"],cancel:["cancel","bcancel","xcancel","cancelto"],color:["color","textcolor","colorbox","fcolorbox","definecolor"],enclose:["enclose"],extpfeil:["Newextarrow","xlongequal","xmapsto","xtofrom","xtwoheadleftarrow","xtwoheadrightarrow"],mhchem:["ce","cee","cf"]};var c={AMSmath:["subarray","smallmatrix","equation","equation*"],AMScd:["CD"]};var d,g,b,a={macros:{},environment:{}};for(d in h){if(h.hasOwnProperty(d)){if(!MathJax.Extension["TeX/"+d]){var f=h[d];for(g=0,b=f.length;g<b;g++){a.macros[f[g]]=["Extension",d]}}}}for(d in c){if(c.hasOwnProperty(d)){if(!MathJax.Extension["TeX/"+d]){var e=c[d];for(g=0,b=e.length;g<b;g++){a.environment[e[g]]=["ExtensionEnv",null,d]}}}}MathJax.InputJax.TeX.Definitions.Add(a);MathJax.Hub.Startup.signal.Post("TeX autoload-all Ready")});MathJax.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/extensions/TeX/AMSsymbols.js"],["loadComplete",MathJax.Ajax,"[MathJax]/extensions/TeX/autoload-all.js"]);

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/bbox.js * /MathJax/extensions/TeX/bbox.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/bbox"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml;b.Definitions.Add({macros:{bbox:"BBox"}},null,true);b.Parse.Augment({BBox:function(e){var n=this.GetBrackets(e,""),m=this.ParseArg(e);var j=n.split(/,/),g,d,c;for(var k in j){var f=j[k].replace(/^\s+/,"").replace(/\s+$/,"");var l=f.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(l){if(g){b.Error(["MultipleBBoxProperty","%1 specified twice in %2","Padding",e])}var h=l[1]+l[3];g={height:"+"+h,depth:"+"+h,lspace:h,width:"+"+(2*l[1])+l[3]}}else{if(f.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)){if(d){b.Error(["MultipleBBoxProperty","%1 specified twice in %2","Background",e])}d=f}else{if(f.match(/^[-a-z]+:/i)){if(c){b.Error(["MultipleBBoxProperty","%1 specified twice in %2","Style",e])}c=this.BBoxStyle(f)}else{if(f!==""){b.Error(["InvalidBBoxProperty","'%1' doesn't look like a color, a padding dimension, or a style",f])}}}}}if(g){m=a.mpadded(m).With(g)}if(d||c){m=a.mstyle(m).With({mathbackground:d,style:c})}this.Push(m)},BBoxStyle:function(c){return c}});MathJax.Hub.Startup.signal.Post("TeX bbox Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/bbox.js"); MathJax.Extension["TeX/bbox"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml;b.Definitions.Add({macros:{bbox:"BBox"}},null,true);b.Parse.Augment({BBox:function(e){var p=this.GetBrackets(e,""),o=this.ParseArg(e);var k=p.split(/,/),g,d,c;for(var l=0,j=k.length;l<j;l++){var f=k[l].replace(/^\s+/,"").replace(/\s+$/,"");var n=f.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(n){if(g){b.Error(["MultipleBBoxProperty","%1 specified twice in %2","Padding",e])}var h=n[1]+n[3];g={height:"+"+h,depth:"+"+h,lspace:h,width:"+"+(2*n[1])+n[3]}}else{if(f.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)){if(d){b.Error(["MultipleBBoxProperty","%1 specified twice in %2","Background",e])}d=f}else{if(f.match(/^[-a-z]+:/i)){if(c){b.Error(["MultipleBBoxProperty","%1 specified twice in %2","Style",e])}c=this.BBoxStyle(f)}else{if(f!==""){b.Error(["InvalidBBoxProperty","'%1' doesn't look like a color, a padding dimension, or a style",f])}}}}}if(g){o=a.mpadded(o).With(g)}if(d||c){o=a.mstyle(o).With({mathbackground:d,style:c})}this.Push(o)},BBoxStyle:function(c){return c}});MathJax.Hub.Startup.signal.Post("TeX bbox Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/bbox.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/begingroup.js * /MathJax/extensions/TeX/begingroup.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/begingroup"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var d=MathJax.InputJax.TeX,b=d.Definitions;var a=MathJax.Object.Subclass({macros:null,environments:null,Init:function(e,f){this.macros=(e||{});this.environments=(f||{})},Find:function(e,f){if(this[f][e]){return this[f][e]}},Def:function(e,g,f){this[f][e]=g},Undef:function(e,f){delete this[f][e]},Merge:function(e){MathJax.Hub.Insert(this.macros,e.macros);MathJax.Hub.Insert(this.environments,e.environments)},MergeGlobals:function(e){var f=this.macros;for(var g in f){if(f.hasOwnProperty(g)&&f[g].global){e.Def(g,f[g],"macros",true);delete f[g].global;delete f[g]}}},Clear:function(g){this.environments={};if(g){this.macros={}}else{var e=this.macros;for(var f in e){if(e.hasOwnProperty(f)&&!e[f].global){delete e[f]}}}return this}});var c=d.nsStack=MathJax.Object.Subclass({stack:null,top:0,isEqn:false,Init:function(e){this.isEqn=e;this.stack=[];if(!e){this.Push(a(b.macros,b.environment))}else{this.Push(a())}},Def:function(e,h,f,g){var i=this.top-1;if(g){while(i>0){this.stack[i].Undef(e,f);i--}if(!(h instanceof Array)){h=[h]}if(this.isEqn){h.global=true}}this.stack[i].Def(e,h,f)},Push:function(e){this.stack.push(e);this.top=this.stack.length},Pop:function(){var e;if(this.top>1){e=this.stack[--this.top];if(this.isEqn){this.stack.pop()}}else{if(this.isEqn){this.Clear()}}return e},Find:function(e,g){for(var f=this.top-1;f>=0;f--){var h=this.stack[f].Find(e,g);if(h){return h}}return null},Merge:function(e){e.stack[0].MergeGlobals(this);this.stack[this.top-1].Merge(e.stack[0]);var f=[this.top,this.stack.length-this.top].concat(e.stack.slice(1));this.stack.splice.apply(this.stack,f);this.top=this.stack.length},Reset:function(){this.top=this.stack.length},Clear:function(e){this.stack=[this.stack[0].Clear()];this.top=this.stack.length}},{nsFrame:a});b.Add({macros:{begingroup:"BeginGroup",endgroup:"EndGroup",global:["Extension","newcommand"],gdef:["Extension","newcommand"]}},null,true);d.Parse.Augment({BeginGroup:function(e){d.eqnStack.Push(a())},EndGroup:function(e){if(d.eqnStack.top>1){d.eqnStack.Pop()}else{if(d.rootStack.top===1){d.Error(["ExtraEndMissingBegin","Extra %1 or missing \\begingroup",e])}else{d.eqnStack.Clear();d.rootStack.Pop()}}},csFindMacro:function(e){return(d.eqnStack.Find(e,"macros")||d.rootStack.Find(e,"macros"))},envFindName:function(e){return(d.eqnStack.Find(e,"environments")||d.rootStack.Find(e,"environments"))}});d.rootStack=c();d.eqnStack=c(true);d.prefilterHooks.Add(function(){d.rootStack.Reset();d.eqnStack.Clear(true)});d.postfilterHooks.Add(function(){d.rootStack.Merge(d.eqnStack)});MathJax.Hub.Register.StartupHook("TeX newcommand Ready",function(){b.Add({macros:{global:"Global",gdef:["Macro","\\global\\def"]}},null,true);d.Parse.Augment({setDef:function(e,f){f.isUser=true;d.eqnStack.Def(e,f,"macros",this.stack.env.isGlobal);delete this.stack.env.isGlobal},setEnv:function(e,f){f.isUser=true;d.eqnStack.Def(e,f,"environments")},Global:function(e){var f=this.i;var g=this.GetCSname(e);this.i=f;if(g!=="let"&&g!=="def"&&g!=="newcommand"){d.Error(["GlobalNotFollowedBy","%1 not followed by \\let, \\def, or \\newcommand",e])}this.stack.env.isGlobal=true}})});MathJax.Hub.Startup.signal.Post("TeX begingroup Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/begingroup.js"); MathJax.Extension["TeX/begingroup"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var d=MathJax.InputJax.TeX,b=d.Definitions;var a=MathJax.Object.Subclass({macros:null,environments:null,Init:function(e,f){this.macros=(e||{});this.environments=(f||{})},Find:function(e,f){if(this[f][e]){return this[f][e]}},Def:function(e,g,f){this[f][e]=g},Undef:function(e,f){delete this[f][e]},Merge:function(e){MathJax.Hub.Insert(this.macros,e.macros);MathJax.Hub.Insert(this.environments,e.environments)},MergeGlobals:function(e){var f=this.macros;for(var g in f){if(f.hasOwnProperty(g)&&f[g].global){e.Def(g,f[g],"macros",true);delete f[g].global;delete f[g]}}},Clear:function(g){this.environments={};if(g){this.macros={}}else{var e=this.macros;for(var f in e){if(e.hasOwnProperty(f)&&!e[f].global){delete e[f]}}}return this}});var c=d.nsStack=MathJax.Object.Subclass({stack:null,top:0,isEqn:false,Init:function(e){this.isEqn=e;this.stack=[];if(!e){this.Push(a(b.macros,b.environment))}else{this.Push(a())}},Def:function(e,h,f,g){var i=this.top-1;if(g){while(i>0){this.stack[i].Undef(e,f);i--}if(!(h instanceof Array)){h=[h]}if(this.isEqn){h.global=true}}this.stack[i].Def(e,h,f)},Push:function(e){this.stack.push(e);this.top=this.stack.length},Pop:function(){var e;if(this.top>1){e=this.stack[--this.top];if(this.isEqn){this.stack.pop()}}else{if(this.isEqn){this.Clear()}}return e},Find:function(e,g){for(var f=this.top-1;f>=0;f--){var h=this.stack[f].Find(e,g);if(h){return h}}return null},Merge:function(e){e.stack[0].MergeGlobals(this);this.stack[this.top-1].Merge(e.stack[0]);var f=[this.top,this.stack.length-this.top].concat(e.stack.slice(1));this.stack.splice.apply(this.stack,f);this.top=this.stack.length},Reset:function(){this.top=this.stack.length},Clear:function(e){this.stack=[this.stack[0].Clear()];this.top=this.stack.length}},{nsFrame:a});b.Add({macros:{begingroup:"BeginGroup",endgroup:"EndGroup",global:["Extension","newcommand"],gdef:["Extension","newcommand"]}},null,true);d.Parse.Augment({BeginGroup:function(e){d.eqnStack.Push(a())},EndGroup:function(e){if(d.eqnStack.top>1){d.eqnStack.Pop()}else{if(d.rootStack.top===1){d.Error(["ExtraEndMissingBegin","Extra %1 or missing \\begingroup",e])}else{d.eqnStack.Clear();d.rootStack.Pop()}}},csFindMacro:function(e){return(d.eqnStack.Find(e,"macros")||d.rootStack.Find(e,"macros"))},envFindName:function(e){return(d.eqnStack.Find(e,"environments")||d.rootStack.Find(e,"environments"))}});d.rootStack=c();d.eqnStack=c(true);d.prefilterHooks.Add(function(){d.rootStack.Reset();d.eqnStack.Clear(true)});d.postfilterHooks.Add(function(){d.rootStack.Merge(d.eqnStack)});MathJax.Hub.Register.StartupHook("TeX newcommand Ready",function(){b.Add({macros:{global:"Global",gdef:["Macro","\\global\\def"]}},null,true);d.Parse.Augment({setDef:function(e,f){f.isUser=true;d.eqnStack.Def(e,f,"macros",this.stack.env.isGlobal);delete this.stack.env.isGlobal},setEnv:function(e,f){f.isUser=true;d.eqnStack.Def(e,f,"environments")},Global:function(e){var f=this.i;var g=this.GetCSname(e);this.i=f;if(g!=="let"&&g!=="def"&&g!=="newcommand"){d.Error(["GlobalNotFollowedBy","%1 not followed by \\let, \\def, or \\newcommand",e])}this.stack.env.isGlobal=true}})});MathJax.Hub.Startup.signal.Post("TeX begingroup Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/begingroup.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/boldsymbol.js * /MathJax/extensions/TeX/boldsymbol.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/boldsymbol"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.ElementJax.mml;var d=MathJax.InputJax.TeX;var b=d.Definitions;var c={};c[a.VARIANT.NORMAL]=a.VARIANT.BOLD;c[a.VARIANT.ITALIC]=a.VARIANT.BOLDITALIC;c[a.VARIANT.FRAKTUR]=a.VARIANT.BOLDFRAKTUR;c[a.VARIANT.SCRIPT]=a.VARIANT.BOLDSCRIPT;c[a.VARIANT.SANSSERIF]=a.VARIANT.BOLDSANSSERIF;c["-tex-caligraphic"]="-tex-caligraphic-bold";c["-tex-oldstyle"]="-tex-oldstyle-bold";b.Add({macros:{boldsymbol:"Boldsymbol"}},null,true);d.Parse.Augment({mmlToken:function(f){if(this.stack.env.boldsymbol){var e=f.Get("mathvariant");if(e==null){f.mathvariant=a.VARIANT.BOLD}else{f.mathvariant=(c[e]||e)}}return f},Boldsymbol:function(h){var e=this.stack.env.boldsymbol,f=this.stack.env.font;this.stack.env.boldsymbol=true;this.stack.env.font=null;var g=this.ParseArg(h);this.stack.env.font=f;this.stack.env.boldsymbol=e;this.Push(g)}});MathJax.Hub.Startup.signal.Post("TeX boldsymbol Ready")});MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var a=MathJax.OutputJax["HTML-CSS"];var c=a.FONTDATA.FONTS;var b=a.FONTDATA.VARIANT;if(a.fontInUse==="TeX"){c["MathJax_Caligraphic-bold"]="Caligraphic/Bold/Main.js";b["-tex-caligraphic-bold"]={fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"],offsetA:65,variantA:"bold-italic"};b["-tex-oldstyle-bold"]={fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"]};if(a.msieCheckGreek&&a.Font.testFont({family:"MathJax_Greek",weight:"bold",style:"italic",testString:a.msieCheckGreek})){b["bold-italic"].offsetG=913;b["bold-italic"].variantG="-Greek-Bold-Italic";b["-Greek-Bold-Italic"]={fonts:["MathJax_Greek-bold-italic"]};c["MathJax_Greek-bold-italic"]="Greek/BoldItalic/Main.js"}if(MathJax.Hub.Browser.isChrome&&!MathJax.Hub.Browser.versionAtLeast("5.0")){b["-tex-caligraphic-bold"].remap={84:[58096,"-WinChrome"]}}}else{if(a.fontInUse==="STIX"){b["-tex-caligraphic-bold"]={fonts:["STIXGeneral-bold-italic","STIXNonUnicode-bold-italic","STIXNonUnicode","STIXGeneral","STIXSizeOneSym"],offsetA:57927,noLowerCase:1};b["-tex-oldstyle-bold"]={fonts:["STIXGeneral-bold","STIXNonUnicode-bold","STIXGeneral","STIXSizeOneSym"],offsetN:57955,remap:{57956:57959,57957:57963,57958:57967,57959:57971,57960:57975,57961:57979,57962:57983,57963:57987,57964:57991}}}}});MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){var c=MathJax.OutputJax.SVG;var b=c.FONTDATA.FONTS;var a=c.FONTDATA.VARIANT;b["MathJax_Caligraphic-bold"]="Caligraphic/Bold/Main.js";a["-tex-caligraphic-bold"]={fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"],offsetA:65,variantA:"bold-italic"};a["-tex-oldstyle-bold"]={fonts:["MathJax_Caligraphic-bold","MathJax_Main-bold","MathJax_Main","MathJax_Math","MathJax_Size1"]}});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/boldsymbol.js"); MathJax.Extension["TeX/boldsymbol"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.ElementJax.mml;var d=MathJax.InputJax.TeX;var b=d.Definitions;var c={};c[a.VARIANT.NORMAL]=a.VARIANT.BOLD;c[a.VARIANT.ITALIC]=a.VARIANT.BOLDITALIC;c[a.VARIANT.FRAKTUR]=a.VARIANT.BOLDFRAKTUR;c[a.VARIANT.SCRIPT]=a.VARIANT.BOLDSCRIPT;c[a.VARIANT.SANSSERIF]=a.VARIANT.BOLDSANSSERIF;c["-tex-caligraphic"]="-tex-caligraphic-bold";c["-tex-oldstyle"]="-tex-oldstyle-bold";b.Add({macros:{boldsymbol:"Boldsymbol"}},null,true);d.Parse.Augment({mmlToken:function(f){if(this.stack.env.boldsymbol){var e=f.Get("mathvariant");if(e==null){f.mathvariant=a.VARIANT.BOLD}else{f.mathvariant=(c[e]||e)}}return f},Boldsymbol:function(h){var e=this.stack.env.boldsymbol,f=this.stack.env.font;this.stack.env.boldsymbol=true;this.stack.env.font=null;var g=this.ParseArg(h);this.stack.env.font=f;this.stack.env.boldsymbol=e;this.Push(g)}});MathJax.Hub.Startup.signal.Post("TeX boldsymbol Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/boldsymbol.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/cancel.js * /MathJax/extensions/TeX/cancel.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/cancel"]={version:"2.2",ALLOWED:{arrow:1,color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml,b=MathJax.Extension["TeX/cancel"];b.setAttributes=function(h,e){if(e!==""){e=e.replace(/ /g,"").split(/,/);for(var g=0,d=e.length;g<d;g++){var f=e[g].split(/[:=]/);if(b.ALLOWED[f[0]]){if(f[1]==="true"){f[1]=true}if(f[1]==="false"){f[1]=false}h[f[0]]=f[1]}}}return h};c.Definitions.Add({macros:{cancel:["Cancel",a.NOTATION.UPDIAGONALSTRIKE],bcancel:["Cancel",a.NOTATION.DOWNDIAGONALSTRIKE],xcancel:["Cancel",a.NOTATION.UPDIAGONALSTRIKE+" "+a.NOTATION.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"}},null,true);c.Parse.Augment({Cancel:function(e,g){var d=this.GetBrackets(e,""),f=this.ParseArg(e);var h=b.setAttributes({notation:g},d);this.Push(a.menclose(f).With(h))},CancelTo:function(e,g){var i=this.ParseArg(e),d=this.GetBrackets(e,""),f=this.ParseArg(e);var h=b.setAttributes({notation:a.NOTATION.UPDIAGONALSTRIKE,arrow:true},d);i=a.mpadded(i).With({depth:"-.1em",height:"+.1em",voffset:".1em"});this.Push(a.msup(a.menclose(f).With(h),i))}});MathJax.Hub.Startup.signal.Post("TeX cancel Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/cancel.js"); MathJax.Extension["TeX/cancel"]={version:"2.6.0",ALLOWED:{color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml,b=MathJax.Extension["TeX/cancel"];b.setAttributes=function(h,e){if(e!==""){e=e.replace(/ /g,"").split(/,/);for(var g=0,d=e.length;g<d;g++){var f=e[g].split(/[:=]/);if(b.ALLOWED[f[0]]){if(f[1]==="true"){f[1]=true}if(f[1]==="false"){f[1]=false}h[f[0]]=f[1]}}}return h};c.Definitions.Add({macros:{cancel:["Cancel",a.NOTATION.UPDIAGONALSTRIKE],bcancel:["Cancel",a.NOTATION.DOWNDIAGONALSTRIKE],xcancel:["Cancel",a.NOTATION.UPDIAGONALSTRIKE+" "+a.NOTATION.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"}},null,true);c.Parse.Augment({Cancel:function(e,g){var d=this.GetBrackets(e,""),f=this.ParseArg(e);var h=b.setAttributes({notation:g},d);this.Push(a.menclose(f).With(h))},CancelTo:function(e,g){var i=this.ParseArg(e),d=this.GetBrackets(e,""),f=this.ParseArg(e);var h=b.setAttributes({notation:a.NOTATION.UPDIAGONALSTRIKE+" "+a.NOTATION.UPDIAGONALARROW},d);i=a.mpadded(i).With({depth:"-.1em",height:"+.1em",voffset:".1em"});this.Push(a.msup(a.menclose(f).With(h),i))}});MathJax.Hub.Startup.signal.Post("TeX cancel Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/cancel.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/color.js * /MathJax/extensions/TeX/color.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/color"]={version:"2.2",config:MathJax.Hub.CombineConfig("TeX.color",{padding:"5px",border:"2px"}),colors:{Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",LimeGreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"},getColor:function(a,c){if(!a){a="named"}var b=this["get_"+a];if(!b){this.TEX.Error(["UndefinedColorModel","Color model '%1' not defined",a])}return b.call(this,c)},get_rgb:function(b){b=b.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s*,\s*/);var a="#";if(b.length!==3){this.TEX.Error(["ModelArg1","Color values for the %1 model require 3 numbers","rgb"])}for(var c=0;c<3;c++){if(!b[c].match(/^(\d+(\.\d*)?|\.\d+)$/)){this.TEX.Error(["InvalidDecimalNumber","Invalid decimal number"])}var d=parseFloat(b[c]);if(d<0||d>1){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","rgb",0,1])}d=Math.floor(d*255).toString(16);if(d.length<2){d="0"+d}a+=d}return a},get_RGB:function(b){b=b.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s*,\s*/);var a="#";if(b.length!==3){this.TEX.Error(["ModelArg1","Color values for the %1 model require 3 numbers","RGB"])}for(var c=0;c<3;c++){if(!b[c].match(/^\d+$/)){this.TEX.Error(["InvalidNumber","Invalid number"])}var d=parseInt(b[c]);if(d>255){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","RGB",0,255])}d=d.toString(16);if(d.length<2){d="0"+d}a+=d}return a},get_gray:function(a){if(!a.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)){this.TEX.Error(["InvalidDecimalNumber","Invalid decimal number"])}var b=parseFloat(a);if(b<0||b>1){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","gray",0,1])}b=Math.floor(b*255).toString(16);if(b.length<2){b="0"+b}return"#"+b+b+b},get_named:function(a){if(this.colors[a]){return this.colors[a]}return a},padding:function(){var c="+"+this.config.padding;var a=this.config.padding.replace(/^.*?([a-z]*)$/,"$1");var b="+"+(2*parseFloat(c))+a;return{width:b,height:c,depth:c,lspace:this.config.padding}}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var d=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml;var c=d.Stack.Item;var b=MathJax.Extension["TeX/color"];b.TEX=d;d.Definitions.Add({macros:{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"fColorBox"}},null,true);d.Parse.Augment({Color:function(h){var g=this.GetBrackets(h),e=this.GetArgument(h);e=b.getColor(g,e);var f=c.style().With({styles:{mathcolor:e}});this.stack.env.color=e;this.Push(f)},TextColor:function(h){var g=this.GetBrackets(h),f=this.GetArgument(h);f=b.getColor(g,f);var e=this.stack.env.color;this.stack.env.color=f;var i=this.ParseArg(h);if(e){this.stack.env.color}else{delete this.stack.env.color}this.Push(a.mstyle(i).With({mathcolor:f}))},DefineColor:function(g){var f=this.GetArgument(g),e=this.GetArgument(g),h=this.GetArgument(g);b.colors[f]=b.getColor(e,h)},ColorBox:function(g){var f=this.GetArgument(g),e=this.InternalMath(this.GetArgument(g));this.Push(a.mpadded.apply(a,e).With({mathbackground:b.getColor("named",f)}).With(b.padding()))},fColorBox:function(g){var h=this.GetArgument(g),f=this.GetArgument(g),e=this.InternalMath(this.GetArgument(g));this.Push(a.mpadded.apply(a,e).With({mathbackground:b.getColor("named",f),style:"border: "+b.config.border+" solid "+b.getColor("named",h)}).With(b.padding()))}});MathJax.Hub.Startup.signal.Post("TeX color Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/color.js"); MathJax.Extension["TeX/color"]={version:"2.6.0",config:MathJax.Hub.CombineConfig("TeX.color",{padding:"5px",border:"2px"}),colors:{Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",LimeGreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"},getColor:function(a,c){if(!a){a="named"}var b=this["get_"+a];if(!b){this.TEX.Error(["UndefinedColorModel","Color model '%1' not defined",a])}return b.call(this,c)},get_rgb:function(b){b=b.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s*,\s*/);var a="#";if(b.length!==3){this.TEX.Error(["ModelArg1","Color values for the %1 model require 3 numbers","rgb"])}for(var c=0;c<3;c++){if(!b[c].match(/^(\d+(\.\d*)?|\.\d+)$/)){this.TEX.Error(["InvalidDecimalNumber","Invalid decimal number"])}var d=parseFloat(b[c]);if(d<0||d>1){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","rgb",0,1])}d=Math.floor(d*255).toString(16);if(d.length<2){d="0"+d}a+=d}return a},get_RGB:function(b){b=b.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s*,\s*/);var a="#";if(b.length!==3){this.TEX.Error(["ModelArg1","Color values for the %1 model require 3 numbers","RGB"])}for(var c=0;c<3;c++){if(!b[c].match(/^\d+$/)){this.TEX.Error(["InvalidNumber","Invalid number"])}var d=parseInt(b[c]);if(d>255){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","RGB",0,255])}d=d.toString(16);if(d.length<2){d="0"+d}a+=d}return a},get_gray:function(a){if(!a.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)){this.TEX.Error(["InvalidDecimalNumber","Invalid decimal number"])}var b=parseFloat(a);if(b<0||b>1){this.TEX.Error(["ModelArg2","Color values for the %1 model must be between %2 and %3","gray",0,1])}b=Math.floor(b*255).toString(16);if(b.length<2){b="0"+b}return"#"+b+b+b},get_named:function(a){if(this.colors[a]){return this.colors[a]}return a},padding:function(){var c="+"+this.config.padding;var a=this.config.padding.replace(/^.*?([a-z]*)$/,"$1");var b="+"+(2*parseFloat(c))+a;return{width:b,height:c,depth:c,lspace:this.config.padding}}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var d=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml;var c=d.Stack.Item;var b=MathJax.Extension["TeX/color"];b.TEX=d;d.Definitions.Add({macros:{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"fColorBox"}},null,true);d.Parse.Augment({Color:function(h){var g=this.GetBrackets(h),e=this.GetArgument(h);e=b.getColor(g,e);var f=c.style().With({styles:{mathcolor:e}});this.stack.env.color=e;this.Push(f)},TextColor:function(h){var g=this.GetBrackets(h),f=this.GetArgument(h);f=b.getColor(g,f);var e=this.stack.env.color;this.stack.env.color=f;var i=this.ParseArg(h);if(e){this.stack.env.color}else{delete this.stack.env.color}this.Push(a.mstyle(i).With({mathcolor:f}))},DefineColor:function(g){var f=this.GetArgument(g),e=this.GetArgument(g),h=this.GetArgument(g);b.colors[f]=b.getColor(e,h)},ColorBox:function(g){var f=this.GetArgument(g),e=this.InternalMath(this.GetArgument(g));this.Push(a.mpadded.apply(a,e).With({mathbackground:b.getColor("named",f)}).With(b.padding()))},fColorBox:function(g){var h=this.GetArgument(g),f=this.GetArgument(g),e=this.InternalMath(this.GetArgument(g));this.Push(a.mpadded.apply(a,e).With({mathbackground:b.getColor("named",f),style:"border: "+b.config.border+" solid "+b.getColor("named",h)}).With(b.padding()))}});MathJax.Hub.Startup.signal.Post("TeX color Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/color.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/enclose.js * /MathJax/extensions/TeX/enclose.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/enclose"]={version:"2.2",ALLOWED:{arrow:1,color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml,b=MathJax.Extension["TeX/enclose"].ALLOWED;c.Definitions.Add({macros:{enclose:"Enclose"}},null,true);c.Parse.Augment({Enclose:function(g){var k=this.GetArgument(g),e=this.GetBrackets(g),j=this.ParseArg(g);var l={notation:k.replace(/,/g," ")};if(e){e=e.replace(/ /g,"").split(/,/);for(var h=0,d=e.length;h<d;h++){var f=e[h].split(/[:=]/);if(b[f[0]]){f[1]=f[1].replace(/^"(.*)"$/,"$1");if(f[1]==="true"){f[1]=true}if(f[1]==="false"){f[1]=false}l[f[0]]=f[1]}}}this.Push(a.menclose(j).With(l))}});MathJax.Hub.Startup.signal.Post("TeX enclose Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/enclose.js"); MathJax.Extension["TeX/enclose"]={version:"2.6.0",ALLOWED:{arrow:1,color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml,b=MathJax.Extension["TeX/enclose"].ALLOWED;c.Definitions.Add({macros:{enclose:"Enclose"}},null,true);c.Parse.Augment({Enclose:function(g){var k=this.GetArgument(g),e=this.GetBrackets(g),j=this.ParseArg(g);var l={notation:k.replace(/,/g," ")};if(e){e=e.replace(/ /g,"").split(/,/);for(var h=0,d=e.length;h<d;h++){var f=e[h].split(/[:=]/);if(b[f[0]]){f[1]=f[1].replace(/^"(.*)"$/,"$1");if(f[1]==="true"){f[1]=true}if(f[1]==="false"){f[1]=false}if(f[0]==="arrow"&&f[1]){l.notation=l.notation+" updiagonalarrow"}else{l[f[0]]=f[1]}}}}this.Push(a.menclose(j).With(l))}});MathJax.Hub.Startup.signal.Post("TeX enclose Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/enclose.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/extpfeil.js * /MathJax/extensions/TeX/extpfeil.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/extpfeil"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX,a=b.Definitions;a.Add({macros:{xtwoheadrightarrow:["Extension","AMSmath"],xtwoheadleftarrow:["Extension","AMSmath"],xmapsto:["Extension","AMSmath"],xlongequal:["Extension","AMSmath"],xtofrom:["Extension","AMSmath"],Newextarrow:["Extension","AMSmath"]}},null,true);MathJax.Hub.Register.StartupHook("TeX AMSmath Ready",function(){MathJax.Hub.Insert(a,{macros:{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"}})});b.Parse.Augment({NewExtArrow:function(c){var e=this.GetArgument(c),f=this.GetArgument(c),d=this.GetArgument(c);if(!e.match(/^\\([a-z]+|.)$/i)){b.Error(["NewextarrowArg1","First argument to %1 must be a control sequence name",c])}if(!f.match(/^(\d+),(\d+)$/)){b.Error(["NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",c])}if(!d.match(/^(\d+|0x[0-9A-F]+)$/i)){b.Error(["NewextarrowArg3","Third argument to %1 must be a unicode character number",c])}e=e.substr(1);f=f.split(",");d=parseInt(d);a.macros[e]=["xArrow",d,parseInt(f[0]),parseInt(f[1])]}});MathJax.Hub.Startup.signal.Post("TeX extpfeil Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/extpfeil.js"); MathJax.Extension["TeX/extpfeil"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX,a=b.Definitions;a.Add({macros:{xtwoheadrightarrow:["Extension","AMSmath"],xtwoheadleftarrow:["Extension","AMSmath"],xmapsto:["Extension","AMSmath"],xlongequal:["Extension","AMSmath"],xtofrom:["Extension","AMSmath"],Newextarrow:["Extension","AMSmath"]}},null,true);MathJax.Hub.Register.StartupHook("TeX AMSmath Ready",function(){MathJax.Hub.Insert(a,{macros:{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"}})});b.Parse.Augment({NewExtArrow:function(c){var e=this.GetArgument(c),f=this.GetArgument(c),d=this.GetArgument(c);if(!e.match(/^\\([a-z]+|.)$/i)){b.Error(["NewextarrowArg1","First argument to %1 must be a control sequence name",c])}if(!f.match(/^(\d+),(\d+)$/)){b.Error(["NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",c])}if(!d.match(/^(\d+|0x[0-9A-F]+)$/i)){b.Error(["NewextarrowArg3","Third argument to %1 must be a unicode character number",c])}e=e.substr(1);f=f.split(",");d=parseInt(d);a.macros[e]=["xArrow",d,parseInt(f[0]),parseInt(f[1])]}});MathJax.Hub.Startup.signal.Post("TeX extpfeil Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/extpfeil.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/mathchoice.js * /MathJax/extensions/TeX/mathchoice.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c="2.2";var a=MathJax.ElementJax.mml;var d=MathJax.InputJax.TeX;var b=d.Definitions;b.Add({macros:{mathchoice:"MathChoice"}},null,true);d.Parse.Augment({MathChoice:function(f){var i=this.ParseArg(f),e=this.ParseArg(f),g=this.ParseArg(f),h=this.ParseArg(f);this.Push(a.TeXmathchoice(i,e,g,h))}});a.TeXmathchoice=a.mbase.Subclass({type:"TeXmathchoice",notParent:true,choice:function(){if(this.selection==null){this.selection=0;var e=this.getValues("displaystyle","scriptlevel");if(e.scriptlevel>0){this.selection=Math.min(3,e.scriptlevel+1)}else{this.selection=(e.displaystyle?0:1)}}return this.selection},selected:function(){return this.data[this.choice()]},setTeXclass:function(e){return this.selected().setTeXclass(e)},isSpacelike:function(){return this.selected().isSpacelike()},isEmbellished:function(){return this.selected().isEmbellished()},Core:function(){return this.selected()},CoreMO:function(){return this.selected().CoreMO()},toHTML:function(e){e=this.HTMLcreateSpan(e);e.bbox=this.Core().toHTML(e).bbox;if(e.firstChild&&e.firstChild.style.marginLeft){e.style.marginLeft=e.firstChild.style.marginLeft;e.firstChild.style.marginLeft=""}return e},toSVG:function(){return this.Core().toSVG()}});MathJax.Hub.Startup.signal.Post("TeX mathchoice Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mathchoice.js"); MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c="2.6.0";var a=MathJax.ElementJax.mml;var d=MathJax.InputJax.TeX;var b=d.Definitions;b.Add({macros:{mathchoice:"MathChoice"}},null,true);d.Parse.Augment({MathChoice:function(f){var i=this.ParseArg(f),e=this.ParseArg(f),g=this.ParseArg(f),h=this.ParseArg(f);this.Push(a.TeXmathchoice(i,e,g,h))}});a.TeXmathchoice=a.mbase.Subclass({type:"TeXmathchoice",notParent:true,choice:function(){if(this.selection!=null){return this.selection}if(this.choosing){return 2}this.choosing=true;var f=0,e=this.getValues("displaystyle","scriptlevel");if(e.scriptlevel>0){f=Math.min(3,e.scriptlevel+1)}else{f=(e.displaystyle?0:1)}var g=this.inherit;while(g&&g.type!=="math"){g=g.inherit}if(g){this.selection=f}this.choosing=false;return f},selected:function(){return this.data[this.choice()]},setTeXclass:function(e){return this.selected().setTeXclass(e)},isSpacelike:function(){return this.selected().isSpacelike()},isEmbellished:function(){return this.selected().isEmbellished()},Core:function(){return this.selected()},CoreMO:function(){return this.selected().CoreMO()},toHTML:function(e){e=this.HTMLcreateSpan(e);e.bbox=this.Core().toHTML(e).bbox;if(e.firstChild&&e.firstChild.style.marginLeft){e.style.marginLeft=e.firstChild.style.marginLeft;e.firstChild.style.marginLeft=""}return e},toSVG:function(){var e=this.Core().toSVG();this.SVGsaveData(e);return e},toCommonHTML:function(e){e=this.CHTMLcreateNode(e);this.CHTMLhandleStyle(e);this.CHTMLhandleColor(e);this.CHTMLaddChild(e,this.choice(),{});return e},toPreviewHTML:function(e){e=this.PHTMLcreateSpan(e);this.PHTMLhandleStyle(e);this.PHTMLhandleColor(e);this.PHTMLaddChild(e,this.choice(),{});return e}});MathJax.Hub.Startup.signal.Post("TeX mathchoice Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mathchoice.js");

View File

@ -0,0 +1,19 @@
/*
* /MathJax/extensions/TeX/mediawiki-texvc.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
MathJax.Extension["TeX/mediawiki-texvc"]={version:"2.6.0-beta.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){MathJax.InputJax.TeX.Definitions.Add({macros:{AA:["Macro","\u00c5"],alef:["Macro","\\aleph"],alefsym:["Macro","\\aleph"],Alpha:["Macro","\\mathrm{A}"],and:["Macro","\\land"],ang:["Macro","\\angle"],Bbb:["Macro","\\mathbb"],Beta:["Macro","\\mathrm{B}"],bold:["Macro","\\mathbf"],bull:["Macro","\\bullet"],C:["Macro","\\mathbb{C}"],Chi:["Macro","\\mathrm{X}"],clubs:["Macro","\\clubsuit"],cnums:["Macro","\\mathbb{C}"],Complex:["Macro","\\mathbb{C}"],coppa:["Macro","\u03D9"],Coppa:["Macro","\u03D8"],Dagger:["Macro","\\ddagger"],Digamma:["Macro","\u03DC"],darr:["Macro","\\downarrow"],dArr:["Macro","\\Downarrow"],Darr:["Macro","\\Downarrow"],diamonds:["Macro","\\diamondsuit"],empty:["Macro","\\emptyset"],Epsilon:["Macro","\\mathrm{E}"],Eta:["Macro","\\mathrm{H}"],euro:["Macro","\u20AC"],exist:["Macro","\\exists"],geneuro:["Macro","\u20AC"],geneuronarrow:["Macro","\u20AC"],geneurowide:["Macro","\u20AC"],H:["Macro","\\mathbb{H}"],hAar:["Macro","\\Leftrightarrow"],harr:["Macro","\\leftrightarrow"],Harr:["Macro","\\Leftrightarrow"],hearts:["Macro","\\heartsuit"],image:["Macro","\\Im"],infin:["Macro","\\infty"],Iota:["Macro","\\mathrm{I}"],isin:["Macro","\\in"],Kappa:["Macro","\\mathrm{K}"],koppa:["Macro","\u03DF"],Koppa:["Macro","\u03DE"],lang:["Macro","\\langle"],larr:["Macro","\\leftarrow"],Larr:["Macro","\\Leftarrow"],lArr:["Macro","\\Leftarrow"],lrarr:["Macro","\\leftrightarrow"],Lrarr:["Macro","\\Leftrightarrow"],lrArr:["Macro","\\Leftrightarrow"],Mu:["Macro","\\mathrm{M}"],N:["Macro","\\mathbb{N}"],natnums:["Macro","\\mathbb{N}"],Nu:["Macro","\\mathrm{N}"],O:["Macro","\\emptyset"],officialeuro:["Macro","\u20AC"],Omicron:["Macro","\\mathrm{O}"],or:["Macro","\\lor"],P:["Macro","\u00B6"],pagecolor:["Macro","",1],part:["Macro","\\partial"],plusmn:["Macro","\\pm"],Q:["Macro","\\mathbb{Q}"],R:["Macro","\\mathbb{R}"],rang:["Macro","\\rangle"],rarr:["Macro","\\rightarrow"],Rarr:["Macro","\\Rightarrow"],rArr:["Macro","\\Rightarrow"],real:["Macro","\\Re"],reals:["Macro","\\mathbb{R}"],Reals:["Macro","\\mathbb{R}"],Rho:["Macro","\\mathrm{P}"],sdot:["Macro","\\cdot"],sampi:["Macro","\u03E1"],Sampi:["Macro","\u03E0"],sect:["Macro","\\S"],spades:["Macro","\\spadesuit"],stigma:["Macro","\u03DB"],Stigma:["Macro","\u03DA"],sub:["Macro","\\subset"],sube:["Macro","\\subseteq"],supe:["Macro","\\supseteq"],Tau:["Macro","\\mathrm{T}"],textvisiblespace:["Macro","\u2423"],thetasym:["Macro","\\vartheta"],uarr:["Macro","\\uparrow"],uArr:["Macro","\\Uparrow"],Uarr:["Macro","\\Uparrow"],varcoppa:["Macro","\u03D9"],varstigma:["Macro","\u03DB"],vline:["Macro","\\smash{\\large\\lvert}",0],weierp:["Macro","\\wp"],Z:["Macro","\\mathbb{Z}"],Zeta:["Macro","\\mathrm{Z}"]}})});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/mediawiki-texvc.js");

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/newcommand.js * /MathJax/extensions/TeX/newcommand.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/newcommand"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX;var a=b.Definitions;a.Add({macros:{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"}},null,true);b.Parse.Augment({NewCommand:function(c){var e=this.trimSpaces(this.GetArgument(c)),g=this.GetBrackets(c),d=this.GetBrackets(c),f=this.GetArgument(c);if(e.charAt(0)==="\\"){e=e.substr(1)}if(!e.match(/^(.|[a-z]+)$/i)){b.Error(["IllegalControlSequenceName","Illegal control sequence name for %1",c])}if(g){g=this.trimSpaces(g);if(!g.match(/^[0-9]+$/)){b.Error(["IllegalParamNumber","Illegal number of parameters specified in %1",c])}}this.setDef(e,["Macro",f,g,d])},NewEnvironment:function(d){var e=this.trimSpaces(this.GetArgument(d)),g=this.GetBrackets(d),f=this.GetArgument(d),c=this.GetArgument(d);if(g){g=this.trimSpaces(g);if(!g.match(/^[0-9]+$/)){b.Error(["IllegalParamNumber","Illegal number of parameters specified in %1",d])}}this.setEnv(e,["BeginEnv","EndEnv",f,c,g])},MacroDef:function(c){var d=this.GetCSname(c),f=this.GetTemplate(c,"\\"+d),e=this.GetArgument(c);if(!(f instanceof Array)){this.setDef(d,["Macro",e,f])}else{this.setDef(d,["MacroWithTemplate",e].concat(f))}},Let:function(d){var e=this.GetCSname(d),f;var g=this.GetNext();if(g==="="){this.i++;g=this.GetNext()}if(g==="\\"){d=this.GetCSname(d);f=this.csFindMacro(d);if(!f){if(a.mathchar0mi[d]){f=["csMathchar0mi",a.mathchar0mi[d]]}else{if(a.mathchar0mo[d]){f=["csMathchar0mo",a.mathchar0mo[d]]}else{if(a.mathchar7[d]){f=["csMathchar7",a.mathchar7[d]]}else{if(a.delimiter["\\"+d]!=null){f=["csDelimiter",a.delimiter["\\"+d]]}}}}}}else{f=["Macro",g];this.i++}this.setDef(e,f)},setDef:function(c,d){d.isUser=true;a.macros[c]=d},setEnv:function(c,d){d.isUser=true;a.environment[c]=d},GetCSname:function(e){var f=this.GetNext();if(f!=="\\"){b.Error(["DoubleBackSlash","\\ must be followed by a control sequence"])}var d=this.trimSpaces(this.GetArgument(e));return d.substr(1)},GetTemplate:function(f,e){var j,g=[],h=0;j=this.GetNext();var d=this.i;while(this.i<this.string.length){j=this.GetNext();if(j==="#"){if(d!==this.i){g[h]=this.string.substr(d,this.i-d)}j=this.string.charAt(++this.i);if(!j.match(/^[1-9]$/)){b.Error(["CantUseHash2","Illegal use of # in template for %1",e])}if(parseInt(j)!=++h){b.Error(["SequentialParam","Parameters for %1 must be numbered sequentially",e])}d=this.i+1}else{if(j==="{"){if(d!==this.i){g[h]=this.string.substr(d,this.i-d)}if(g.length>0){return[h,g]}else{return h}}}this.i++}b.Error(["MissingReplacementString","Missing replacement string for definition of %1",f])},MacroWithTemplate:function(d,g,h,f){if(h){var c=[];this.GetNext();if(f[0]&&!this.MatchParam(f[0])){b.Error(["MismatchUseDef","Use of %1 doesn't match its definition",d])}for(var e=0;e<h;e++){c.push(this.GetParameter(d,f[e+1]))}g=this.SubstituteArgs(c,g)}this.string=this.AddArgs(g,this.string.slice(this.i));this.i=0;if(++this.macroCount>b.config.MAXMACROS){b.Error(["MaxMacroSub1","MathJax maximum macro substitution count exceeded; is there a recursive macro call?"])}},BeginEnv:function(f,h,c,g){if(g){var d=[];for(var e=0;e<g;e++){d.push(this.GetArgument("\\begin{"+name+"}"))}h=this.SubstituteArgs(d,h);c=this.SubstituteArgs(d,c)}f.edef=c;this.string=this.AddArgs(h,this.string.slice(this.i));this.i=0;return f},EndEnv:function(c,d){this.string=this.AddArgs(c.edef,this.string.slice(this.i));this.i=0;return d},GetParameter:function(d,g){if(g==null){return this.GetArgument(d)}var f=this.i,c=0,e=0;while(this.i<this.string.length){if(this.string.charAt(this.i)==="{"){if(this.i===f){e=1}this.GetArgument(d);c=this.i-f}else{if(this.MatchParam(g)){if(e){f++;c-=2}return this.string.substr(f,c)}else{this.i++;c++;e=0}}}b.Error(["RunawayArgument","Runaway argument for %1?",d])},MatchParam:function(c){if(this.string.substr(this.i,c.length)!==c){return 0}this.i+=c.length;return 1}});b.Environment=function(c){a.environment[c]=["BeginEnv","EndEnv"].concat([].slice.call(arguments,1));a.environment[c].isUser=true};MathJax.Hub.Startup.signal.Post("TeX newcommand Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/newcommand.js"); MathJax.Extension["TeX/newcommand"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX;var a=b.Definitions;a.Add({macros:{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"}},null,true);b.Parse.Augment({NewCommand:function(c){var e=this.trimSpaces(this.GetArgument(c)),g=this.GetBrackets(c),d=this.GetBrackets(c),f=this.GetArgument(c);if(e.charAt(0)==="\\"){e=e.substr(1)}if(!e.match(/^(.|[a-z]+)$/i)){b.Error(["IllegalControlSequenceName","Illegal control sequence name for %1",c])}if(g){g=this.trimSpaces(g);if(!g.match(/^[0-9]+$/)){b.Error(["IllegalParamNumber","Illegal number of parameters specified in %1",c])}}this.setDef(e,["Macro",f,g,d])},NewEnvironment:function(d){var f=this.trimSpaces(this.GetArgument(d)),h=this.GetBrackets(d),e=this.GetBrackets(d),g=this.GetArgument(d),c=this.GetArgument(d);if(h){h=this.trimSpaces(h);if(!h.match(/^[0-9]+$/)){b.Error(["IllegalParamNumber","Illegal number of parameters specified in %1",d])}}this.setEnv(f,["BeginEnv",[null,"EndEnv"],g,c,h,e])},MacroDef:function(c){var d=this.GetCSname(c),f=this.GetTemplate(c,"\\"+d),e=this.GetArgument(c);if(!(f instanceof Array)){this.setDef(d,["Macro",e,f])}else{this.setDef(d,["MacroWithTemplate",e].concat(f))}},Let:function(d){var e=this.GetCSname(d),f;var g=this.GetNext();if(g==="="){this.i++;g=this.GetNext()}if(g==="\\"){d=this.GetCSname(d);f=this.csFindMacro(d);if(!f){if(a.mathchar0mi[d]){f=["csMathchar0mi",a.mathchar0mi[d]]}else{if(a.mathchar0mo[d]){f=["csMathchar0mo",a.mathchar0mo[d]]}else{if(a.mathchar7[d]){f=["csMathchar7",a.mathchar7[d]]}else{if(a.delimiter["\\"+d]!=null){f=["csDelimiter",a.delimiter["\\"+d]]}}}}}}else{f=["Macro",g];this.i++}this.setDef(e,f)},setDef:function(c,d){d.isUser=true;a.macros[c]=d},setEnv:function(c,d){d.isUser=true;a.environment[c]=d},GetCSname:function(e){var f=this.GetNext();if(f!=="\\"){b.Error(["MissingCS","%1 must be followed by a control sequence",e])}var d=this.trimSpaces(this.GetArgument(e));return d.substr(1)},GetTemplate:function(f,e){var j,g=[],h=0;j=this.GetNext();var d=this.i;while(this.i<this.string.length){j=this.GetNext();if(j==="#"){if(d!==this.i){g[h]=this.string.substr(d,this.i-d)}j=this.string.charAt(++this.i);if(!j.match(/^[1-9]$/)){b.Error(["CantUseHash2","Illegal use of # in template for %1",e])}if(parseInt(j)!=++h){b.Error(["SequentialParam","Parameters for %1 must be numbered sequentially",e])}d=this.i+1}else{if(j==="{"){if(d!==this.i){g[h]=this.string.substr(d,this.i-d)}if(g.length>0){return[h,g]}else{return h}}}this.i++}b.Error(["MissingReplacementString","Missing replacement string for definition of %1",f])},MacroWithTemplate:function(d,g,h,f){if(h){var c=[];this.GetNext();if(f[0]&&!this.MatchParam(f[0])){b.Error(["MismatchUseDef","Use of %1 doesn't match its definition",d])}for(var e=0;e<h;e++){c.push(this.GetParameter(d,f[e+1]))}g=this.SubstituteArgs(c,g)}this.string=this.AddArgs(g,this.string.slice(this.i));this.i=0;if(++this.macroCount>b.config.MAXMACROS){b.Error(["MaxMacroSub1","MathJax maximum macro substitution count exceeded; is there a recursive macro call?"])}},BeginEnv:function(g,k,c,j,h){if(j){var e=[];if(h!=null){var d=this.GetBrackets("\\begin{"+name+"}");e.push(d==null?h:d)}for(var f=e.length;f<j;f++){e.push(this.GetArgument("\\begin{"+name+"}"))}k=this.SubstituteArgs(e,k);c=this.SubstituteArgs([],c)}this.string=this.AddArgs(k,this.string.slice(this.i));this.i=0;return g},EndEnv:function(e,g,d,f){var c="\\end{\\end\\"+e.name+"}";this.string=this.AddArgs(d,c+this.string.slice(this.i));this.i=0;return null},GetParameter:function(d,g){if(g==null){return this.GetArgument(d)}var f=this.i,c=0,e=0;while(this.i<this.string.length){if(this.string.charAt(this.i)==="{"){if(this.i===f){e=1}this.GetArgument(d);c=this.i-f}else{if(this.MatchParam(g)){if(e){f++;c-=2}return this.string.substr(f,c)}else{this.i++;c++;e=0}}}b.Error(["RunawayArgument","Runaway argument for %1?",d])},MatchParam:function(c){if(this.string.substr(this.i,c.length)!==c){return 0}this.i+=c.length;return 1}});b.Environment=function(c){a.environment[c]=["BeginEnv","EndEnv"].concat([].slice.call(arguments,1));a.environment[c].isUser=true};MathJax.Hub.Startup.signal.Post("TeX newcommand Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/newcommand.js");

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/noUndefined.js * /MathJax/extensions/TeX/noUndefined.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/noUndefined"]={version:"2.2",config:MathJax.Hub.CombineConfig("TeX.noUndefined",{disabled:false,attributes:{mathcolor:"red"}})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.Extension["TeX/noUndefined"].config;var a=MathJax.ElementJax.mml;var c=MathJax.InputJax.TeX.Parse.prototype.csUndefined;MathJax.InputJax.TeX.Parse.Augment({csUndefined:function(d){if(b.disabled){return c.apply(this,arguments)}MathJax.Hub.signal.Post(["TeX Jax - undefined control sequence",d]);this.Push(a.mtext(d).With(b.attributes))}});MathJax.Hub.Startup.signal.Post("TeX noUndefined Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/noUndefined.js"); MathJax.Extension["TeX/noUndefined"]={version:"2.6.0",config:MathJax.Hub.CombineConfig("TeX.noUndefined",{disabled:false,attributes:{mathcolor:"red"}})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.Extension["TeX/noUndefined"].config;var a=MathJax.ElementJax.mml;var c=MathJax.InputJax.TeX.Parse.prototype.csUndefined;MathJax.InputJax.TeX.Parse.Augment({csUndefined:function(d){if(b.disabled){return c.apply(this,arguments)}MathJax.Hub.signal.Post(["TeX Jax - undefined control sequence",d]);this.Push(a.mtext(d).With(b.attributes))}});MathJax.Hub.Startup.signal.Post("TeX noUndefined Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/noUndefined.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/unicode.js * /MathJax/extensions/TeX/unicode.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/unicode"]={version:"2.2",unicode:{},config:MathJax.Hub.CombineConfig("TeX.unicode",{fonts:"STIXGeneral,'Arial Unicode MS'"})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX;var a=MathJax.ElementJax.mml;var b=MathJax.Extension["TeX/unicode"].unicode;c.Definitions.Add({macros:{unicode:"Unicode"}},null,true);c.Parse.Augment({Unicode:function(e){var i=this.GetBrackets(e),d;if(i){if(i.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)){i=i.replace(/ /g,"").split(/,/);d=this.GetBrackets(e)}else{d=i;i=null}}var j=this.trimSpaces(this.GetArgument(e)),h=parseInt(j.match(/^x/)?"0"+j:j);if(!b[h]){b[h]=[800,200,d,h]}else{if(!d){d=b[h][2]}}if(i){b[h][0]=Math.floor(i[0]*1000);b[h][1]=Math.floor(i[1]*1000)}var f=this.stack.env.font,g={};if(d){b[h][2]=g.fontfamily=d.replace(/"/g,"'");if(f){if(f.match(/bold/)){g.fontweight="bold"}if(f.match(/italic|-mathit/)){g.fontstyle="italic"}}}else{if(f){g.mathvariant=f}}g.unicode=[].concat(b[h]);this.Push(a.mtext(a.entity("#"+j)).With(g))}});MathJax.Hub.Startup.signal.Post("TeX unicode Ready")});MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.Extension["TeX/unicode"].config.fonts;var b=a.mbase.prototype.HTMLgetVariant;a.mbase.Augment({HTMLgetVariant:function(){var d=b.call(this);if(d.unicode){delete d.unicode;delete d.FONTS}if(!this.unicode){return d}d.unicode=true;if(!d.defaultFont){d=MathJax.Hub.Insert({},d);d.defaultFont={family:c}}var e=this.unicode[2];if(e){e+=","+c}else{e=c}d.defaultFont[this.unicode[3]]=[this.unicode[0],this.unicode[1],500,0,500,{isUnknown:true,isUnicode:true,font:e}];return d}})});MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.Extension["TeX/unicode"].config.fonts;var b=a.mbase.prototype.SVGgetVariant;a.mbase.Augment({SVGgetVariant:function(){var d=b.call(this);if(d.unicode){delete d.unicode;delete d.FONTS}if(!this.unicode){return d}d.unicode=true;if(!d.forceFamily){d=MathJax.Hub.Insert({},d)}d.defaultFamily=c;d.noRemap=true;d.h=this.unicode[0];d.d=this.unicode[1];return d}})});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/unicode.js"); MathJax.Extension["TeX/unicode"]={version:"2.6.0",unicode:{},config:MathJax.Hub.CombineConfig("TeX.unicode",{fonts:"STIXGeneral,'Arial Unicode MS'"})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX;var a=MathJax.ElementJax.mml;var b=MathJax.Extension["TeX/unicode"].unicode;c.Definitions.Add({macros:{unicode:"Unicode"}},null,true);c.Parse.Augment({Unicode:function(e){var i=this.GetBrackets(e),d;if(i){if(i.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)){i=i.replace(/ /g,"").split(/,/);d=this.GetBrackets(e)}else{d=i;i=null}}var j=this.trimSpaces(this.GetArgument(e)),h=parseInt(j.match(/^x/)?"0"+j:j);if(!b[h]){b[h]=[800,200,d,h]}else{if(!d){d=b[h][2]}}if(i){b[h][0]=Math.floor(i[0]*1000);b[h][1]=Math.floor(i[1]*1000)}var f=this.stack.env.font,g={};if(d){b[h][2]=g.fontfamily=d.replace(/"/g,"'");if(f){if(f.match(/bold/)){g.fontweight="bold"}if(f.match(/italic|-mathit/)){g.fontstyle="italic"}}}else{if(f){g.mathvariant=f}}g.unicode=[].concat(b[h]);this.Push(a.mtext(a.entity("#"+j)).With(g))}});MathJax.Hub.Startup.signal.Post("TeX unicode Ready")});MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.Extension["TeX/unicode"].config.fonts;var b=a.mbase.prototype.HTMLgetVariant;a.mbase.Augment({HTMLgetVariant:function(){var d=b.apply(this,arguments);if(d.unicode){delete d.unicode;delete d.FONTS}if(!this.unicode){return d}d.unicode=true;if(!d.defaultFont){d=MathJax.Hub.Insert({},d);d.defaultFont={family:c}}var e=this.unicode[2];if(e){e+=","+c}else{e=c}d.defaultFont[this.unicode[3]]=[this.unicode[0],this.unicode[1],500,0,500,{isUnknown:true,isUnicode:true,font:e}];return d}})});MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.Extension["TeX/unicode"].config.fonts;var b=a.mbase.prototype.SVGgetVariant;a.mbase.Augment({SVGgetVariant:function(){var d=b.call(this);if(d.unicode){delete d.unicode;delete d.FONTS}if(!this.unicode){return d}d.unicode=true;if(!d.forceFamily){d=MathJax.Hub.Insert({},d)}d.defaultFamily=c;d.noRemap=true;d.h=this.unicode[0];d.d=this.unicode[1];return d}})});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/unicode.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/TeX/verb.js * /MathJax/extensions/TeX/verb.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension["TeX/verb"]={version:"2.2"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.InputJax.TeX;var b=c.Definitions;b.Add({macros:{verb:"Verb"}},null,true);c.Parse.Augment({Verb:function(d){var g=this.GetNext();var f=++this.i;if(g==""){c.Error(["MissingArgFor","Missing argument for %1",d])}while(this.i<this.string.length&&this.string.charAt(this.i)!=g){this.i++}if(this.i==this.string.length){c.Error(["NoClosingDelim","Can't find closing delimiter for %1",d])}var e=this.string.slice(f,this.i).replace(/ /g,"\u00A0");this.i++;this.Push(a.mtext(e).With({mathvariant:a.VARIANT.MONOSPACE}))}});MathJax.Hub.Startup.signal.Post("TeX verb Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/verb.js"); MathJax.Extension["TeX/verb"]={version:"2.6.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.ElementJax.mml;var c=MathJax.InputJax.TeX;var b=c.Definitions;b.Add({macros:{verb:"Verb"}},null,true);c.Parse.Augment({Verb:function(d){var g=this.GetNext();var f=++this.i;if(g==""){c.Error(["MissingArgFor","Missing argument for %1",d])}while(this.i<this.string.length&&this.string.charAt(this.i)!=g){this.i++}if(this.i==this.string.length){c.Error(["NoClosingDelim","Can't find closing delimiter for %1",d])}var e=this.string.slice(f,this.i).replace(/ /g,"\u00A0");this.i++;this.Push(a.mtext(e).With({mathvariant:a.VARIANT.MONOSPACE}))}});MathJax.Hub.Startup.signal.Post("TeX verb Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/verb.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/asciimath2jax.js * /MathJax/extensions/asciimath2jax.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension.asciimath2jax={version:"2.2",config:{delimiters:[["`","`"]],skipTags:["script","noscript","style","textarea","pre","code"],ignoreClass:"asciimath2jax_ignore",processClass:"asciimath2jax_process",preview:"AsciiMath"},PreProcess:function(a){if(!this.configured){this.config=MathJax.Hub.CombineConfig("asciimath2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}this.configured=true}if(typeof(a)==="string"){a=document.getElementById(a)}if(!a){a=document.body}if(this.createPatterns()){this.scanElement(a,a.nextSibling)}},createPatterns:function(){var d=[],c,a,b=this.config;this.match={};if(b.delimiters.length===0){return false}for(c=0,a=b.delimiters.length;c<a;c++){d.push(this.patternQuote(b.delimiters[c][0]));this.match[b.delimiters[c][0]]={mode:"",end:b.delimiters[c][1],pattern:this.endPattern(b.delimiters[c][1])}}this.start=new RegExp(d.sort(this.sortLength).join("|"),"g");this.skipTags=new RegExp("^("+b.skipTags.join("|")+")$","i");var e=[];if(MathJax.Hub.config.preRemoveClass){e.push(MathJax.Hub.config.preRemoveClass)}if(b.ignoreClass){e.push(b.ignoreClass)}this.ignoreClass=(e.length?new RegExp("(^| )("+e.join("|")+")( |$)"):/^$/);this.processClass=new RegExp("(^| )("+b.processClass+")( |$)");return true},patternQuote:function(a){return a.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")},endPattern:function(a){return new RegExp(this.patternQuote(a)+"|\\\\.","g")},sortLength:function(d,c){if(d.length!==c.length){return c.length-d.length}return(d==c?0:(d<c?-1:1))},scanElement:function(c,b,g){var a,e,d,f;while(c&&c!=b){if(c.nodeName.toLowerCase()==="#text"){if(!g){c=this.scanText(c)}}else{a=(typeof(c.className)==="undefined"?"":c.className);e=(typeof(c.tagName)==="undefined"?"":c.tagName);if(typeof(a)!=="string"){a=String(a)}f=this.processClass.exec(a);if(c.firstChild&&!a.match(/(^| )MathJax/)&&(f||!this.skipTags.exec(e))){d=(g||this.ignoreClass.exec(a))&&!f;this.scanElement(c.firstChild,b,d)}}if(c){c=c.nextSibling}}},scanText:function(b){if(b.nodeValue.replace(/\s+/,"")==""){return b}var a,c;this.search={start:true};this.pattern=this.start;while(b){this.pattern.lastIndex=0;while(b&&b.nodeName.toLowerCase()==="#text"&&(a=this.pattern.exec(b.nodeValue))){if(this.search.start){b=this.startMatch(a,b)}else{b=this.endMatch(a,b)}}if(this.search.matched){b=this.encloseMath(b)}if(b){do{c=b;b=b.nextSibling}while(b&&(b.nodeName.toLowerCase()==="br"||b.nodeName.toLowerCase()==="#comment"));if(!b||b.nodeName!=="#text"){return c}}}return b},startMatch:function(a,b){var c=this.match[a[0]];if(c!=null){this.search={end:c.end,mode:c.mode,open:b,olen:a[0].length,opos:this.pattern.lastIndex-a[0].length};this.switchPattern(c.pattern)}return b},endMatch:function(a,b){if(a[0]==this.search.end){this.search.close=b;this.search.cpos=this.pattern.lastIndex;this.search.clen=(this.search.isBeginEnd?0:a[0].length);this.search.matched=true;b=this.encloseMath(b);this.switchPattern(this.start)}return b},switchPattern:function(a){a.lastIndex=this.pattern.lastIndex;this.pattern=a;this.search.start=(a===this.start)},encloseMath:function(b){var a=this.search,f=a.close,e,c;if(a.cpos===f.length){f=f.nextSibling}else{f=f.splitText(a.cpos)}if(!f){e=f=MathJax.HTML.addText(a.close.parentNode,"")}a.close=f;c=(a.opos?a.open.splitText(a.opos):a.open);while(c.nextSibling&&c.nextSibling!==f){if(c.nextSibling.nodeValue!==null){if(c.nextSibling.nodeName==="#comment"){c.nodeValue+=c.nextSibling.nodeValue.replace(/^\[CDATA\[((.|\n|\r)*)\]\]$/,"$1")}else{c.nodeValue+=c.nextSibling.nodeValue}}else{if(this.msieNewlineBug){c.nodeValue+=(c.nextSibling.nodeName.toLowerCase()==="br"?"\n":" ")}else{c.nodeValue+=" "}}c.parentNode.removeChild(c.nextSibling)}var d=c.nodeValue.substr(a.olen,c.nodeValue.length-a.olen-a.clen);c.parentNode.removeChild(c);if(this.config.preview!=="none"){this.createPreview(a.mode,d)}c=this.createMathTag(a.mode,d);this.search={};this.pattern.lastIndex=0;if(e){e.parentNode.removeChild(e)}return c},insertNode:function(b){var a=this.search;a.close.parentNode.insertBefore(b,a.close)},createPreview:function(c,a){var b=this.config.preview;if(b==="none"){return}if(b==="AsciiMath"){b=[this.filterPreview(a)]}if(b){b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b);this.insertNode(b)}},createMathTag:function(c,a){var b=document.createElement("script");b.type="math/asciimath"+c;MathJax.HTML.setScript(b,a);this.insertNode(b);return b},filterPreview:function(a){return a},msieNewlineBug:(MathJax.Hub.Browser.isMSIE&&(document.documentMode||0)<9)};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.asciimath2jax]);MathJax.Ajax.loadComplete("[MathJax]/extensions/asciimath2jax.js"); MathJax.Extension.asciimath2jax={version:"2.6.0",config:{delimiters:[["`","`"]],skipTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],ignoreClass:"asciimath2jax_ignore",processClass:"asciimath2jax_process",preview:"AsciiMath"},PreProcess:function(a){if(!this.configured){this.config=MathJax.Hub.CombineConfig("asciimath2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}this.configured=true}if(typeof(a)==="string"){a=document.getElementById(a)}if(!a){a=document.body}if(this.createPatterns()){this.scanElement(a,a.nextSibling)}},createPatterns:function(){var d=[],c,a,b=this.config;this.match={};if(b.delimiters.length===0){return false}for(c=0,a=b.delimiters.length;c<a;c++){d.push(this.patternQuote(b.delimiters[c][0]));this.match[b.delimiters[c][0]]={mode:"",end:b.delimiters[c][1],pattern:this.endPattern(b.delimiters[c][1])}}this.start=new RegExp(d.sort(this.sortLength).join("|"),"g");this.skipTags=new RegExp("^("+b.skipTags.join("|")+")$","i");var e=[];if(MathJax.Hub.config.preRemoveClass){e.push(MathJax.Hub.config.preRemoveClass)}if(b.ignoreClass){e.push(b.ignoreClass)}this.ignoreClass=(e.length?new RegExp("(^| )("+e.join("|")+")( |$)"):/^$/);this.processClass=new RegExp("(^| )("+b.processClass+")( |$)");return true},patternQuote:function(a){return a.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")},endPattern:function(a){return new RegExp(this.patternQuote(a)+"|\\\\.","g")},sortLength:function(d,c){if(d.length!==c.length){return c.length-d.length}return(d==c?0:(d<c?-1:1))},scanElement:function(c,b,g){var a,e,d,f;while(c&&c!=b){if(c.nodeName.toLowerCase()==="#text"){if(!g){c=this.scanText(c)}}else{a=(typeof(c.className)==="undefined"?"":c.className);e=(typeof(c.tagName)==="undefined"?"":c.tagName);if(typeof(a)!=="string"){a=String(a)}f=this.processClass.exec(a);if(c.firstChild&&!a.match(/(^| )MathJax/)&&(f||!this.skipTags.exec(e))){d=(g||this.ignoreClass.exec(a))&&!f;this.scanElement(c.firstChild,b,d)}}if(c){c=c.nextSibling}}},scanText:function(b){if(b.nodeValue.replace(/\s+/,"")==""){return b}var a,c;this.search={start:true};this.pattern=this.start;while(b){this.pattern.lastIndex=0;while(b&&b.nodeName.toLowerCase()==="#text"&&(a=this.pattern.exec(b.nodeValue))){if(this.search.start){b=this.startMatch(a,b)}else{b=this.endMatch(a,b)}}if(this.search.matched){b=this.encloseMath(b)}if(b){do{c=b;b=b.nextSibling}while(b&&(b.nodeName.toLowerCase()==="br"||b.nodeName.toLowerCase()==="#comment"));if(!b||b.nodeName!=="#text"){return c}}}return b},startMatch:function(a,b){var c=this.match[a[0]];if(c!=null){this.search={end:c.end,mode:c.mode,open:b,olen:a[0].length,opos:this.pattern.lastIndex-a[0].length};this.switchPattern(c.pattern)}return b},endMatch:function(a,b){if(a[0]==this.search.end){this.search.close=b;this.search.cpos=this.pattern.lastIndex;this.search.clen=(this.search.isBeginEnd?0:a[0].length);this.search.matched=true;b=this.encloseMath(b);this.switchPattern(this.start)}return b},switchPattern:function(a){a.lastIndex=this.pattern.lastIndex;this.pattern=a;this.search.start=(a===this.start)},encloseMath:function(b){var a=this.search,f=a.close,e,c;if(a.cpos===f.length){f=f.nextSibling}else{f=f.splitText(a.cpos)}if(!f){e=f=MathJax.HTML.addText(a.close.parentNode,"")}a.close=f;c=(a.opos?a.open.splitText(a.opos):a.open);while(c.nextSibling&&c.nextSibling!==f){if(c.nextSibling.nodeValue!==null){if(c.nextSibling.nodeName==="#comment"){c.nodeValue+=c.nextSibling.nodeValue.replace(/^\[CDATA\[((.|\n|\r)*)\]\]$/,"$1")}else{c.nodeValue+=c.nextSibling.nodeValue}}else{if(this.msieNewlineBug){c.nodeValue+=(c.nextSibling.nodeName.toLowerCase()==="br"?"\n":" ")}else{c.nodeValue+=" "}}c.parentNode.removeChild(c.nextSibling)}var d=c.nodeValue.substr(a.olen,c.nodeValue.length-a.olen-a.clen);c.parentNode.removeChild(c);if(this.config.preview!=="none"){this.createPreview(a.mode,d)}c=this.createMathTag(a.mode,d);this.search={};this.pattern.lastIndex=0;if(e){e.parentNode.removeChild(e)}return c},insertNode:function(b){var a=this.search;a.close.parentNode.insertBefore(b,a.close)},createPreview:function(c,a){var b=this.config.preview;if(b==="none"){return}if(b==="AsciiMath"){b=[this.filterPreview(a)]}if(b){b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b);this.insertNode(b)}},createMathTag:function(c,a){var b=document.createElement("script");b.type="math/asciimath"+c;MathJax.HTML.setScript(b,a);this.insertNode(b);return b},filterPreview:function(a){return a},msieNewlineBug:(MathJax.Hub.Browser.isMSIE&&(document.documentMode||0)<9)};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.asciimath2jax]);MathJax.Ajax.loadComplete("[MathJax]/extensions/asciimath2jax.js");

View File

@ -0,0 +1,19 @@
/*
* /MathJax/extensions/fast-preview.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function(b,g,f){var c=b.config.menuSettings;var e=MathJax.OutputJax;var a=f.isMSIE&&(document.documentMode||0)<8;var d=MathJax.Extension["fast-preview"]={version:"2.6.0",enabled:true,config:b.CombineConfig("fast-preview",{Chunks:{EqnChunk:10000,EqnChunkFactor:1,EqnChunkDelay:0},color:"inherit!important",updateTime:30,updateDelay:6,messageStyle:"none",disabled:f.isMSIE&&!f.versionAtLeast("8.0")}),Config:function(){if(b.config["CHTML-preview"]){MathJax.Hub.Config({"fast-preview":b.config["CHTML-preview"]})}var m,j,k,h,l;var i=this.config;if(!i.disabled&&c.FastPreview==null){b.Config({menuSettings:{FastPreview:true}})}if(c.FastPreview){MathJax.Ajax.Styles({".MathJax_Preview .MJXf-math":{color:i.color}});b.Config({"HTML-CSS":i.Chunks,CommonHTML:i.Chunks,SVG:i.Chunks})}b.Register.MessageHook("Begin Math Output",function(){if(!h&&d.Active()){m=b.processUpdateTime;j=b.processUpdateDelay;k=b.config.messageStyle;b.processUpdateTime=i.updateTime;b.processUpdateDelay=i.updateDelay;b.Config({messageStyle:i.messageStyle});MathJax.Message.Clear(0,0);l=true}});b.Register.MessageHook("End Math Output",function(){if(!h&&l){b.processUpdateTime=m;b.processUpdateDelay=j;b.Config({messageStyle:k});h=true}})},Disable:function(){this.enabled=false},Enable:function(){this.enabled=true},Active:function(){return c.FastPreview&&this.enabled&&!(e[c.renderer]||{}).noFastPreview},Preview:function(h){if(!this.Active()){return}var i=h.script.MathJax.preview||h.script.previousSibling;if(!i||i.className!==MathJax.Hub.config.preRemoveClass){i=g.Element("span",{className:MathJax.Hub.config.preRemoveClass});h.script.parentNode.insertBefore(i,h.script);h.script.MathJax.preview=i}i.innerHTML="";i.style.color=(a?"black":"inherit");return this.postFilter(i,h)},postFilter:function(j,i){if(!i.math.root.toPreviewHTML){var h=MathJax.Callback.Queue();h.Push(["Require",MathJax.Ajax,"[MathJax]/jax/output/PreviewHTML/config.js"],["Require",MathJax.Ajax,"[MathJax]/jax/output/PreviewHTML/jax.js"]);b.RestartAfter(h.Push({}))}i.math.root.toPreviewHTML(j)},Register:function(h){b.Register.StartupHook(h+" Jax Require",function(){var i=MathJax.InputJax[h];i.postfilterHooks.Add(["Preview",MathJax.Extension["fast-preview"]],50)})}};d.Register("TeX");d.Register("MathML");d.Register("AsciiMath");b.Register.StartupHook("End Config",["Config",d]);b.Startup.signal.Post("fast-preview Ready")})(MathJax.Hub,MathJax.HTML,MathJax.Hub.Browser);MathJax.Ajax.loadComplete("[MathJax]/extensions/fast-preview.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/jsMath2jax.js * /MathJax/extensions/jsMath2jax.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension.jsMath2jax={version:"2.2",config:{preview:"TeX"},PreProcess:function(b){if(!this.configured){this.config=MathJax.Hub.CombineConfig("jsMath2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}if(typeof(this.config.previewTeX)!=="undefined"&&!this.config.previewTeX){this.config.preview="none"}this.previewClass=MathJax.Hub.config.preRemoveClass;this.configured=true}if(typeof(b)==="string"){b=document.getElementById(b)}if(!b){b=document.body}var c=b.getElementsByTagName("span"),a;for(a=c.length-1;a>=0;a--){if(String(c[a].className).match(/(^| )math( |$)/)){this.ConvertMath(c[a],"")}}var d=b.getElementsByTagName("div");for(a=d.length-1;a>=0;a--){if(String(d[a].className).match(/(^| )math( |$)/)){this.ConvertMath(d[a],"; mode=display")}}},ConvertMath:function(c,d){if(c.getElementsByTagName("script").length===0){var b=c.parentNode,a=this.createMathTag(d,c.innerHTML);if(c.nextSibling){b.insertBefore(a,c.nextSibling)}else{b.appendChild(a)}if(this.config.preview!=="none"){this.createPreview(c)}b.removeChild(c)}},createPreview:function(a){var b=this.config.preview;if(b==="TeX"){b=[this.filterPreview(a.innerHTML)]}if(b){b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b);a.parentNode.insertBefore(b,a)}},createMathTag:function(c,b){b=b.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");var a=document.createElement("script");a.type="math/tex"+c;MathJax.HTML.setScript(a,b);return a},filterPreview:function(a){return a}};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.jsMath2jax],8);MathJax.Ajax.loadComplete("[MathJax]/extensions/jsMath2jax.js"); MathJax.Extension.jsMath2jax={version:"2.6.0",config:{preview:"TeX"},PreProcess:function(b){if(!this.configured){this.config=MathJax.Hub.CombineConfig("jsMath2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}if(typeof(this.config.previewTeX)!=="undefined"&&!this.config.previewTeX){this.config.preview="none"}this.previewClass=MathJax.Hub.config.preRemoveClass;this.configured=true}if(typeof(b)==="string"){b=document.getElementById(b)}if(!b){b=document.body}var c=b.getElementsByTagName("span"),a;for(a=c.length-1;a>=0;a--){if(String(c[a].className).match(/(^| )math( |$)/)){this.ConvertMath(c[a],"")}}var d=b.getElementsByTagName("div");for(a=d.length-1;a>=0;a--){if(String(d[a].className).match(/(^| )math( |$)/)){this.ConvertMath(d[a],"; mode=display")}}},ConvertMath:function(c,d){if(c.getElementsByTagName("script").length===0){var b=c.parentNode,a=this.createMathTag(d,c.innerHTML);if(c.nextSibling){b.insertBefore(a,c.nextSibling)}else{b.appendChild(a)}if(this.config.preview!=="none"){this.createPreview(c)}b.removeChild(c)}},createPreview:function(a){var b=this.config.preview;if(b==="TeX"){b=[this.filterPreview(a.innerHTML)]}if(b){b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b);a.parentNode.insertBefore(b,a)}},createMathTag:function(c,b){b=b.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");var a=document.createElement("script");a.type="math/tex"+c;MathJax.HTML.setScript(a,b);return a},filterPreview:function(a){return a}};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.jsMath2jax],8);MathJax.Ajax.loadComplete("[MathJax]/extensions/jsMath2jax.js");

View File

@ -1,16 +1,19 @@
/* /*
* /MathJax/extensions/mml2jax.js * /MathJax/extensions/mml2jax.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
* *
* Part of the MathJax library. * Copyright (c) 2009-2015 The MathJax Consortium
* See http://www.mathjax.org for details. *
* * Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
MathJax.Extension.mml2jax={version:"2.2",config:{preview:"alttext"},MMLnamespace:"http://www.w3.org/1998/Math/MathML",PreProcess:function(e){if(!this.configured){this.config=MathJax.Hub.CombineConfig("mml2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}this.InitBrowser();this.configured=true}if(typeof(e)==="string"){e=document.getElementById(e)}if(!e){e=document.body}this.ProcessMathArray(e.getElementsByTagName("math"));if(e.getElementsByTagNameNS){this.ProcessMathArray(e.getElementsByTagNameNS(this.MMLnamespace,"math"))}var d,b;if(typeof(document.namespaces)!=="undefined"){try{for(d=0,b=document.namespaces.length;d<b;d++){var f=document.namespaces[d];if(f.urn===this.MMLnamespace){this.ProcessMathArray(e.getElementsByTagName(f.name+":math"))}}}catch(g){}}else{var c=document.getElementsByTagName("html")[0];if(c){for(d=0,b=c.attributes.length;d<b;d++){var a=c.attributes[d];if(a.nodeName.substr(0,6)==="xmlns:"&&a.nodeValue===this.MMLnamespace){this.ProcessMathArray(e.getElementsByTagName(a.nodeName.substr(6)+":math"))}}}}},ProcessMathArray:function(b){var a;if(b.length){if(this.MathTagBug){for(a=b.length-1;a>=0;a--){if(b[a].nodeName==="MATH"){this.ProcessMathFlattened(b[a])}else{this.ProcessMath(b[a])}}}else{for(a=b.length-1;a>=0;a--){this.ProcessMath(b[a])}}}},ProcessMath:function(e){var d=e.parentNode;var a=document.createElement("script");a.type="math/mml";d.insertBefore(a,e);if(this.AttributeBug){var b=this.OuterHTML(e);if(this.CleanupHTML){b=b.replace(/<\?import .*?>/i,"").replace(/<\?xml:namespace .*?\/>/i,"");b=b.replace(/&nbsp;/g,"&#xA0;")}MathJax.HTML.setScript(a,b);d.removeChild(e)}else{var c=MathJax.HTML.Element("span");c.appendChild(e);MathJax.HTML.setScript(a,c.innerHTML)}if(this.config.preview!=="none"){this.createPreview(e,a)}},ProcessMathFlattened:function(f){var d=f.parentNode;var b=document.createElement("script");b.type="math/mml";d.insertBefore(b,f);var c="",e,a=f;while(f&&f.nodeName!=="/MATH"){e=f;f=f.nextSibling;c+=this.NodeHTML(e);e.parentNode.removeChild(e)}if(f&&f.nodeName==="/MATH"){f.parentNode.removeChild(f)}b.text=c+"</math>";if(this.config.preview!=="none"){this.createPreview(a,b)}},NodeHTML:function(e){var c,b,a;if(e.nodeName==="#text"){c=this.quoteHTML(e.nodeValue)}else{if(e.nodeName==="#comment"){c="<!--"+e.nodeValue+"-->"}else{c="<"+e.nodeName.toLowerCase();for(b=0,a=e.attributes.length;b<a;b++){var d=e.attributes[b];if(d.specified){c+=" "+d.nodeName.toLowerCase().replace(/xmlns:xmlns/,"xmlns")+"=";var f=d.nodeValue;if(f==null&&d.nodeName==="style"&&e.style){f=e.style.cssText}c+='"'+this.quoteHTML(f)+'"'}}c+=">";if(e.outerHTML!=null&&e.outerHTML.match(/(.<\/[A-Z]+>|\/>)$/)){for(b=0,a=e.childNodes.length;b<a;b++){c+=this.OuterHTML(e.childNodes[b])}c+="</"+e.nodeName.toLowerCase()+">"}}}return c},OuterHTML:function(d){if(d.nodeName.charAt(0)==="#"){return this.NodeHTML(d)}if(!this.AttributeBug){return d.outerHTML}var c=this.NodeHTML(d);for(var b=0,a=d.childNodes.length;b<a;b++){c+=this.OuterHTML(d.childNodes[b])}c+="</"+d.nodeName.toLowerCase()+">";return c},quoteHTML:function(a){if(a==null){a=""}return a.replace(/&/g,"&#x26;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;")},createPreview:function(b,a){var c=this.config.preview;if(c==="none"){return}if(c==="alttext"){var d=b.getAttribute("alttext");if(d!=null){c=[this.filterPreview(d)]}else{c=null}}if(c){c=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},c);a.parentNode.insertBefore(c,a)}},filterPreview:function(a){return a},InitBrowser:function(){var b=MathJax.HTML.Element("span",{id:"<",className:"mathjax",innerHTML:"<math><mi>x</mi><mspace /></math>"});var a=b.outerHTML||"";this.AttributeBug=a!==""&&!(a.match(/id="&lt;"/)&&a.match(/class="mathjax"/)&&a.match(/<\/math>/));this.MathTagBug=b.childNodes.length>1;this.CleanupHTML=MathJax.Hub.Browser.isMSIE}};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.mml2jax]);MathJax.Ajax.loadComplete("[MathJax]/extensions/mml2jax.js"); MathJax.Extension.mml2jax={version:"2.6.0",config:{preview:"mathml"},MMLnamespace:"http://www.w3.org/1998/Math/MathML",PreProcess:function(e){if(!this.configured){this.config=MathJax.Hub.CombineConfig("mml2jax",this.config);if(this.config.Augment){MathJax.Hub.Insert(this,this.config.Augment)}this.InitBrowser();this.configured=true}if(typeof(e)==="string"){e=document.getElementById(e)}if(!e){e=document.body}var h=[];this.PushMathElements(h,e,"math");this.PushMathElements(h,e,"math",this.MMLnamespace);var d,b;if(typeof(document.namespaces)!=="undefined"){try{for(d=0,b=document.namespaces.length;d<b;d++){var f=document.namespaces[d];if(f.urn===this.MMLnamespace){this.PushMathElements(h,e,f.name+":math")}}}catch(g){}}else{var c=document.getElementsByTagName("html")[0];if(c){for(d=0,b=c.attributes.length;d<b;d++){var a=c.attributes[d];if(a.nodeName.substr(0,6)==="xmlns:"&&a.nodeValue===this.MMLnamespace){this.PushMathElements(h,e,a.nodeName.substr(6)+":math")}}}}this.ProcessMathArray(h)},PushMathElements:function(f,d,a,c){var h,g=MathJax.Hub.config.preRemoveClass;if(c){if(!d.getElementsByTagNameNS){return}h=d.getElementsByTagNameNS(c,a)}else{h=d.getElementsByTagName(a)}for(var e=0,b=h.length;e<b;e++){var j=h[e].parentNode;if(j&&j.className!==g&&!j.isMathJax&&!h[e].prefix===!c){f.push(h[e])}}},ProcessMathArray:function(c){var b,a=c.length;if(a){if(this.MathTagBug){for(b=0;b<a;b++){if(c[b].nodeName==="MATH"){this.ProcessMathFlattened(c[b])}else{this.ProcessMath(c[b])}}}else{for(b=0;b<a;b++){this.ProcessMath(c[b])}}}},ProcessMath:function(e){var d=e.parentNode;if(!d||d.className===MathJax.Hub.config.preRemoveClass){return}var a=document.createElement("script");a.type="math/mml";d.insertBefore(a,e);if(this.AttributeBug){var b=this.OuterHTML(e);if(this.CleanupHTML){b=b.replace(/<\?import .*?>/i,"").replace(/<\?xml:namespace .*?\/>/i,"");b=b.replace(/&nbsp;/g,"&#xA0;")}MathJax.HTML.setScript(a,b);d.removeChild(e)}else{var c=MathJax.HTML.Element("span");c.appendChild(e);MathJax.HTML.setScript(a,c.innerHTML)}if(this.config.preview!=="none"){this.createPreview(e,a)}},ProcessMathFlattened:function(f){var d=f.parentNode;if(!d||d.className===MathJax.Hub.config.preRemoveClass){return}var b=document.createElement("script");b.type="math/mml";d.insertBefore(b,f);var c="",e,a=f;while(f&&f.nodeName!=="/MATH"){e=f;f=f.nextSibling;c+=this.NodeHTML(e);e.parentNode.removeChild(e)}if(f&&f.nodeName==="/MATH"){f.parentNode.removeChild(f)}b.text=c+"</math>";if(this.config.preview!=="none"){this.createPreview(a,b)}},NodeHTML:function(e){var c,b,a;if(e.nodeName==="#text"){c=this.quoteHTML(e.nodeValue)}else{if(e.nodeName==="#comment"){c="<!--"+e.nodeValue+"-->"}else{c="<"+e.nodeName.toLowerCase();for(b=0,a=e.attributes.length;b<a;b++){var d=e.attributes[b];if(d.specified&&d.nodeName.substr(0,10)!=="_moz-math-"){c+=" "+d.nodeName.toLowerCase().replace(/xmlns:xmlns/,"xmlns")+"=";var f=d.nodeValue;if(f==null&&d.nodeName==="style"&&e.style){f=e.style.cssText}c+='"'+this.quoteHTML(f)+'"'}}c+=">";if(e.outerHTML!=null&&e.outerHTML.match(/(.<\/[A-Z]+>|\/>)$/)){for(b=0,a=e.childNodes.length;b<a;b++){c+=this.OuterHTML(e.childNodes[b])}c+="</"+e.nodeName.toLowerCase()+">"}}}return c},OuterHTML:function(d){if(d.nodeName.charAt(0)==="#"){return this.NodeHTML(d)}if(!this.AttributeBug){return d.outerHTML}var c=this.NodeHTML(d);for(var b=0,a=d.childNodes.length;b<a;b++){c+=this.OuterHTML(d.childNodes[b])}c+="</"+d.nodeName.toLowerCase()+">";return c},quoteHTML:function(a){if(a==null){a=""}return a.replace(/&/g,"&#x26;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;")},createPreview:function(f,b){var g=this.config.preview;if(g==="none"){return}var a=false;if(g==="mathml"){a=true;if(this.MathTagBug){g="alttext"}else{g=f.cloneNode(true)}}if(g==="alttext"||g==="altimg"){a=true;var c=this.filterPreview(f.getAttribute("alttext"));if(g==="alttext"){if(c!=null){g=MathJax.HTML.TextNode(c)}else{g=null}}else{var h=f.getAttribute("altimg");if(h!=null){var e={width:f.getAttribute("altimg-width"),height:f.getAttribute("altimg-height")};g=MathJax.HTML.Element("img",{src:h,alt:c,style:e})}else{g=null}}}if(g){var d;if(a){d=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass});d.appendChild(g)}else{d=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},g)}b.parentNode.insertBefore(d,b)}},filterPreview:function(a){return a},InitBrowser:function(){var b=MathJax.HTML.Element("span",{id:"<",className:"mathjax",innerHTML:"<math><mi>x</mi><mspace /></math>"});var a=b.outerHTML||"";this.AttributeBug=a!==""&&!(a.match(/id="&lt;"/)&&a.match(/class="mathjax"/)&&a.match(/<\/math>/));this.MathTagBug=b.childNodes.length>1;this.CleanupHTML=MathJax.Hub.Browser.isMSIE}};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.mml2jax],5);MathJax.Ajax.loadComplete("[MathJax]/extensions/mml2jax.js");

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,98 @@
Copyright (c) 2007, Apostolos Syropoulos (<asyropoulos@yahoo.com),
with Reserved Font Name Asana Math.
Copyright (c) 2013, The MathJax Consortium,
with Reserved Font Name Asana MathJax.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Some files were not shown because too many files have changed in this diff Show More