Commit Graph

24 Commits

Author SHA1 Message Date
Emily Eisenberg
a9d79e58c4 Split out backtick because it's special
Auditors: spicyj
2013-07-09 22:41:38 -07:00
Emily Eisenberg
90dfae6924 Attempt to merge ords together
Summary:
Try not to waste spans by putting a bunch of numbers or letters
together into the same ord box. I don't think that this breaks any of the
current stuff.

Test Plan:
Write lots of expressions that have ords in them. Make sure that all
the reasonable ords are grouped together, and that the formatting still works.

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D52
2013-07-09 22:31:19 -07:00
Emily Eisenberg
42cc8b1a12 Add ops
Summary: Add named functions like \sin, \cos, etc.

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D51
2013-07-09 22:04:33 -07:00
Emily Eisenberg
4a3ed8dce0 Remove accidental second arguments
Auditors: spicyj
2013-07-09 21:15:01 -07:00
Emily Eisenberg
a95b93789a Make {} turn things into ords
Auditors: spicyj
2013-07-09 21:14:04 -07:00
Emily Eisenberg
29fde5d364 Correctly style fracs as inners
Summary:
Turn fracs into inners like they should be, instead of using the
previous dumb hack.

Test Plan: Make sure \dfrac still works

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D50
2013-07-09 21:05:14 -07:00
Emily Eisenberg
a0eff74be3 Add punctuation
Summary: Add punctuation, like ",", ";", and "\colon"

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D49
2013-07-09 21:01:04 -07:00
Emily Eisenberg
66a43f551d Add llap and rlap
Summary:
By the powers of Greyskull (and maybe css) we have vanquished the
great and powerful llap! All hail!

Test Plan: Add some \llap and \rlap. Make sure it's positioned correctly.

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D48
2013-07-09 16:02:44 -07:00
Emily Eisenberg
2478a385ae Add spacing functions
Summary: Add \qquad, \quad, \;, etc. Fixes T7

Test Plan:
Add some spacings. Make sure that they look reasonable widths.
Especially, if you add a space (`\space`), make sure that it doesn't disappear
because the spacing disappears.

Reviewers: spicyj

Reviewed By: spicyj

Maniphest Tasks: T7

Differential Revision: http://phabricator.benalpert.com/D46
2013-07-09 15:32:54 -07:00
Emily Eisenberg
8d85aa464e Add rels
Summary: Add a bunch of rels, and their css and stuff.

Test Plan: Add some rels. Rejoice.

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D45
2013-07-09 00:57:03 -07:00
Ben Alpert
d5c2a6fb38 Make things sort of work in IE8
Summary:
Uploaded the OTFs from eab3322d to fontsquirrel with the following config:

```
{"mode":"expert","formats":["ttf","woff","eotz"],"tt_instructor":"default","fix_vertical_metrics":"Y","fix_gasp":"xy","add_spaces":"Y","add_hyphens":"Y","fallback":"none","fallback_custom":"100","options_subset":"none","subset_custom":"","subset_custom_range":"","css_stylesheet":"stylesheet.css","filename_suffix":"","emsquare":"2048","spacing_adjustment":"0"}
```

Now we have this beauty in IE8:

{F213}

and it looks similar in Chrome. Now I guess we just need square roots so we can stop disseminating the wrong quadratic formula.

Reviewers: xymostech

Reviewed By: xymostech

Differential Revision: http://phabricator.benalpert.com/D43
2013-07-08 22:48:14 -07:00
Emily Eisenberg
2c067161df Add color support
Summary: Not true `\color`, but `\blue`, `\red`, etc.

Test Plan:
Add `\blue`, etc around stuff, see that it makes pretty colors
appear.

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D44
2013-07-08 15:48:56 -07:00
Emily Eisenberg
f97aad13b7 Make large fractions actually work
Summary:
Also, rename it to '\dfrac', because it's more like a display fraction

Auditors: spicyj
2013-07-07 22:43:16 -07:00
Ben Alpert
2643f72a9d Tweaks to lexer, incl. matching func all at once
Reviewers: xymostech

Reviewed By: xymostech

Differential Revision: http://phabricator.benalpert.com/D42
2013-07-07 21:27:08 -07:00
Emily Eisenberg
8f99433c80 Use our own lexer, not jison's
Summary:
Build our own lexer and inject it into jison's parser, because jison's
lexer notation is confusing and annoying, and it doesn't let us do some fun
stuff.

Test Plan: Run stuff, make sure it still works.

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D40
2013-07-07 21:13:43 -07:00
Emily Eisenberg
3caccbf933 Get rid of some forgotten elems
Auditors: alpert
2013-07-07 12:15:32 -07:00
Emily Eisenberg
00d775f420 Don't make undefined classNames
Auditors: spicyj
2013-07-06 00:52:25 -07:00
Ben Alpert
4bc599966f Create node server to replace 'make watch'
Reviewers: xymostech

Reviewed By: xymostech

Differential Revision: http://phabricator.benalpert.com/D38
2013-07-05 22:55:10 -07:00
Ben Alpert
afb29f5df3 Use browserify and "modules"
Reviewers: xymostech

Reviewed By: xymostech

Differential Revision: http://phabricator.benalpert.com/D37
2013-07-05 21:44:44 -07:00
Ben Alpert
97dc1bf1da Add \pm, \div
Reviewers: xymostech

Reviewed By: xymostech

Differential Revision: http://phabricator.benalpert.com/D36
2013-07-05 21:44:17 -07:00
Ben Alpert
29949b500a Make clearNode screaming-fast-er
Reviewers: xymostech

Reviewed By: xymostech

Differential Revision: http://phabricator.benalpert.com/D35
2013-07-05 21:24:39 -07:00
Ben Alpert
d436e09d07 Make |, \lvert, \rvert work
Test Plan: .

Reviewers: xymostech

Reviewed By: xymostech

Differential Revision: http://phabricator.benalpert.com/D33
2013-07-05 21:20:04 -07:00
Emily Eisenberg
96733c279c Use mathit less, so things are less italic
Auditors: alpert
2013-07-05 21:14:04 -07:00
Emily Eisenberg
d2fa50c836 Refactor most of the javascript
Summary: Move MJLite into its own file, make a module. Now includes underscore.

Test Plan: Make sure it still parses stuff.

Reviewers: spicyj

Reviewed By: spicyj

CC: divad12

Differential Revision: http://phabricator.benalpert.com/D32
2013-07-05 20:34:24 -07:00