Latex-隐藏图片的方法

\begin{figure}[ht]
    \centering
    \resizebox{!}{0cm}{\begin{minipage}{\textwidth}
    \includegraphics[width=5cm]{example-image-a}
    \caption{}
    \label{figure1}
    \end{minipage}}
\end{figure}

如果你想把图片的序号也取消,方法如下:

\begin{figure}[ht]
    \centering
    \resizebox{!}{0cm}{\begin{minipage}{\textwidth}
    \includegraphics[width=5cm]{example-image-a}
    \end{minipage}}
\end{figure}
上一篇:latex图表操作


下一篇:【写博客常用】latex undefined control sequence. \text&undefined control sequence. \begin{minipage}问题解决