TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is an example document.



We define two more $B$--symbols, $\zeta_1$ and $\zeta_2$, as follows: for each $x_J \in M(B)$ and each $j \in J$, $\zeta_1(B, J, j)$ and $\zeta_2(B, J, j)$ are integers given by:
           \zeta_1(B, J, j) \; &:= \phantom{2} \mathrel{\phantom{\times}} |\{b \in B : b > j\}|
        \\ \zeta_2(B, J, j) \; &:= 2 \times |\{b \in J : b > j\}|.
We define the $B$--symbol $\zeta$ as follows: for each $x_J \in M(B)$ and each $j \in J$, $\zeta(B, J, j)$ is given by $\zeta_1(B, J, j) - \zeta_2(B, J, j)$.


Here is a close-up of the output:

The relevant code used to attempt to add the correct amount of extra spacing is this bit:

\phantom{2} \mathrel{\phantom{\times}}

But this isn't spaced correctly. It produces slightly too much spacing, as you can see from the picture. How come?

share|improve this question
up vote 10 down vote accepted

You can use


to get the proper spacing. The problem with your code is that \times is of type Bin and not Rel and, as egreg has pointed out in his comment, \mathbin and \mathrel produce different spaces (in general): \medmuskip and \thickmuskip, respectively. Using \mathbin instead of \mathrel in your code would have also produced the desired alignment.

share|improve this answer
I chose your answer because your solution works, but I am curious as to why my attempted solution didn't work. – Hammerite Nov 22 '11 at 13:40
The problem is exactly that \mathbin and \mathrel produce different spaces (in general): \medmuskip and \thickmuskip (they can be equal only if the glue in the line is stretched), which is not the case inside align*. – egreg Nov 22 '11 at 15:44
@egreg: I've included your comment in my answer. It's really a pleasure to have people like you around here. – Gonzalo Medina Nov 22 '11 at 17:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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