我想写一封信并附上一张图,这是一个例子:
\documentclass[a4paper,11pt]{letter}
\usepackage{babel}
\usepackage{graphicx}
\begin{document}
\begin{letter}{
To you
}
\opening{Dear you}
This is what I wanted to tell you.
\closing{Goodbye}
\end{letter}
% \begin{figure}
\includegraphics[width=1.\textwidth]{somefigure}
% \label{somefigure}
% \end{figure}
\end{document}
我如何在信中引用此图?具体来说,我想使用类似 的东西\pageref
。由于 中没有figure
环境letter
,我不知道如何标记和引用该图。
答案1
您不需要figure
页面引用。
\documentclass[a4paper,11pt]{letter}
\usepackage{babel}
\usepackage{graphicx}
\begin{document}
\begin{letter}{
To you
}
\opening{Dear you}
This is what I wanted to tell you. See the image on page~\pageref{somefigure}
\begin{center}
\includegraphics[width=1.\textwidth]{example-image}
\label{somefigure}
\end{center}
\closing{Goodbye}
\end{letter}
\end{document}