使用 LaTeX构建博客

CatGD

January 23th, 2024

pdf here

Abstract

本文为使用 Pandoc 将 LaTeX输出为 .html 并部署到博客的记录。

Before the beginning

One should install Pandoc first,
And LaTeX environment.

Pandoc

Pandoc is an "Universal markup converter", which a Haskell library for converting from one markup format to another, and a command-line tool that uses this library.

For more information: pandoc in Github

LaTeX to .html

Pandoc example


    pandoc math.text -s -o mathDefault.html
    pandoc math.text -s --mathml  -o mathMathML.html
    pandoc math.text -s --webtex  -o mathWebTeX.html
    pandoc math.text -s --mathjax -o mathMathJax.html
    pandoc math.text -s --katex   -o mathKaTeX.html