Fye
首先我不太清楚什么是你所说的 定理环境。 但你给出的例子中包含 LaTeX 公式。我猜你想说的是为何 LaTeX 公式显示不出来。
你knit不出来的原因应该是把那段Markdown代码写到公式环境里去了。而且你LaTeX 公式打得也不正确。
直接把你的定理放到Markdown中就好了。
For a right triangle, if <code class="katex-escape">\( c \)</code> denotes the length of the hypotenuse and <code class="katex-escape">\( a \)</code> and <code class="katex-escape">\( b \)</code> denote the lengths of the other two sides, we have <code class="katex-escape">\( a^2 + b^2 = c^2 \)</code>
For a right triangle, if \( c \)
denotes the length of the hypotenuse and \( a \)
and \( b \)
denote the lengths of the other two sides, we have \( a^2 + b^2 = c^2 \)
这样你的公式就能显示了。
或者放到引用环境里让定理更显著:
For a right triangle, if \( c \)
denotes the length of the hypotenuse and \( a \)
and \( b \)
denote the lengths of the other two sides, we have \( a^2 + b^2 = c^2 \)
效果:
不知道是否解答了你的问题?