Page MenuHomePhabricator

Fully support the LaTeX command \definecolor in Mathoid
Closed, ResolvedPublic

Description

Mathoid and its dependencies do not currently support the \definecolor LaTeX command.

http://adereth.github.io/blog/2013/11/29/colorful-equations/ states that we have to add
MathJax.Hub.Config({ TeX: { extensions: ["color.js"] }});

Event Timeline

mobrovac raised the priority of this task from to Needs Triage.
mobrovac updated the task description. (Show Details)
mobrovac added a project: Mathoid.

MathJax-node PR #7 includes the fix to enable \definecolor usage.

oh this is more involved

physikerwelt@drmf-beta:~/md/node_modules/texvcjs/bin$ ./texvcjs '\definecolor{myorange}{rgb}{.123,.456,.789}' -v
+\definecolor {myorange}{rgb}{.123,.456,.789}

vs

.physikerwelt@drmf-beta:~/md/node_modules/texvcjs/bin$ ./texvcjs '\definecolor{myorange}{rgb}{123,123,123}' -v
SSyntaxError: Expected ",", "." or [ \t\n\r] but "2" found.

we need to check how texvccheck defines cnum

Texvcjs should accept definecolor as explained here

Change 228845 had a related patch set uploaded (by Physikerwelt):
WIP: Fix RGB Problem

https://gerrit.wikimedia.org/r/228845

Change 228845 merged by Mobrovac:
Fully support the LaTeX command definecolor in Mathoid

https://gerrit.wikimedia.org/r/228845

mobrovac assigned this task to Physikerwelt.
mobrovac triaged this task as High priority.
mobrovac removed a project: Patch-For-Review.
mobrovac set Security to None.
mobrovac removed a subscriber: gerritbot.