Commit Graph

707 Commits

Author SHA1 Message Date
Davide P. Cervone
f4ebdbd549 Move AlignII from AMSmath.js to TeX/jax.js and rename as AlignedArray. Use it for array and alignedat environments as well as aligned and gathered. Fix some issues with alignedat. 2011-10-25 17:28:24 -04:00
Davide P. Cervone
1c4580c2c0 Fix some problems with table widths/heights and spacing, and handle spacing of frame via menclose better for HTML-CSS output 2011-10-25 16:53:12 -04:00
Davide P. Cervone
11e11f2ac0 Handle background colors set by style attributes better (since color is handled by a separate span, remove it from the given span) 2011-10-25 16:52:14 -04:00
Davide P. Cervone
a658f2cb63 Handle control sequences with stars better in AMSmath extension (don't allow \cs{*} to count as \cs* anymore) 2011-10-25 15:23:00 -04:00
Davide P. Cervone
1bb6960f4a Fix problem introduced by adding TeXAtom() to phantom and smash, where the attributes for these were added to the TeXAtom rather than the mphantom or mpadded elements 2011-10-25 15:05:19 -04:00
Davide P. Cervone
7cb05e2e20 Fix a problem with \mathchoice when the contents have negative width in Firefox (needed to resolve issue #148 in Firefox) 2011-10-25 14:51:43 -04:00
Davide P. Cervone
9f80a1ebab If the table has a complete frame then use the style of the left vertical line for the frame (so dashed frames are possible) 2011-10-24 22:01:57 -04:00
Davide P. Cervone
eaa02b4077 Use menclose to put vertical and horizontal lines on arrays that have partial frames (rather than making the frame be complete in all cases). Idea contributed by David Carlisle. Doesn't handle dashed frame lines, but menclose doesn't do dashed lines. 2011-10-24 21:58:05 -04:00
Davide P. Cervone
f16858cf11 Cosmetic changes 2011-10-19 22:42:03 -04:00
Davide P. Cervone
6f7a6f6034 Fixed multline environment to put tag at bottom row when TagSide is right 2011-10-17 20:49:25 -04:00
Davide P. Cervone
e9a1c26de1 Force reflow in Firefox after equations are typeset so that some rendering problems in tables are corrected. 2011-10-17 06:12:51 -04:00
Davide P. Cervone
19977a6b23 Force a reflow when equations are shown so that misplaced equations get properly placed (resolves issue #24) 2011-10-17 05:46:16 -04:00
Davide P. Cervone
6901409fae Fix \llap and \rlap (wrong placement of TeXAtom incorrectly blocked the width = 0) 2011-10-17 05:28:36 -04:00
Davide P. Cervone
0c523ac8df Fix problem with width of backrgound color and borders for mtable 2011-10-17 05:27:11 -04:00
Davide P. Cervone
4c940877bc Fix typo in sort routine which caused tex2jax to skip delimiters 2011-09-30 06:33:44 -04:00
Davide P. Cervone
8930ef853e Handle empty delimiter patterns, and don't scan the page if there is nothing to look for (resolves issue #174) 2011-09-28 06:30:50 -04:00
Davide P. Cervone
7d11c17c89 Record the attributes that are given explicitly on MathML input, and output those in NativeMML mode 2011-09-28 06:06:20 -04:00
Davide P. Cervone
c0a936e80f Get the scaling right (it is no longer 100 times the scale factor) 2011-09-28 06:00:15 -04:00
Davide P. Cervone
d2afb71a3d Move computation of line width for automatic linebreaks to the preTranslate routine, so only one reflow is needed 2011-09-27 22:58:18 -04:00
Davide P. Cervone
3e5b2244ef Use documentElement.clientHeight for determining zoom box maximum height 2011-09-27 17:08:21 -04:00
Davide P. Cervone
f3b1f4102f Make delay following a 'processing' message configurable, and lengthen it a shade to make browser more responsive during typesetting 2011-09-27 17:05:02 -04:00
Davide P. Cervone
073e391c7c Remove unneeded reference to msieMarginScale, and add computation of outerEm 2011-09-27 16:22:52 -04:00
Davide P. Cervone
23ae282020 Fix a typo in the bounding box in createSpan (which affected tags in Opera and IE7). Add missing mtextFontInherit configuration parameter. 2011-09-22 21:41:11 -04:00
Davide P. Cervone
81474adb97 Add delay before seting hash location to make it work in Opera. Still has a problem in IE7 and IE6. 2011-09-22 20:57:49 -04:00
Davide P. Cervone
c0dad0dbfe Jump to an anchor after typesetting, if one was specified in the page URL (controlled by the positionToHash parameter). When the page is loaded, tags haven't been processed yet, to the anchor might not be present, so we need to jump there after the page is typeset. Also, as the equations are typeset, the page may get repositioned, so jumping to the location again will get us back where we were supposed to be. Problem: if user scrolls during typeset, we jump back. 2011-09-22 20:46:26 -04:00
Davide P. Cervone
629c6c2df8 Don't combine <mo> elements if they have different variants, styles, classes, or ids 2011-09-22 19:49:10 -04:00
Davide P. Cervone
eee1e9014f Save output after attaching jax, otherwise it is not cloned properly if it is being updated 2011-09-22 19:48:12 -04:00
Davide P. Cervone
d6dfceca94 Allow MMLorHTML to select MML for IE9 (since MP seems to work with it) 2011-09-22 15:51:34 -04:00
Davide P. Cervone
0a2e1c3968 Add contextual menu to Math Processing Error messages, so it is possible to access the settings if something has gone wrong 2011-09-22 09:17:10 -04:00
Davide P. Cervone
dcd4be5dd7 Fix MathJax.Hub.getJaxFor() and MathJax.Hub.isJax() to properly handle elements that are part of the HTML-CSS or NativeMML output (in particular, you can find the element Jax from this output) 2011-09-22 08:34:29 -04:00
Davide P. Cervone
9161f45dab Remove creation of redundent spans (left over from debugging) 2011-09-22 08:23:46 -04:00
Davide P. Cervone
b69ef81e7b Use page font for merrors rather than forcing serif font 2011-09-22 08:15:05 -04:00
Davide P. Cervone
e51c240448 Add new MathJax.Hub.setRenderer() method to make it easier to change renderers (without having to muck about in the MathJax internals), and use this in the menu code. Add a MathJax.Hub.Rerender() method to force the output to be rerendered without reprocessing the input. 2011-09-22 08:08:50 -04:00
Davide P. Cervone
d15a820a0e Allow mtext to be typeset in the surrounding text font rather than MathJax fonts, provided the mtextFontInherit flag is set to true in the HTML-CSS block of the configuration (resolves issue #21, and should improve issues #19 and #40) 2011-09-22 00:14:19 -04:00
Davide P. Cervone
030b1fc294 Remove erroneous close comment from Firefox style definitions 2011-09-21 23:12:30 -04:00
Davide P. Cervone
9c03400d76 Fix the scriptlevel when munderover has base with movablelimits in non-display mode (reported by Fred) 2011-09-21 23:11:03 -04:00
Davide P. Cervone
a6a651c6bd Allow Firefox to use web fonts when a local URL uses MathJax from the CDN 2011-09-20 15:57:05 -04:00
Davide P. Cervone
6910620f4a Use absolute width in pixels rather than relative widht in em's to work around margin scaling bug in IE (documentMode <= 7). This avoids the cumbersome msieMarginScale measurements and multiplication factor, which was touchy at best. 2011-09-20 11:45:35 -04:00
Davide P. Cervone
636f802b59 Fix some zoom background overlay problems 2011-09-20 09:35:20 -04:00
Davide P. Cervone
9c6044a98a Cache the default Ex amd Em sizes rather than look them up each time 2011-09-20 08:40:35 -04:00
Davide P. Cervone
9153cd2f2e Fix scaling so that it works when the math is hidden; don't set up scale elements for IE (since MathPlayer handles the scaling itself) 2011-09-20 08:30:23 -04:00
Davide P. Cervone
29f1823deb Fix a couple of issues for IE (extra comma, wrong element name, and better handling of readyState) 2011-09-18 23:39:19 -04:00
Davide P. Cervone
4c5458c216 Make forward references use the new state variable with processInputs(). Note that since the scripts are already in the list (they are being reprocessed) we use a separate state variable 2011-09-18 22:55:53 -04:00
Davide P. Cervone
ae12c52774 Make sure Jax loadComplete returns the Ajax.loadComplete callback 2011-09-18 22:33:37 -04:00
Davide P. Cervone
ef880131a6 Fix TeX/autobold.js to use TeX.prefilterHooks, and to use \boldsymbol rather than \bf 2011-09-18 21:57:58 -04:00
Davide P. Cervone
703b8e3b16 Fix error with annotation-xml nodes and linebreak checking 2011-09-18 21:48:21 -04:00
Davide P. Cervone
2e59f03f69 Add stretchy equal sign so that it will load the extra data file, and fix a problem with right arrow from bar in the TeX fonts 2011-09-18 21:28:31 -04:00
Davide P. Cervone
d37ba91b6b Use proper bar character for STIX stretchy arrows from bar, and properly handle zero-width characters in createChar() 2011-09-18 21:05:25 -04:00
Davide P. Cervone
88c650dd16 Fix problem with \overbrace and \underbrace not stacking their super- and subscripts properly 2011-09-18 17:52:49 -04:00
Davide P. Cervone
b1a7982674 Fix stretchy characters used for U+00AF and U+02C9 in the STIX font 2011-09-18 17:39:42 -04:00