Text FormattingHow to change the font of an URL link in Latex

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Eskabot
Posts: 2
Joined: Thu May 18, 2023 4:26 pm

How to change the font of an URL link in Latex

Post by Eskabot »

Sorry if this has already been adressed but when you put a link in a Latex document the police is different from what the defined font is. So I was asking myself how to change this font and with what command. Thx

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

How to change the font of an URL link in Latex

Post by Bartman »

The \url command of the url package uses a monospaced font. Load a different than the default or use the \urlstyle command of the same package to choose another style.
Eskabot
Posts: 2
Joined: Thu May 18, 2023 4:26 pm

How to change the font of an URL link in Latex

Post by Eskabot »

Thanks tried it and it worked
Post Reply