使用Pandoc的Webtex URI处理更大的Latex方程

rsa*_*acc 3 google-visualization pandoc

我正在尝试通过在终端中使用以下命令来增加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
Run Code Online (Sandbox Code Playgroud)

但是,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}" />
Run Code Online (Sandbox Code Playgroud)

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

rsa*_*acc 5

我发现在命令行上,我所要做的就是转义&(&)符号。因此,要做到这一点,我要做的就是:

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
Run Code Online (Sandbox Code Playgroud)