From df99331e97006216fc46117bb0f38e69cb8bc2e6 Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Fri, 22 Jan 2016 11:43:22 +0000 Subject: [PATCH] Avoid splitting entries across page break --- awesome-cv.cls | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 9d43d77..13b55cf 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -682,11 +682,11 @@ %\RequirePackage[style=verbose, maxnames=99, sorting=ydnt]{biblatex} \RequirePackage[ % BibLaTeX sorting=ydnt, % Sorts entries by year (descending order), name, title - style=numeric, + style=verbose, doi=false, isbn=true, url=false, - eprint=false + eprint=false, backref = false, % include back references in bibliography maxcitenames=3, % affects only the citations in the document body maxbibnames=99, % affects only the bibliography, pass 99 to print all @@ -695,6 +695,14 @@ backend=biber % {Options: bibtex, biber} ]{biblatex} +% Avoid splitting entries across page break (only for 3 or fewer lines) +% Tip: http://tex.stackexchange.com/a/51261 +\AtBeginEnvironment{thebibliography}{% + \clubpenalty10000 + \@clubpenalty \clubpenalty + \widowpenalty10000 + \interlinepenalty5000} + % Customized format, based on Fancy CV template created by Adrien Friggeri \DeclareFieldFormat[article]{title}{#1\par} \DeclareFieldFormat[inproceedings]{title}{#1\par}