Adjustments to the katex integration.

This commit is contained in:
Fredrik Jonsson 2023-03-17 14:12:34 +01:00
commit 5033f3a277

View file

@ -247,6 +247,7 @@ params:
mainSections: # The sections you want to have listed on the front page.
- "section1" # Default to the section with most content if not set.
- "section2" # Set to empty if no section should be listed.
math: true # Turn on math typesetting with Katex, default false.
menuInHeader: true # Move the main menu to the header, default false.
microUsername: "" # Your micro.blog username.
mobileMenu: true # Turn on a mobile menu on small screens, default false.
@ -793,6 +794,12 @@ Node.js software you need. To install them run:
nmp run lint (project + theme)
## Math typesetting with Katex
Download the latest release from <https://github.com/KaTeX/KaTeX/releases>. Unpack and place the resulting "katex" directory in the root `assets/vendor` directory.
The resulting path should be `assets/vendor/katex`. Then set the `math` param to true and write some math to be typeset.
## Getting help
If you run into an issue that isn't answered by this documentation or the [`exampleSite`](https://github.com/frjo/hugo-theme-zen/tree/main/exampleSite), then visit the [Hugo forum](https://discourse.gohugo.io/). The folks there are helpful and friendly. **Before** asking your question, be sure to read the [requesting help guidelines](https://discourse.gohugo.io/t/requesting-help/9132). Feel free to tag me in your question, my forum username is [@frjo](https://discourse.gohugo.io/u/frjo/summary).