Answers for "change color latex"

10

tex color text

\usepackage{xcolor}
\begin{document}

This is a sample text in black.
\textcolor{blue}{This is a sample text in blue.}

\end{document}
Posted by: Guest on June-06-2020
2

latex coloured text

\textcolor{red}{
}
Posted by: Guest on October-30-2020
5

text color in latex

\textcolor{<color name goes here}{<the text which you want to color goes here>}
Posted by: Guest on March-20-2021
0

how to change color page in latex

\documentclass{article}
\usepackage{lipsum}% for auto generating text
\usepackage{afterpage}
\usepackage{xcolor}
\begin{document}
\lipsum[1-12]
\pagecolor{yellow}\afterpage{\nopagecolor}
\lipsum[22-30]
\end{document}
Posted by: Guest on March-13-2021
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