检查乳胶代码是否由Pandoc或* tex处理 [英] Check if latex code is processed by Pandoc or *tex

查看:50
本文介绍了检查乳胶代码是否由Pandoc或* tex处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将乳胶文件转换为word时,我想跳过Pandoc无法很好处理的某些部分,或者重新定义pandoc无法理解的命令.现在,我使用以下非常模糊的机制:

When converting a latex file to word, I'd like to skip some sections which Pandoc does not handle well, or redefine commands which pandoc does not understand. Now I use the following highly unelegant mechanism:

\iffalse
    % code executed by pandoc only
    \def\SI#1#2{#1\,\mathrm{#2}}
\fi

使pandoc执行(或跳过)某些代码段的正确方法是什么?

What is the correct way make pandoc execute (or skip) some sections of code?

推荐答案

我猜它现在不可用.有另一篇文章尚未公开.而且我还发现了针对此行为的公开问题.

I guess it is not available now. There is another post open and not answered yet. And I found also an open issue for this behavior.

这篇关于检查乳胶代码是否由Pandoc或* tex处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆