Ron Kok
092aa0c767
Add \smash, laps, spaces, and phantoms ( #833 )
...
* Add \smash, laps, spaces, and phantoms
1. Support `\smash`, including the optional argument from AMS.
2. Change `\llap` and `\rlap` so that they render in text style. Repeat: This *changes* KaTeX behavior.
3. Add `\mathllap` and `\mathrlap`. These will act as they do in `mathtools` and as in previous KaTeX versions of `\llap` and `\rlap`.
4. Add `\mathclap` and `\clap`.
5. Add `\hphantom` and \vphantom`.
6. Add `\thinspace`, `\medspace`, `\thickspace`
7. Add `\hspace`.
This work will resolve issue #270 and parts of #50 and #164 .
A. Perlis has written a [concise description](https://www.math.lsu.edu/~aperlis/publications/mathclap/perlis_mathclap_24Jun2003.pdf ) of items 1 thru 5. Except for `\smash`'s optional argument. It's described in the [AMS User's Guide](http://texdoc.net/texmf-dist/doc/latex/amsmath/amsldoc.pdf ).
Item 6 also comes from the AMS User's Guide.
* Fix test spec
* Exploit makeVList for smash
* update smash and phantom screenshots for chrome
* Pick up review comments
* Change test from \llap to \mathlap
\llap is fundamentally a text-mode function. We should not expect it to work correctly when given math-mode arguments. So test \mathllap instead.
* Correct \llap macro
A correction. The previous macro returned an error if given an argument with math-mode content, such as x^2.
The corrected macro will not return an error. It will instead return well rendered math, but letters are in `\mathrm` font.
* update \llap, \rlap, \clap macros to use \textrm
* update Lap screenshots
2017-09-02 14:04:30 -04:00
..
2017-07-30 11:13:55 -04:00
2017-06-05 23:52:16 -04:00
2017-08-23 03:18:33 -04:00
2017-08-23 03:18:33 -04:00
2017-07-30 11:13:55 -04:00
2017-06-10 17:10:29 -04:00
2017-08-06 15:11:23 -04:00
2017-08-06 15:11:23 -04:00
2017-07-30 11:13:55 -04:00
2015-08-30 02:12:55 +02:00
2017-07-30 11:13:55 -04:00
2015-08-30 02:12:55 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2017-07-30 11:13:55 -04:00
2016-12-05 15:48:04 -05:00
2017-07-30 11:13:55 -04:00
2017-06-05 23:52:16 -04:00
2017-07-30 11:13:55 -04:00
2016-11-28 12:55:54 -05:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2016-12-05 15:59:10 -05:00
2017-06-12 23:11:27 -04:00
2017-06-12 23:11:27 -04:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2016-11-28 12:55:54 -05:00
2016-11-28 12:55:54 -05:00
2016-12-05 15:59:10 -05:00
2016-12-05 15:59:10 -05:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2015-08-30 02:12:55 +02:00
2017-07-30 11:13:55 -04:00
2015-08-30 02:12:55 +02:00
2017-08-22 21:39:15 -04:00
2017-08-22 21:39:15 -04:00
2016-11-04 07:45:08 +01:00
2016-11-04 07:45:08 +01:00
2017-08-19 21:51:16 -04:00
2017-08-19 21:51:16 -04:00
2017-07-30 11:13:55 -04:00
2016-12-05 15:58:26 -05:00
2015-11-12 17:08:16 +01:00
2015-08-30 02:12:55 +02:00
2017-07-30 11:13:55 -04:00
2017-06-10 17:10:29 -04:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2017-08-14 00:31:43 -04:00
2017-08-14 00:31:43 -04:00
2017-04-05 21:43:04 +01:00
2017-04-05 21:43:04 +01:00
2017-08-19 21:51:16 -04:00
2017-08-19 21:51:16 -04:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2017-07-30 11:13:55 -04:00
2015-12-30 18:14:29 -08:00
2015-08-30 02:12:55 +02:00
2017-09-02 14:04:30 -04:00
2017-09-02 14:04:30 -04:00
2017-07-30 11:13:55 -04:00
2017-07-08 20:22:29 -04:00
2017-07-30 11:13:55 -04:00
2016-11-04 07:45:08 +01:00
2015-11-12 17:08:16 +01:00
2015-08-30 02:12:55 +02:00
2017-07-30 11:13:55 -04:00
2017-05-12 09:28:49 -04:00
2017-07-30 11:13:55 -04:00
2017-07-08 20:22:29 -04:00
2017-07-30 11:13:55 -04:00
2017-06-05 23:52:16 -04:00
2017-08-22 21:39:15 -04:00
2017-08-22 21:39:15 -04:00
2017-07-30 11:13:55 -04:00
2016-12-05 15:48:05 -05:00
2017-07-30 11:13:55 -04:00
2016-12-05 15:48:05 -05:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-06-30 08:49:00 -07:00
2017-06-30 08:49:00 -07:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-07-30 11:13:55 -04:00
2015-08-30 23:09:42 +02:00
2017-07-30 11:13:55 -04:00
2016-12-31 20:51:20 -05:00
2017-07-30 11:13:55 -04:00
2016-12-31 20:51:20 -05:00
2016-11-28 12:55:54 -05:00
2016-11-28 12:55:54 -05:00
2017-08-06 15:11:23 -04:00
2017-08-06 15:11:23 -04:00
2017-08-23 13:24:17 -04:00
2017-08-23 13:24:17 -04:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2017-06-05 23:52:16 -04:00
2017-07-30 11:13:55 -04:00
2016-11-04 07:45:08 +01:00
2017-08-22 21:39:15 -04:00
2017-08-22 21:39:15 -04:00
2017-09-02 14:04:30 -04:00
2017-09-02 14:04:30 -04:00
2017-07-30 11:13:55 -04:00
2016-11-04 07:45:08 +01:00
2017-07-30 11:13:55 -04:00
2017-01-19 19:50:16 +01:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2015-08-30 02:12:55 +02:00
2015-09-22 10:21:33 -07:00
2015-09-22 10:21:33 -07:00
2017-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00
2017-09-02 14:04:30 -04:00
2017-09-02 14:04:30 -04:00
2017-07-30 11:13:55 -04:00
2015-08-30 02:12:55 +02:00
2017-08-22 21:39:15 -04:00
2017-08-22 21:39:15 -04:00
2017-08-22 21:39:15 -04:00
2017-08-22 21:39:15 -04:00
2017-07-30 11:13:55 -04:00
2016-12-05 15:59:10 -05:00
2017-08-22 21:39:15 -04:00
2017-08-22 21:39:15 -04:00
2017-08-19 21:51:16 -04:00
2017-08-19 21:51:16 -04:00
2017-08-19 21:51:16 -04:00
2017-08-19 21:51:16 -04:00
2017-08-19 21:51:16 -04:00
2017-08-19 21:51:16 -04:00
2016-12-08 16:20:32 -05:00
2016-12-08 16:20:32 -05:00
2017-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00
2017-07-30 11:13:55 -04:00
2016-09-17 17:22:01 -07:00
2017-07-30 11:13:55 -04:00
2016-11-04 07:45:08 +01:00
2017-08-06 15:11:23 -04:00
2017-08-06 15:11:23 -04:00
2017-07-30 11:13:55 -04:00
2015-08-30 02:12:55 +02:00
2017-05-16 18:03:47 -04:00
2017-05-16 18:03:47 -04:00
2017-07-30 11:13:55 -04:00
2015-08-30 02:12:55 +02:00
2017-06-10 16:03:22 -04:00
2017-06-10 16:03:22 -04:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00
2017-08-11 18:30:06 -04:00
2017-08-11 18:30:06 -04:00
2017-08-22 21:39:15 -04:00
2017-08-22 21:39:15 -04:00
2017-07-30 11:13:55 -04:00
2017-07-30 11:13:55 -04:00