This question already has an answer here:

We've been given a template to work with. I am adding figures with the following code:

      \caption{Components of a reinforcement learning agent}

However, there is always a new line between after the figure. I'm trying to find something that will allow me to remove this new line. How can this be done? Thanks.

I've tried adding \setlength{\belowcaptionskip}{-10pt} but to no avail.

marked as duplicate by leandriis, CarLaTeX, Raaja, user156344, Stefan Pinnow Apr 19 at 10:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.