How can I avoid that a \parencite{key}
will get broken over 2 pages?
Linebreaking is fine, but page breaking is not. The reason I do not want this is that I have TIKZ customization for citations, which goes wrong with page breaking. Also linking goes (sometimes not always) wrong causing (\pdfendlink ended up in different nesting level than \pdfstartlink
)
I can solve this by \mbox{\parencite{key}}
but then linebreaking is also not possible.
I can apply this \mbox{\parencite{key}}
to only citations which breaks the compilation, however this can vary from time to time (depending on layout), so I am looking for a more generic solution which always work.
Thanks
MWE
\begin{filecontents}{\jobname.bib}
@book{Labov1972,
Author = {William Labov},
Year = {1972}}
}
\end{filecontents}
\documentclass[a4paper]{article}
\usepackage{needspace}
\usepackage[nopar]{lipsum}
\usepackage[backend=bibtex,url=false,backref=true,bibencoding=ascii,firstinits=true,uniquename=init,style=alphabetic,citestyle=authoryear]{biblatex}
\addbibresource{\jobname.bib}
\newbox\one
\newbox\two
\long\def\loremlines#1{%
\setbox\one=\vbox { \lipsum }
\setbox\two=\vsplit\one to #1\baselineskip
\unvbox\two}
\begin{document}
\loremlines{46}
Some famous linguists wrote a couple of books asdasdsad asdsad \parencite{Labov1972}.
\loremlines{1}
Some famous linguists wrote a couple of books asdasdsad asdsad \parencite{Labov1972}asdasdas asdasd asdsad
\printbibliography
\end{document}