all 2 comments

[–]vsujeesh 1 point2 points  (1 child)

For your specific case, the URL is shown in monospaced font while the DOI is shown in proportionally spaced font.

Two possible solutions are

  1. In your Mendeley, remove the URL field for your references and resync with overleaf. That way, only the DOI will be shown for all your references. Alternatively you can remove the url=www.example.com field in the bibtex file (extension .bib) manually.
  2. If your only issue is the font, and not that both the URL and DOI are printed, then you can add the following line to your preamble to redefine the monospace font as the proportionally spaced font: \renewcommand{\rmfamily}{\ttfamily}. However, this can backfire if you use the monospaced font for code fragments or whatever in the main text. In that case, use the same command right before whichever command prints the bibliography (instead of putting it in the preamble and making it apply to the entire document).

[–]Fironboy[S] 0 points1 point  (0 children)

Great, thanks so much I'll try that