mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
introduce \cvsectionstretchability and \cvsubsectionstretchability
This commit is contained in:
parent
2e06ec3718
commit
bd7a1ecb7a
6 changed files with 49 additions and 51 deletions
|
|
@ -432,7 +432,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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue