TeXit 如何将 LaTeX 转换为图像?
How does TeXit convert LaTeX to images?
我正在开发Discord Bot. I have used another Discord Bot called TeXit. How does this bot manage to convert LaTeX code to images? I have tried using CodeCogs,但是生成的图像质量很差。如何生成像 TeXit 这样的高质量图像?
答案是它们都是 运行 TexLive(超过 1 GB 的代码)和其他图形实用程序,如 GhostScript,在高质量的高速服务器上实时运行。 Code Cogs 应该足够好,只需使用适当的设置。
<img src="https://latex.codecogs.com/png.image?\dpi{288}&space;$rendering&space;latex:&space;,&space;&space;&space;&space;$\overline{Mr.&space;Brawler}=&space;&space;x^{2}&space;+&space;5" title="$rendering latex: , $\overline{Mr. Brawler}= x^{2} + 5" />
作为即时 SaaS(软件即服务)粘贴并运行于此
将鼠标悬停在上面即时刷新的内联 PNG 图像上进行测试。这是 vector SVG,但在此页面上内嵌它是实时转换为较低屏幕分辨率的!
放大您的浏览器,看看它是如何改变和提高实时性的!
用于比较这是带有可选纯文本的 PDF 离线输出(这自然会失去数学关系。)
我正在开发Discord Bot. I have used another Discord Bot called TeXit. How does this bot manage to convert LaTeX code to images? I have tried using CodeCogs,但是生成的图像质量很差。如何生成像 TeXit 这样的高质量图像?
答案是它们都是 运行 TexLive(超过 1 GB 的代码)和其他图形实用程序,如 GhostScript,在高质量的高速服务器上实时运行。 Code Cogs 应该足够好,只需使用适当的设置。
<img src="https://latex.codecogs.com/png.image?\dpi{288}&space;$rendering&space;latex:&space;,&space;&space;&space;&space;$\overline{Mr.&space;Brawler}=&space;&space;x^{2}&space;+&space;5" title="$rendering latex: , $\overline{Mr. Brawler}= x^{2} + 5" />
作为即时 SaaS(软件即服务)粘贴并运行于此
将鼠标悬停在上面即时刷新的内联 PNG 图像上进行测试。这是 vector SVG,但在此页面上内嵌它是实时转换为较低屏幕分辨率的!
放大您的浏览器,看看它是如何改变和提高实时性的!
用于比较这是带有可选纯文本的 PDF 离线输出(这自然会失去数学关系。)