Eddie Kohler
b866cd5224
Fix interaction between styles and sizes. ( #719 )
...
* Fix interaction between styles and sizes by implementing styles as sizes.
Rather than having both `textstyle` CSS classes and `size5` CSS classes
affect the font size (and step on each other), implement sizes more the
way TeX does: a command like `\displaystyle` changes the current size.
This is actually a simplification, since now only `size` affects the size.
Simplifies CSS and computation. Many screenshotter tests change; they
change to be more like TeX. For instance, `\sqrt` fixes some
discrepancies in size treatment.
Also:
Remove the `Options.withX()` methods in favor of `.havingX()`, which
might return the same `options`.
Remove `Style.cls()` and `Style.reset()`.
Remove `Options.reset()`. You should never modify an `Options`; they
should change only by the `havingX()` methods.
* Implement TeX sizing for scriptsize/scriptscriptsize.
At every size level. Also make the sizes match TeX to the last decimal.
* Review comments.
2017-06-27 20:55:14 -04:00
..
2017-06-05 23:52:16 -04:00
2017-06-05 23:52:16 -04:00
2017-06-10 17:10:29 -04:00
2017-06-10 17:10:29 -04:00
2017-01-15 22:17:45 +01:00
2017-01-15 22:17:45 +01:00
2017-06-27 20:55:14 -04: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
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
2016-12-05 15:48:04 -05:00
2016-12-05 15:48:04 -05:00
2017-06-27 20:55:14 -04:00
2017-06-05 23:52:16 -04:00
2016-11-28 12:55:54 -05:00
2016-11-28 12:55:54 -05:00
2017-06-15 23:47:51 -04:00
2017-06-15 23:47:51 -04:00
2016-12-05 15:59:10 -05: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-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00
2015-08-30 02:12:55 +02: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
2016-11-04 07:45:08 +01:00
2016-11-04 07:45:08 +01:00
2017-06-15 23:47:51 -04:00
2017-06-15 23:47:51 -04:00
2016-12-05 15:58:26 -05: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-06-10 17:10:29 -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-04-05 21:43:04 +01:00
2017-04-05 21:43:04 +01:00
2017-06-15 23:47:51 -04:00
2017-06-15 23:47:51 -04:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2015-12-30 18:14:29 -08:00
2015-12-30 18:14:29 -08:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2015-08-30 23:09:42 +02:00
2016-11-04 07:45:08 +01: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-05-12 09:28:49 -04:00
2017-05-12 09:28:49 -04:00
2017-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00
2017-06-05 23:52:16 -04:00
2017-06-05 23:52:16 -04:00
2017-06-15 23:47:51 -04:00
2017-06-15 23:47:51 -04:00
2016-12-05 15:48:05 -05:00
2016-12-05 15:48:05 -05:00
2016-12-05 15:48:05 -05:00
2016-12-05 15:48:05 -05:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2015-11-12 17:08:16 +01:00
2015-08-30 23:09:42 +02:00
2016-12-31 20:51:20 -05:00
2016-12-31 20:51:20 -05:00
2017-06-27 20:55:14 -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-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2017-04-07 22:06:23 +01:00
2017-04-07 22:06:23 +01:00
2017-06-05 23:52:16 -04:00
2017-06-05 23:52:16 -04:00
2016-11-04 07:45:08 +01:00
2016-11-04 07:45:08 +01:00
2017-04-05 21:43:21 +01:00
2017-04-05 21:43:21 +01:00
2015-08-30 02:12:55 +02:00
2015-08-30 02:12:55 +02:00
2016-11-04 07:45:08 +01:00
2016-11-04 07:45:08 +01:00
2017-01-19 19:50:16 +01:00
2017-01-19 19:50:16 +01:00
2015-08-30 02:12:55 +02: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
2015-11-12 17:08:16 +01:00
2015-08-30 02:12:55 +02:00
2017-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00
2016-11-04 07:45:08 +01:00
2016-11-04 07:45:08 +01:00
2016-12-05 15:59:10 -05:00
2016-12-05 15:59:10 -05:00
2017-06-15 23:47:51 -04:00
2017-06-15 23:47:51 -04:00
2017-06-15 23:47:51 -04:00
2017-06-15 23:47:51 -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
2016-09-17 17:22:01 -07:00
2016-09-17 17:22:01 -07:00
2016-11-04 07:45:08 +01:00
2016-11-04 07:45:08 +01:00
2016-11-28 12:55:54 -05:00
2016-11-28 12:55:54 -05:00
2015-11-12 17:08:16 +01: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
2015-11-12 17:08:16 +01: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
2016-12-05 15:59:10 -05:00
2016-12-05 15:59:10 -05:00
2016-12-05 15:59:10 -05:00
2016-12-05 15:59:10 -05:00
2017-06-27 20:55:14 -04:00
2017-06-27 20:55:14 -04:00