bespoke-math demo

bespoke-math provides the power of KaTeX to bespoke.js presentations.

KaTeX requires a CSS file and some font-face files to be included.

This plugin injects the required CSS file on the document that is housing the bespoke.js presentation. The font-face files get included from a CDN called cdnjs.

That fact has a downside that is if the presentation is being loaded locally without Internet connection the font-face files won't be downloaded and the math formulas might not render well.

If you want your presentation to be available without using the CDN, it is possible to use a version of bespoke-math that includes the font-face files using base64 data uri encoding. Please, look into the files:

  • dist/bespoke-math-offline-fonts.js
  • dist/bespoke-math-offline-fonts.min.js

You can see live examples of both strategies: