I have a problem - when I insert figures in my document, latex creates a huge space between sections and text.
Any idea of how I change this? I may have code something in my main that went wrong, but I don't know what I am looking for in the main declaration..


\flushbottom. So either allow the figures to float or use explicte\raggedbottom. And please always add a MWE to your questions. – Schweinebacke May 22 '17 at 06:58[H]) just that you have specified flush bottom and that is the only way to achieve that in this case (apparently) we have to guess as you have shown no code. – David Carlisle May 22 '17 at 06:59[H]you don't allow thefigureto float. And that's the main reason for your trouble. See: https://tex.stackexchange.com/questions/370627/why-should-the-h-option-not-be-used-in-floats – Schweinebacke May 22 '17 at 07:09[H]if you really want the figure to stay exactly where you put it in your code. In other cases use a combination ofh,t,bandp. If you use floating figures in all cases (noH), then the order is not changed. The issue in your document arises from the use of non-floating figures with\flushbottomas others noted in the comments already. If you don't allow TeX to do its work don't wonder why it's not doing its work. – Skillmon May 22 '17 at 07:34[H]and is already explained in the answers to the link above. But if you do not want floats, see the link in the topmost comment. Nevertheless, I would really recommend to allow floating. – Schweinebacke May 22 '17 at 07:34\documentclassand end with\end{document}so we know the entire setup and can reproduce it. Help us help you. – sk8forether May 22 '17 at 16:12