# Full LaTeX in Jekyll markdown

**URL:** <https://talk.jekyllrb.com/t/full-latex-in-jekyll-markdown/6776>\
**Category:** Uncategorized\
**Created:** [December 3, 2021, 5:31pm UTC](https://talk.jekyllrb.com/t/full-latex-in-jekyll-markdown/6776 "2021-12-03T17:31:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BerkhanEminsoy](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/berkhaneminsoy/32/4077_2.png) [@BerkhanEminsoy](https://talk.jekyllrb.com/u/BerkhanEminsoy)\
**Post date:** [December 3, 2021, 5:31pm UTC](https://talk.jekyllrb.com/t/full-latex-in-jekyll-markdown/6776/1 "2021-12-03T17:31:36Z")

</div>

Q1) So let’s say I have this [LaTeX template](https://www.latextemplates.com/template/compact-academic-cv) from this [website](https://www.latextemplates.com/) and I want to serve it on my website. How would I go about doing that? I’ve already integrated LaTeX support using [KaTeX](https://github.com/KaTeX/KaTeX) following [this guide](https://varunagrawal.github.io/2018/03/27/latex-jekyll/) but it won’t render as expected, is there a way to parse & render full LaTeX with Jekyll? This is of course nuanced, since, I know that KaTeX or MathJax doesn’t support all LaTeX, which brings me to my next question.

Q2) Does MathJax support more core Tex variables than KaTeX?

I’m just looking for some rule of thumb guidance and explanation. Thank you!

P.S. I’ve tried using the [jekyll-spaceship plug-in](https://github.com/jeffreytse/jekyll-spaceship#2-mathjax-usage) but feels like there is too much packed in and I would like to keep using KaTeX rather than MathJax since my fonts come out smaller when I use MathJax for some reason. Although [multimarkdown](https://github.com/fletcher/MultiMarkdown-6) grabbed my attention you still need to do a lot to load [glossaries](https://fletcher.github.io/MultiMarkdown-6/syntax/glossary.html) I guess. In any case, I would love a plug-in which can parse .tex files or LaTeX/TeX in markdown and output html with Jekyll. I’m aware this is vague but just opening up conversation to find a best-fit solution.

---

<div class="post-metadata">

**Author:** ![BillRaymond](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billraymond/32/5963_2.png) [@BillRaymond](https://talk.jekyllrb.com/u/BillRaymond)\
**Post date:** [December 4, 2021, 12:43am UTC](https://talk.jekyllrb.com/t/full-latex-in-jekyll-markdown/6776/2 "2021-12-04T00:43:38Z")

</div>

Unfortunately, I do not use LaTeX, but I can point you to this article that covers the topic:

> [@How to use Latex on jekyll?](https://talk.jekyllrb.com/t/how-to-use-latex-on-jekyll/4119/3):
>
> Instructions from [LaTeX in Jekyll](http://www.iangoodfellow.com/blog/jekyll/markdown/tex/2016/11/07/latex-in-markdown.html) worked fine for me. TL,DR Add the following line to \_layouts/post.html: \<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML\_HTMLorMML" type="text/javascript"\>\</script\> Test out by adding the markdown I’ve provided below to one of your posts. # Testing out latex $$ \nabla\_\boldsymbol{x} J(\boldsymbol{x}) $$ You should see something like this: Code for the jekyll blog I’m using this in…

---

<div class="post-metadata">

**Author:** ![BerkhanEminsoy](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/berkhaneminsoy/32/4077_2.png) [@BerkhanEminsoy](https://talk.jekyllrb.com/u/BerkhanEminsoy)\
**Post date:** [December 4, 2021, 3:55pm UTC](https://talk.jekyllrb.com/t/full-latex-in-jekyll-markdown/6776/3 "2021-12-04T15:55:12Z")

</div>

Yep been there, and it was helpful. I’m probably asking too much of Jekyll, and should & could just use asciidoc. But if anybody has a suggestion otherwise or if learning LaTeX would be more beneficial in the future I’m all ears. Thanks for the reply @BillRaymond
