Answers for "chamge url color latex"

10

url in latex

\usepackage{hyperref}
%Use \href{URL}{DESCRIPTION} to add a link with description.
%Use \url{URL} to add a link without a description.
Posted by: Guest on September-26-2020
0

change the color of the description of a url latex

\documentclass{article}
\usepackage{xcolor}
\usepackage[colorlinks = true,
            linkcolor = blue,
            urlcolor  = blue,
            citecolor = blue,
            anchorcolor = blue]{hyperref}

\newcommand{\MYhref}[3][blue]{\href{#2}{\color{#1}{#3}}}%

\begin{document}
Here is \MYhref{http://www.google.com}{Google} and \MYhref{http://www.yahoo.com}{Yahoo!}.

Here is \MYhref[brown]{http://www.google.com}{Google} and \MYhref[red]{http://www.yahoo.com}{Yahoo!}.
\end{document}
Posted by: Guest on July-01-2020

Browse Popular Code Answers by Language