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[style=verbose, maxnames=99, sorting=ydnt]{biblatex}
\RequirePackage[ % BibLaTeX \RequirePackage[ % BibLaTeX
sorting=ydnt, % Sorts entries by year (descending order), name, title sorting=ydnt, % Sorts entries by year (descending order), name, title
style=numeric, style=verbose,
doi=false, doi=false,
isbn=true, isbn=true,
url=false, url=false,
eprint=false eprint=false,
backref = false, % include back references in bibliography backref = false, % include back references in bibliography
maxcitenames=3, % affects only the citations in the document body maxcitenames=3, % affects only the citations in the document body
maxbibnames=99, % affects only the bibliography, pass 99 to print all maxbibnames=99, % affects only the bibliography, pass 99 to print all
@ -695,6 +695,14 @@
backend=biber % {Options: bibtex, biber} backend=biber % {Options: bibtex, biber}
]{biblatex} ]{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 % Customized format, based on Fancy CV template created by Adrien Friggeri
\DeclareFieldFormat[article]{title}{#1\par} \DeclareFieldFormat[article]{title}{#1\par}
\DeclareFieldFormat[inproceedings]{title}{#1\par} \DeclareFieldFormat[inproceedings]{title}{#1\par}