In the meantime, the only thing I can suggest is to use an HTML entity to represent the capital letter (so that it is not affected by the lower-case transformation). So something like
$VAR = "".ord($var).";"; ... cmp_class => "an equation of the form $VAR = ___"should work. This makes
$VARbe a numeric entity for the letter stored in
$var. For example, if
$var = "B", then
B, which will not be changed when it is turned to lower case, and then when displayed in the browser, you will see a
It's a hack, but the easiest solution I can think of.