Davide P. Cervone
a38a17af93
Bump version for pervious commit
2012-03-11 09:52:24 -04:00
Davide P. Cervone
636be43e6a
Handle order of jax that appear multiple times (properly handle MMLorHTML config)
2012-03-11 09:50:38 -04:00
Davide P. Cervone
c36c15f58b
Handle setup of MathPlayer better for IE10. Separate hasMathPlayer from having the namespace set up
2012-03-11 09:47:27 -04:00
Davide P. Cervone
4d717dbea4
Work around IE10 bug with document.namespace, and with the background color for the contextual menu (resolves issues #203 and #204 )
2012-03-07 12:04:20 -05:00
Davide P. Cervone
93e68cc254
Fix problem with linebreaking where the incorrect width was being used to determine breakpoint penalties, so some long lines were not being broken
2012-03-06 10:04:09 -05:00
Davide P. Cervone
b08db7d93e
Fix problem in HTML-CSS output with msubsup when super- or subscript has explicit style
2012-03-06 10:02:42 -05:00
Davide P. Cervone
c6b96dd558
Fix references to web fonts for use in Firefox in NativeMML output
2012-03-03 09:59:20 -05:00
Davide P. Cervone
a2ab1f3760
Fix problem with MathEvents where pinch gestures were not being registered if both fingers were in typeset equations. (This may still need more, but it is an improvement for now). Resolves issue #200 .
2012-03-01 16:06:16 -05:00
Davide P. Cervone
78788fa164
Bump version number for last commit
2012-02-29 11:35:46 -05:00
Davide P. Cervone
20ce1833cc
IE9 in IE9-standards mode crashes if you look at document.namespaces before document.readyState is 'complete', but setting up a fake namespace seems to cure that. This was causing MathJax to not render some pages in IE9.
2012-02-29 11:32:55 -05:00
Davide P. Cervone
e441641727
Bump version number of file (for previous commit)
2012-02-27 20:30:34 -05:00
Davide P. Cervone
7099e84a36
Turn off positionToHash for now (until I can straighten it out
2012-02-27 20:25:31 -05:00
Davide P. Cervone
b8fc1c99f5
Bump the version number on MathMenu.js to account for the previous change
2012-02-27 18:19:32 -05:00
Davide P. Cervone
b82c4ac6ee
Fix typo in renderer-switching message for Forefox MML
2012-02-27 15:17:26 -05:00
Davide P. Cervone
4174acf5ac
Change help-2-0 to help-v2 in URL references (I think this looks better)
2012-02-26 10:46:52 -05:00
Davide P. Cervone
66058ed1e7
Move help files to help-2-0 since menu setup is different, and if we edit the on0line docs, then sites that are still uwing v1.1 will point to the new docs instead of the ones appropriate for their version
2012-02-26 09:31:51 -05:00
Davide P. Cervone
3f415603d8
Bring AsciiMath up to version 2.0.1 (by modifying two lines in the 1.4.7 version)
2012-02-26 07:41:44 -05:00
Davide P. Cervone
c1fe357733
Make SVG style handling be the same as HTML-CSS (don't inherit styles). This needs to be reworked so that some styles do get inherited
2012-02-25 17:27:32 -05:00
Davide P. Cervone
3a2b03a605
Add missing DefineColor macro to autoload-all extension
2012-02-25 13:18:53 -05:00
Davide P. Cervone
ab487a051c
Don't do bolding if width is not readable (e.g., inside a container with display:none). Resolves issue #194 .
2012-02-24 10:07:32 -05:00
Davide P. Cervone
d82b3be4fb
Fix problem with indentShift when indentAlign is not 'center' and the equation is tagged
2012-02-23 19:24:51 -05:00
Davide P. Cervone
c1ab649925
Add MathJax.InputJax.TeX.resetEquationNumbers() routine to allow reprocessing of pages that have equation numbers and labels
2012-02-23 14:52:54 -05:00
Davide P. Cervone
52ed4f8026
Add autoload-all extension to predefine macros to autoload the extensions that define them (so MathJax will be able to access all the macros it knows about); update color extension so that it works with this extension better
2012-02-22 11:59:21 -05:00
Davide P. Cervone
0bc0a8cada
Fixed some comments and default values, and added MathEvents section to default.js
2012-02-20 18:03:45 -05:00
Davide P. Cervone
4fb5de2200
Move preProcess from base jax to OutputJax, since that is the only place it is used. Don't copy Translate and cousins for ElementJax. Properly handle the loader in InputJax (avoinds infinite lops if input jax fails to compile)
2012-02-20 12:42:59 -05:00
Davide P. Cervone
7ce521293c
Fix a whitespace issue in token elements with IE/quirks mode (MathML input jax)
2012-02-17 12:05:06 -05:00
Davide P. Cervone
c3b149c921
Fix an infinite loop in IE/quirks mode when linebreaking is performed (HTML-CSS output)
2012-02-17 12:04:13 -05:00
Davide P. Cervone
4522a15f50
Make sure height is above depth when making spaces and rules in HTML-CSS and SVG output
2012-02-17 10:41:22 -05:00
Davide P. Cervone
fd3dd8b070
Remove some commas that cause problems in IE
2012-02-16 13:01:25 -05:00
Davide P. Cervone
f0efb3451c
Changed MISSINGFONT to undefinedFamily in SVG output in order to be consistent with HTML-CSS output
2012-02-16 09:50:34 -05:00
Davide P. Cervone
f3ed39a9ad
Don't use borders on background colors; fix error with recent changes to linebreaking (spacelimit was in em's but should be in em's*1000)
2012-02-16 09:16:13 -05:00
Davide P. Cervone
104775c795
Make font test against default font also include height, not just width, to help avoid the case where the test string is the same in the default font as the web font. Also, update the test strings to include characters that should help distinguish them better. Update the data files to the current versions of the fonts (lots of tiny differences, but nothing crucial)
2012-02-15 17:03:45 -05:00
Davide P. Cervone
89f0f9d307
Firefox NativeMML still doesn't get the width right even if we set it properly on the <math>, so set it on the containing <span> instead. Resolves issue #88 again (and finally, I hope).
2012-02-15 11:58:15 -05:00
Davide P. Cervone
70ea836047
Fix the AsciiMath block name in default.js, and fix a number of comments in extensions
2012-02-15 11:10:34 -05:00
Davide P. Cervone
cfa168e642
Allow attributes to have values enclosed in quotes
2012-02-15 11:09:39 -05:00
Davide P. Cervone
7ca14b773a
Fix problem with zoom box in Firefox NativeMML mode (FF doesn't get the size of the <math> element correct). Resolves issue #88 (I hope).
2012-02-14 12:27:05 -05:00
Davide P. Cervone
9ff6d9a321
Fixed problem with pattern in wrapper function that affected Opera when MathJax is minified (discovered by Fred's tests)
2012-02-14 12:02:12 -05:00
Davide P. Cervone
e96dd07e37
Fix SVG problems reported by Fred (error in mtd background colors and maction stretching embelished operators)
2012-02-14 09:39:53 -05:00
Davide P. Cervone
7c58066b7e
Fix a problem with NativeMML output where require.push() could cause an error when used in the combined configuration files
2012-02-13 11:57:37 -05:00
Davide P. Cervone
301c7d1f2e
Actually delete the previews rather than just hide them (some screen readers don't properly handle them)
2012-02-12 20:08:53 -05:00
Davide P. Cervone
5cafb84908
Add NoMathPlayer parameter to prevent the MathPlayer setup when the page is loaded (users can still switch to NativeMML and the setup will be done at that point).
2012-02-11 10:28:56 -05:00
Davide P. Cervone
30db94c01e
Updated character data for STIX v1.1 (one character added since beta version)
2012-02-10 15:03:28 -05:00
Davide P. Cervone
1698f9c33c
Make a separate routine to get the contents of a script, and make it work in IE for XHTML files.
2012-02-10 08:21:42 -05:00
Davide P. Cervone
a8e844c1e7
Isolate MathJax images from page's float CSS
2012-02-09 14:20:57 -05:00
Davide P. Cervone
b5ab1e96c0
Move code that prevents numbers from being treated as a unit for super- and subscripts to the super- and subscript routines (instead of prefiltering for it). Resolves issue #192 .
2012-02-09 13:27:18 -05:00
Davide P. Cervone
388595f4fe
Make mml2jax work better with IE namespaces (IE9 no longer seems to list the xmlns entries on the html element)
2012-02-09 11:31:04 -05:00
Davide P. Cervone
1f5b1854e5
Prevent breaks right before a closing fence or right after an open fence.
2012-02-08 18:05:07 -05:00
Davide P. Cervone
5968ef8b74
Improve linebreaking to work better when the equation doesn't have nesting to help group terms that shouldn't be broken. Also make breaks at large spaces more desireable.
2012-02-08 17:37:07 -05:00
Davide P. Cervone
ac512fd1a7
Make lspace and voffset handle bad unit better in SVG (corresponding correction to HTML-CSS is 6e8ff20e07
). Resolves issue #191 for SVG
2012-02-08 16:15:24 -05:00
Davide P. Cervone
fe8c5b9899
Work around Opera's translation of font-weight:normal to font-weight:400
2012-02-08 14:18:45 -05:00
Davide P. Cervone
69bd9305c9
Handle offsets within the fontdata-extra data in SVG output
2012-02-08 13:53:20 -05:00
Davide P. Cervone
1955ebb0d6
Additional changes to fix STIX font problems in Safari (the NonUnicode fonts also needed to be adjusted). Resolves issues #152 and #178 .
2012-02-08 11:10:03 -05:00
Davide P. Cervone
e3e843fd7a
Fix problem with handling of initial negative spaces when initialSpaceBug is true (Opera and IE).
2012-02-08 10:34:16 -05:00
Davide P. Cervone
29c8ff2b41
In SVG output, remove blackness from HW when looking for delimiter (since the delimiter sizes don't include that). Fixes problem with parens stretching when they should be their natural size (in some of Fred's tests).
2012-02-08 09:36:39 -05:00
Davide P. Cervone
d21d075463
Handle conflicts between inherited mathvariant and fontfamily properly. (Fixes problem with ms having default mathvariant='monospace' when fontfamily is specified). Fix bold for stretched operators when weight is specified numerically.
2012-02-08 09:03:00 -05:00
Davide P. Cervone
0b1f9dc0c3
Handle mixed mathvariant and styles in SVG output (like in HTML-CSS) and make explicit fontfamily, fontweight, or fontstyle (even inherited) override style setting. Finally, handle numeric font-wieght (Opera converts bold that 700)
2012-02-07 19:17:52 -05:00
Davide P. Cervone
db4f476301
Fix font message for SVG output
2012-02-07 18:28:02 -05:00
Davide P. Cervone
54c6d43140
Handle mixing of mathvariant with style settings better (but this does mean that variants without the proper weight or style will remain unchanged)
2012-02-07 18:10:31 -05:00
Davide P. Cervone
6e8ff20e07
Make lspace and voffset handle bad unit better
2012-02-07 11:59:43 -05:00
Davide P. Cervone
49e7bc5e9e
Handle mode='display' attribute on math elements properly, now that is has been moved to a separate attr property internally
2012-02-07 09:59:36 -05:00
Davide P. Cervone
81c9070044
Fix mtable align parameter to be the default (rather than center) when it is incorrectly specified (resolves error in issue #165 )
2012-02-07 09:49:11 -05:00
Davide P. Cervone
0fe2bbfa52
Fixed an alignment problem when mpadded is used (and its contents has a removeable <g> contatining a <rect>)
2012-02-06 15:28:58 -05:00
Davide P. Cervone
93a2905024
Fix SVG's mpadded container to not be removable, since the size no longer corresponds to the contents
2012-02-06 13:39:49 -05:00
Davide P. Cervone
bbac5d10ac
Use z-index=0 rather than 1 for Opera (that seems to be the default for positioned elements, but it needs to be specified for colored backgrounds to show up properly)
2012-02-06 11:51:27 -05:00
Davide P. Cervone
cc1c05bdd2
Use mathvariant rather than fontfamily to set the font for <ms> elements (make it consistent with SVG jax)
2012-02-06 10:30:16 -05:00
Davide P. Cervone
10399b42b7
Add a missing space in the font warning message (spotted by Fred)
2012-02-06 09:34:43 -05:00
Davide P. Cervone
fc4ce3748f
Adjust for extra pixels above and below (now that they are added to the SVG object), and remove font-size CSS since it is handled in the scaling of the text by hand.
2012-02-05 19:23:35 -05:00
Davide P. Cervone
0a070ff628
Allow background colors to be shown properly in Opera (this may need additional checks)
2012-02-05 18:47:45 -05:00
Davide P. Cervone
5b7b698202
Fix problem with <ms> not passing the svg element to handleSpace()
2012-02-05 16:52:26 -05:00
Davide P. Cervone
77c52073b1
Fix centering for forced linebreaks in SVG output when linebreaking isn't specified. Still need to work out how to make this work better ifor in-line math, and for parts of equations (like fraction numerators, etc.)
2012-02-05 14:13:25 -05:00
Davide P. Cervone
3c18798e50
Fix a spacing problem in SVG output introduced by the previous commit.
2012-02-05 14:11:11 -05:00
Davide P. Cervone
ef50282a32
Fix a problem with the vertical size of mspace when it has a background color. Don't add colored backgrounds for semantics elements.
2012-02-05 13:21:03 -05:00
Davide P. Cervone
f30f917c22
Fix problem with size of colored background when padding-left is present (discovered from Fred's testing).
2012-02-04 17:48:51 -05:00
Davide P. Cervone
db4640d1f4
Fix problem with forced linebreaks in SVG mode, and a typo in one of the variable names
2012-02-04 17:33:31 -05:00
Davide P. Cervone
028d280a7d
Fix HTML-CSS tooltip to be work properly when a restart occurs within the tooltip.
2012-02-04 12:36:28 -05:00
Davide P. Cervone
daa1f31403
Fix SVG tooltip to be able to style the padding, to fix typo with name of SetData() method, and to make restarting work when it occurs within the tooltip.
2012-02-04 12:27:46 -05:00
Davide P. Cervone
2b991b95e9
Fix problem with size of tooltip box (needed to change the em and ex measurements to use height not width of test divs, since the direction was changed)
2012-02-03 21:49:12 -05:00
Davide P. Cervone
99bb83a86f
Fix typo that causes italics to be lost in some circumstances
2012-02-02 19:08:45 -05:00
Davide P. Cervone
a9a3635ec0
Get scaling correct when fontfamily is specified (need two spans so that fontsize can be multiplied by factor to adjust for scaling of math)
2012-02-02 18:54:34 -05:00
Davide P. Cervone
99d7828839
Get size to work properly when style sets the font size
2012-02-02 16:29:46 -05:00
Davide P. Cervone
5694332a99
Another try at getting elements with text coming from multiple fonts to work properly.
2012-02-02 16:12:36 -05:00
Davide P. Cervone
0d2d066b37
Make \ulcorner, etc. use more approprate unicode positions, and remap those positions to the locations in the MathJax_AMS fonts.
2012-02-01 16:15:30 -05:00
Davide P. Cervone
e25e07a8ba
Add xmlns attribute for all browsers (not just Chrome), since Safari and IE seem also to leave it out
2012-02-01 09:21:11 -05:00
Davide P. Cervone
4b21f3a8e0
A second try at fixing the FF callback error. Had the null in the wrong place, and apparently null doesn't do it anyway (though I could have sworn it had worked in testing). In any case, empty object for callback will work.
2012-02-01 09:07:22 -05:00
Davide P. Cervone
90e23901cd
Fix problem with Firefox getting errors about not being able to make callbacks (it was due to Gecko passing an extra parameter to the funciton called by setTiemout)
2012-02-01 08:57:36 -05:00
Davide P. Cervone
6cfecb6700
Delete the loading data for preloaded files when they call loadComplete()
2012-01-31 17:52:19 -05:00
Davide P. Cervone
23472e3f87
Add U+2032 through U+2037 to the STIX characters that must come from the variants font; don't special case U+2032 in TeX input or STIX font tables.
2012-01-31 14:09:24 -05:00
Davide P. Cervone
8b49255547
Make \dots produce mo with stretchy=false to correspond to the other mathchar0mo elements
2012-01-31 11:50:18 -05:00
Davide P. Cervone
876eb56c36
Remove unneeded semicolon in Firefox style parameter when width is specified
2012-01-31 11:05:55 -05:00
Davide P. Cervone
15aa6674b7
Fix problem with \mathop adding invisible times when the following isn't what the operator is being applied to (e.g., an <mspace>, or a BIN or REL operator)
2012-01-31 10:50:41 -05:00
Davide P. Cervone
2a3608ee37
Make EqnChunk smaller for mobile devices, and implement the chunk delay (inadvertantly left out)
2012-01-30 16:58:11 -05:00
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
b651ab1857
Fix positioning when <mroot> is missing its second argument
2012-01-26 19:57:10 -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
bb3b451b06
Add new parameters to default.js, and fix a few typos in config files comments
2012-01-26 15:51:46 -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
780695e6bf
Add new combined-configuration files that include AsciiMath input and SVG output; update Accessible configuration to use new menu settings for IE
2012-01-25 10:05:34 -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
0adb4b9d5e
Make default for Firefox be HTML (since its native MML doesn't support all the needed features), and give explicit defaults for Safari and Chrome.
2012-01-23 12:17:13 -05:00
Davide P. Cervone
45c91aa905
Load menu and zoom code after typesetting is complete (if not already loaded) so they will be available when needed.
2012-01-23 12:06:50 -05:00
Davide P. Cervone
6456a50e52
Allow SVG jax to laod without crashing in IE8 and below (but still get math processing errors). At least this doesn't need the timeout delay waiting for loadComplete() to be called.
2012-01-23 11:01:11 -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
3f8f21a3be
Add STIXversion to FONTDATA and fix typo in delimiter adjustments for 1.0
2012-01-21 18:10:11 -05:00
Davide P. Cervone
603328ae82
Add \middle command to TeX input jax
2012-01-21 16:47:46 -05:00
Davide P. Cervone
39b0122d08
Fix problem with MathML input adding extra class of 'null' when no class is present on an element (result of changes to include special classes for TeX attributes)
2012-01-21 15:08:19 -05:00
Davide P. Cervone
df053847ab
Pack previous commit, and remove debugging commands from 1.0 data file accidentally left in.
2012-01-21 15:02:58 -05:00
Davide P. Cervone
693ea6dc0c
Update STIX font data to v1.1-beta and provide a patch file to handle v1.0 STIX fonts (and develop a test to determine whih version you have)
2012-01-21 14:46:53 -05:00
Davide P. Cervone
14507fb9ff
Improve browser detection so that non-chrome WebKit will be Safari (was not working in default browser for Android 3.0)
2012-01-20 13:15:54 -05:00
Davide P. Cervone
fd0e446a39
Add missing comma in default.js (pointed out by Victor Ivrii)
2012-01-20 11:06:28 -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
afb4257a83
Add WOFF fonts and use them in browsers that support them; fix error in font reporting in About box
2012-01-19 10:18:52 -05:00
Davide P. Cervone
705bfe74e6
Remove trailing comma (confusing MSIE)
2012-01-19 10:17:27 -05:00
Davide P. Cervone
db29cf3414
Fix a measuring problem in Firefox
2012-01-18 16:19:23 -05:00
Davide P. Cervone
f5d43333ca
Work around STIX font issue in OS X Lion
2012-01-18 16:18:48 -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
5422dda7a1
Merge branch 'AsciiMath' into v2.0-candidate
2012-01-18 11:45:34 -05:00
Davide P. Cervone
5f74ca0380
Allow start and stop delimiters to be different, and add configuration blocks for AsciiMath and asciimath2jax to the default.js configuration
2012-01-18 11:45:14 -05:00
Davide P. Cervone
f4eecb684e
Allow element ID's to use \label name rather than equation number (optionally). Requested in issue #71 .
2012-01-18 11:17:47 -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
61abf6c9a6
Fix problem with appendChild when appending a fragment (the fragment needs to be cleared)
2012-01-17 11:21:58 -05:00
Davide P. Cervone
31f654fd0b
Use mathvariant rather than fontfamily or fontweight in AsciiMath output
2012-01-17 10:57:32 -05:00
Davide P. Cervone
104cd54d66
Capitalize Show Source menu item for AsciiMath
2012-01-17 10:37:52 -05:00
Davide P. Cervone
935585bec7
New ASCIIMath input jax based on David Lippman's contributed versions
2012-01-17 10:36:13 -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
d2bf4e3bb5
Replaced a part of the copyright that was deleted sometime earlier
2012-01-15 16:09:25 -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
fe40630d43
Add pre- and post-filter hook lists, to be consistent with TeX input jax
2012-01-11 17:26:11 -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
10812462e6
Break MakeMML into smaller routines
2012-01-10 12:04:10 -05:00
Davide P. Cervone
37a462c801
Force message text color to be black (for FontWarnings and config warning)
2012-01-10 10:59:52 -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
b622ba17ec
Have boldsymbol signal it is ready as soon as the TeX part is ready (since we don't know which output jax is in use, so shouldn't wait for that)
2012-01-09 16:23:26 -05:00
Davide P. Cervone
b591c4ef31
Make \boldsymbol add caligraphic bold to SVG output (as it does for HTML-CSS).
2012-01-09 16:19:47 -05:00
Davide P. Cervone
15c89cace0
Add undefined character signal to SVG jax
2012-01-09 15:22:12 -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
dceb91e4ea
Better version detection for off-brand Gecko browsers; add 8.0 and 9.0 detection; add Safari 5.1 detection from webkit version
2012-01-09 11:38:43 -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
7570eec623
Load MathEvents if needed to add contextual menu to an error message
2012-01-08 20:33:21 -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
51a65e5b52
Add HTML-CSS extension to handle tagged equations better when there are floating elements (without this, they overlap the floats). This is an extension since it misuses display:table-cell, and I'm not certain of all the consequences.
2012-01-07 10:24:26 -05:00
Davide P. Cervone
379b2c43e9
Fix a typo in the comments
2012-01-07 09:57:20 -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
f35661b83a
Remove unneeded comments
2012-01-06 13:43:39 -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
ad08117628
Add xmlns to Chrome math elements, since it doesn't seem to add the attribute itself as other browsers do)
2011-12-29 10:28:41 -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
2808c9cc27
Fix a comment typo
2011-12-27 15:00:30 -05:00
Davide P. Cervone
b3d2501a32
Allow preferences to select MML for Safari with late enough version
2011-12-27 14:59:08 -05:00
Davide P. Cervone
752dda7899
Re-implement ExecuteHooks in terms of the Hooks object (since it was documented, I guess we shouldn't remove it, even though I doubt anyone has used it)
2011-12-27 14:55:20 -05:00
Davide P. Cervone
631ae08101
Fix error with U+21A0 in STIX fonts as well.
2011-12-17 10:55:40 -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
d1b0893fec
Fix wrong character number in data for U+221A (reported by Fred)
2011-12-17 10:44:37 -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
fbedcb7a72
Another attempt to handle version for off-brand Gecko browsers (resolves issue #177 I hope)
2011-12-07 13:58:07 -05:00
Davide P. Cervone
da73d8cfb1
Handle lower-case Greek better and properly mark weight and style of characters not in the MathJax fonts
2011-12-07 13:56:38 -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
bc3b7adca6
Make \it use MathJax_Main-Italic rather than MathJax_Math-italic, and don't do math italic correction (so spacing is correct for text) (SVG)
2011-11-20 18:55:46 -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
cc305b294c
Fix spacing problem with \cong in regular and bold fonts (SVG). Resolves issue #162 for now until fonts can be repaired.
2011-11-20 17:07:15 -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
744f844eec
Handle determining Firefox version better for off-brand Gecko browsers (resolves issue #177 I hope)
2011-11-20 15:31:01 -05:00
Davide P. Cervone
af45fbf9d5
Choose better sizes for \widehat and \widetilde in HTML-CSS output
2011-11-18 23:00:09 -05:00
Davide P. Cervone
ed6623d22f
Choose better sizes for \widehat and \widetilde in SVG output
2011-11-18 22:59:03 -05:00
Davide P. Cervone
fd692e25f0
Properly handle skew character for accents in SVG output
2011-11-18 22:26:49 -05:00
Davide P. Cervone
4553cce005
Make SVG output work with discoverability better
2011-11-18 10:11:38 -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
6d9994d9d1
Add support for \mathchoice in SVG output
2011-11-15 20:17:32 -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
07e2ccb77f
Remove unused linebreaking code (it was left over from older linebreaking algorithm)
2011-11-15 15:00:39 -05:00
Davide P. Cervone
257a11d0e2
Better handling oc italic correction (not just in msubsup and munderover)
2011-11-15 14:57:28 -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
54863d1138
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:06:52 -05:00
Davide P. Cervone
7762d3323d
Handle href's better, particularly when on the <math> element
2011-11-10 07:45:55 -05:00
Davide P. Cervone
246a809ce5
Support additional styles, and use the styles object for colors and fontsize rather than setting the attributes directly (so they don't get copied to the MathML output for example)
2011-11-09 22:03:11 -05:00
Davide P. Cervone
f7116a61ac
Use HTML.Element rather than SVG.Element to make test span. Also, use HUB and HTML variables when possible rather than MathJax.Hub and MathJax.HTML
2011-11-07 16:04:26 -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
51c61ef985
Fix NativeMML so that showMathMenuMSIE:false works properly (the container being postion:relative was causing the wrong element to be on top)
2011-11-05 22:27:14 -04:00
Davide P. Cervone
604c09f9ca
Fix annotation-xml to use correct scaling (now that that has changed)
2011-11-05 16:22:00 -04:00
Davide P. Cervone
5394ea5b68
Fix a problem with combining character when they are used as accents (e.g., \vec)
2011-11-05 15:23:41 -04:00
Davide P. Cervone
4f14fbb301
Uncommented code that was taken out for debugging purposes (and that causes inline math to have a linebreak before it -- argh!). Sorry about that.
2011-11-05 07:30:26 -04:00
Davide P. Cervone
4a68934cd4
Fix linewidth computation so it respects floating elements on either side
2011-11-04 21:58:33 -04:00
Davide P. Cervone
d76580a422
Add a configuration flag that causes the underlying MathML structure to be retained in the SVG output, with element classes used to mark the corresponding elements (this allows some CSS control of the results, but also produces more complicated SVG trees)
2011-11-04 21:47:15 -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
bbda46f67c
Add SVG renderer to MathJax settings menu
2011-11-04 20:23:11 -04:00
Davide P. Cervone
8ca97d2f39
Add new SVG output jax
2011-11-04 20:16:13 -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
c1ab395327
Add missing mu value to length2em
2011-11-01 14:25:05 -04:00
Davide P. Cervone
eb99398f07
Fix spelling error in comment
2011-11-01 14:24:16 -04:00
Davide P. Cervone
b01f604b61
Fix problem with negative mu dimensions producing double minus signs in the MathML output
2011-11-01 14:23:31 -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
a66c5f2763
Add cancel package defining \cancel{math}, \bcancel{math}, \xcancel{math}, and \canelto{value}{math}
2011-10-26 00:10:29 -04:00
Davide P. Cervone
2e022a6631
Remove trailing commas that confuse IE
2011-10-25 23:35:49 -04:00
Davide P. Cervone
69301a2743
Handle arrowheads better when thickness is specified
2011-10-25 23:25:22 -04:00
Davide P. Cervone
48a018ac2e
New \enclose{notation}[attributes]{math} macro for giving TeX access to <menclose> tags
2011-10-25 23:04:44 -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
e030b97288
Add support for non-standard strikethrough arrow (for future use with \cancel macros)
2011-10-25 19:01:09 -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
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
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
09851b9a0b
Remove alias of 203E to AF since 203E is listed in the delimiters directly (this was causing an infinite loop)
2011-09-18 16:43:01 -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
45d81dfc3e
Merge branch 'tex-fixes' into v2.0-candidate
2011-09-11 10:59:24 -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
73b3214a9e
Merge branch 'tooltips' into new-features
2011-09-11 09:40:09 -04:00
Davide P. Cervone
6c60d75f2e
Merge branch 'mhchem' into new-features
2011-09-11 09:39:36 -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
efbc1612f3
Add support for extpfeil extension -- more stretchy arrows (resolves issue #93 )
2011-09-10 19:29:29 -04:00
Davide P. Cervone
58d876b417
Add stretchy equals (needed for extpfeil)
2011-09-10 19:16:27 -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
1323c38ca3
Scale NativeMML output to match surrounding font's ex-size (resolves issue #138 ). Can't do this for IE, though, since it's ex-size is not actually that of the font, but is always 1/2 the height. But since MathPlayer does a good job of matching the surroundings, that's not a problem.
2011-09-10 15:53:31 -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
53fc357cfc
Start processing on DOMContentLoaded, if possible, and check document.readyState to see if the onload handler has already fired (avoids the need for authors to call MathJax.Hub.Startup.onload() by hand)
2011-09-06 21:05:51 -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
b719fb481b
Put chunk size back (was larger for debugging), and remove unneeded variable from mmultiscripts
2011-09-06 12:36:17 -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
66be7cd2f7
Make mtd not measure stretched operators twice
2011-09-06 00:23:48 -04:00
Davide P. Cervone
54bb4574ed
Make mmultiscripts not remeasure stretched operators
2011-09-06 00:20:22 -04:00
Davide P. Cervone
77f0e943bf
Remove getScales call from tooltip, and don't remeasure stretchy operators
2011-09-06 00:09:09 -04:00
Davide P. Cervone
ccdefebc2e
Removed debugging code left in the previous commit
2011-09-05 23:43:03 -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
2708905233
Since the loading of the jax is now done by prepareOutput, no need to check for callbacks in processOutput
2011-09-04 17:51:18 -04:00
Davide P. Cervone
a4fdb7b815
Properly handle loading of jax during prepareOutput so that it works in combined configuration files
2011-09-04 16:52:44 -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
75058a81d8
Pass state to input and output jax's Translate() method
2011-09-04 13:04:04 -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
b62847c57e
Replace getW with a better version, and avoid offsetHeight in placeBox when posible. Make some IE bugs dependent on mode (since IE9 doesn't need them)
2011-08-31 12:40:30 -04:00
Davide P. Cervone
0fbba16dbe
No need for useProcessingFrame any more (just set styles on the MathJax span itself)
2011-08-30 19:47:45 -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
2a72125c1a
Make prepareOutput() load the main output jax.js file and wait for it to complete; also handle errors in the pre- and post-processing
2011-08-29 07:36:40 -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
046079b805
Remove unused function from previous commit
2011-08-28 13:24:30 -04:00
Davide P. Cervone
805c78df67
Add a processing state variable and use that to allow pre- and post-Translate methods that can be used to get scaling factors, etc.
2011-08-28 13:14:20 -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
07faf4e0b4
Check for config array before issuing v1.0-warning message (resolves issue #163 )
2011-08-27 11:38:31 -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
7752f21ab9
The events are no longer tied to the MathJax_MSIE_Overlay frame, so don't need the special cases for this
2011-08-26 14:41:43 -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
975fe6e679
Move output-jax-specific zoom code to jax, and fix some other minor issues (stil need to check with IE and then repack and recombine)
2011-08-24 20:53:52 -04:00
Davide P. Cervone
91753873e1
Merge with menu-update
2011-08-24 19:16:37 -04:00
Davide P. Cervone
a7fd90af2f
Sort the items in the About MathJax dialog box
2011-08-24 17:28:54 -04:00
Davide P. Cervone
2baa587175
Corrected types in comments
2011-08-24 16:16:04 -04:00
Davide P. Cervone
7c33ada973
Change UIevents to MathEvents (missed this one earlier)
2011-08-24 16:11:48 -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
3cd69cf6ae
Make parameters be configuration parameters, and allow for easier configuration of styles
2011-08-24 11:06:23 -04:00
Davide P. Cervone
9769ba0d64
Rename UIevents as MathEvents
2011-08-24 10:31:21 -04:00
Davide P. Cervone
d7c91a442b
Use HOVER.Px instead of bbox.Units, which was removed
2011-08-23 14:39:41 -04:00
Davide P. Cervone
3312e9ca3e
Make menu button float on top of math, and make delays and other values into paramaters that can be changed (needed for menu arrow positioning
2011-08-23 14:32:07 -04:00
Davide P. Cervone
849ce80599
Move some more common code to UIevents; add support for configuring discoverability; make frame always be in pixels rather than sometimes em's; add comments to UIevents
2011-08-23 12:40:52 -04:00
Davide P. Cervone
9289568584
Add support for MathPlayer in IE9 and lower, plus add support for hover when maction is used, and support for the hover in the API calls
2011-08-22 18:39:28 -04:00
Davide P. Cervone
fd587eb745
Add 'discoverability' to NativeMML output (still have to work on IE support)
2011-08-22 11:07:30 -04:00
Davide P. Cervone
42306c4b0c
Move event-handling code to a separate file, loaded by output jax (so if MathJax is loaded on a page with no math, it doesn't have to be loaded)
2011-08-19 18:31:43 -04:00
Davide P. Cervone
3a8a9f5df9
Move hover support to MathJax.js (next commit will move it all to a separate extension)
2011-08-19 14:41:29 -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
2367f0e92b
Preliminary 'discoverable' math implementation. INCOMPLETE: DO NOT USE YET. Only in HTML-CSS mode, and still need to refactor to move event code to common file. Does support mobile devices through tap event. Does not include packed or combined versions yet.
2011-08-19 09:19:22 -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
29d07d1420
Removed extra comma that causes IE problems (Fred caught it)
2011-08-13 09:16:57 -04:00
Davide P. Cervone
161b463141
Switch order of commented out formats to avoid final comma problems if they are uncommented
2011-08-12 08:27:36 -04:00
Davide P. Cervone
c794e7ce19
Fixed some typos, and added comments to help clarify the equation numbering parameters
2011-08-11 15:36:17 -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
b7c76ff0d7
Fix typo in self-closing flag for mprescript tag (resolves issue #157 )
2011-08-05 20:50:53 -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
fe2368e35d
Fix CSS so Firefox will use local MathJax fonts, if present (resolves issue #134 )
2011-08-04 20:37:17 -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
61e6d40a43
Removed debugging alert that was accidentally left in the previous commit
2011-08-04 12:51:30 -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
418e5a293e
Prevent infinite loop if one of the jax fails to load (due to failure to compile or timeout waiting for it to load)
2011-08-03 16:04:14 -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
9156092878
Add default id's to the jax objects (make Fred happy)
2011-07-28 19:31:42 -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
73ad910da4
Fix \unicode bug with font names that include spaces (resolves issue #142 )
2011-07-27 16:39:47 -04:00
Davide P. Cervone
3ddd323cd2
Remove internal multiple spaces in token elements (resolves issue #127 )
2011-07-27 16:31:04 -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
d2b40a3235
Improve the previous fix for xmlns by using better regexp so as to no longer need replaceXMLNS function
2011-07-27 15:06:02 -04:00
Davide P. Cervone
e21825cf56
Don't show the v1.0 compatibility message if the config parameter was specified, even if the config file fails to load
2011-07-27 11:57:07 -04:00
Davide P. Cervone
7f6c93b1c9
Work around HTML5 removing namespaces, so that xmlns:xlink becomes xlink with no namespace, which confuses the XML parsers.
2011-07-27 10:26:21 -04:00
Davide P. Cervone
d57abf54d8
Fix problem with SimpleSUPER reported by Fred (due to a bad copy-paste edit really early on)
2011-07-27 09:07:40 -04:00
Davide P. Cervone
725f655080
Fix Message.Set and Message.Clear so that a delay of 0 is properly handled (fixes issue with Fred's test cases, though I would prefer to see some tests that use the actual delays)
2011-07-27 08:46:45 -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
7f2292ec7b
Fix comments in fontdata-extra files
2011-07-26 20:04:55 -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
74cb04a9e0
Fix \thickapprox to use the correct glyph (resolves issue #145 )
2011-07-26 19:19:01 -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
6bd9ce99f3
Merge branch 'master' into tooltips
2011-07-24 10:00:00 -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
29239f00ce
Fix problem with fractions in displaystyle, fix problem with minus sign in superscripts, add \hyphen macro (used in some examples), and removed extra comman (that causes IE to fail).
2011-07-24 08:06:16 -04:00
Davide P. Cervone
5e9616370b
Initial version of mhchem package (implements \ce, \cf, \cee commands)
2011-07-22 09:37:15 -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
45dd111fe9
Fix timing problem with Jax startup sequence so that the required array can be modified in the Config method (as it is in the HTML-CSS jax). This resolves a timing ising with IE
2011-06-06 15:05:22 -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
eb63ba8daa
Update alert concerning security settings for MathPlayer when it fails to initialize
2011-06-02 09:18:31 -04:00
Davide P. Cervone
46320e5b9e
Do setup for MathPlayer and DOM Parser when first needed rather than at startup (since these can be disabled by IE causing errors). Put up alerts indicating security settings to change if IE fails to set these up properly.
2011-06-01 21:09:36 -04:00
Davide P. Cervone
79a8253da0
Fix problem where characters were lost when an unknown character was in the same text string (in token elements)
2011-06-01 18:22:21 -04:00
Davide P. Cervone
b7525afe5c
Fix problem with " in attributes, and with entity names that include numbers
2011-06-01 18:17:52 -04:00
Davide P. Cervone
3687469e6f
Fix incorrect mapping of digamma in IE, and don't use variant forms (not sure why they were used in the first place, but they do not seem to be needed now)
2011-06-01 18:15:09 -04:00
Davide P. Cervone
e9e3135981
Trap errors during the toMathML() call and redisplay if it is a RestartAfter call (e.g., loading of an entity file)
2011-06-01 18:13:02 -04:00
Davide P. Cervone
8588f02413
Remove extra comma from RANGES (causes IE crash), bump version numbers, and rename IE Greek ranges to work properly with new greek range in 1.1a
2011-05-30 14:05:35 -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
861d254bec
Don't try to check for jax if specified element is null (prevents a crash)
2011-05-18 14:52:49 -04:00
Davide P. Cervone
d54cfb2519
Fix a problem with two DIV's having the same ID when MSIE is used; fix a problem where the v1.0 configuration message does show up for IE7 and 6.
2011-05-18 14:51:07 -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
222a4c0ba6
Repack and recombine (to resolve conflicts from issue68)
2011-05-18 10:27:41 -04:00
Davide P. Cervone
9cc3bda487
Resolve conflicts from issue112, repack and recomine
2011-05-18 10:24:05 -04:00
Davide P. Cervone
8e79bbea7c
Merge branch 'issue107' into 1.1a-candidate
2011-05-18 10:17:35 -04:00
Davide P. Cervone
ff3a846d83
Repack merge from issue115
2011-05-18 10:14:50 -04:00
Davide P. Cervone
05bb951a94
Merge branch 'issue98' into 1.1a-candidate
2011-05-18 10:12:42 -04:00
Davide P. Cervone
90ef4b45eb
Merge branch 'issue97' into 1.1a-candidate
2011-05-18 10:11:48 -04:00
Davide P. Cervone
9ce7e85ccc
Resolve conflicts from merge with issue30, update versions, repack, recombine
2011-05-18 10:06:06 -04:00
Davide P. Cervone
f10ec864ea
Update version numbers for merge with issue117
2011-05-18 10:00:27 -04:00
Davide P. Cervone
17d6686c92
Merge branch 'issue117' into 1.1a-candidate
2011-05-18 09:58:38 -04:00
Davide P. Cervone
83ff2b0901
Merge issue113 (resolving conflicts with edits in issue106)
2011-05-18 09:54:21 -04:00
Davide P. Cervone
3056b41c13
Merge branch 'issue106' into 1.1a-candidate
2011-05-18 09:37:17 -04:00
Davide P. Cervone
4d06c1026e
Make global scaling factor available in the HTML-CSS object, and use it in annotation-xml to match the scaling properly
2011-05-18 08:39:55 -04:00
Davide P. Cervone
6b06f0ac16
Move annotation-xml to an autolaoded extension, and properly handle it in HTML-CSS
2011-05-15 08:44:12 -04:00
Davide P. Cervone
8f20a75ffe
Add an xml object to the ElementJax classes to handle the annotation-xml data, and make implementations of it in the various input and output jax (resolves issue #117 ).
2011-05-13 20:30:22 -04:00
Davide P. Cervone
37cb2ff727
Prevent the clearing of a message from putting up a new message when messageStyle == "none" is in effect (resolves issue #115 ).
2011-05-13 13:07:34 -04:00
Davide P. Cervone
99da6be704
Add CSS to force image to be display:inline
2011-05-12 21:10:16 -04:00
Davide P. Cervone
ae419b08e1
Work around a bug in IE8 where cloneNode() seems to screw up the web-based fonts (resolves issues #30 and #78 )
2011-05-12 20:57:32 -04:00
Davide P. Cervone
23ad7609bc
Add ability to load extra stretchy characters on demand, and add data for more stretchable characters.
2011-05-11 20:13:25 -04:00
Davide P. Cervone
66bc9b8317
Use ⁡ after \mathop{} no matter what its contents (it used to only do it for \mathop{\rm ...}
2011-05-09 08:22:10 -04:00
Davide P. Cervone
bf862f6529
Update operator table to correspond with current W3C version at http://www.w3.org/TR/MathML3/appendixc.html
2011-05-08 23:30:40 -04:00
Davide P. Cervone
0dc8212c6d
Mark variants with bold and italic values so that unknown characters can have font-weight and font-style set properly (resolves issue #96 ).
2011-05-08 22:26:27 -04:00
Davide P. Cervone
6275aa46ea
Remap upper-case Greek that are not in MathJax fonts to their corresponding latin positions (resolves issue #16 ).
2011-05-08 21:48:40 -04:00
Davide P. Cervone
44dbbd135c
Don't remap italic numbers to normal, and map normal greek to italic since the MathJax fonts don't have normal versions (resolves issue #25 ).
2011-05-08 21:27:49 -04:00
Davide P. Cervone
f002f4924b
Change the default font-family for undefined character to be a configuration parameter
2011-05-08 21:20:27 -04:00
Davide P. Cervone
0d31246321
Add explicit ltr CSS styling for MathJax output (resolves issue #114 ).
2011-05-08 17:16:55 -04:00
Davide P. Cervone
74d7db9e78
Update entity table to conform with http://www.w3.org/2003/entities/2007/htmlmathml-f.ent (fixes a number of wrong values, and adds some missing entities). (Resolves issue #37.)
2011-05-08 16:28:49 -04:00
Davide P. Cervone
d5416ceb10
Add \begingroup and \endgroup commands to make it possible to have local macros. Add the \let and \renewenvironment commands. Add \global and \gdef now that there are local namespaces
2011-05-07 21:21:52 -04:00
Davide P. Cervone
326b107118
Properly handle missing </math> tags in IE. Properly handle non-MathML tags that are included within the <math> element (e.g., from a <semantics> annotation or due to missing </math>). Resolves issue #113 .
2011-05-06 14:09:59 -04:00
Davide P. Cervone
fd3ff2979e
Fix problem with character being skipped following a \ref or \eqref in \text{} inside math mode (index was off by one)
2011-05-06 12:45:21 -04:00
Davide P. Cervone
94a2dc3389
Have TeX input jax load AMSmath if auto equation numbering is requested in the TeX configuration
2011-05-02 09:55:58 -04:00
Davide P. Cervone
f4f5263e2b
Add comments and use variables for shortcuts to structures
2011-05-02 09:54:47 -04:00
Davide P. Cervone
70b8f84a3a
Fix reference to texError that was mistyped as isError. Also repacked tex2jax, which was not included in the previous commit (for some reason)
2011-05-02 08:38:04 -04:00
Davide P. Cervone
7e2ed03750
Add support for automatic line numbers, and the \label and \ref macros (resolves issue #71 )
2011-05-01 19:05:02 -04:00
Davide P. Cervone
c23c21443e
Mark top-level math element as having a texError when it is one (to make it easier to recognize)
2011-05-01 18:44:03 -04:00
Davide P. Cervone
e23b8b4756
Mark TEX.Parse() call as Inner if it occurs within the processing of an equation (needed for automatics equation numbering), and initialize the global data as the start STACKING is created
2011-05-01 18:35:27 -04:00
Davide P. Cervone
07ab955fe2
Convert pre- and post-filters to Callback.Hook lists
2011-05-01 18:26:08 -04:00
Davide P. Cervone
84ed248395
Break the processing phase into two separate phases to do input processing separately from output processing (they used to be interleaved). This makes it easier to implement forward references for the \ref macro
2011-05-01 17:31:30 -04:00
Davide P. Cervone
fa7673e03d
Have Update() method ask ElementJax to determine if it needs updating (which in turn asks the associated input jax). Make Remove() work for just clearing output (without detaching) if desired.
2011-05-01 14:21:01 -04:00
Davide P. Cervone
944aed1ac1
Have ElementJax store input and output jax ID's rather than pointers (to help avoid circular references for cleanup purposes)
2011-05-01 13:45:16 -04:00
Davide P. Cervone
98c56a56ab
Move input/output jax and preprocessor registries from Hub.config to Hub itself (they are not user configurable through Hub.Config, and so even though they are configurations, they don't belong there).
2011-05-01 10:46:22 -04:00
Davide P. Cervone
c5c01bd60b
Abstract lists of (prioritiezed) callbacks into an object, and use it to replace ExecuteHooks, and to allow priorities for callback hooks (StartupHook, MessageHook, LoadHook, and PreProcessors). This can also be used to provide hooks for other actions, like pre- and post-filtering math or errors, etc.
2011-05-01 09:28:49 -04:00
Davide P. Cervone
21a8e54d06
Add new action extension for \mathtip, \texttip, and \toggle macros, giving TeX access to the maction MathML tag
2011-05-01 07:56:04 -04:00
Davide P. Cervone
a31559a819
Use new element jax Update() method to handle updating of toggle maction
2011-05-01 07:49:47 -04:00
Davide P. Cervone
af15b0631b
Merge branch 'hub-update' into htmlcss-fixes
2011-05-01 07:43:27 -04:00
Davide P. Cervone
bea67bcb8f
Mark the root math element with the source ID so you can look up the jax from within the math tree
2011-05-01 07:42:46 -04:00
Davide P. Cervone
92c0a9f9a5
Add an Update() method to ElementJax to force output to be updated (but not reprocess input). To be used if the contents of the element jas changes by hand (e.g. through maction)
2011-05-01 07:13:40 -04:00
Davide P. Cervone
d4c2c09714
Add new generic signals around the math processing, so that it is easier to trap notification of the beginning or ending of math processing
2011-04-30 14:25:33 -04:00
Davide P. Cervone
ea88cc5a5b
Add ability to reprocess only the output (can be used by maction to better handle the toggle actiontype)
2011-04-30 14:21:56 -04:00
Davide P. Cervone
27fe28261f
Removed debugging code accidentally left in previous version. Repack and recombine.
2011-04-30 08:13:54 -04:00
Davide P. Cervone
7680604b23
If a stretchy character exists without a non-stretched version, use the minimal stretched version for the unstretched one. Also, fix munderover to recompute the width after stretching the stretchy elements. (Resolves issue #112.)
2011-04-30 08:10:51 -04:00
Davide P. Cervone
fd0c9236a2
Remove wait for NativeMML selection signal, and just use the onLoad signal (so that existing pages that change the renderer by hand will continue to work). It would be nice to avoid setting up the namespace when not needed, but it doesn't seem to hurt, and doesn't cause MathPlayer to start up, so it should be OK.
2011-04-27 20:11:17 -04:00
Davide P. Cervone
fc2964dda7
Make renderer change via MathMenu post the renderer select message (so NativeMML configuration will complete for IE/MathPlayer in combined configurations)
2011-04-27 18:28:50 -04:00
Davide P. Cervone
1740640ea5
Bump the version number and repack/recombine
2011-04-27 12:05:12 -04:00
Davide P. Cervone
ae55a2f570
Fix a timing issue where setting up MathPlayer can cause IE to crash (resolves issue #110 ).
2011-04-27 09:37:24 -04:00
Davide P. Cervone
876e96d80f
Fix a problem with redrawing maction toggle elements (the size and spacing were off)
2011-04-27 08:05:28 -04:00
Davide P. Cervone
dfdaabe5f6
Remove wrong second parameter to InternalMath call for text in \cases
2011-04-27 08:02:04 -04:00
Davide P. Cervone
ba355d10bb
Convert xlink:href to href and ignore all other namespace attributes (resolves issue #68 ).
2011-04-26 19:31:38 -04:00
Davide P. Cervone
86ed491787
Make \cases automatically use \text on the second entry in each row (so that it works like the real TeX \cases macro)
2011-04-26 19:22:17 -04:00
Davide P. Cervone
18734b5cce
Add \bbox macro that allows you to set background colors, padding, and borders for math formulas
2011-04-26 15:28:37 -04:00
Davide P. Cervone
8aa2e2a3f2
Make style attributes work on mstyle elements
2011-04-26 15:23:29 -04:00
Davide P. Cervone
e48efbbd35
Make padding and border width configurable, and use new ability to set border in style (but stick with mpadded for padding, since neither MathPlayer nor Firefox seem to implement padding style settings)
2011-04-25 15:07:23 -04:00
Davide P. Cervone
2407d6dafd
Merge branch 'issue109' into issue38
2011-04-25 14:36:06 -04:00
Davide P. Cervone
55d6161c99
Add ability for HTML-CSS output to handle explicit border and padding style settings on math elements (resolves issue #109 ).
2011-04-25 14:00:39 -04:00
Davide P. Cervone
4b2d568822
Make \color work as a switch, as in LaTeX, and add the other features from the color package (\definecolor, other color models, LaTeX named colors, \colorbox, \fcolorbox, etc.). (Resolves issue #38.)
2011-04-24 18:23:21 -04:00
Davide P. Cervone
edd68a415a
Better treatment of rfuzz (resolves issue #108 better)
2011-04-24 15:19:34 -04:00
Davide P. Cervone
57a6db4aaf
Half the rfuzz for WebKit (resolves issue #108 )
2011-04-24 14:54:06 -04:00
Davide P. Cervone
eb79363766
Fix \mathop to produce <mi> rather than <mo> and add ⁡ when needed. This also handles \operatorname.
2011-04-24 11:10:45 -04:00
Davide P. Cervone
3a8c20b372
Make functions (like \sin) be <mi> rather than <mo>, and insert ⁡ after their use (resolves issue #56 ).
2011-04-23 19:56:17 -04:00
Davide P. Cervone
afc36aac44
Make \sqrt\frac{}{} not produce an error (resolves issue #75 , at least for the example given).
2011-04-23 09:20:26 -04:00
Davide P. Cervone
a2d695c012
TeXAtom was used too often on embellished operators, so move it to the individual macros that need it.
2011-04-22 10:42:39 -04:00
Davide P. Cervone
f0c0cc3d3a
Bump version number
2011-04-22 07:48:16 -04:00
Davide P. Cervone
bf4e73ddf3
Fix incorrect positioning of maction tooltips (resolves issue #107 )
2011-04-22 07:46:40 -04:00
Davide P. Cervone
3732851167
Refactor code that builds outerHTML string by hand, since it needs to be used by Opera as well in order to fix unquoted special characters in attributes. This also fixes the self-closing tag problems for IE and Opera. (Resolves issue #106 and issue #99 )
2011-04-21 20:54:12 -04:00
Davide P. Cervone
2066e68531
Make the message system wait for the styles to be set before using the in-page message area (resolves issue #98 )
2011-04-21 14:18:28 -04:00
Davide P. Cervone
edd14c6258
Make sure embelished large ops are type OP not ORD to get spacing right
2011-04-20 20:59:58 -04:00
Davide P. Cervone
2860efd523
Fix error with size of \: space
2011-04-20 20:55:58 -04:00
Davide P. Cervone
07a2014e0e
Fix problem with escaped dollars being unescaped the next time the page is typeset (resolves issue #97 )
2011-04-09 17:23:22 -04:00
Davide P. Cervone
bb09608b23
Resolve a conflict with Mathjax and Slidy (its sets window.opera, which confused the browser detection)
2011-04-05 12:25:44 -04:00
Davide P. Cervone
4a2969c45b
Merge dpvc/issue85 (fixes for element configuration option)
2011-04-05 12:19:46 -04:00
Davide P. Cervone
f9e9165835
Merge remote branch 'dpvc/issue89'
2011-04-04 14:07:59 -04:00
Davide P. Cervone
7900c136e4
Merge remote branch 'dpvc/issue87'
2011-04-04 14:07:56 -04:00
Davide P. Cervone
ea00136979
Merge remote branch 'dpvc/issue86'
2011-04-04 14:07:11 -04:00
Davide P. Cervone
91fca00e4f
Fixed typo in about box (Fred reported in issue #47 )
2011-04-04 14:04:39 -04:00
Davide P. Cervone
af0b052702
Partial work-around for issue#89: have <br> insert a newline in IE when documentMode < 9
2011-03-26 08:40:02 -04:00
Davide P. Cervone
a418d0748a
Fix problem with accents not having the correct mathvariant (resolves issue 87)
2011-03-24 09:06:30 -04:00
Davide P. Cervone
288907d29b
Worked around crippled VML implementaion in IE8 and IE9
2011-03-20 07:51:59 -04:00
Davide P. Cervone
2b7e966959
Move version numbers to 1.1 (this were missed when the other files' versions were changed)
2011-03-19 08:30:59 -04:00
Davide P. Cervone
4d9007ca9e
Remove element parameters from the preprocessor configuration blocks (they are not longer used, now that there is a global elements parameter)
2011-03-18 18:47:25 -04:00
Davide P. Cervone
536eece1b1
Fix problem with element parameter to the preprocessors (by making a global parameter instead, so there is only one place it needs to be set). Also make it an array so that more than one element can be specified.
2011-03-18 18:38:51 -04:00
Davide P. Cervone
34f3a8302c
Fix regression where background color obscures foreground text in IE
2011-03-12 20:32:13 -05:00
Davide P. Cervone
a4633101ab
Work around issue82 by not trying to load MathPlayer in IE9
2011-03-10 15:24:54 -05:00
Davide P. Cervone
072bcdd1bd
Fix spelling of 'version' in mml2jax (argh!)
2011-03-09 09:24:00 -05:00
Davide P. Cervone
62c5adc459
Fix determination of root directory when config parameter includes slashes
2011-03-06 15:16:36 -05:00
Davide P. Cervone
af97e9f6a6
Make jax configuration wait until after main configuration completes
2011-03-05 18:09:55 -05:00
Davide P. Cervone
0e458db9d4
Fix timing problem with setting of renderer from menu cookie. Update version numbers for Jax base classes
2011-03-05 15:08:52 -05:00
Davide P. Cervone
51d839080c
Add unpacked combined configuration files (which just configure to load them at the usual time. This is to allow easier debugging of pages using combined configuration files without having to recombine the files any time one of the originals is edited).
2011-03-03 19:25:27 -05:00
Davide P. Cervone
a5661b5c1c
Change versions to 1.1 and update copyright dates
2011-03-03 16:45:48 -05:00
Davide P. Cervone
a15392c23c
Update default for inlineMath configuration (don't use dollars by default)
2011-03-03 16:35:32 -05:00
Davide P. Cervone
3eac5f2b7f
Update comments in default configuration file
2011-03-03 16:34:49 -05:00
Davide P. Cervone
c8761824ae
Change default configuration file to config/default.js
2011-03-03 16:27:35 -05:00
Davide P. Cervone
4648698978
Repack and recombine previous merge
2011-03-03 16:06:52 -05:00
Davide P. Cervone
2ba61a6e4c
Update packed and combined files for last merge
2011-03-03 15:32:13 -05:00
Davide P. Cervone
8b418b432c
Merge branch 'better-about'
2011-03-03 15:28:25 -05:00
Davide P. Cervone
f55e2cd7eb
Update packed and combined files for issue80
2011-03-03 15:28:05 -05:00
Davide P. Cervone
dcff67e561
Fix version number remapping for unrecognized WebKit browsers, and change check for iPhone use of web fonts to match (resolves issue #80 )
2011-03-03 07:20:36 -05:00
Davide P. Cervone
1166553038
Bump version numbers
2011-03-01 10:01:12 -05:00
Davide P. Cervone
f2de28e068
Remove support for ancient beta-version fontdata (now that the fonts are part of the archive, no more change that this will not match)
2011-03-01 10:01:11 -05:00
Davide P. Cervone
18752966be
Allow Chrome to use OTF fonts for v4.0 and above, and use OTF fonts for Safari/PC (the FF3.6.13 fix has fixed the problem for Safari, too)
2011-02-28 14:23:06 -05:00
Davide P. Cervone
06616a8914
Bump the version number
2011-02-28 14:13:07 -05:00
Davide P. Cervone
6081bd5475
Make sure extensions have a version before reporting them
2011-02-28 14:11:59 -05:00
Davide P. Cervone
0c11aa2bf6
Add extensions information to the about box, and add browser and font type
2011-02-28 14:08:59 -05:00
Davide P. Cervone
3578a76d63
Correctly calculate the value of dimensions with units of pc (resolves issue #76 )
2011-02-28 13:27:12 -05:00
Davide P. Cervone
bc193eedd2
Fix indenting due to insertion of startup hooks for configuration blocks
2011-02-26 10:18:56 -05:00
Davide P. Cervone
5950641ee5
Merge branch IE9-issues (with updated versions and packing)
2011-02-26 10:04:06 -05:00
Davide P. Cervone
e08b25f9f0
Merge branch 'HTML5-config'
2011-02-25 14:57:58 -05:00
Davide P. Cervone
4a92b6c4cb
Tie checking for menu settings to Cookie event so that it occurs after the cookie is read
2011-02-25 14:47:32 -05:00
Davide P. Cervone
97fb465311
Add CombineConfig() routine to combine default configuration with user configuration, and insert signal hooks to do synchronize configuration (for use with combined configuration files)
2011-02-21 14:39:15 -05:00
Davide P. Cervone
38f5ddc714
Reword the message, and don't fade it out or use a cookie; it should ALWAYS show and should stay up until explicitly closed
2011-02-19 09:47:13 -05:00
Davide P. Cervone
c200dcd5d2
Add a warning message (but in a separate file so that MathJax.js doesn't have to be any bigger) for when no configuration was done (when v1.0.x would load the config/MathJax.js file)
2011-02-18 09:03:51 -05:00
Davide P. Cervone
a11d398ea4
Implement new configuration process (see http://sites.google.com/site/mathjaxproject/design-documents/configuration-options/version-1-1-configuration-specification ) with v1.0 compatibility (which may need to be changed)
2011-02-17 10:54:49 -05:00
Davide P. Cervone
405fc0f9af
Fix maction embellished operators so that they stretch
2011-02-16 13:38:01 -05:00
Davide P. Cervone
48ee5d3f55
Fix isSpacelike for maction elements
2011-02-16 13:36:54 -05:00
Davide P. Cervone
4cbc74e418
Merge remote branch 'dpvc/issues66-67'
2011-02-15 11:05:20 -05:00
Davide P. Cervone
706552ef42
Merge remote branch 'dpvc/issue63'
2011-02-15 11:04:57 -05:00
Davide P. Cervone
185ff593c7
Update check for WebKit to allow AppleWebKit in browser detection
2011-02-15 10:57:20 -05:00
Davide P. Cervone
a2f75719b2
Don't need dropshadow filter for IE9, and use proper capitalization for MathJax_MSIE_Frame
2011-02-15 08:48:46 -05:00
Davide P. Cervone
7e5c8ef639
Don't use dropshadow filter in IE9, add shadow for Konqueror, and a minor syntactic fixup
2011-02-15 07:57:46 -05:00
Davide P. Cervone
bfdb9c6b22
IE9-RC fixes filter problem, and changes the name of the performance object
2011-02-15 07:53:27 -05:00
Davide P. Cervone
f55fc96ca3
Work around IE9 bug that caches font-family lookups and doesn't reset them when @font-face changes the family
2011-02-14 20:16:14 -05:00
Davide P. Cervone
cce1ff7cf1
Merge branch 'web-fonts-timing' into IE9-issues
2011-02-14 20:10:07 -05:00
Davide P. Cervone
86eaa76087
Remove files that are no longer needed (data is now in Main.js), and make sure initFont() completes before loadComplete() is called (since it can create styleSheets, which take time to become available)
2011-02-14 19:55:22 -05:00
Davide P. Cervone
5485fc81c5
Fix problem with IE9 menu placement (event didn't have the location properties)
2011-02-07 19:59:21 -05:00
Davide P. Cervone
7f14b46cae
Make sure IE9 doesn't get filter set to do DXImage dropshadows (which cause IE9 to crash)
2011-02-07 19:52:11 -05:00
Davide P. Cervone
31c32f8f20
Add MathJax.HTML.setScript() to handle setting a script's value (taking IE9 bug into account), and use it where scripts are created (resolves issue#5)
2011-02-07 19:48:47 -05:00
Davide P. Cervone
fb475ba344
Make mtext be space-like, fix isEmbellished (etc) for maction, and make mstyle align not affect tables (resolves issues#66 and #67 )
2011-02-07 19:26:17 -05:00
Davide P. Cervone
2a99d528aa
Comments don't need to have <, >, and & replaced, so do text separately from comments
2011-02-02 10:59:34 -05:00
Davide P. Cervone
5dc47f7647
Put comment text inside comment markers when processing IE MathML (resolves issue #63 )
2011-02-02 08:23:10 -05:00
Davide P. Cervone
1a073c1004
Repack and recombine
2011-01-24 12:33:40 -05:00
Davide P. Cervone
e66115ec15
Merge remote branch 'dpvc/self-closing-mml'
2011-01-24 12:06:42 -05:00
Davide P. Cervone
2f99db9a83
Update HTML-CSS jax version number, repack, and recombine
2011-01-24 12:03:24 -05:00
Davide P. Cervone
bd51778508
Merge remote branch 'dpvc/issue51'
2011-01-24 12:01:55 -05:00
Davide P. Cervone
5d1aebf4a1
Merge remote branch 'dpvc/issue50'
2011-01-24 12:00:04 -05:00
Davide P. Cervone
e8d6fc838e
Update version number, repack, and recombine
2011-01-24 11:37:36 -05:00
Davide P. Cervone
1ecd7fbd49
Fix problem with \over used inside array entries (resolves issue#54)
2011-01-21 20:18:16 -05:00
Davide P. Cervone
bdb2d9fde9
Make \raise and \lower properly adjust height/depth (resolves issue#58)
2011-01-21 19:53:58 -05:00
Davide P. Cervone
8b9ee1d9f3
Make sure changes only occur in display math, not in-line math
2011-01-20 13:09:04 -05:00
Davide P. Cervone
7c93160644
Honor the displayAlign and displayIndent settings in NativeMML output (resolves issue#50)
2011-01-20 13:04:09 -05:00
Davide P. Cervone
7e607fd3c0
Add synchronization with HTML-CSS jax so that thee files can be included in combined config files more readily
2011-01-20 08:20:26 -05:00
Davide P. Cervone
0255e0c6bf
Move creation of FONTTEST to Config(), since it relies on document.body being available
2011-01-20 08:19:10 -05:00
Davide P. Cervone
c1de343e4e
Properly handle menu renderer settings when combined config files are used. (REsolves issue 51)
2011-01-20 08:18:02 -05:00
Davide P. Cervone
699e063991
Self-closing tags in HTML aren't processed properly in some browser, and end up with the following elements as children. This patch moves the children back out to become siblings again.
2011-01-19 20:24:16 -05:00
Davide P. Cervone
e106941b76
Repack and recombine, plus bump NativeMML version number
2011-01-18 18:04:57 -05:00
Davide P. Cervone
2d762625b9
Don't use MathJax_MathContainer when not using Math Menus in MSIE
2011-01-18 17:59:42 -05:00
Sean Hogan
7a5f979f54
A fix for 'issue49' on Opera
2011-01-12 23:37:24 +11:00
Sean Hogan
f3445fb09f
Merge branch 'issue47' of https://github.com/dpvc/MathJax
2011-01-11 11:38:09 +11:00
Sean Hogan
6f5ba8660d
Merge branch 'issue46' of https://github.com/dpvc/MathJax
2011-01-11 11:32:26 +11:00
Davide P. Cervone
7cdfe6b5c4
Add support for otf fonts in iOS4.2
2011-01-09 17:02:51 -05:00
Davide P. Cervone
043442649c
Prevent Opera from using STIX fonts (resolves issue #46 ), unless explicitly requested via the font menu (not normally accessible to users)
2011-01-09 11:23:59 -05:00
Davide P. Cervone
63d6c58791
Use hasOwnProperty to make sure we only test real jax (resolves issue #47 )
2011-01-07 15:48:56 -05:00
Sean Hogan
41c754f532
Merge branch 'combine' of https://github.com/dpvc/MathJax
2011-01-05 23:33:27 +11:00
Sean Hogan
482ea4724a
Merge branch 'recursive-macros' of https://github.com/dpvc/MathJax
2011-01-05 23:18:28 +11:00
Davide P. Cervone
1263f164da
Add macro count to newcommand extension and latex environment processing. Bump version number for input jax
2011-01-04 11:41:36 -05:00
Davide P. Cervone
a9b754c811
Test for recursive macro definitions by keeping a substitution count and also checking the size of the string after substitution
2011-01-04 11:15:54 -05:00
Sean Hogan
0ac041f488
Merge branch 'jax-extensions' of https://github.com/dpvc/MathJax
2011-01-04 12:34:50 +11:00
Sean Hogan
74443b3205
Merge branch 'sqrt' of https://github.com/dpvc/MathJax
2011-01-04 12:08:55 +11:00
Sean Hogan
3f834d0cf3
Merge branch 'issue29' of https://github.com/dpvc/MathJax
2011-01-03 23:00:31 +11:00
Davide P. Cervone
a5190134e1
Add a blank line for consistent formatting
2011-01-02 09:23:12 -05:00
Davide P. Cervone
9b1c63acd1
Changed no-wrap to nowrap
2011-01-02 09:07:22 -05:00
Davide P. Cervone
e0da83e172
Allow config parameter and script to both be used together
2011-01-01 17:19:56 -05:00
Davide P. Cervone
f5c0ac5bcd
Changes to allow output jax to be included in a combined configuration file (more careful synchronization is needed in order to make sure the jax is loaded before typesetting begins)
2011-01-01 16:44:48 -05:00
Davide P. Cervone
244069816a
Since loadComplete calls Config and Startup, which require the page body to be nodified, wait for the onload handler to call loadComplete
2011-01-01 16:42:20 -05:00
Davide P. Cervone
9be0bfa9a7
Changes to make it possible to combine these into one large configuraiton file (In that case, MMLtoHTML should register the proper output jax, since both will be loaded)
2011-01-01 16:40:16 -05:00
Davide P. Cervone
eead123143
Add CSS to enforce NOBR default white-space (fixes issue #29 )
2010-12-31 20:44:39 -05:00
Davide P. Cervone
ad3fd4b960
Improve placement of surd for square roots and nth roots
2010-12-31 20:17:24 -05:00
Davide P. Cervone
a967955ddb
Allow jax configuration block to specify extensions to be loaded when the jax is loaded (rather than needing to have them loaded at MathJax configuration time)
2010-12-31 19:50:45 -05:00
Davide P. Cervone
b24524afcf
Merge dpvc/parallel branch
2010-12-30 14:37:37 -05:00
Davide P. Cervone
72c7d9fef4
Add spaces so that the next merge will identify the differences better
2010-12-30 14:33:18 -05:00
Sean Hogan
c77c53f1a9
Merge branch 'reflow' of https://github.com/dpvc/MathJax
2010-12-30 13:14:40 +11:00
Davide P. Cervone
a2fda2a8e2
Add a minimim scaling (since some people have reported the math getting too small), plus some cosmetic adjustments
2010-12-29 15:35:15 -05:00
Davide P. Cervone
b15ca6e7c5
Move laodComplete calls to make sure they occur after the MML jax is loaded
2010-12-29 11:04:50 -05:00
Davide P. Cervone
1ee6dffddc
Fix some comments
2010-12-29 11:02:28 -05:00
Sean Hogan
9d76ae713c
Add useProcessingFrame internal config and enable for Firefox, Safari, Chrome.
2010-12-24 13:45:52 +11:00
Davide P. Cervone
d504409219
Fix problem with nesting of math delimiters in InternalMath()
2010-12-09 13:20:44 -05:00
Sean Hogan
960e9a0eda
Change the .MathJax_Processing frame to also contain the span used in getScales().
...
Also change the call arguments to getScales() from "div,span" to "span,span".
Together these provide a significant performance boost on Webkit browsers.
2010-12-09 13:40:17 +11:00
Sean Hogan
7df8b036f4
Revert "Place HDMspan for getScales() in its own position:fixed frame."
...
This reverts commit ea16da4641
.
2010-12-09 12:17:24 +11:00
Sean Hogan
ea16da4641
Place HDMspan for getScales() in its own position:fixed frame.
2010-11-22 23:12:01 +11:00
Davide P. Cervone
167aedfa09
Put jax.js in a property of the jax so that it can be changed (e.g., to combine the jax with some of its components, or with other jax)
2010-11-17 22:09:48 -05:00
Davide P. Cervone
d8f34cb591
Use position:fixed overflow:hidden when typesetting math to keep WebKit and Firefox rendering times more constant on long pages
2010-11-16 20:52:59 -05:00
Davide P. Cervone
fe80ecb7c7
Merge branch 'master' into parallel
2010-11-15 21:08:50 -05:00
Robert Miner
8644056391
moved files out of mathjax/ to top level
2010-11-13 12:38:42 -06:00