在lstinline中翻译某些代码时,我发现
\passthrough{\lstine!xxx!}
我想插入$,我知道在乳胶中应该是
lstinline !$\$$!
然而,我在降价中使用,我输入像
`$` => lstinline !$!
`$\$$` => lstinline !$\\$$!
任何人都知道如何在降价中插入$?谢谢。
答案 0 :(得分:0)
我解决了这个问题,https://github.com/jgm/pandoc/issues/4713 通过设置
latex
\lstset{mathescape=false}
现在看来pandoc在打开mathescape=true
时会出现错误。