TransWikia.com

How to write LaTeX on a static blog smoothly?

TeX - LaTeX Asked by Daniel Paleka on June 16, 2021

I want to write some of my notes in blog format.

I want to use my own domain with an github.io-provided static website. I don’t know whether I can setup WordPress there, so Trevisan’s latex2wp is maybe not the right choice. Also, WordPress LaTeX is quirky sometimes. I would want to use Hugo, Jekyll or Nikola for the blog layout.

The look of the blogpost I’m targeting is similar to this blog or this one. But anything goes if it’s easy to setup and use.

My ideal work process would be as follows: write the LaTeX in emacs, copy the file to some git repo, git push, and the blog appears on my website.

Has anyone set something similar up, or has an idea how to do this?

One Answer

For both Hugo or Jekyll you can follow this guide http://flennerhag.com/2017-01-14-latex/#mjx-eqn-label .

It tells you how to use mathJax to render LaTeX in markdown files.

  • If you are using hugo, the file where you have to add the snippet is the footer.html or site-footer.html under layouts/partials of your theme.
  • If you are using Jekyll then it is under _layout as specified by the guide.

For commutative diagrams, it is going to be tricky, as mathJax does not support commdiag or Tikz natively (as far as I am aware, and of today). The only solution I could find is to create an image out of the commutative diagram, and then post the image directly in the blog.

Answered by SeF on June 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP