Mod Katex

screenshot of Mod Katex

A Hugo module to add KaTeX formulas to your Hinode site

Overview:

Hinode Module is a Hugo theme, designed for clean and visually appealing blogging. It is built on Hugo, an open-source static site generator. This repository provides a Hugo module that can be used to add KaTeX, a feature for rendering math equations, to a Hinode site. Detailed installation instructions can be found on the Hinode documentation site.

Features:

  • Auto-render.js: Automatically renders all math equations within text.
  • Copy-tex.js: Allows copying of the LaTeX source code for KaTeX-rendered elements.
  • Mathtex-script-type.js: Automatically displays LaTeX math within script tags with type=math/tex.
  • Mhchem.js: Simplifies the writing of beautiful chemical equations.
  • Render-a11y-string.js: Adds accessible alternative text to KaTeX equations.

Summary:

The Hinode Module is a Hugo theme that provides KaTeX support for rendering math equations in a Hinode site. With features like auto-rendering, copying LaTeX source code, and accessibility enhancements, the module enhances the overall user experience for readers and writers of mathematical content. The installation process involves adding the module to the site's configuration file, configuring the module mount points, and including the necessary JavaScript files in the site's layout files.