# publicmathjax/MathJax

### Subversion checkout URL

You can clone with HTTPS or Subversion.

# Add RGB color model to color extension#287

Closed
opened this Issue · 5 comments

### 2 participants

Collaborator
commented

Add RGB (and other?) color models to the color extension. There are quite a few, but some are easier than others to handle.

Isn't RGB already supported? It is tested by

LaTeXToMathML/colors/definecolor-1a.html

The CMYK model is tested by

LaTeXToMathML/colors/definecolor-1b.html

Collaborator
commented

There is a difference between rgb model and RGB model. The rgb model uses numbers between 0 and 1, while RGB uses 0 to 255. There are also a half dozen others that could be included, if there is time. But I know that wikipedia needed RGB, so added that here.

referenced this issue from a commit in dpvc/MathJax
 dpvc Added RGB color model. Perhaps more later. (Issue #287.) 049739b

LaTeXToMathML/colors/definecolor-1c.html

Verified with Opera, Firefox and Chrome.

=> Ready for released, In testsuite

I think this bug is fixed, do we keep it open to implement additional commands?

BTW, I'm wondering what is exactly the color package that we want to emulate with the color.js extension. It is very similar to

http://www.ctan.org/pkg/color

(minus CMYK and plus RGB)

This other package has RGB as well as many features that are not implemented in color.js:

http://www.ctan.org/pkg/xcolor

Closing this bug as fixed. We should open another issue if we want to implement more color models.

closed this