# biblatex prevent page numbers from linebreaks within the bibliography

I'm using biblatex with the alphabetic style. I've noticed that line breaks after the dash between the page numbers (e.g. for journal entries) could occur.

Is it possible to prevent this and make the page numbers with the dash and the additional p. or pp. a non breakable unit?

You can use the extdash-package. It should be loaded as the very last package (even after hyperref and bookmark).

It defines unbreakable dashes and dashes so that LaTeX can break the connected words at other places then the hyphen.

Use \== for an unbreakable en-dash.

\documentclass{article}

\begin{filecontents}{test.bib}
@BOOK{test,
TITLE = {Philosophiae Naturalis Principia Mathematica},
AUTHOR = {Newton, Isaac},
YEAR = {1687},
}
\end{filecontents}

\usepackage[backend=biber]{biblatex}

• Thank you. One problem I have, is that when I use your solution within the bib file for the entry pages, e.g. pages = {10\==20}, biblatex deletes the pp. entry. I think it is because biblatex can't interpret \== as a range of pages. For that case I search for another solution, because always printing the p. or pp. manually is cumbersome. – user2653422 Feb 8 '15 at 16:46
• YEs, you're right, biblatex does not parse the \== – MaxNoe Feb 8 '15 at 16:49
• @moewe I get several hundred errors stating missing control sequence inserted by using the command you provide for my full document. I think one for each autocite command with a given page. – user2653422 Feb 8 '15 at 18:35