I am trying to write a script (that will be easy) to create a xkcd
color set for the package xcolor
. Look at this MWE:
\documentclass{article}
\usepackage{xcolor} %
\definecolorset{HTML}{xkcd}{}{%
OneColor,fcc2d9;%
LastColor,56ae57%
}
\begin{document}
\textcolor{xkcdOneColor}{OneColor}
\textcolor{xkcdLastColor}{LastColor}
\end{document}
...this will fail with:
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
[...]
! Missing number, treated as zero.
<to be read again>
f
l.6 }
?
If I change the first f
in OneColor
to a
, for example:
\definecolorset{HTML}{xkcd}{}{%
OneColor,acc2d9;%
LastColor,56ae57%
}
...now it works ok.
I understand I can circumvent this easily (seems that uppercase F does not create any problem), but I am curious: is it a bug or a driver (/me) error?
base
package), you can report bug on the project webpage. If you are not sure about a bug, you can always ask in our chat room. There is always somebody around picking it up.