Commit Graph

551 Commits

Author SHA1 Message Date
Davide P. Cervone
b816490799 Bump the version numbers for the previous commit 2012-03-15 13:48:48 -04:00
Davide P. Cervone
f2d5c4b037 Make NativeMML output properly handle iOS double-tap-and-hold, and issue warning message when switching to NativeMML output. Resolves issue #209. 2012-03-15 12:09: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
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
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
152d31182e Repack all javascript files (to update the copyright notice) and recombine (make sure all combined files are current) 2012-02-24 17:22:48 -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
5422dda7a1 Merge branch 'AsciiMath' into v2.0-candidate 2012-01-18 11:45:34 -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
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
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
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
a83c7c54b3 Move styles for MathJax_Preview to MathJax.js rather than HTML-CSS since it is used by all output jax 2012-01-08 20:20:22 -05:00
Davide P. Cervone
3131d09d06 Allow \newcommand to take a default parameter, and adjust GetBrackets to distinguish between no brackets and empty brackets 2012-01-07 18:55:52 -05:00
Davide P. Cervone
6e4ac11c91 Make font timeout longer, and make even longer for mobile devices. Only switch to image fonts if the first web font fails to load (if one loaded, you should get the others). 2012-01-06 20:35:26 -05:00
Davide P. Cervone
6aec9ae573 Add unknownChar() function and have it post a signal for undefined characters 2012-01-06 19:11:47 -05:00
Davide P. Cervone
77c8a54da6 Add more signals for error conditions (so error reporting software can track it easier) 2012-01-06 17:09:37 -05:00
Davide P. Cervone
e29ddd477d Make pre- and postfilters backward compatible, and allow them to be replaced by Augment() 2012-01-06 13:32:39 -05:00
Davide P. Cervone
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
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
d044f4c8f4 Merge v2.0-candidate into SVG 2011-12-07 14:07:47 -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
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
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
3bb798f6f4 Merge v2.0-candidate into SVG 2011-11-15 16:41:39 -05:00
Davide P. Cervone
705470fcb6 Repack mmultiscript.js (HTML-CSS) since it still had conflict marker in it (reported by Fred). 2011-11-15 16:36:15 -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
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
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
69301a2743 Handle arrowheads better when thickness is specified 2011-10-25 23:25:22 -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
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
1bb6960f4a Fix problem introduced by adding TeXAtom() to phantom and smash, where the attributes for these were added to the TeXAtom rather than the mphantom or mpadded elements 2011-10-25 15:05:19 -04:00
Davide P. Cervone
9f80a1ebab If the table has a complete frame then use the style of the left vertical line for the frame (so dashed frames are possible) 2011-10-24 22:01:57 -04:00
Davide P. Cervone
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
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
0c523ac8df Fix problem with width of backrgound color and borders for mtable 2011-10-17 05:27:11 -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
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
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
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
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
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
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
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