I am experiencing this weird bug where if a figure touches the top or bottom of a page, is the page numbering reset to zero on that page.
I haven't been able to make a minimal example showing the effect as it seems to be very situational. But I have attached a picture of the resulting pages at the bottom of this post. (Don't mind the blurred out text.)
What could cause this weird behaviour, is it a bug or intended? If it is a bug, where can I report it? And what can I do about it? (Besides changing picture sizes and moving text around by hand.)
Edit: I have made the smallest version of the file I can and attached it here: The picture used is also attached. The first page is indexed as page number 0, when it should be 1.
Notice that I use a non-standard header, footer and margin size. I don't think this should influence that the bug can appear. The highlight of the text in the second section is necessary to show the bug, I am not sure why.
\documentclass[a4paper, 12pt]{article}
\usepackage{float}
\usepackage[margin=2cm, includefoot, footskip=30pt, includehead, headsep=20pt]{geometry}
\usepackage{graphicx}
\usepackage{soul}
\begin{document}
\section{Lorem ipsum dolor sit amet}
\subsection{Lorem ipsum dolor sit amet}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sollicitudin pulvinar sapien in tempus.
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\
\begin{figure}[h]
\centering
\includegraphics[width=.8\textwidth]{tree.png}
\caption{Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sollicitudin pulvinar sapien in tempus.}
\label{fig_areasOfWork}
\end{figure}
\section{Next section}
Lorem ipsum dolor
\hl{
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sollicitudin pulvinar sapien in tempus.
Etiam non orci ut dolor efficitur sodales. Mauris egestas sapien nunc, in facilisis mauris elementum ac.}
\end{document}

\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – BambOo May 21 '20 at 14:36\\ \\ \\ […] \\and replace the figure with\vspace{20cm}, so this appears to have little to do with thefigureand everything to do with a bug insoul`. I think this question is about the same problem. – Circumscribe May 21 '20 at 15:47