I am trying to compile two documents into one larger document. I created a separate file with the same preamble as both, then copied and pasted the first followed by the second document into the document space. However, at section 4 (the first section of the second document), the subsection number jumps from 4.1 to 4.4. This happens again in from 5.1 to 5.3, and 6.1 to 6.3.
I have checked everything for \setcounter and anything that I could have missed, but I have no idea where this is coming from. It is not an issue in the second document as a standalone, only when I copy it into the main document. Any help would be much appreciated.