I've prepared my bibliography using biblatex
, and my DOI addresses are not breaking their lines properly. I know that using pdflatex
will solve this issue, I have to compile my document using latex
-> dvips
-> ps2pdf
due to using pstricks
.
Using the information from Biblatex: URL-breaking not working in DVI-mode, I tried using the breakurl
package, and discovered that URLs line-break properly, but the DOIs still do not.
Any help would be appreciated.
Here is a MWE
\documentclass{article}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\hypersetup{colorlinks,linkcolor=[RGB]{0,0,150}, citecolor=[RGB]{0,123,0},urlcolor=[RGB]{80,0,100}}
\usepackage[anythingbreaks]{breakurl}
\usepackage[citestyle=authoryear-comp,]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{liu2013condition,
title={Condition-based maintenance for continuously monitored degrading blah blah blah longer title},
author={Liu, Xiao and Li, Jingrui and Al-Khalifa, Khalifa N},
journal={IIE Transactions},
volume={45},
number={4},
pages={422--435},
year={2013},
publisher={Taylor and Francis},
doi = {10.1080/0740817X.2012.690930},
url={https://tex.stackexchange.com/questions/20768/how-to-allow-line-break-in-a-long-hyperlink-in-a-pdf-compiled-by-latex-dvips-ps2}
}
\end{filecontents}
\addbibresource{\jobname.bib} %Loads bibliography file
\usepackage[utf8]{inputenc}
\nocite{*}
\begin{document}
\printbibliography
\end{document}
\href
and\nolinkurl
and this doesn't work with breakurl.http://dx.doi.org/
would be missing.