# Creating a math website based on Julia

**URL:** <https://discourse.julialang.org/t/creating-a-math-website-based-on-julia/32448>\
**Category:** General Usage\
**Tags:** question, documentation, documenter, latex\
**Created:** [December 18, 2019, 3:41pm UTC](https://discourse.julialang.org/t/creating-a-math-website-based-on-julia/32448 "2019-12-18T15:41:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [December 18, 2019, 3:41pm UTC](https://discourse.julialang.org/t/creating-a-math-website-based-on-julia/32448/1 "2019-12-18T15:41:14Z")

</div>

Recently, I have been making some nice [webpages](https://grassmann.crucialflow.com/dev/algebra) with the Julia `Documenter` and \LaTeX.

I also have a WordPress based website, which I am thinking of replacing with a Julia generated.

What are the different options out there for generating static websites with Julia? I really like the basic approach provided by `Documenter` and also saw that `Weave` is available too.

The main issue I have is with declaring additional \LaTeX to use in the website.

Is it possible to `\usepackage{amsmath}` somehow in the raw \LaTeX mode of `Documenter`?

How can I declare additional \LaTeX commands in a preamble to display in the website?

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [December 18, 2019, 3:45pm UTC](https://discourse.julialang.org/t/creating-a-math-website-based-on-julia/32448/2 "2019-12-18T15:45:52Z")

</div>

You might like [JuDoc](https://github.com/tlienart/JuDoc.jl)…

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [December 18, 2019, 7:03pm UTC](https://discourse.julialang.org/t/creating-a-math-website-based-on-julia/32448/3 "2019-12-18T19:03:16Z")

</div>

But is there no way to declare a custom \LaTeX command in `Documenter`?

---

<div class="post-metadata">

**Author:** ![mortenpi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mortenpi/32/158_2.png) [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Post date:** [December 18, 2019, 8:10pm UTC](https://discourse.julialang.org/t/creating-a-math-website-based-on-julia/32448/4 "2019-12-18T20:10:50Z")

</div>

In Documenter you can pass configuration options to [KaTeX](https://juliadocs.github.io/Documenter.jl/stable/lib/internals/writers/#Documenter.Writers.HTMLWriter.KaTeX) (or MathJax; [here is a real working example](https://github.com/JuliaAtoms/AtomicLevels.jl/blob/b989896f6e7f62e9213f14b5ce38dffc50bc14b1/docs/make.jl)). Documenter just converts the Julia dictionary into a JS object, so you have to see the KaTeX/MathJax docs to figure out exactly what you need to pass.
