Tag Info

New answers tagged

3

You can achieve it by testing if doi is empty inside the function format.url. Replace your format.url by the following: FUNCTION {format.url} { doi empty$ { url duplicate$ empty$ { pop$ "" } { "\urlprefix\url{" swap$ * "}" * } if$ } { "" } if$ }


1

natbib in the presence of hyperref uses the url package to format these and that package defines a sans serif style which you can invoke with \urlstyle{sf} For the DOI field, natbib defines the command \doi via something like \providecommand{\doi}[1]{doi: #1} which you can override with \newcommand{\doi}[1]{doi: \url{#1}} ...


1

You could redefine the rm-urlstyle: \documentclass{article} \usepackage{natbib,hyperref} \usepackage{helvet} % helvetica font \renewcommand{\familydefault}{\sfdefault} %\usepackage{sfmath} % helvetica for math mode too \makeatletter \def\url@rmstyle{% \def\UrlFont{\sffamily}} \makeatother \begin{document} test \citet{foo2010} ...



Top 50 recent answers are included