作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试通过在终端中使用以下命令来增加 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/
我正在尝试通过在终端中使用以下命令来增加 Pandoc 使用 Google Charts API 输出的 LaTeX 方程的大小: pandoc -s --webtex=http://chart.ap
我是一名优秀的程序员,十分优秀!