Commit Graph

433 Commits

Author SHA1 Message Date
Davide P. Cervone
9d7b67a10c Fix problem with extra space being added to class name (was causing mspace with background color to to show up properly) 2012-01-30 08:05:45 -05:00
Davide P. Cervone
b1233d332c Fix typo in EqnChunkDelay 2012-01-30 08:04:29 -05:00
Davide P. Cervone
3bd6c1d203 Move MP menu warning messages to a confiogurable array, and hide the menu unless the current renderer is NativeMML with MathPlayer 2012-01-26 16:14:20 -05:00
Davide P. Cervone
145f5b17c5 Put back missing styles for noError output in HTML-CSS output (commented out while making earlier changes). Since no longer a subclass of merror, don't adjust for merror font size. 2012-01-25 10:39:00 -05:00
Davide P. Cervone
30e35cc729 Add menu control for showing TeX hints in MathML, and make TeXAtom not show extra mrow when it contains a single element 2012-01-25 09:45:20 -05:00
Davide P. Cervone
02909ecba4 Update copyright dates and set version numbers to 2.0; repack and recombine 2012-01-25 09:23:45 -05:00
Davide P. Cervone
9936d53e2f Make font preference menu honor the imageFont setting 2012-01-24 13:07:28 -05:00
Davide P. Cervone
876be6f0fc Make showDsicoverable setting properly show/hide the Highlight-on-Hover menu item 2012-01-23 12:22:51 -05:00
Davide P. Cervone
033e6ee6d1 Add warning messages if you switch to a renderer that is not appropriate for your browser (but let you do it anyway, just in case we are wrong) 2012-01-23 10:44:57 -05:00
Davide P. Cervone
344f832e1e Better handling of MathPlayer settings. In particular, allow Alt-Click in IE8 and lower when math menu is disabled. 2012-01-23 10:06:52 -05:00
Davide P. Cervone
92f00c7f5b Add a MathPlayer menu item in IE to allow user control over what gets passed to MathPlayer (this allows users with assitive technology to control the setup to suit their needs). 2012-01-23 06:49:11 -05:00
Davide P. Cervone
b02429e1ad Have MathJax.js set up MathPlayer if it can (since delaying that is what causes crashes). Also make preview be hidden to prevent screen readers from seeing them once the math is typeset. 2012-01-22 17:40:46 -05:00
Davide P. Cervone
603328ae82 Add \middle command to TeX input jax 2012-01-21 16:47:46 -05:00
Davide P. Cervone
14b3702e85 Fix a typo in the displaystyle parameter for the pre- and post-filters of the TeX input jax 2012-01-20 11:02:31 -05:00
Davide P. Cervone
b0fd920efb Fix a timing problem with mobile devices when combined configurations are used 2012-01-19 20:56:10 -05:00
Davide P. Cervone
a4d08f6522 Improve font detection for WebKit browsers (still doesn't work for Safari/Win). May resolve issue #65. 2012-01-19 18:48:11 -05:00
Davide P. Cervone
db29cf3414 Fix a measuring problem in Firefox 2012-01-18 16:19:23 -05:00
Davide P. Cervone
0410bdc8ac Remap bold combined negations to uncombioned pairs when they aren't in the web fonts 2012-01-18 12:27:42 -05:00
Davide P. Cervone
630febd0e8 Normalize name of preview filter function to filterPreview for all preprocessors. 2012-01-18 11:47:42 -05:00
Davide P. Cervone
44344c7142 Fix \dots to produce \ldots or \cdots depending on the following element (as the LaTeX version does) 2012-01-18 09:40:12 -05:00
Davide P. Cervone
682fe27d7e Remap letter-like symbols to the variants where they exist in teh web fonts 2012-01-16 17:17:39 -05:00
Davide P. Cervone
2a9287b06a Fix texClass for <mo> elements that should be class OP, and make ^ and + be stretchy accents in infix mode 2012-01-16 15:44:02 -05:00
Davide P. Cervone
9a092fe68b Modify accents to use better characters in some circumstances (basically the right arrow at the moment) 2012-01-15 15:26:36 -05:00
Davide P. Cervone
db55f22ba7 Handle pseudo-scripts better (don't translate <mo>'s that aren't in superscripts, and do translate the ones that are) 2012-01-14 20:30:13 -05:00
Davide P. Cervone
65892262ac Move remapping of <mo> contents to output jax, so that the original MathML is left unchanged 2012-01-14 16:33:43 -05:00
Davide P. Cervone
f2170f4c4a Make \require{} check URL for safety (currently overkill; it only allows loading from the extensions directory) 2012-01-14 15:30:25 -05:00
Davide P. Cervone
9763b5754f Handle \not better (produce proper unicode points for negated characters, when possible, use \u0338 when possible, and do \mathrel{\rlap{/}} otherwise). Add remappings to convert unavailable combinations back to combining characters for web-based fonts (this also makes it possible to handle double and tripple prime unicode code points). 2012-01-14 15:05:47 -05:00
Davide P. Cervone
1b20e06e30 More fixes to make multi-character elements with characters taken from different fonts work out better 2012-01-14 13:23:34 -05:00
Davide P. Cervone
5b62a98b1b Fix problem with font change within an element (when the variant is still the same one, which was the old condition; now use font name) 2012-01-13 19:31:58 -05:00
Davide P. Cervone
bb35eb004c Add full support for unicode planes 1 through 10 (both in \unicode{}, as input, and in HTML-CSS and SVG output) 2012-01-13 12:29:44 -05:00
Davide P. Cervone
266360e9d2 Don't combine mathvariant and fontstyle or fontweight (Fred pointed out this isn't supposed to happen) 2012-01-12 18:54:57 -05:00
Davide P. Cervone
af2cd3476f Update \unicode to work with SVG, and to better handle fonts and sizes. Also fix HTML-CSS font size when fontfamily is specified 2012-01-12 17:20:21 -05:00
Davide P. Cervone
52755c4c3d Merge SVG branch into v2.0-candidate (no need to continue to keep them separated) 2012-01-12 07:39:53 -05:00
Davide P. Cervone
f833905396 Fix typo in previous change 2012-01-11 18:25:53 -05:00
Davide P. Cervone
88e3ce4680 When MathML with MJX classes come from TeX extensions, load the required extension so that the fonts will be properly set up 2012-01-11 17:53:05 -05:00
Davide P. Cervone
cae4834aa6 Convert <mi> to <mo> if it is used with <munderover> and needs to have movablelimits=true (since only <mo> can have this attribute) 2012-01-11 14:33:52 -05:00
Davide P. Cervone
c679563c09 Move copyAttributes and skipAttributes to element jax (since they are used in several places) to avoid redundency 2012-01-11 14:22:24 -05:00
Davide P. Cervone
568b919f70 Remove capitalized TRUE and FALSE (don't remember why I had those in the first place) 2012-01-11 13:55:39 -05:00
Davide P. Cervone
756ef39804 Make MathML input read the MathJax classes to recreate the TeXAtoms and other tex-specific items 2012-01-10 19:39:08 -05:00
Davide P. Cervone
36ef5c9e34 Add class to mark TeXAtom elements and make sure other attributes are applied (they were being left off) 2012-01-10 16:30:57 -05:00
Davide P. Cervone
cfacc26c31 Use classes to distinguish mathvariants that aren't in MathML, and set FF CSS to handle them. Use classes for variantForm and cancel arrows. (Still need to have MathML input handle these classes on input) 2012-01-10 15:32:06 -05:00
Davide P. Cervone
a013dd823f Save user-provided attributes in a separate object (to avoid collision with internal values); change property names in toMathML to have a prefix; allow known attributes in \mmlToken macro; only remove mlabeledtr in FF8 and before. 2012-01-10 14:10:48 -05:00
Davide P. Cervone
d199d509ef Allow noUndefined to be disabled, and fix some indenting in noErrors 2012-01-09 18:41:02 -05:00
Davide P. Cervone
c1ee953b4e Add ability to disable noErrors, and change the styling to not use .merror so that when disabled, the styles won't be changed 2012-01-09 18:36:35 -05:00
Davide P. Cervone
ea30a341e9 Add noErrors support to SVG output (and reorganize the other output support) 2012-01-09 18:07:52 -05:00
Davide P. Cervone
d63d99409b Make AMSsymbols set up variant-form remappings for SVG output 2012-01-09 16:30:37 -05:00
Davide P. Cervone
1eb58f429e Merge branch v2.0-candidate with SVG 2012-01-09 15:13:40 -05:00
Davide P. Cervone
e4089cfd6e Properly handle width of border and padding in merrors in HTML-CSS output 2012-01-09 11:58:19 -05:00
Davide P. Cervone
522b743b56 Add option to make tex2jax require balanced braces when looking for close delimiters (more compatible with actual TeX). The option can be set to false to get the pre-v2.0 behavior. 2012-01-09 11:22:58 -05:00
Davide P. Cervone
a83c7c54b3 Move styles for MathJax_Preview to MathJax.js rather than HTML-CSS since it is used by all output jax 2012-01-08 20:20:22 -05:00
Davide P. Cervone
3131d09d06 Allow \newcommand to take a default parameter, and adjust GetBrackets to distinguish between no brackets and empty brackets 2012-01-07 18:55:52 -05:00
Davide P. Cervone
6e4ac11c91 Make font timeout longer, and make even longer for mobile devices. Only switch to image fonts if the first web font fails to load (if one loaded, you should get the others). 2012-01-06 20:35:26 -05:00
Davide P. Cervone
92f80f4e23 Add IndexOf() command to find index of an item in the menu list (so it is easier to insert new items) 2012-01-06 20:00:15 -05:00
Davide P. Cervone
51c0a95f46 Add menu signals for post/unpost and activation of menu items 2012-01-06 19:52:02 -05:00
Davide P. Cervone
6aec9ae573 Add unknownChar() function and have it post a signal for undefined characters 2012-01-06 19:11:47 -05:00
Davide P. Cervone
b438a84b1c Add zoom/unzoom messages 2012-01-06 17:47:44 -05:00
Davide P. Cervone
77c8a54da6 Add more signals for error conditions (so error reporting software can track it easier) 2012-01-06 17:09:37 -05:00
Davide P. Cervone
e29ddd477d Make pre- and postfilters backward compatible, and allow them to be replaced by Augment() 2012-01-06 13:32:39 -05:00
Davide P. Cervone
b70caaf465 Allow dot delimiters for \genfrac (they incorrectly produced errors) 2011-12-27 15:02:27 -05:00
Davide P. Cervone
69a14287b1 Merge changes from v2.0-candidate and fix problem with U+21A0 in SVG (character was wrongly indicated in previous commit message) 2011-12-17 10:51:15 -05:00
Davide P. Cervone
d215f20a42 Fix menu background problem in IE8+ and remove extra comma giving IE7 and IE6 problems. 2011-12-15 21:05:15 -05:00
Davide P. Cervone
dbab4d4101 Merge branch v2.0-candidate into SVG 2011-12-15 17:47:57 -05:00
Davide P. Cervone
9eaa73a0ac Fix incorrect case for FALSE routine 2011-12-15 17:44:13 -05:00
Davide P. Cervone
d044f4c8f4 Merge v2.0-candidate into SVG 2011-12-07 14:07:47 -05:00
Davide P. Cervone
091551dab1 Removed debugging code accidentally left in 2011-11-20 23:05:27 -05:00
Davide P. Cervone
6a09817aa3 Prevent default action when close image is pressed in the contextual menu for mobile devices 2011-11-20 23:04:17 -05:00
Davide P. Cervone
7f5180a87e Properly handle hover changes when going from one expression to another when there is no intervening space (both elements are marked isMathJax, but for different expressions) 2011-11-20 21:52:49 -05:00
Davide P. Cervone
66ec3254ee Allow \\ anywhere (not just in arrays) to force a line break. 2011-11-20 19:21:07 -05:00
Davide P. Cervone
91543560a9 Merge branch 'v2.0-candidate' into SVG 2011-11-20 17:35:31 -05:00
Davide P. Cervone
c223b6bc8c Make \it use MathJax_Main-Italic rather than MathJax_Math-italic, and don't do math italic correction (so spacing is correct for text) 2011-11-20 17:31:10 -05:00
Davide P. Cervone
aa81d8e8ee Fix spacing problem with \cong in regular and bold fonts. Resolves issue #162 for now until fonts can be repaired. 2011-11-20 17:02:26 -05:00
Davide P. Cervone
88355ecc74 Add showDiscoverable configuration to control the discoverability checkbox 2011-11-16 12:58:48 -05:00
Davide P. Cervone
3bb798f6f4 Merge v2.0-candidate into SVG 2011-11-15 16:41:39 -05:00
Davide P. Cervone
393a6390df Handle italic correction better in HTML-CSS (not just in munderover and msubsup) 2011-11-15 15:07:30 -05:00
Davide P. Cervone
06e17c3eb3 Handle italic correction better, and fake the value for mi and mo, since we don't currently have the data in the font data files 2011-11-13 17:13:44 -05:00
Davide P. Cervone
987d3a4118 Do menu close img in an iBooks compatible way 2011-11-05 23:29:19 -04:00
Davide P. Cervone
9f4f88a531 Fix problem with colored mspace being too tall in IE/quirks mode 2011-11-04 21:17:29 -04:00
Davide P. Cervone
06c700c804 Include modified MathMenu.js in the combined configurations 2011-11-04 20:44:43 -04:00
Davide P. Cervone
a5812c6e43 Change String().fromCharCode() to direct \uXXXX in a string, and make em and ex sizes be vertical rather than horizontal (this was confusing browsers on mobile devices, where the width wasn't big enough for the number of ems used to determine the size) 2011-11-03 17:09:45 -04:00
Davide P. Cervone
be653f4e11 Save ex value at the same location as other values 2011-10-27 08:48:24 -04:00
Davide P. Cervone
e692b46892 Check that attributes to \mmlToken are valid (since setting others could cause MathJax to malfunction) 2011-10-25 23:03:32 -04:00
Davide P. Cervone
1d5c0e1750 Fix a problem with frames when rowlines or columnlines are not defined (introduced by the change that added menclose for handling partial frames in tables) 2011-10-25 19:02:54 -04:00
Davide P. Cervone
71a0acba83 Update copyright dates and include more extensions in the MathJax.Extensions object (so they are listed in the About box). Make the About box have a maximum height with scrollbars. 2011-10-25 17:47:25 -04:00
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
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
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
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
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
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
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
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
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
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
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
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
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
703b8e3b16 Fix error with annotation-xml nodes and linebreak checking 2011-09-18 21:48:21 -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
baeaf82f91 Use proper scaling factor for zoom in HTML-CSS output, and don't set a font on the zoom frame 2011-09-18 17:16:50 -04:00
Davide P. Cervone
331b9ee6f1 Fix problem where selecting the renderer menu failed to rerender the mathematics 2011-09-18 17:06:26 -04:00
Davide P. Cervone
dc2cd2fbfe Include MathEvents in the combined configuration files 2011-09-11 22:02:53 -04:00
Davide P. Cervone
a675b397c7 Merge branch 'issue138' into v2.0-candidate (resolving conflicts, and fixing some issues with zoom and menus) 2011-09-11 14:43:21 -04:00
Davide P. Cervone
d5f2ab74f3 Merge branch 'performance' into v2.0-candidate (still need to optimize linebreak measurements) 2011-09-11 13:13:22 -04:00
Davide P. Cervone
b5d23c72fa Merge branch 'new-features' into merge-features (in preparation for merging with v2.0-candidate), and fix hover zoom trigger when discoverability is disabled 2011-09-11 12:42:27 -04:00
Davide P. Cervone
3f4f54e2c0 Merge branch 'zoom-update' into v2.0-candidate 2011-09-11 11:51:14 -04:00
Davide P. Cervone
836992b3a7 Merge branch 'menu-update' with zoom-update (disables discoverability for now) 2011-09-11 11:39:22 -04:00
Davide P. Cervone
2e129e0a01 Disable discoverability for now, and hide its menu item 2011-09-11 11:36:56 -04:00
Davide P. Cervone
a9b53b8bb7 Merge 'htmlcss-fixes' into v2.0-candidate (after resolving conflicts) 2011-09-11 11:16:18 -04:00
Davide P. Cervone
dcc8620459 Merge branch 'mathml-fixes' into v2.0-candidate 2011-09-11 10:59:38 -04:00
Davide P. Cervone
4ff36e7146 Merge branch 'issue128' with new-features (prevents user macros from being overridden by autoloaded extension) 2011-09-11 10:47:14 -04:00
Davide P. Cervone
e4483d0d2d Merge branch 'issue170' into html-css 2011-09-11 10:37:08 -04:00
Davide P. Cervone
4937810570 Merge branch 'linebreaks' into new-features (adds automatic line breaking) 2011-09-11 10:26:28 -04:00
Davide P. Cervone
fcefc54b20 Merge branch 'issue71' into new-features (adds line numbering, \label and \ref) 2011-09-11 10:10:48 -04:00
Davide P. Cervone
a3afcbc6ef Merge branch 'issue38' with 'new-features' (adds better \color support) 2011-09-11 10:01:54 -04:00
Davide P. Cervone
2ace71f35e Merge with issue93 (adds extensible arrows), and resolve conflicts 2011-09-11 09:47:41 -04:00
Davide P. Cervone
cb0e3eb774 Merged with cases (and resolved conflicts) 2011-09-11 09:39:01 -04:00
Davide P. Cervone
5b6b57af86 Make units of mu's be relative to the scriptlevel (resolves issue #147) 2011-09-10 22:15:18 -04:00
Davide P. Cervone
b9016bdf83 Add a flag to user-defined macros so they are not overwritten when an extension is loaded (resolves issue #128). 2011-09-10 17:32:45 -04:00
Davide P. Cervone
05f9bed529 Properly handle math that is inside a display:none element, and localize an accidental global variable 2011-09-10 15:49:44 -04:00
Davide P. Cervone
a4861dde5d Don't use setTimeout() if the delay is 0, and use delay of 0 for loading web fonts to avoid an IE9 bug (resolves issue #170) 2011-09-10 08:48:41 -04:00
Davide P. Cervone
3717fcfb57 Measure mtable entries all at once (to reduce reflows) 2011-09-06 12:51:34 -04:00
Davide P. Cervone
b900adc953 Do measuring of subformulas all at once (for mfrac, msqrt, msubsup, munderover, mmultiscripts). Still need to do mtable 2011-09-06 12:34:51 -04:00
Davide P. Cervone
cd6297fc01 Simplify getW slightly, and add ability to measure multiple elements in at once (so mfrac, msup, etc. can measure all parts at once -- not optimal but better than now). Change negativeSkipBug to initialSkipBug, since it affects both negative and positive skips. 2011-09-06 11:20:08 -04:00
Davide P. Cervone
f85e739eca Put back the calculation for msieMarginScales (it turns out it really was needed) 2011-09-06 10:58:44 -04:00
Davide P. Cervone
17f03acbbe Simplify login in getW and handle IE7 problem with initial space in the span 2011-09-06 08:52:31 -04:00
Davide P. Cervone
734089fa13 Add a factor so that the chunk size gets bigger after each chunk (so the initial part of the page is shown quickly, but long pages don't slow down so badly). This probably needs some experimental data to get teh factor and chunk size right. 2011-09-05 22:58:13 -04:00
Davide P. Cervone
5be76da6fe Don't measure then remeasure stretched embelished operators (saves a reflow) 2011-09-05 21:01:59 -04:00
Davide P. Cervone
bb3129d5db Add EqnChunk configuration parameter for how many equations to reveal at one time (they are marked display:none until this many are ready, and then all revealed at once 2011-09-04 13:05:19 -04:00
Davide P. Cervone
0145248359 Pass state rather than scripts to pre- and postTranslate methods (let them get the scripts from the state) 2011-09-04 12:34:17 -04:00
Davide P. Cervone
922fc81461 Fix a typo that I missed in the previous commit 2011-09-02 11:41:55 -04:00
Davide P. Cervone
c1a5ba16a3 Save heights when getting widths (so don't need to do offsetHeight in placeBox, or rely on assumptions) 2011-09-02 11:33:22 -04:00
Davide P. Cervone
a97410976e Mark bounding boxes known to be exact so that they don't have to be remeasured later 2011-08-31 16:49:10 -04:00
Davide P. Cervone
7b32411bf7 Fix marginScale problem with IE <= 7, and inline display problem with IE >= 8. Don't assign default font to MathJax (it is not needed, since we set the font explicitly on text items) 2011-08-30 12:35:51 -04:00
Davide P. Cervone
b214da2436 Replace getScales and getMarginScale by actions in the preTranslate method. Also add hideProcessedMath option to set display:none on completed expressions (for IE performance) 2011-08-29 19:21:20 -04:00
Davide P. Cervone
7042c1d64f Handle preTranslate in HTML-CSS jax, and don't make a redundent scripts list if there is only one output jax in use 2011-08-28 20:03:53 -04:00
Davide P. Cervone
45a9d25406 Make thin rules be in pixels to try to improve results in IE (disappearing division lines, see issue #161) 2011-08-27 17:14:55 -04:00
Davide P. Cervone
303ea791f2 Add an overlay for IE < 9 to trap events from getting to the zoomed math 2011-08-27 11:16:08 -04:00
Davide P. Cervone
65c286421c Add support for optional vertical alignment on aligned and gathered environments (resolves issue #159) 2011-08-26 20:19:41 -04:00
Davide P. Cervone
bf8b903c8c Add preliminary support for aligning tables to specific rows (currently only aligns to baseline) 2011-08-26 20:03:45 -04:00
Davide P. Cervone
28de47ac51 Don't allow font test div to wrap (might be the cause of problems in portrait mode in mobile devices when large fonts are in use 2011-08-26 16:37:26 -04:00
Davide P. Cervone
acf080caae Clean up Zoom functions, in particular some of the IE complications; move getBBox to MathEvents 2011-08-25 19:45:25 -04:00
Davide P. Cervone
91753873e1 Merge with menu-update 2011-08-24 19:16:37 -04:00
Davide P. Cervone
3edf60dc0f Update menu items for easier access, and use more variables to access MathJax components, when possible; remove some unneeded variables from NativeMML jax. 2011-08-24 15:31:06 -04:00
Davide P. Cervone
820afa0357 Repack and recombine (plus remove unused variables) 2011-08-24 11:24:15 -04:00
Davide P. Cervone
994a9dff31 Have noError produce proper math span (rather than just the merror) 2011-08-19 12:50:02 -04:00
Davide P. Cervone
7411a83f21 Don't set noError font-family to serif (since Windows default serif font doesn't have backslash character! 2011-08-17 20:29:38 -04:00
Davide P. Cervone
5b421d32d1 Refactor event handling to move common routines to MathJax.HTML.Event (in preparateion for handling hover discoverability 2011-08-17 20:26:25 -04:00
Davide P. Cervone
56e6e1fe8b Mark all HTML-CSS output elements as isMathJax, so it can be used to identify what elements are part of mathematical output 2011-08-16 19:49:45 -04:00
Davide P. Cervone
ec5cd41d69 Add support for Firefox 6 Mobile, and add close button for mobile devices so it is easier to close a submenu. 2011-08-15 15:00:44 -04:00
Davide P. Cervone
816d2cbcfd Add touch event support for mobile devices so they can access the menus (still need to work on Firefox support, but works for WebKit-based mobiles) 2011-08-14 20:17:42 -04:00
Davide P. Cervone
bbc3a1416b Prevent texClass from being inherited (fixes a spacing problem with maction elements) 2011-08-11 14:59:02 -04:00
Davide P. Cervone
69c42b866e Implement automatic linebreaking in HTML-CSS output, and improve explicit linebreaking. (This is one of the v1.2 milestones) 2011-08-11 14:54:43 -04:00
Davide P. Cervone
5df49e3d18 Have getW use offsetWidth if there is an explicit width (no need for more complicated measuring in that cas). Resolves an Opera bug reported by Fred. 2011-08-05 09:17:01 -04:00
Davide P. Cervone
4f4234129f Fix problem where mspace with a background color would not always overlay previous items (detected in on of Fred's tests) 2011-08-04 12:55:44 -04:00
Davide P. Cervone
fb5ed12752 Fix problem with mtable equalrows detected by Fred's test suite 2011-08-04 12:43:03 -04:00
Davide P. Cervone
5d9f423a36 Allow mpadded background color to be specified exactly (i.e., without the 1px padding) when one of its dimensions is given explicitly (or there is no content). Resolves one of Fred's issues. 2011-08-04 11:32:22 -04:00
Davide P. Cervone
95b42049d7 Add one pixel to the top and bottom of math so that superscripts and subscripts won't touch on consecutive lines of a paragraph 2011-08-03 08:22:38 -04:00
Davide P. Cervone
f27e16ef0a Fix multiple problems with zoom box sizing and position in IE (various emulation and document modes) and firefox. (Resolves issues #151, #88, and #59.) 2011-07-31 15:17:44 -04:00
Davide P. Cervone
bb154cabcd Allow equations with tags to zoom into a full-width zoom box -- not ideal, but better than not visible. (Resolves issue #59 for now.) 2011-07-28 21:39:46 -04:00
Davide P. Cervone
8f2bbee019 Force MathZoom and MathMenu to wait for the 'Begin Styles' message before inserting their styles so when they are included in the combined files, the author can still configure them (resolves issue #149) 2011-07-28 20:36:18 -04:00
Davide P. Cervone
55425f9278 Fix positioning problem with zoom in NativeMML mode, avoiding flicker problem with hover trigger in Firefox (resolves issue #150) 2011-07-27 22:53:53 -04:00
Davide P. Cervone
309c1c343c Handle output of dimensions in mu's better (resolves issue #146). 2011-07-27 21:18:57 -04:00
Davide P. Cervone
d92d160cee Allow \\ to take an optional argument that is an extra amount of space to put between lines of an array (resolves issue #144) 2011-07-27 18:59:00 -04:00
Davide P. Cervone
c4c1c9f1e0 Use a different character for \overline so that it works with FF native MathML (resolves issue #140) 2011-07-27 16:46:01 -04:00
Davide P. Cervone
051521292f Allow processClass to override skipTags to force a tag that usually is skipped to have its contents pre-processed (resolves issue #124) 2011-07-27 16:03:24 -04:00
Davide P. Cervone
557735366f Add \mmlToken macro to allow direct creation of token MathML elements from within TeX, and use this to make \bmod, \mod, and \pmod produce better results (resolves issue #123) 2011-07-26 22:43:20 -04:00
Davide P. Cervone
9714e96d13 Don't allow Safari/Windows to use STIX fonts, since it can't access Plane1 (resolves issue #94) 2011-07-26 21:24:01 -04:00
Davide P. Cervone
86b344a63b When adjacent relations have different variants, set the space between them to 0 (so they work in NativeMML mode) 2011-07-26 19:55:43 -04:00
Davide P. Cervone
e2d328dd32 Don't combine <mo> elements with different variantForms (since the whole element must have the same mathvariant and font) 2011-07-26 19:46:29 -04:00
Davide P. Cervone
70bd48f00a Merge with master (brining up to adate with v1.1a) 2011-07-24 10:21:47 -04:00
Davide P. Cervone
24a3e30526 Merge with master (brining up to adate with v1.1a) 2011-07-24 10:14:27 -04:00
Davide P. Cervone
6a265df244 Merge with master (brining up to adate with v1.1a) 2011-07-24 10:11:07 -04:00
Davide P. Cervone
bd2fb28932 Merge with master (brining up to adate with v1.1a) 2011-07-24 10:07:30 -04:00
Davide P. Cervone
ee2609dc97 Merge with master (brining up to adate with v1.1a) 2011-07-24 09:59:14 -04:00
Davide P. Cervone
f58689bc7d Merge branch 'master' into cases 2011-07-24 09:53:16 -04:00
Davide P. Cervone
ff5aab74db Merge with mathjax/master (bringing branch up to date) 2011-07-24 09:51:41 -04:00
Davide P. Cervone
cec79bfe50 Fix a timing issue when the HTML-CSS jax loads before the TeX jax is complete, now that they are loaded in parallel rather than serially 2011-06-06 15:06:54 -04:00
Davide P. Cervone
065acfd10a Work around IE bug when direction:rtl is specified outside the math 2011-06-05 11:35:09 -04:00
Davide P. Cervone
2953e01b12 Fix problems with annotation-xml in IE (work around IE lack of importNode, and bug with copying style attributes 2011-06-05 11:33:49 -04:00
Davide P. Cervone
37f61a88ef Recombine previous changes 2011-06-01 18:25:25 -04:00
Davide P. Cervone
1da9f58062 Update About box to show MathJax version separately from MathJax.js version, and make sure lettering is black (isolates from page CSS a bit more). 2011-05-18 15:06:28 -04:00
Davide P. Cervone
5392f6e98f Repack, recombine, completes merge of htmlcss-fixes 2011-05-18 11:11:28 -04:00
Davide P. Cervone
13221321d8 Repack, recombine (completed merge with font-update branch up to 0dc8212) 2011-05-18 11:00:37 -04:00
Davide P. Cervone
9cc3bda487 Resolve conflicts from issue112, repack and recomine 2011-05-18 10:24:05 -04:00
Davide P. Cervone
90ef4b45eb Merge branch 'issue97' into 1.1a-candidate 2011-05-18 10:11:48 -04:00