pandoc-交叉引用不显示在MS Word图/数字式

问题描述 投票:1回答:1

我问这个问题,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:

或者如图所示由下述图像:

enter image description here

pandoc
1个回答
2
投票

关于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} $$
© www.soinside.com 2019 - 2024. All rights reserved.