Commit Graph

1805 Commits

Author SHA1 Message Date
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
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
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
Davide P. Cervone
1e67bf954f Merge branch 'issue1033' into hotfix-2.5. Issue #1033. 2015-02-05 18:31:15 -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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