Last modified: 2010-05-15 14:35:46 UTC
I'm filing this on behalf of User:Cburnett, who asked about color support in TeX formulas. I think it would be fairly easy to support this, both in TeX and HTML output. The parser would have to recognize a new command, say, \color{}{}, and the TeX output would have to load color.sty, which is a standard component of the LaTeX graphics package. How to handle named colors and RGB colors in a uniform way across TeX and HTML is a bit tricky, but doable.
Thanks Mark. As a motivating example, for [[Sufficiency (statistics)]], if you can separate a function into two functions then T is a sufficient statistic (see first equation on that page). I think it would be beneficial to add color into the factorization (one color for parameters and another for observed data) to visually show what needs to be factorized.
Created attachment 1212 [details] simple patch This patch adds color support. Note that this currently forces PNGs to be rendered rather than HTML if \color is used in a formula. A list of named colors is here: http://www-cryst.bioc.cam.ac.uk/~marko/xray/dvips_color.html
Applied to CVS HEAD.