1

How to cross-reference a Lemma/Theorem/Proposition in TeX Studio?

In the following output, I want to reference Proposition 2.1 in Theorem 2.2:

enter image description here

I have used the key \label{p2.1} in the Proposition 2.1 and then used the key \eqref{p2.1} in the Theorem 2.2.

But as shown above there is a bracket enclosing 2.1

enter image description here

I want to remove the bracket around 2.1. I just want to display 2.1 instead of (2.1).

Werner
  • 603,163
learner
  • 663
  • Off-topic: In the statements of the proposition and the theorem, please don't use text italics where you should be using math italics. E.g., do replace If A=B then A-B=0 with If $A=B$ then $A-B=0$. Similarly, please replace If A=B then A+C=B+D implies C=D with If $A=B$ then $A+C=B+D$ implies $C=D$. The main difference lies in the spacing around the binary and relational operators such as + and =. – Mico Mar 12 '21 at 16:36
  • For more information on how to create cross-references in a LaTeX document, including information about the \eqref command and various LaTeX packages that provide methods that go beyond the basic \label-\ref mechanism, please see Cross-reference packages: which to use, which conflict? – Mico Mar 12 '21 at 16:50
  • @Mico, it was an screenshot of pdf output. It is just for an example – learner Mar 12 '21 at 17:00

1 Answers1

2

\eqref from amsmath is meant to reference equations, which typically have their numbering set within some form of enclosed delimiter (like parentheses). Use \ref if you only want the number.

If you want to be fancy about it, you could also try

\hyperref[p2.1]{Proposition~\ref*{p2.1}}

which will make the entire proposition a clickable reference.

Werner
  • 603,163