Last active
August 21, 2024 17:27
-
-
Save diego898/4457cbdf48153bc7a75755cbd798cd63 to your computer and use it in GitHub Desktop.
Defining some nice colors for use in latex math. Some are from seaborn, others are from https://flatuicolors.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Load color package | |
\usepackage{xcolor} | |
% Define Seaborn colors | |
\definecolor{seabornBlue}{RGB}{76,114,176} | |
\definecolor{seabornGreen}{RGB}{85,168,104} | |
\definecolor{seabornRed}{RGB}{196,78,82} | |
% Define FLATUI colors | |
\definecolor{orangePumpkin}{RGB}{211,84,0} | |
\definecolor{orangeCarrot}{RGB}{230,126,34} | |
\definecolor{blueBelizeHole}{RGB}{41,128,185} | |
\definecolor{redAlizarin}{RGB}{231,76,60} | |
\definecolor{redNasturcianFlower}{RGB}{232,65,24} | |
% Define color shortcuts | |
\newcommand{\blue}[1]{\textcolor{blueBelizeHole}{#1}} | |
\newcommand{\green}[1]{\textcolor{seabornGreen}{#1}} | |
\newcommand{\red}[1]{\textcolor{redNasturcianFlower}{#1}} | |
\newcommand{\orange}[1]{\textcolor{orangeCarrot}{#1}} | |
% Example | |
\frac{\green{c}^3}{\red{y^5}} + \sqrt{\orange{3x+5}} + \blue{\int_{I=1}^\infty} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice colors, thanks for this gist!