Problem

The styles in HTML are an attempt to colour code based on the type of enviroment. Since the user can define any number of these we have to... guess... to try and align colours. We have four HTML styles:

Our assignment is NOT currently based, at all, on the PDF styling specified by the author, or any other information like e.g. numberwith. LaTeX styling, while originally intended to broadly correspond to semantic type is not used this way by authors due to the fonts which are imposed in standard LaTeX. So, the three styles in LaTeX:

are used to impose the authors visual preferences mostly with respect to font, font attributes and layout.

Actual user story

I thought I could give the same appearance to my Notation, Remarks and Sketch Proof environments by styling them all with style_with remark. But, in HTML, Remarks and Sketch Proof are both pink with roman text (which I expected since it matches the Bookdown Remark), whereas my Notation environment is green with italic text (colours judged by eye in sepia mode, but the point is they look different).

So... I can either:

The easiest is clearly the first. While I am at it I can give the user control over the use of italics in the HTML.

Thoughts

The only requirements we have in the code are:

Tests

This is an inbuilt theorem.
This is an inbuilt remark.

```{newtheorem, env="Notation"} This is notation.

```{newtheorem, env="Remarks"}
This is remarks.

{newtheorem, env="Sketch Proof"} This is a sketch proof.



BathMASH/clavertondown documentation built on Oct. 13, 2023, 6:25 p.m.