Commit Graph

58 Commits

Author SHA1 Message Date
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
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
66ec3254ee Allow \\ anywhere (not just in arrays) to force a line break. 2011-11-20 19:21:07 -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
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
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
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
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
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
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
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
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
a9b53b8bb7 Merge 'htmlcss-fixes' into v2.0-candidate (after resolving conflicts) 2011-09-11 11:16:18 -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
fcefc54b20 Merge branch 'issue71' into new-features (adds line numbering, \label and \ref) 2011-09-11 10:10:48 -04:00
Davide P. Cervone
cb0e3eb774 Merged with cases (and resolved conflicts) 2011-09-11 09:39:01 -04:00
Davide P. Cervone
5b6b57af86 Make units of mu's be relative to the scriptlevel (resolves issue #147) 2011-09-10 22:15:18 -04:00
Davide P. Cervone
b9016bdf83 Add a flag to user-defined macros so they are not overwritten when an extension is loaded (resolves issue #128). 2011-09-10 17:32:45 -04:00
Davide P. Cervone
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
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
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
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
66bc9b8317 Use &ApplyFunction; 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
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
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
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
dfdaabe5f6 Remove wrong second parameter to InternalMath call for text in \cases 2011-04-27 08:02:04 -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
eb79363766 Fix \mathop to produce <mi> rather than <mo> and add &ApplyFunction; 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 &ApplyFunction; 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
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
a418d0748a Fix problem with accents not having the correct mathvariant (resolves issue 87) 2011-03-24 09:06:30 -04:00