I have a bibliography in which I included hyperlinks to the publication sites in the bibliography. Now I would like to include a line break within the hyperlink because the references are too long.
None of the options I have found so far have worked, I would appreciate any help. Apologies, if this has an obvious solution, I'm a Latex beginner. I am using the LaTex compiler on Overleaf.
Here is my code:
\documentclass{scrbook}
\usepackage[backend=biber, style=chem-angew]{biblatex}
\usepackage{hyperref}
\DeclareFieldFormat{doilink}{%
\iffieldundef{url}{%
#1%
}{%
\href{http://dx.doi.org/\thefield{url}}{#1}%
}%
}
\DeclareBibliographyDriver{article}{%
\printtext[doilink]{%
\usebibmacro{author}%
\newunit
\usebibmacro{journal+issuetitle}%
\newunit
\usebibmacro{note+pages}%
}%
}
\addbibresource{Library.bib}
\begin{document}
\noindent
Reference 1\autocite{RN398}
\newline
Reference 2\autocite{RN404}
\printbibliography[heading=none]
\end{document}
and my References
@article{RN398,
author = {Stabile, Paolo and Lamonica, Alessandro and Ribecai, Arianna and Castoldi, Damiano and Guercio, Giuseppe and Curcuruto, Ornella},
journal = {Tetrahedron Lett.},
volume = {51},
number = {37},
pages = {4801-4805},
url = {10.1016/j.tetlet.2010.06.139},
year = {2010}
}
@article{RN404,
author = {Cordes, D. B. and Hua, G. and Slawin, A. M. and Woollins, J. D.},
journal = {Acta Crystallogr C},
volume = {67},
number = {Pt 12},
pages = {509-514},
url = {10.1107/S0108270111049900},
year = {2011}
}
