Commit Graph

1933 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Davide P. Cervone
24f0388bda Merge branch 'issue1188' into develop. Issue #1188. 2015-07-23 08:07:24 -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
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
cd12ba63d9 Make chunking parameters only be used when fast preview is enabled. 2015-07-08 15:30:49 -04: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
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
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
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
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
4292f9ed6b Don't insert mstyle in InternalMath() when not necessary. 2015-04-20 08:27:43 -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
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
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
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
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