introduce \cvsectionstretchability and \cvsubsectionstretchability

This commit is contained in:
David 2021-01-27 20:30:38 +01:00 committed by David Seus
commit 3f2cc686dc
6 changed files with 49 additions and 51 deletions

View file

@ -443,7 +443,10 @@
% custom needspace command to avoid orphaned sections
% adapted from the explanations given on
% https://tex.stackexchange.com/questions/348994/understanding-needspace
\@initializelength{\cvstretchability}
% the stretchabilities are zero by default and are only there to be changed
% by the user if needed.
\@initializelength{\cvsectionstretchability}
\@initializelength{\cvsubsectionstretchability}
% must be between -100 and 9999. The higher the less likely a page break will occur.
% This is where the page break should occur, so this number should not bee too high
\NewDocumentCommand\withinstretchpenalty{}{0}