1

I have the problem that Biblatex puts a page break in the middle of a reference of the bibliography.

Example of page break in bibliography

I have already searched and all offered solutions like setting the interlinepenalty to the maximum value of 10,000 had no effect.

I am really at a loss. Attached you can see the style structure of the bibliography:

\ProvidesFile{style.bbx}
\RequireBiber[2]
\RequireBibliographyStyle{authortitle}

\setcounter{biburlnumpenalty}{100} % allow breaks after numbers \setcounter{biburlucpenalty}{100} % allow breaks after uppercase letters \setcounter{biburllcpenalty}{100} % allow breaks after lowercase letters

\renewcommand*{\bibsetup}{\RaggedRight}

\InitializeBibliographyStyle {% \setlength\bibitemsep{6pt}% \setlength\bibhang{0.75cm} \UniCn \fontsize{10pt}{12pt} }

\defbibenvironment{bibliography} {\list {\fontsize{10pt}{12pt}\UniCn[\printfield[labelnumberwidth]{labelnumber}]} {% \setlength{\labelwidth}{\labelnumberwidth}% \setlength{\leftmargin}{\bibhang}% \setlength{\itemindent}{-\leftmargin}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}% }% } {\endlist} {\item}

%\item\begin{minipage}[t]{\textwidth}\end{minipage}

\NewBibliographyString{abgerufen am} \DefineBibliographyStrings{ngerman}{% abgerufen am = {abgerufen am}, }

\NewBibliographyString{URL} \DefineBibliographyStrings{ngerman}{% URL = {URL}, }

\newbibmacro{name:newformat}{% {\namepartfamily} % #1->\namepartfamily, #2->\namepartfamilyi {\namepartgiven} % #3->\namepartgiven, #4->\namepartgiveni [prefix: \namepartprefix] % #5->\namepartprefix, #6->\namepartprefixi [suffix: \namepartsuffix] % #7->\namepartsuffix, #8->\namepartsuffixi }

\DeclareFieldFormat{title}{{\space\UniLightCnI{#1}}} \DeclareFieldFormat{url}{{\UniLight URL:\space\url{#1}}} \DeclareFieldFormat{isbn}{{\UniLight ISBN:\space{#1}}} \DeclareFieldFormat{edition}{{#1\addcomma}} \DeclareNameAlias{sortname}{given-family}

\DeclareFieldFormat{visited}{\bibstring{abgerufen am}\space #1}

\DeclareBibliographyDriver{website} {% {\UniCn\printfield{organization}}% {\UniLight\space(o.J.):}\printfield{title}\adddot% \UniLight\newline\nobreak% Onlinedokumentation\adddot\space% \printfield{url}\addcomma\space% \printfield{visited}% \finentry% }

\DeclareBibliographyDriver{book} {% {\UniCn\printnames{author}}% {\UniLight\space(\printfield{year}):}\printfield{title}\adddot% \UniLight\newline% \printlist{location}:\space% \printfield{edition}\space% \printlist{publisher}\space% \finentry% }

\DeclareBibliographyDriver{techreport} {% {\UniCn\printnames{author}}% {\UniLight\space(\printfield{year}):}\printfield{title}\adddot% \UniLight\newline\nobreak% \printlist{location}:\space% \printfield{edition}\space% \printlist{publisher}\space% \finentry% }

1 Answers1

0

Since I didn't get an answer, I went back to it myself. Actually it is quite simple, you just have to come up with it.

\usepackage{needspace}

% The number determines how many lines of space the entry takes. \AtEveryBibitem{\needspace{3\baselineskip}}

It is important to note that both commands must be included after biblatex.