[英]Check if latex code is processed by Pandoc or *tex
将 latex 文件转换为 word 时,我想跳过一些 Pandoc 处理不好的部分,或者重新定义 pandoc 不理解的命令。 现在我使用以下非常不优雅的机制:
\iffalse
% code executed by pandoc only
\def\SI#1#2{#1\,\mathrm{#2}}
\fi
让 pandoc 执行(或跳过)某些代码段的正确方法是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.