Page MenuHomePhabricator

support color in TeX formulas
Closed, ResolvedPublic

Description

Author: mark_sweep

Description:
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.


Version: unspecified
Severity: enhancement

Details

Reference
bz1663

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:14 PM
bzimport added a project: Math.
bzimport set Reference to bz1663.
bzimport added a subscriber: Unknown Object (MLST).

dr.burnett wrote:

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.

lupin.wp wrote:

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

Attached:

robchur wrote:

Applied to CVS HEAD.

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:23 AM
epriestley added a commit: Unknown Object (Diffusion Commit).
epriestley added a commit: Unknown Object (Diffusion Commit).
epriestley added a commit: Unknown Object (Diffusion Commit).
epriestley added a commit: Unknown Object (Diffusion Commit).