我有一个 bibtex 文件,其中每个元素都有一个 url,例如:
@article{preiner_gaussian-product_2019,
title = {Gaussian-product subdivision surfaces},
volume = {38},
issn = {0730-0301, 1557-7368},
url = {https://dl.acm.org/doi/10.1145/3306346.3323026},
doi = {10.1145/3306346.3323026},
language = {en},
number = {4},
urldate = {2020-05-22},
journal = {ACM Transactions on Graphics},
author = {Preiner, Reinhold and Boubekeur, Tamy and Wimmer, Michael},
month = jul,
year = {2019},
pages = {1--11},
file = {Full Text:/home/makogan/Zotero/storage/4VCQH8QL/Preiner et al. - 2019 - Gaussian-product subdivision surfaces.pdf:application/pdf}
}
我试图使它在编译最终的 pdf 时,文章的标题链接到 url,例如:
\href{https://dl.acm.org/doi/10.1145/3306346.3323026}{Gaussian-product subdivision surfaces}
换句话说,我需要配置命令:
\bibliography{bibliography}
\bibliographystyle{ieeetr}
保证参考文献中的标题(如果有)是指向原始文档的可点击链接。
答案1
看起来你正在颠倒\href输入。正确的用法\href
是
\href{https://web/address/link}{Text to be displayed}
应用此修正后,输出将是
这是主文本的最小代码
\documentclass{article}
\bibliographystyle{ieeetr}
\usepackage{hyperref} % you can add the option [hidelink] if you dont want to show the square box, the links would still be active
\begin{document}
Check ref.1 \cite{preiner_gaussian-product_2019}.
\bibliography{reference}
\end{document}
这是 bib 文件中更正后的 bib 条目配置
@article{preiner_gaussian-product_2019,
title = {\href{https://dl.acm.org/doi/10.1145/3306346.3323026}{Gaussian-product subdivision surfaces}},
volume = {38},
issn = {0730-0301, 1557-7368},
url = {https://dl.acm.org/doi/10.1145/3306346.3323026},
doi = {10.1145/3306346.3323026},
language = {en},
number = {4},
urldate = {2020-05-22},
journal = {ACM Transactions on Graphics},
author = {Preiner, Reinhold and Boubekeur, Tamy and Wimmer, Michael},
month = jul,
year = {2019},
pages = {1--11},
file = {Full Text:/home/makogan/Zotero/storage/4VCQH8QL/Preiner et al. - 2019 - Gaussian-product subdivision surfaces.pdf:application/pdf},
}
请注意,这样您就无法从url
bib 条目中的字段中受益。如果您使用其他书目样式(例如\bibliographystyle{IEEEtran}
,url
您输入的字段将显示在 bib 条目的末尾,如下所示
在这种情况下,你还需要将参考标题链接到网址吗\href
?嗯,我想这取决于你!