我的书目中的一个 .bib 文件中有此条目:
@misc{spreadsheets2,
author = {Lima, Anderson B. E.},
title = {Statistical Analysis of Table 3 of: "Drought Monitoring and Forecasting across Turkey: A Contemporary Review"},
year = {2023},
note = {Last accessed 28 July 2023},
url = {https://docs.google.com/spreadsheets/d/e/2PACX-1vSy0AU6U1roqJ3D9M5Q2mK4AvlMB8r14YeINpgHILXCGrhp_LnK9et3HRGChPic72w_DeX75rnDPh6H/pubhtml}
}
打印时会溢出\printbibliography[title=Referências]
:
如何阻止 URL 溢出?
答案1
确保加载xurl
后 biblatex
。并且,请考虑note
用字段替换该urldate
字段。
\documentclass[portuguese]{article}
\begin{filecontents}[overwrite]{literatur.bib}
@misc{spreadsheets2,
author = {Lima, Anderson B. E.},
title = {Statistical Analysis of Table 3 of
\enquote{Drought Monitoring and Forecasting
across Turkey: A Contemporary Review}},
year = {2023},
urldate = {2023-07-28},
url = {https://docs.google.com/spreadsheets/d/e/2PACX-1vSy0AU6U1roqJ3D9M5Q2mK4AvlMB8r14YeINpgHILXCGrhp_LnK9et3HRGChPic72w_DeX75rnDPh6H/pubhtml}
}
\end{filecontents}
\usepackage[T1]{fontenc}
\usepackage{babel,csquotes}
\usepackage[backend=biber, style=numeric]{biblatex}
\addbibresource{literatur.bib}
\usepackage{xurl}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\begin{document}
\nocite{*}
\printbibliography[title=Referências]
\end{document}