2022-04-04

WARNING: This article may be obsolete
This post was published in 2022-04-04. Obviously, expired content is less useful to users if it has already pasted its expiration date.
This article is categorized as "Garbage" . It should NEVER be appeared in your search engine's results.


git仓库网页GUI工具:

https://gerrit.googlesource.com/gitiles/


突然又对katex产生了兴趣,希望搞一个server-side rendering katex api,这样可以省去约500kb的流量(1.5M的mathjax: tex.svg使用brotli传输大约是500kb),还可以省去浏览器渲染公式的时间。


TexLive把.tex转换为.svg

latex hello.tex;dvisvgm --no-fonts hello.dvi

不同latex编译器的差异

\documentclass{standalone}
\begin{document}
	$\displaystyle
	\mathrm{P}(\overline{\mathrm{O}} \mid \lambda)=\sum_{\mathrm{i}=1}^{\mathrm{N}} \mathrm{P}\left(\overline{\mathrm{O}}, \mathrm{q}_{\mathrm{t}}=\mathrm{i} \mid \lambda\right)=\sum_{\mathrm{i}=1}^{\mathrm{N}}\left[\alpha_{\mathrm{t}}(\mathrm{i}) \beta_{\mathrm{t}}(\mathrm{i})\right]$
\end{document}
pdftex编译为pdf
mathjax 3.2.0, 输出为svg
katex
mathjax 2.7.1 using STIX fonts


 Last Modified in 2022-05-29 

Leave a Comment Anonymous comment is allowed / 允许匿名评论