After posting the question here, I did some tests and verified that the problem was with double spacing (when posting the question here it was only a hypothesis). I wasn't aware of the package setspace before so that I could use it to test the if the spacing was causing it.
Perhaps you commited another mortal sin like redefining
\baselinestrech
e.g. in this way.
Code: Select all
\renewcommand*{\baselinestretch}{2}
Or perhaps you used
\linespread{2}
or something similar in your document.
perr0 wrote:[…] Regarding the MWE, yes, mine works. It's minimal and it works. It does not show the problem, but I said explicitly that I could not reproduce the problem from my main document. The thing is, as I said before, when I posted the question here, I wasn't aware of the setspace package nor that the spacing was causing it. That's why my MWE here is different from the one on Tex.SX. […]
No, your example is not minimal and therefore does not deserve to be called "MWE". Packages like
pgfplots or
siunitx are for sure not necessary to reproduce the problem.
To find out the source of the error you can build an example from scratch by copying content from your original document until the error occurs. If that is not successful, you can cut down a copy of your original document to the minimal stuff that still reproduces the error. Both procedures are described when following the corresponding link I have given in my previous reply. That would have been your homework.
perr0 wrote:[…] Regarding the crossposting, sorry about that, I wasn't aware of the rule. […]
That's one reason why the rules should be read
before posting.