表示させたいこと
*********************
Theorem 1.
This is a theorem.
By Theorem (1),it is ovbious.
Latexコード
********************
\begin{theorem}
label{th:1}
This is a theorem.
\end{theorem}
By (\ref{th:1)},it is ovbious.
実際の表示内容
By (1),it is ovbious.
これをTheoremというラベルも番号の前に表示させたい.
"By Theorem(\ref{th:1)},it is ovbious."
のように書くしかないでしょうか?自動的にラベル(ここではTheorem)をひっぱるようにはできないでしょうか?
theorem以外にlemma,assumption,definitionなどあるのでできるだけ自動化したいのですが可能でしょうか?
よろしくお願いします.