Closed dbitouze closed 2 years ago
The option breaklinks does nothing at all with pdftex or luatex (and not much with other drivers too, imho the only driver with some code here is hdviwind.def).
You see simply some difference between paragraph building of the engines. With this for example both break the link:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
xxxxxxxxxxxxxxxxxx Fusce mauris. Vestibulum xxxxxxx
\url{https://www.foofoofoofoofoofoofoofoofoofoo.org}
\end{document}
The following MWE shows that the
hyperref
'sbreaklinks
option is honored withlualatex
but not withpdflatex
:lualatex
, the URL is broken at the line (and page) break (as expected),pdflatex
, the URL is not broken at the line (and page) break.\documentclass{article} \usepackage{lipsum} \usepackage[base]{babel} \usepackage[breaklinks]{hyperref} \begin{document} \lipsum[1-5] Fusce mauris. Vestibulum luctus \url{https://www.foofoofoofoofoofoofoofoofoofoo.org} \end{document}