Update: there is a version on github now, and I submitted it to CTAN…
After reading the (very) fun post about colors name at xkcd, I decided to create a small package to add the color list to my LaTeX documents…
After circumventing a small bug in xcolor, and ten lines of python, I have managed to create a small package that I am sharing here.
To use it, simply load with \usepackage{xkcdcols}
and you’ll have all the color from the xkcd page with names like xkcdTeal
(note the capitalization) and xkcdDarkPastelGreen
, like in this snippet:
\documentclass{article} \usepackage{xkcdcols} % \begin{document} \textcolor{xkcdDust}{OneColor} \textcolor{xkcdDarkPastelGreen}{AnotherColor} \end{document}
And now you can have
\textcolor{xkcdBabyPoop}{This is not yummy at all}
or
\textcolor{xkcdGreenyGrey}{What a nice color name\ldots}
all over the place!
Compressed file following…
Leave a Reply