我有以下代码,它没有将 a) 和 b) 与图像顶部对齐。我该如何对齐它们?
...
\begin{enumerate}
\item Find the unknown values and in each case, give a reason.
\begin{enumerate}
\item
\includegraphics[scale=0.6]{images/image1.png}\\
\item
\includegraphics[scale=0.6]{images/image2.png}\\
\end{enumerate}
\end{enumerate}
...
答案1
您可以使用adjustbox
带选项的包。然后里面有export
一个键可用于垂直对齐。valign
\includegraphics
\documentclass{article}
\usepackage[export]{adjustbox}
\begin{document}
\begin{enumerate}
\item Find the unknown values and in each case, give a reason.
\begin{enumerate}
\item
\includegraphics[scale=0.6,valign=t]{example-image-a}
\item
\includegraphics[scale=0.6,valign=t]{example-image-b}
\end{enumerate}
\end{enumerate}
...
\end{document}