0

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?

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}}
| improve this answer | |

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