I am writting my Bachelor Thesis using Overleaf and I want to hyperlink each references to its corresponding DOI. I am using natibib package with the following commands.
\documentclass[12pt]{report}
\usepackage[sort&compress,numbers,square]{natbib}
\bibliographystyle{achemso}
.
.
.
\newpage
\bibliography{2_references.bib}
\addcontentsline{toc}{chapter}{References}
I've tried many things such as adding title = {\href{https://doi.org/10.1515/ntrev-2015-0031}{Improving the tribological behavior of internal combustion engines via the addition of nanoparticles to engine oils}}
at the .bib file. It does work and it links me to the corresponding DOI. I've tried also repeating this for all the required fields. However, when I place, for example: author = {\href{https://doi.org/10.1515/ntrev-2015-0031}{Ali, Mohamed Kamal Ahmed and Xianjun, Hou}},
it is not displayed correctly in the pdf.
Is there a way that can automatically link all the reference entry to the DOI as it can be seen in many papers? Thank you.
This is how it looks using the title = {\href{https://doi.org/10.1515/ntrev-2015-0031}{Improving the tribological behavior of internal combustion engines via the addition of nanoparticles to engine oils}}
command. It works perfectly and links me to the DOI.
This is how it looks using \href{}{}
in each entry.
This is what I'm looking for. If you click any section of the reference it'll guide you to it's DOI.
\bibliography{2_references}
, not\bibliography{2_references.bib}
.title
field and some online depository of the publication? Put differently, what are you trying to achieve by mimicking the appearance of bibliographic entries that's practiced by some journals?doi
orurl
field, all you need to do, really, is load thehyperref
package with suitably chosen options. You should be confident in your readers' ability to click on a doi field; nobody's going to complain to you that they weren't able to obtain a copy of some reference online because your publication failed to make the entire entry into a hyperlink.