Skip to content

Instantly share code, notes, and snippets.

@hellerbarde
Created August 7, 2017 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellerbarde/9cd5418245d590e0c99b2751a1281e87 to your computer and use it in GitHub Desktop.
Save hellerbarde/9cd5418245d590e0c99b2751a1281e87 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[dvipsnames]{xcolor}
\colorlet{LightRubineRed}{RubineRed!70!}
\colorlet{Mycolor1}{green!10!orange!90!}
\definecolor{Mycolor2}{HTML}{00F9DE}
\definecolor{matrixcolor}{HTML}{FF0000}
\newcommand{\red}{\textcolor{matrixcolor}}
\begin{document}
This document present several examples on how to use the \texttt{color} package
to change the colour of elements in \LaTeX.
$$ \sum_{\red{foo}}^{bar} x^2 + y^3 $$
\begin{itemize}
\item \textcolor{Mycolor1}{First item}
\item \textcolor{Mycolor2}{Second item}
\item \red{Second item}
\end{itemize}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment