¿Puedo hacer que las figuras se ajusten automáticamente según mis márgenes?

¿Puedo hacer que las figuras se ajusten automáticamente según mis márgenes?

Primera pregunta aquí. Estoy tratando de descubrir si hay alguna manera de que automáticamente pueda tener una figura como la segunda en la segunda página en los parámetros de los márgenes que he configurado. Me gustaría saber si se puede hacer esto para que me resulte más fácil editar figuras. El documento no es 100% mi propia codificación, pero funciona para todos los que lo han usado.

El documento tiene LuaLaTeX habilitado.

% {
\documentclass[letterpaper, 12pt]{article}


\usepackage{graphicx}
\usepackage{newfloat} % replaces float (ask how to use it)
\usepackage[showframe, left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm]{geometry}
\usepackage{indentfirst}
\usepackage[backend=biber]{biblatex}
\usepackage{subcaption} % has caption
\usepackage{microtype}
\usepackage{unicode-math} % loads fontspec
    \setmainfont{Times New Roman}[Ligatures=TeX]
    \setmathfont{XITS Math}
\usepackage[main=english,spanish]{babel}

\makeatletter
\renewcommand{\@maketitle}{%
\newpage
\null
\vspace{-0.125cm} % This corresponds to the top margin set by geometry
\begin{center}
\parskip=0pt
\let\footnote\thanks 
{\LARGE \@title \par }%
\vspace{0cm} % Adjust this value to control the space between the title and author
{\large \lineskip .5em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}%
\par }%
\vspace{.25cm} % Adjust this value to control the space between the author and date
{\large \@date }%
\end{center}\par 
\vspace{.25cm} % Adjust this value to control the space between the date and content after maketitle
}
\makeatother % ask if you want to change the spacing of the 3 top sections

\renewcommand{\arraystretch}{1.5} % this makes tables look better

\setlength\parindent{.5cm}

% }

\title{The Endangered Status of the Texas Horned Lizard}
\author{David Patterson}
\date{\today}

\begin{document}

\noindent
\begin{minipage}{\textwidth}
\maketitle
\end{minipage}

\begin{center}
\begin{large}
\textsc{\RN{1}. Introduction}
\end{large}
\end{center}

The Texas Horned Lizard (\textit{Phrynosoma cornutum}) is a reptilian that is native to many areas of the south and can be found in much of both general Texas and East Texas. The Texas Horned Lizard is a brown and white lizard with black eyes and is becoming an endangered species in the previously mentioned areas. The animal was listed on the endangered species list in 1977, and many efforts are being made to keep the species alive.

\begin{figure}[htb]
    \centering
    \includegraphics[width=.5\textwidth]{horned_lizardlarge.jpg}
    \caption*{Fig. 1: A picture of a Texas Horned Lizard~(\textit{Phrynosoma cornutum}).}
    \label{fig:enter-label}
\end{figure}

\begin{center}
\begin{large}
\textsc{\RN{2}. Why is the Texas Horned Lizard Endangered?}
\end{large}
\end{center}

While there is  not one sole factor for the endangered status of the species, the main contributing factors to the species endangerment is habitat loss, over collection, and pesticide use. There is also the possibility of  of fire ants also playing a role in its endangerment. 

\newpage

\begin{figure}[htb]
    \centering
    \includegraphics[width=.65\textwidth]{04_figure.jpg}
    \caption*{Fig. 2: A statistic showing the population of the Texas Horned Lizard, with it having a low distribution percentage in the Pineywoods area.}
    \label{fig:enter-label}
\end{figure}

\begin{center}
\begin{large}
\textsc{\RN{3}. The Fight for the Species}
\end{large}
\end{center}

While many people may not be aware of how serious the issue of the endangered species is, the Texas Horned Lizard Reintroduction Project has begun at the San Antonio Zoo, and they are looking to be able to bring back the species out of endangerment status, by working with private landowners to have them breed, promoting ecotourism, and getting funding to make the mission possible.

\begin{figure}[htb]
    \centering
    \includegraphics[width=.6\textwidth]{SA-Horned-Lizard.jpg}
    \caption*{Fig. 3: A baby lizard breed at the San Antonio Zoo, as part of the Texas Horned Lizard Reintroduction Project.}
    \label{fig:enter-label}
\end{figure}

\begin{center}
\begin{large}
\textsc{\RN{4}. The Effects of the Extinction of This Species}
\end{large}
\end{center}

There are effects that will be found with the extinction of the Texas Horned Lizard. Firstly, the state of Texas will lose an animal with a cultural tie to it, and it will be of much loss if it were to disappear. Secondly, the harvester ant (\textit{Pogonomyrmex rugosus}) population would explode, and there would be no consumer to keep its population in check. Lastly, they provide biodiversity to the ecosystem they are a part of, and if gone, this can bring forth a huge effect on the ecosystem.

\begin{figure}[htb]
    \centering
    \includegraphics[width=.6\textwidth]{41592_2022_1671_Fig1_HTML.png}
    \caption*{Fig. 4: A picture of the harvester ant~(\textit{Pogonomyrmex rugosus}).}
    \label{fig:enter-label}
\end{figure}

\begin{center}
\begin{large}
\textsc{\RN{5}. Conclusion}
\end{large}
\end{center}

The Texas Horned Lizard is still classified as endangered, and this is happening for many reasons. While there are many factors responsible for the endangered status that it is in right now, many things are being done to reverse the process. Human intervention plays a big role in helping the population make a comeback, and there are many groups/organizations helping the species repopulate.

\begin{center}
\begin{large}
\textsc{\RN{6}. Look at how adorable they are!}
\end{large}
\end{center}

\begin{center}
They are so cute! Why wouldn't you want to have these around?
\end{center}

\begin{figure}[htb]
    \centering
    \includegraphics[width=.6\textwidth]{thl_adult_baby.jpg}
    \caption*{Fig. 5: Lets help these guys repopulate!}
    \label{fig:enter-label}
\end{figure}

\end{document}

ingrese la descripción de la imagen aquí

información relacionada