I tried to nest textattributes and matrices and this seems to be a bug.
An array, assumed to be in mathfrac is in the curly brackets:

In principle: \mathfrac { TEXT array{ TEXT,TEXT,... } TEXT }
comes out to be

$\small \mathfrak { ABC \begin{bmatrix} \text{this is mathfrak} & \text{this should be mathfrak} \\ \text{this should be mathfrak} & \text{this should be mathfrak} \\ \text{this should be mathfrak} & \text{ it should be up to here!} \\ \end{bmatrix} \text{ surprise: here it is mathfrak again!} } $


I have just tried something similar on my local $\LaTeX$ distribution (MiKTeX). I gave it this:

    this & is \\
    in & mathfrak

and it came out like this: $$ \mathfrak{ mathematical} \quad \begin{bmatrix} this & is \\ in & mathfrak \end{bmatrix} \quad \mathfrak{fraktur} $$ which differs from MathJax's handling of it: $$\mathfrak{ mathematical \quad \begin{bmatrix} this & is \\ in & mathfrak \end{bmatrix} \quad fraktur}$$

I have no idea how $\LaTeX$ is supposed to handle this sort of construction, but it might be that certain math environments are designed to override the current (math-)fonts with a neutral form. (I would be interested to hear if any $\LaTeX$ distributions handle this differently.)

At any rate, though there is a discrepancy in the way this construction is handled — and it also doesn't match what you expected to happen — I don't think there is much that can be done about it here on SE. Perhaps mention it at the MathJax issues forum.

  • $\begingroup$ The MathJax developers follow this site, so it's half-fine. (See you tomorrow, by the way) $\endgroup$ – Asaf Karagila Nov 11 '12 at 11:31
  • $\begingroup$ Thanks @Asaf: you learn something everyday, I guess. (If you're braving the cold weather tomorrow, I'll be around the Archive.) $\endgroup$ – user642796 Nov 11 '12 at 11:44
  • $\begingroup$ (Here it's a bit cold, but a lot windy and full of dust. I suppose plain cold is a slight improvement) $\endgroup$ – Asaf Karagila Nov 11 '12 at 11:45
  • $\begingroup$ (Well, dusty and full of grad missiles. Not to be confused with grad students, which are also abundant.) $\endgroup$ – Asaf Karagila Nov 11 '12 at 12:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .