I am using theorem
environment and want to put reference near the lemma, however, instead of [18]
I am getting (18)
, how I can fix it?
\documentclass{article}
\usepackage{amsthm}% http://ctan.org/pkg/amsthm
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\newtheorem{lemma}{Lemma}%
\AtEndEnvironment{theorem}{\null\hfill\qedsymbol}%
\begin{document}
\begin{lemma}[18]
This is an important theorem.
\end{lemma}
\end{document}
\null\hfill\qedsymbol
is not the right way for adding a tombstone at the end of a theorem statement.