關於標籤和交叉引用的問題

關於標籤和交叉引用的問題

我試圖在一篇文章中使用交叉引用,這是我的程式碼範例。

\documentclass[11pt]{amsart}
\usepackage[margin=1in]{geometry}   % set the margins to 1in on all sides
\usepackage{graphicx}              % to include figures
\usepackage{amsmath}               % great math stuff
\usepackage{amsfonts}              % for blackboard bold, etc
\usepackage{amsthm}                % better theorem environments
\usepackage{epsfig}         % For postscript
\usepackage{epic,eepic}       % For epic and eepic output from xfig
\usepackage{showkeys}
\usepackage{pdfsync}
\usepackage{mathdots}
\usepackage{lmodern}






\newtheoremstyle{break}% name
  {}%         Space above, empty = `usual value'
  {}%         Space below
  {\itshape}% Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\bfseries}% Thm head font
  {.}%        Punctuation after thm head
  {\newline}% Space after thm head: \newline = linebreak
  {}%         Thm head spec

\theoremstyle{break}
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{conj}[thm]{Conjecture}
\newtheorem{quest}[thm]{Question}

\theoremstyle{break}
\newtheorem{defn}[thm]{Definition}
\newtheorem{defns}[thm]{Definitions}
\newtheorem{con}[thm]{Construction}
\newtheorem{exmp}[thm]{Example}
\newtheorem{exmps}[thm]{Examples}
\newtheorem{notn}[thm]{Notation}
\newtheorem{notns}[thm]{Notations}
\newtheorem{addm}[thm]{Addendum}
\newtheorem{exer}[thm]{Exercise}

\theoremstyle{remark}
\newtheorem{rk}[thm]{Remark}
\newtheorem{rks}[thm]{Remarks}
\newtheorem{warn}[thm]{Warning}
\newtheorem{sch}[thm]{Scholium}

\newenvironment{sketchpf}{\noindent{\it Sketch of Proof}\hspace*{1em}}{\qed\bigskip\\}
\newenvironment{proof-idea}{\noindent{\bf Proof Idea}\hspace*{1em}}{\qed\bigskip\\}
\newenvironment{proof-of-lemma}[1]{\noindent{\bf Proof of Lemma #1}\hspace*{1em}}{\qed\bigskip\\}
\newenvironment{proof-attempt}{\noindent{\bf Proof Attempt}\hspace*{1em}}{\qed\bigskip\\}
\newenvironment{proofof}[1]{\noindent{\bf Proof} of #1:\hspace*{1em}}{\qed\bigskip\\}
\newenvironment{remark}{\noindent{\bf Remark}\hspace*{1em}}{\bigskip}

\begin{document}
\begin{prop}\label{2}
   This is just an sample.
\end{prop}
By Proposition \ref{2}, we can see the problem.
\end{document}

但是當我編譯我的文件時,除了Proposition(上述命題的編號)之外,在一個方框中有一個“1”,而在參考部分,在Proposition上方的一個方框中有一個小“1” 。

有沒有辦法擺脫這些方形盒子?

謝謝。

在此輸入影像描述

答案1

正如我在評論中猜測的那樣,你有

\usepackage{showkeys}

這是一個僅用於草稿的包,用於顯示內部標籤。

相關內容