我问这个问题,here,但我没有得到任何回应,所以我决定在这里问吧。
我最近开始使用pandoc创建乳胶和DOCX文档。我有一个关于在MS Word交叉引用的一个问题:这里是myDoc.md
文件
# Introduction
For $a \neq 0$ consider the follwoing equation:
$$ ax^2 + bx + c = 0 $$ {#eq:quadformula}
The solutions of the equation \ref{quadformula} are given by:
$$ \dfrac{-b \pm \sqrt{b^2-4ac}}{2a} $$
使用以下命令将其转换为DOCX:
pandoc .\myDoc.md -t docx --filter pandoc-crossref -o myDoc.docx
在MS文档,我可以看到方程编号,但它并没有把它写在句子(缺少方程编号):
The solutions of the equation (missing eqn number) are given by:
或者如图所示由下述图像:
关于pandoc-crossref
正在创建的标签正确,但你叫错了。尝试这个:
# Introduction
For $a \neq 0$ consider the following equation:
$$ ax^2 + bx + c = 0 $$ {#eq:quadformula}
The solutions of the equation [@eq:quadformula] are given by:
$$ \dfrac{-b \pm \sqrt{b^2-4ac}}{2a} $$