josephwright / biblatex-phys

A biblatex implementation of the AIP and APS bibliography style
LaTeX Project Public License v1.3c
25 stars 5 forks source link

No link for report type #29

Open charlieprior opened 2 years ago

charlieprior commented 2 years ago

When citing a report type of the format @report{example_report_2021, location = {Geneva}, title = {Example Report.}, url = {https://www.example.com}, shorttitle = {Example}, institution = {{CERN}}, author = {Einstein, A}, urldate = {2022-01-19}, date = {2021}, langid = {english}, } and using hyperref, there is no link in the bibliography to the included url.

Specifically, I am using the following options: \usepackage[backend=biber, style=phys, natbib, maxbibnames=4, articletitle=false, biblabel=brackets]{biblatex}

charlieprior commented 2 years ago

For anyone looking for a solution to this, add the following to your document: \DeclareFieldFormat[report]{title}{\printtext[doi/url-link]{\mkbibemph{#1}}}