I'd like to have the equation colorization process be somewhat semantic, i.e., I can still type equations or math the ordinary way, except they occur in an environment in which the colorization happens automatically, so:


_1\psi_1 \left[\begin{matrix} a \\ b \end{matrix} ; q,z \right] 
= \sum_{n=-\infty}^\infty \frac {(a;q)_n} {(b;q)_n} z^n
= \frac {(b/a,q,q/az,az;q)_\infty }

would result in things like this:
(source: maresh.info)

without having to insert \color{} everywhere Is there a package which already does this?

  • 2
    Automating that seems difficult. What you should do is define macros (specifying the style, colour) for your variables and use those macros throughout your derivation.
    – jub0bs
    Feb 19, 2014 at 15:51
  • Isn't this a symptom of sensory aphasia? Feb 20, 2014 at 18:34
  • @JohnKormylo: you're looking for synaesthesia. q-hypergeometric function identities mostly look like wallpaper -- see /Gasper & M. Rahman Basic Hypergeometric Series/ for instance and it is really difficult to follow what's going on. Color makes it easier, and I'd prefer to have an automatic mechanism for producing colorization. Mar 5, 2014 at 19:33
  • Ah yes, upload.wikimedia.org/wikipedia/commons/thumb/6/60/… I stand corrected. Mar 5, 2014 at 19:42
  • 1
    I am not ready to publish my project, yet, but I enclose a teaser for now. :-) striz7.fame.utb.cz/docasne/tex-sx/mal-math.pdf
    – Malipivo
    Mar 24, 2015 at 7:48

1 Answer 1


enter image description here






_1\psi_1 \left[\begin{matrix} a \\ b \end{matrix} ; q,z \right] 
= \sum_{n=-\infty}^\infty \frac {(a;q)_n} {(b;q)_n} z^n
= \frac {(b/a,q,q/az,az;q)_\infty }


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.