我正在尝试破坏参考书目中的 URL。我使用了\\
,以为这样可以解决问题,但它在破坏 URL 的同时还添加了 的 ASCII 代码\
。
\documentclass{report}
\usepackage{fullpage}
\usepackage[backend=biber, style=apa, natbib]{biblatex}
\addbibresource{bibtoolong.bib}
\begin{document}
\cite{problematicentry}
\cite{problematicentry2}
\printbibliography
\end{document}
这是 bib 文件:
@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}
}
有没有办法在手动破解 URL 时阻止这些字符出现?
答案1
\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}
它解决了我的问题,但xurl
必须添加后biblatex