Peter Krautzberger
This test file demonstrates various features of the AMS’s texml and texml-to-html tools.
The thanks macro is often (ab)used for information regarding funding.
A section without a name is bad practice and can even be a WCAG failure. Don’t do it.
Check how the math mode in the title comes out in the HTML title tag.
Theorems (and other enunciations) are a central part of mathematical writing. They can contain all sorts of complex content, including other enunciations.
For example, Figure 2 and
A list item.
A list item.
A link to a math fragment that comes after this one: Theorem 6.
Here’s a reference to the theorem, 1, but consider cleveref, Theorem 1, which produces larger hitboxes in HTML (to meet WCAG).
And here’s a reference to one of its list items, namely i.
If a theorem is not referenced, does it make a sound?
Inception. Some people actually do this.
Of course theorems need proofs.
This is a proof with has-qed-box on a child equation.
This is a proof with has-qed-box on a child paragraph.
Hello.
This is a proof with a sub-proof.
This is a nested proof without has-qed-box attribute.
For better references and accessibility always prefer the subfigure environment over manually labeled or otherwise hacked combinations of graphics.
A rounded blue square overlaying a rounded red square, shifted approx. one third downward right
The same image, scaled down by half
A reference to a figure in a figure group: 1
With some content.
With some content.
Another standard enunciation is the remark.
You can define your own theorem styles. While some aspects (e.g. punctuation) will be preserved during processing, you have a data attribute in HTML to build your own web-based version of the layout.
A custom theorem style.
A reference to a table 1.
Tables generally work; texml will generate custom CSS which you need to integrate.
| Alignment | Should | get through | |
| 23305 | 6 | 7 | 7 |
| Another table | which is side-by-side in PDF |
If you have a footnote2 and reference that footnote 2 multiple times, this demo won’t do it well (and maybe you should rethink using a footnote when it’s important enough to reference twice).
Here’s an inline equation with links
tag with math
A footnote within math mode
You can use eqref as well
You can include graphics inline:
; this one provides alt text.
When using text styles, be mindful that the web has other traditions than print (e.g., underline and blue make people think of links).
Italic text, roman text inside.
Small Caps.
Bold.
Monospace.
Oblique.
Sans-serif.
Underlined.
basesuperscript.
basesubscript.
Note how the above used the enumerate package. Lists are difficult to map to HTML because TeX allows on-the-fly changes to the marker, e.g.,
a normal item
a normal item
Note that texml/texml-to-html map all lists to HTML’s DL element; also because markers are important for accessibility in longform (e.g., when referenced).
Here’s a description list environment.
Description.
A reference to a table 4 without label.s
A table without label. With inline tikz graphics.
| Is a table without a name a table at all? | don’t use blue text |
Subequations can be tricky due to the ”global” label:
The entire group:
A tikz diagram inside math-mode that is turned into SVG (with the surround math mode preserved):
2
The textcolor macro: blue text. The colorbox macro: pink background. The fcolorbox macro: violet frame with lime background but no border in text mode, see AmerMathSoc/texml#276.
Be mindful of WCAG’s color contrast requirements - no red/yellow/cyan-on-white, please!
Calculate
Below is a quote:
Many times, the quote environment is abused as a call-out.
The center environment is too often abused for call-outs.
A macro from dbnsymb -
The framed environment.
Here is a tcolorbox example.
No real heading structure
Usually a bit of text around.
Subtables:
Table with subtables
First Table
| A |
Second Table
| B |
Nested proofs are surprisingly common. Also enunciations within proofs. This goes against amsart style guide - long proofs should be sections.
If an inner proof has a qed, then the outer one usually needs disabling.
Use cleveref if you can - you’ll generate bigger hitboxes for your cross-references.
You will also get ranges: sections 6.1.1
Another theorem.
A pithy graph, epigraph
A verse
is fine.
This is fine.