Commit Graph

2260 Commits

Author SHA1 Message Date
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
ab14c945b5 Add missing font files (they were left out because they were less than 1KB is size, which the packer used to ignore). These represent only one character each, and none is crititcal, which is why no one noticed the problem. 2011-05-02 08:33:34 -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
c3d122db71 Recombine config files (forgot to do it for the last commit) 2011-04-26 19:33:06 -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 &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
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