About This Site
The design of amcampbell.xyz: typography, layout, math, and tooling.
Typefaces
All of the fonts are free (the SIL Open Font License, or for the initials the LaTeX Project Public License) and are served from this site.
Text. Source Serif 4 by Frank Grießhammer (Adobe), in Adobe’s full release. I use the typeface’s optical sizes, so that headings and captions get the cut drawn for their size.
Titles and headings. Missaali by Tommi Syrjänen, a textura modeled after the type Bartholomew Ghotan used to print the Missale Aboense in 1488, set with its medieval round r and long s. Missaali doesn’t have arabic numerals, so section numbers and some other accents are UnifrakturMaguntia. List bullets use Missaali’s tricolon, ⸫.
Initials. I use Frederic W. Goudy’s floriated initials, cast by Lanston Monotype as Goudy Initials No. 296 in the early 1900s, in Dieter Steffmann’s digitisation (from the initials package on CTAN). These are of course used for the drop caps at the start of each post, I also use this font for the monogram on the index page, and for the favoicon.
Captions, tables, notes. Source Sans 3 by Paul D. Hunt (Adobe).
Code. IBM Plex Mono.
Layout
Text is set at 19 pixels on a measure of about eighty characters, with a line height of 1.6. Justification uses Justif, which breaks lines with the Knuth–Plass algorithm from TeX, considering the whole paragraph at once, and hyphenates; without JavaScript the browser’s own justification is used.
Notes and citations are set in the right margin beside the text they correspond with, and figures and wide tables can be set in the left margin. Sections, equations, tables and figures are numbered, and cross-references are resolved when the site is built.
Math and Figures
Mathematics is written in LaTeX and typeset at build time, with MathJax and the STIX Two math font, into SVG; readers download no math code, and screen readers get MathML. Interactive figures are drawn with D3: once at build time as static pictures, then redrawn in the browser at their real size.
The Build
Posts are Markdown, converted by Pandoc with a handful of Lua filters (for the numbering, the margins, the contents, and the typographic details), assembled by a small Python script, and checked before each publication so that no link breaks and every address that has ever been published keeps working. The site is hosted on Cloudflare Pages.
Credits
The design owes most to Gwern Branwen’s gwern.net, which I’m sure you can see was a major inspiration.