
비슷한 질문을 받았지만 도움이 되지 않는 것으로 나타났습니다. texstudio에서 방정식을 참조하려고 하면 ??라는 메시지만 나옵니다. 이 작업을 수행하기 위해 삽입한 코드의 예는 다음과 같습니다(Wikipedia에서 가져옴).
\begin{equation} \label{eq:solve}
x^2 - 5 x + 6 = 0
\end{equation}
\begin{equation}
x_1 = \frac{5 + \sqrt{25 - 4 \times 6}}{2} = 3
\end{equation}
\begin{equation}
x_2 = \frac{5 - \sqrt{25 - 4 \times 6}}{2} = 2
\end{equation}
and so we have solved equation ~\ref{eq:solve}
내가 방금 얻은 숫자를 표시하는 대신에 ??
, 그렇습니다. 두 번 이상 컴파일했습니다.
완전성을 위해 코드의 시작 부분을 포함하겠습니다.
\documentclass{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{MnSymbol}
\usepackage[thmmarks]{ntheorem}
\theoremheaderfont{\bfseries}
\theorembodyfont{\normalfont}
\theoremseparator{:}
\theoremsymbol{$\square$}
\newtheorem*{proof}{Proof}[chapter]
\newtheorem{prop}{Proposition}[chapter]
\newtheorem{corollary}{Corollary}[chapter]
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}{Lemma}
\numberwithin{theorem}{section}
\numberwithin{prop}{section}
\numberwithin{corollary}{section}
\numberwithin{lemma}{section}
답변1
패키지를 로드할 때 amsmath
옵션 외에도 옵션을 지정해야 합니다 . (패키지 사용자 가이드의 섹션 3.2.1도 참조하세요 .)thmmarks
ntheorem
ntheorem