Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors for LaTeX #12

Open
jpfairbanks opened this issue Jul 13, 2020 · 0 comments
Open

Colors for LaTeX #12

jpfairbanks opened this issue Jul 13, 2020 · 0 comments

Comments

@jpfairbanks
Copy link

I added these to my local style file today and figured that if we could agree on the names for julia colors in latex, that would help compatibility for anyone wanting to use them in PGFPlots or Tikz or todonotes:

\usepackage{xcolor}
\definecolor{jlred}{HTML}{CB3C33}
\definecolor{jlblu}{HTML}{4063D8}
\definecolor{jlgrn}{HTML}{389826}
\definecolor{jlprp}{HTML}{9558B2}

Then you can get colored boxes in latex with

\todo[inline,  backgroundcolor=jlprp!30]{#1}
\todo[inline,  backgroundcolor=jlgrn!30]{#1}
\todo[inline,  backgroundcolor=jlblu!30]{#1}
\todo[inline,  backgroundcolor=jlred!30]{#1}

I don't know if anyone else needs this, but in case anyone else wants julia colored illustrations in latex, here is how you do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant