mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-11-29 17:38:33 +00:00
Prevent pagebreak at start of sections via needspace
This commit is contained in:
parent
af67d6dcd0
commit
ee3af70cb9
1 changed files with 6 additions and 2 deletions
|
@ -54,7 +54,7 @@
|
||||||
\RequirePackage{ragged2e}
|
\RequirePackage{ragged2e}
|
||||||
% Needed to configure page layout
|
% Needed to configure page layout
|
||||||
\RequirePackage{geometry}
|
\RequirePackage{geometry}
|
||||||
% Needed to make header & footer effeciently
|
% Needed to make header & footer efficiently
|
||||||
\RequirePackage{fancyhdr}
|
\RequirePackage{fancyhdr}
|
||||||
% Needed to manage colors
|
% Needed to manage colors
|
||||||
\RequirePackage{xcolor}
|
\RequirePackage{xcolor}
|
||||||
|
@ -88,7 +88,8 @@
|
||||||
pdfsubject={},
|
pdfsubject={},
|
||||||
pdfkeywords={}
|
pdfkeywords={}
|
||||||
}
|
}
|
||||||
|
% Require additional space to be filled by content
|
||||||
|
\RequirePackage{needspace}
|
||||||
|
|
||||||
%-------------------------------------------------------------------------------
|
%-------------------------------------------------------------------------------
|
||||||
% Configuration for directory locations
|
% Configuration for directory locations
|
||||||
|
@ -571,6 +572,7 @@
|
||||||
% Define a section for CV
|
% Define a section for CV
|
||||||
% Usage: \cvsection{<section-title>}
|
% Usage: \cvsection{<section-title>}
|
||||||
\newcommand{\cvsection}[1]{%
|
\newcommand{\cvsection}[1]{%
|
||||||
|
\needspace{5\baselineskip}
|
||||||
\vspace{\acvSectionTopSkip}
|
\vspace{\acvSectionTopSkip}
|
||||||
\sectionstyle{#1}
|
\sectionstyle{#1}
|
||||||
\phantomsection
|
\phantomsection
|
||||||
|
@ -580,6 +582,7 @@
|
||||||
% Define a subsection for CV
|
% Define a subsection for CV
|
||||||
% Usage: \cvsubsection{<subsection-title>}
|
% Usage: \cvsubsection{<subsection-title>}
|
||||||
\newcommand{\cvsubsection}[1]{%
|
\newcommand{\cvsubsection}[1]{%
|
||||||
|
\needspace{5\baselineskip}
|
||||||
\vspace{\acvSectionContentTopSkip}
|
\vspace{\acvSectionContentTopSkip}
|
||||||
\vspace{-3mm}
|
\vspace{-3mm}
|
||||||
\subsectionstyle{#1}
|
\subsectionstyle{#1}
|
||||||
|
@ -742,3 +745,4 @@
|
||||||
\letterenclosurestyle{\@letterenclname: \@letterenclosure} \\
|
\letterenclosurestyle{\@letterenclname: \@letterenclosure} \\
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue