【发布时间】:2020-09-20 15:02:37
【问题描述】:
在将 Latex 文件转换为 word 时,我想跳过一些 Pandoc 不能很好处理的部分,或者重新定义 pandoc 不理解的命令。现在我使用以下非常不优雅的机制:
\iffalse
% code executed by pandoc only
\def\SI#1#2{#1\,\mathrm{#2}}
\fi
让 pandoc 执行(或跳过)某些代码段的正确方法是什么?
【问题讨论】:
在将 Latex 文件转换为 word 时,我想跳过一些 Pandoc 不能很好处理的部分,或者重新定义 pandoc 不理解的命令。现在我使用以下非常不优雅的机制:
\iffalse
% code executed by pandoc only
\def\SI#1#2{#1\,\mathrm{#2}}
\fi
让 pandoc 执行(或跳过)某些代码段的正确方法是什么?
【问题讨论】:
我猜它现在不可用。 another post 已打开,但尚未得到答复。我还为这种行为找到了open issue。
【讨论】: