In one of my previous blog posts I show you how to set up the Minimal Mistakes theme for your Github page. In this blog post I show how to add Latex support to your Minimal Mistakes jekyll blog and is largely based on this.
Step 1. Set markdown engine to kramdown
_config.yml change the engine to kramdown as follows
# Build settings markdown: kramdown remote_theme: mmistakes/minimal-mistakes ...
Step 2. Copy over
This is where stuff gets a little bit tricky. This blog was set up by
repo and then using the original repo as a remote theme. To get Latex
support we first have to go to the original Minimal Mistakes repo
here and copy over
minimal-mistakes/_includes/scripts.html locally to our
Step 3. Modify
We are now going to modify
scripts.html and append the following content:
Note that this overrides any other include file in the remote theme. So the contents of the original file in the remote theme will be overwritten. This means that this fix/update is liable to break with new updates. Be mindful of this.
Step 4. That’s it!
If you did everything properly then this should render nicely: