[NTG-context] Obscure math/color "bug" (namespace clash)

Alan BRASLAU alan.braslau at cea.fr
Wed Feb 19 09:53:17 CET 2014


I came across the following obscure math/color namespace clash:


\definecolor [tan] [h=d2b48c] % Taken from \setupcolor [x11]

$\tan θ$


One solution would be to give precedence in math mode to the standard mathematical tokens (here \tan).

Another solution would be simply to avoid the use of "tan" (as a color). In colo-imp-x11.mkiv it could be renamed "tan0" (there is already tan1, tan2, tan3). This is somewhat unfortunate as "tan" is a standard X11 color name. On the other hand, one would like to be able to use colors in math mode as well...

So I propose the following patch:

< \definecolor [tan0]                 [h=d2b48c] % ! namespace clash with $\tan$
> \definecolor [tan]                  [h=d2b48c]


More information about the ntg-context mailing list