我已经尝试使用 width = \textwidth 和 width = \linewidth,也尝试缩放图像,但它会出现在整个文本上。
\documentclass[a4paper,12pt]{article}
\usepackage[spanish]{babel}
% Package to make citations superscrit with brackets
\usepackage[super,square]{natbib}
% Package to change margin size
\usepackage{anysize}
\marginsize{2cm}{2cm}{1cm}{2cm}
% Package to make headers
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
% Package for highligths
\usepackage{soul}
% Colors for the references links
\usepackage[dvipsnames]{xcolor}
% Package to link references
\usepackage{hyperref}
\usepackage{float}
\usepackage{graphicx}
\hypersetup{
colorlinks=true,
linkcolor=black,
citecolor=CadetBlue,
filecolor=CadetBlue,
urlcolor=CadetBlue,
}
% Package for lorem ipsum
\usepackage{lipsum}
% Package for multicolumn
\usepackage{multicol}
\setlength\columnsep{18pt}
% Sets bastract
\renewenvironment{abstract}
{\par\noindent\textbf{\abstractname}\ \ignorespaces \\}
{\par\noindent\medskip}
\begin{document}
\begin{figure}[H]
\centering
\includegraphics[width = \textwidth]{images/SEM_01.png}
\caption{}
\label{fig:SEM01}
\end{figure}
\end{document}