Support \colorbox and \fcolorbox (#886)

* Support \colorbox and \\fcolorbox

These are functions from the `color` package. They accept text, not math. They also have padding similar to `\fbox`.

Because of the padding, the code in `buildHTML` is intermixed with the `\fbox` code. I have not (yet) created a new file in the functions folder. This way, the reviewer gets a cleaner diff.

* Fix lint error

* colorbox screenshots

* Pick up review comments
This commit is contained in:
Ron Kok
2017-09-15 21:55:13 -07:00
committed by Kevin Barabash
parent 9b63ddabb4
commit db1cccdeab
11 changed files with 194 additions and 22 deletions

View File

@@ -593,6 +593,10 @@
box-sizing: border-box;
border: 0.04em solid black; // \fboxrule = 0.4pt
}
.fcolorbox {
box-sizing: border-box;
border: 0.04em solid; // \fboxrule = 0.4pt
}
.cancel-pad {
padding: 0 0.2em 0 0.2em; // ref: cancel package \advance\dimen@ 2\p@ % "+2"
}