如何使用 phfthm 套件獲得定理證明

如何使用 phfthm 套件獲得定理證明

我正在嘗試使用該包phfthm來提供帶有指示的證明定理1的證明,等等。

我幾乎完全使用了中提供的示例包文件,在第 15 頁,但我只得到證明1,沒有這個詞定理,並且無法理解我在哪裡犯了錯誤。

這是我的例子:

\documentclass[]{article}

\usepackage[resetstyle]{phfthm}

\begin{document}

\section*{Introduction}
This is a theorem
\begin{theorem}[Gauss]
    \label{thm:Gauss}
    For a closed surface $S$ enclosing a volume $V$, we have
    \begin{equation}
    \oint_S\vec u\cdot d\vec S = \int_V(\vec\nabla\cdot\vec u)\,dV\ .
    \end{equation}
\end{theorem}
Then the proof.
\begin{proof}[*thm:Gauss]
text of proof
\end{proof}

\end{document}

答案1

您必須載入hyperref以提供\autoref列印校樣類型所需的 。如果\autoref不可用,\ref則用作後備,因此僅顯示數字(參見https://tex.stackexchange.com/a/137433/29873)。這可以在文件中更清楚地說明(只有相當隱藏的註釋)。無論如何,讓我們開始吧:

\documentclass[]{article}
\usepackage[resetstyle]{phfthm}
\usepackage{hyperref}
\begin{document}

\section*{Introduction}
This is a theorem
\begin{theorem}[Gauss]
    \label{thm:Gauss}
    For a closed surface $S$ enclosing a volume $V$, we have
    \begin{equation}
    \oint_S\vec u\cdot d\vec S = \int_V(\vec\nabla\cdot\vec u)\,dV\ .
    \end{equation}
\end{theorem}
Then the proof.
\begin{proof}[*thm:Gauss]
text of proof
\end{proof}

\end{document}

在此輸入影像描述

相關內容