I want to use the \url command but want to show a different text than the url itself. So I chose \href. The problem here is that the result is in a differnt font. Is there a way to syle the shown text of \href in the \url style?
Asked
Active
Viewed 1,553 times
1
1 Answers
3
You can use \nolinkurl inside the second argument of \href. Macro \nolinkurl behaves like \url but it does not add a link because this is already done by \href. Example:
\href{https://www.example.org/}{\nolinkurl{example.org}}
Heiko Oberdiek
- 271,626
hyperref\url? (note the use of\UrlFont). – Werner Apr 16 '18 at 17:35