- class-selection.jpg (66.66 KiB) Viewed 5228 times
- LyX-result.jpg (23.55 KiB) Viewed 5228 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
\ref
command (which surely is used) only prints the number of the referenced label. So you have to add the type yourself (Lemma~\ref{<whatever label has been used>}
).Code: Select all
\documentclass{elsarticle}
\newtheorem{lem}{Lemma}
\newproof{pf}{Proof}
\begin{document}
\begin{lem}\label{lem:aaa}
aaa
\end{lem}
\begin{pf}
aaa
\end{pf}
\begin{lem}
bbb
\end{lem}
\begin{pf}
According to Lemma~\ref{lem:aaa}
\end{pf}
\end{document}
Code: Select all
\documentclass{elsarticle}
\newtheorem{lem}{Lemma}
\newproof{pf}{Proof}
\usepackage{cleveref}
\crefname{lem}{Lemma}{Lemmata}
\begin{document}
\begin{lem}\label{lem:aaa}
aaa
\end{lem}
\begin{pf}
aaa
\end{pf}
\begin{lem}
bbb
\end{lem}
\begin{pf}
According to \cref{lem:aaa}
\end{pf}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.