Preparing a minimal example isn't a hard thing to do.
Consider the following mathematical journey: You are setting the left margin to 2.5 cm, the right one to 3cm. The widths of your subfigures are 9 cm.
You're trying to put an oversized load (235 mm) on an A4-page (210 mm). This can't be good, right?
So, take a look at my example. All widths are specified as fractions of the textwidth/linewidth.
Code: Select all
\documentclass[10pt,a4paper,oneside]{paper}
\usepackage[top=2.5cm,left=2 cm,right=3.0 cm,bottom=2.5cm,headheight=12.0 pt]{geometry}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[b]{0.45\linewidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{Tail stuffing.}
\label{part1.chapterRiskMeasures.hiddenrisk}
\end{subfigure}%
\hfil
\begin{subfigure}[b]{0.45\linewidth}
\includegraphics[width=\linewidth]{example-image-b}
\caption{Weight functions}
\label{fig:spectral}
\end{subfigure}
\caption{ }\label{fig:animals}
\end{figure}
\end{document}
By the way, that was by far not a proper example. If you would have done one, you would have noticed that something
suspiciously strange.
Downloading and taking a look at your files was just my kindness right now.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.