在 Doxygen 降价中包括数学 symbols/equations?

Including math symbols/equations in Doxygen markdown?

在 Doxygen Markdown 中包含数学 symbols/equations 的最佳方法是什么?我已经通过在我的 Doxygen 配置中启用 MathJax 在我的 .md 降价文件中执行类似的操作来使其工作:

\[
A_{C \rightarrow P}=\begin{bmatrix}
f * S_x / d_{px} & 0.0        & C_x & 0.0 \\ \
0.0              & f / d_{py} & C_y & 0.0 \\ \
0.0              & 0.0        & f   & 0.0 \\ \
0.0              & 0.0        & 1.0 & 0.0 \\
\end{bmatrix}
\]

但如你所见,我已入脱地狱境。与启用 MathJax 的页面一起使用的原始 LaTeX 如下所示:

\[
A_{C \rightarrow P}=\begin{bmatrix}
f * S_x / d_{px} & 0.0        & C_x & 0.0 \
0.0              & f / d_{py} & C_y & 0.0 \
0.0              & 0.0        & f   & 0.0 \
0.0              & 0.0        & 1.0 & 0.0 \
\end{bmatrix}
\]

有没有更好的方法?

@albert pointed it out, you just need to use doxygen's formatting commands,在你的情况下\f[\f]

\f[
A_{C \rightarrow P}=\begin{bmatrix}
f * S_x / d_{px} & 0.0        & C_x & 0.0 \
0.0              & f / d_{py} & C_y & 0.0 \
0.0              & 0.0        & f   & 0.0 \
0.0              & 0.0        & 1.0 & 0.0 \
\end{bmatrix}
\f]

它可能与你的情况无关,但我花了一段时间才意识到 doxygen 提供的 MathJax 默认 URL 是无效的。应该change it,或者以另一种方式包含它。