I am having trouble perfectly getting an image to embed within a line of text. Ideally, the image is to be scaled to the correct size so that it fits within the line of text. This is as far as I've gotten. While it is close, the image is too tall. Any ideas? Thanks!
\documentclass[preprint2]{aastex}
\usepackage{graphicx}
\newcommand*{\img}[1]{%
\raisebox{-.02\baselineskip}{%
\includegraphics[
height=\baselineskip,
width=\baselineskip,
keepaspectratio,
]{#1}%
}%
}
\begin{document}
\begin{enumerate}
\item When ready, click `record \img{Record.png}'. There will be a three second period before the actual data collection begins.
\end{enumerate}
\end{document}
Here's an image if what I get with this:
\img
definition. Useheight=0.8\baselineskip
andwidth=0.8\baselineskip
.