- class-selection.jpg (66.66 KiB) Viewed 5137 times
- LyX-result.jpg (23.55 KiB) Viewed 5137 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
\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.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p