Last update: 2024-08-15
-f ${fromFormat} --resource-path="${currentDir}" --resource-path="${attachmentFolderPath}" --lua-filter="${luaDir}/math_block.lua" --standalone --template template.html --bibliography refs.bib --citeproc --csl apa.csl -o "${outputPath}" -t html
--mathjax="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg-full.js"
--katex
The default is to render TeX math as far as possible using Unicode
characters. Formulas are put inside a span
with
class="math"
, so that they may be styled differently from
the surrounding text if needed. However, this gives acceptable results
only for basic math, usually you will want to use --mathjax
or another of the following options.
--mathjax
[=
URL]
Use MathJax to display embedded
TeX math in HTML output. TeX math will be put between \(…\)
(for inline math) or \[…\]
(for display math) and wrapped
in <span>
tags with class math
. Then the
MathJax JavaScript will render it. The URL should point to the
MathJax.js
load script. If a URL is not provided,
a link to the Cloudflare CDN will be inserted.
--katex
[=
URL]
Use KaTeX to display
embedded TeX math in HTML output. The URL is the base URL for
the KaTeX library. That directory should contain a
katex.min.js
and a katex.min.css
file. If a
URL is not provided, a link to the KaTeX CDN will be
inserted.