Removing huge spaces between sections

spacing

I am currently using a template from latex and I am trying to remove these spaces (image in the link below as the image is very large).

I tried to use \vspace{-30cm} and \\ but it seems like it has some default settings somewhere and it doesn't affect the template.

the image

Here is the code of one of the sections.

\documentclass[10pt,A4,english]{article}
\cvsection{Ansættelseshistorik}
\cvevent
\cvsection{Projekter}

Best Answer

Ok, let me try to answer. The template you obviously use is not part of one of the official TeX distributions, but available at Overleaf. My first impression is that it has been written quite hastily and therefore contains a lot of sub-optimally coded stuff which is not easy to handle. So, it would be best that you use it only if you are very familiar with how LaTeX works.

One example of strange coding in this template is the fact that the macro \cvevent is defined with seven arguments. In the body of the template, which contains a lot of example code, however, almost never all these seven arguments are given, which leads to unstable code that quickly breaks when editing something.

A call of this macro should actually be like this (each, possibly empty, argument being wrapped in curly brackets):

\cvevent
{Sep. 2015 -- Okt. 2015}
{some title}
{some locatiion}
{}
{}
{}
{}

Now, to finally answer your question about how to remove the large gaps: If you use this macro properly and state each of its seven arguments, you may indeed place something like \vspace{-5mm} behind it (that is, behind the last closed curly bracket) to decrease the space to the next paragraph.

Related Question