代码之家  ›  专栏  ›  技术社区  ›  Paul

\ref{}导致???在Typora乳胶中

  •  0
  • Paul  · 技术社区  · 3 年前

    我使用Typora作为markdown编辑器来编写数学方程。我遇到了一个问题 \ref{eqn:dnj} 结果在 ??? 当交叉引用到 \label{eqn:dnj} .

    以下是文本摘录:

    $$
    \begin{split} \label{eqn:dnj}
    \delta_{n_j}&= i_a-i_{s_j} \\
    \therefore\quad i_{s_j}&=i_a-\delta_{n_j}
    \end{split}
    $$
    

    然后是交叉引用:

    If $\delta_{n_{j^{\prime}}} \lt i_{s_j}$ it follows from $\ref{eqn:dnj}$
    

    这将导致输出:

    ... it follows from ???

    在纯LaTeX编辑器中使用相同的方法可以正确渲染。

    0 回复  |  直到 3 年前
        1
  •  1
  •   Paul    3 年前

    进一步调查:

    问题似乎在于 \label{eqn:dnj} 出现在内部 \begin{split}...\end{split}

    以下实现解决了这个问题:

    $$
    \label{eqn:dnj} 
    \begin{split}
    \delta_{n_j}= i_a-i_{s_j} \\
    \therefore\quad i_{s_j}=i_a-\delta_{n_j}
    \end{split}
    $$