0

I just want to make my URL link underline.

For example below: enter image description here

I can provide my MWE if needed. I am thinking is it just add some commend like:

\DeclareFieldFormat{url}{Available at\addcolon\space\url{#1}}
0

Underlining in LaTeX is hard and I would in general try to avoid it as much as possible.

One way to get an 'underlined' URL is to fake the underlining with the boxes around links in hyperref. This is only a faked underline though since the boxes are not printed. See for example How can I have colored and underlined links with hyperref?.

Another method is explained in How do I underline the DOI in the bibliography using biblatex/biber? (Context: continued work on SAE class) (and stolen from I cannot get a (properly) underlined hyperlink in blue)

\usepackage[normalem]{ulem}

\makeatletter
\DeclareUrlCommand\ULurl@@{%
  \def\UrlLeft{\uline\bgroup}%
  \def\UrlRight{\egroup}}
\def\ULurl@#1{\hyper@linkurl{\ULurl@@{#1}}{#1}}
\DeclareRobustCommand*\ULurl{\hyper@normalise\ULurl@}
\makeatother

\DefineBibliographyStrings{english}{%
  urlfrom = {available at},
}

\DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\space\ULurl{#1}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.