posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
23.12k stars 4.79k forks source link

How to squeeze up the sections ? #79

Open vincentbillaut opened 7 years ago

vincentbillaut commented 7 years ago

Hi,

I've been sniffing around in the package's code in order to make my resume fit into one page. I've come to understood almost every graphical item, and modified them adequately.

However, I cannot get my hand on the line to change in order to reduce the space beneath any cventry. It takes space above the following entry or section, and I would like to know how to control it.

Is that possible ? See here your example CV, and the space above each section.

capture du 2016-11-07 16 49 52

Thanks in advance, and thank you for that incredible package.

johannesbottcher commented 7 years ago

Try \renewcommand[\acvSectionTopSkip}{0pt}. That is the smallest space you can get without redefining huge parts of the template.

@posquit0 That center environment from cventries is responsible for a part of that space. Maybe using \begingroup\centering an later \endgroup would be better. Although i don't see a reason for centering here as the items itself have textwidth. To be honest, i would completely change all the hard-wired spacing and substitute it with commands a user can change.

vincentbillaut commented 7 years ago

Thanks for your input. I have tried to mess with the space above sections, but it was not enough: the issue indeed lies below the cventries.

I'll try your solutions out and edit this answer accordingly.

EDIT :

johannesbottcher commented 7 years ago

Modifying a class file is something for experienced users only. Please also have a look at the class license, mark changes properly and rename the class file.

hengluchang commented 7 years ago

@vincentbillaut I changed \vspace{-2mm} to \vspace{-4mm} under \newenvironment{cvitems} in .cls file, and it reduces the spacing between cventry.

fguardini commented 7 years ago

@vincentbillaut I found a simple workaround, inserting the following:

\vspace{\acvSectionContentTopSkip} \vspace{-6mm}

anywhere it might be needed, both in .cls and in .tex

My resume.tex content is organized like this for example:

\vspace{\acvSectionContentTopSkip} \vspace{-2mm} \import{\sectiondir}{experience.tex} \vspace{\acvSectionContentTopSkip} \vspace{-3mm} \import{\sectiondir}{skills.tex} \import{\sectiondir}{education.tex}

zaczzy commented 7 years ago
% Define a section for CV
% Usage: \cvsection{<section-title>}
\newcommand{\cvsection}[1]{
  --> % \vspace{-4mm}
  \par\addvspace{1ex}
  \phantomsection{}
  \sectionstyle{#1}
  \color{gray}\vhrulefill{0.9pt}
  \par\nobreak\addvspace{1ex}
}

The arrow part decreases the spacing between CVSections

jaganmohan-akkineni commented 5 years ago

To decrease the space between two sections you can add \vspace{-x.0mm} between them.

Ex: In resume.tex, \input{resume/education.tex} \vspace{-4.0mm} \input{resume/skills.tex} \input{resume/experience.tex} \input{resume/projects.tex} \input{resume/certifications.tex}

Here, it decreases the space between education and skills by 4.0mm. Similarly, you can do this for all other sections.