gpt4 book ai didi

google-visualization - 将 Pandoc 的 Webtex URI 用于更大的 Latex 方程

转载 作者:行者123 更新时间:2023-12-01 11:48:25 28 4
gpt4 key购买 nike

我正在尝试通过在终端中使用以下命令来增加 Pandoc 使用 Google Charts API 输出的 LaTeX 方程的大小:

pandoc -s --webtex=http://chart.apis.google.com/chart?cht=tx&chs=500&chf=bg,s,FFFFFF00&chl= --self-contained test.Rmd -o test.html

但是,LaTeX 代码的输出没有变化(大小没有增加),实际上当我查看呈现的 html 文件段时(其中 $\frac{1}{x }$ 是)我看到的图像源标签是:

<img style="vertical-align:middle" src="http://chart.apis.google.com/chart?cht=tx%5Cfrac%7B1%7D%7Bx%7D" alt="\frac{1}{x}" title="\frac{1}{x}" />

我在哪里使用了 --webtex[=URL] 不正确?

最佳答案

我发现在命令行上我所要做的就是转义 &(& 符号)符号。所以为了让它工作,我所要做的就是:

pandoc -s --webtex=http://chart.apis.google.com/chart?cht=tx\&chs=500\&chf=bg,s,FFFFFF00\&chl= --self-contained test.Rmd -o test.html

关于google-visualization - 将 Pandoc 的 Webtex URI 用于更大的 Latex 方程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13820852/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com