如果我尝试将多张图片居中,如下所示,第一张图片会出现一个小的缩进。有人能告诉我为什么吗?
\documentclass[11pt]{article}
\usepackage{enumitem}
\usepackage{caption}
\usepackage{graphicx}
\begin{document}
\begin{enumerate}[label = 6.\theenumi]
\item \hfill
\begin{center}
\includegraphics[scale = .75]{611}
\captionof{figure}{}
\includegraphics[scale = .75]{612}
\captionof{figure}{}
\end{center}
\end{enumerate}
\end{document}
输出以下内容:
答案1
猜测所发布代码的意图有点困难,而且在其中出现图形是很不寻常的enumerate
,但无论如何,像这样:
\documentclass[11pt]{article}
\usepackage{enumitem}
\usepackage{caption}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\begin{document}
\begin{enumerate}[label = 6.\theenumi]
\item \parbox[t]{\linewidth}{\centering
\includegraphics[scale = .75,valign=t]{example-image-golden}
\captionof{figure}{}
\includegraphics[scale = .75]{example-image-golden}
\captionof{figure}{}
}
\end{enumerate}
\end{document}