
긴 영숫자 문자열이 포함된 URL 링크를 끊는 방법은 무엇입니까?
예를 들면 다음과 같습니다.
\documentclass[12pt,a4paper,twoside]{article}
\begin{filecontents}[overwrite]{ref.bib}
@misc{Reuters_2023,
author = "Reuters",
title = "Example of long URL",
year = 2023,
url = "https://www.facebook.com/Reuters/posts/pfbid0Gw8qyhJSCCBeAzfVRXcV9aMBsy5pzmeTfbx2WeTmGySdpSYPBxtqJqkkuhDX9Fb9l",
}
\end{filecontents}
\usepackage{apacite}
\bibliographystyle{apacite}
\usepackage[hyphens,spaces,obeyspaces]{url}
\begin{document}
\cite{Reuters_2023}
\bibliography{ref}
\end{document}
답변1
패키지 가 로드되는 것을 apacite
감지 url
한 다음 이를 변경합니다. 따라서 에서 변경한 내용이 xurl
사라질 수 있습니다. 그러나 대신 다음을 xurl
통해 로드하면
\usepackage{apacite}
\AtBeginDocument{\usepackage{xurl}}
url
로드 하는 대신 의 확인 xurl
후에 실제로 로드되며 변경 사항은 적용되지 않습니다.apacite
url
약간 해킹적입니다... 또한 apacite
거의 10년 동안 업데이트되지 않은 것 같으니 xurl
.