Avoid splitting entries across page break

This commit is contained in:
Amin Khan 2016-01-22 11:43:22 +00:00
parent 90e8b0a4cc
commit df99331e97

View file

@ -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}