[Tex/LaTex] Natbib of DOI with bad characters

doinatbib

I have a BibTeX file with the following entry:

@article{Garbrecht1998,
  title={The treatment of flat areas and depressions in automated drainage analysis of raster digital elevation models},
  author={Martz, L.W. and Garbrecht, J.},
  journal={Hydrological processes},
  volume={12},
  number={6},
  pages={843--855},
  year={1998},
  publisher={Wiley Online Library},
  doi={{10.1002/(SICI)1099-1085(199805)12:6<843::AID-HYP658>3.0.CO;2-R}}
}

I'm creating my bibliography with natbib:

\documentclass[twocolumn]{article}
\usepackage[numbers]{natbib}
\usepackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black]{hyperref}

\bibliographystyle{plainnat}
{\scriptsize
\bibliography{refs}}

\end{document}

You'll note that the DOI of the BibTeX entry contains some "bad" characters such as < and >. These should be displayed verbatim in the resulting PDF, but, instead, they are processed into large-angle symbols which cannot be copied and pasted.

How can I get BibTeX+natbib+LaTeX to give me my DOIs verbatim?

Thanks!

Best Answer

\usepackage{doi} will let you typeset all DOI's "verbatim". It will make them links as well.

Related Question