0

I'm trying to break a URL in the bibliography. I used \\, thinking that it would solve the problem but while it broke the URL it also added the ASCII code for \.

\documentclass{report}

\usepackage{fullpage}

\usepackage[backend=biber, style=apa, natbib]{biblatex} \addbibresource{bibtoolong.bib}

\begin{document}

\cite{problematicentry}

\cite{problematicentry2}

\printbibliography \end{document}

This is the bib file:

@online{problematicentry,
  title                     =   {{aaaaaaaaa}},
  organization              =   {bbbbbbbbbbbbbbbbbbb},
  url                       =   {https://cccccc.com/ddddddddd/eeee/ffff/gggggggggggggggggggggggggggggggggggggggg/hhh/iiiiiiii/jjjjjjjjjj},
  date                      =   {2023-07-22}
}

@online{problematicentry2, title = {{aaaaaaaaa}}, organization = {bbbbbbbbbbbbbbbbbbb}, url = {https://cccccc.com/ddddddddd/eeee/ffff/\gggggggggggggggggggggggggggggggggggggggg/hhh/iiiiiiii/jjjjjjjjjj}, date = {2023-07-22} }

The result looks like this: enter image description here

Is there a way to prevent the characters from appearing while manually breaking the URL?

Dunno
  • 329

1 Answers1

0
\documentclass{report}

\usepackage{fullpage}


\usepackage[backend=biber, style=apa, natbib]{biblatex}
\usepackage{xurl}
\addbibresource{bibtoolong.bib}

\begin{document}

\cite{problematicentry}

\cite{problematicentry2}

\printbibliography
\end{document}

It solved my problem but xurl must be added after biblatex

Dunno
  • 329