这段代码有什么问题,导致图片不相邻?图片大小没问题,可以放得下。
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[czech]{babel}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\centerline{\includegraphics[width=0.3\textwidth]{fig1.jpg}}
\centerline{\includegraphics[width=0.3\textwidth]{fig2.jpg}}
\caption{Name, \cite{img}}
\end{figure}
\end{document}
答案1
我建议你尝试
\begin{figure}[h]
\centering
\includegraphics[width=0.3\textwidth,clip=]{fig.jpg}
\includegraphics[width=0.3\textwidth,clip=]{img.jpg}
\caption{Cap, \protect\cite{image}}
\end{figure}