当使用 hyperref 时,引用链接不起作用并变成 (??)

当使用 hyperref 时,引用链接不起作用并变成 (??)

当我使用时hyperref,我的链接就变成了(??)

可重现的代码:

\documentclass[12pt,a4paper,notitlepage,twoside]{article}



%\usepackage[hyphens]{url}
\usepackage[alf]{abntex2cite}  %My package for citations
\usepackage{hyperref}          %if i remove this, the references works

\begin{document}


\section{Intro}

According to \cite{test}

\bibliography{ref}


\end{document}

我有一个文件 ( ref.bib),内容如下:

@misc{test,
  author = {Bryce Graham},
  title = {Hydrological Modelling:
How and Why it is Used},
  year = 2009,
  url = {https://dpipwe.tas.gov.au/Documents/Hydrological%20modelling_how%20and%20why%20it%20is%20used.pdf},
  urlaccessdate = {08/07/2021}
}

编译器:XeLaTeX

答案1

这个怎么样?

\documentclass[12pt,a4paper,notitlepage,twoside]{article}
\usepackage{hyperref}       
\usepackage[alf]{abntex2cite}   

\begin{document}
\section{Intro}

According to \cite{test}

\bibliography{ref}
\end{document}

在此处输入图片描述

相关内容