5

Many people would edit my $\alpha _1$ into $\alpha_1$, do you know whether there are any reasons for the default space?

Which is better?

Since I generate the .tex by Mathematica, the spaces are generated by default. That's why they are there in the first place.

here I asked in Mathematica.SE

6
  • 4
    Do you also have a backslash before the initial as of alphas? And the default is without the whitespace. Why do you think there should be a space?
    – percusse
    Sep 1 '13 at 12:43
  • @percusse I think they have, since I use them in Math.SE Sep 1 '13 at 12:49
  • 1
    @HyperGroups your question isn't very clear really, but note that Math.SE doesn't use TeX it uses MathJax which is an entirely different rendering system (and off topic for this site) although spaces before _ are ignored by mathjax as well. Sep 1 '13 at 12:55
  • @DavidCarlisle Hi, the spaces will also be kept in my .tex file, I don't only use that in Math.SE. Is space needed to remove? Sep 1 '13 at 13:06
  • 1
    @HyperGroups The space is irrelevant it does nothing, most people would not add it but if you've added it you don't need to remove it Sep 1 '13 at 13:23
12

Space tokens in math mode have no effect so $alpha_1$ and $alpha _1$ are equivalent, however alpha is very strange input in math mode. If you intended to compare $\alpha_1$ and $\alpha _1$ then again they are equivalent, but for a different reason in that case. There the space character is just absorbed while parsing the the \alpha command name and does not produce a token at all.

4
  • So there is no need to remove the space in my .tex file? Sep 1 '13 at 13:07
  • @HyperGroups no need to remove them, but no need to add them in the first place. Sep 1 '13 at 13:24
  • 2
    Since I generate the .tex by Mathematica, the spaces are generated by default. That's why they are there in the first place. mathematica.stackexchange.com/questions/31496/… Sep 1 '13 at 13:32
  • 3
    @HyperGroups -- the information about mathematica is very relevant to your question. you might want to edit it into the question itself. Sep 1 '13 at 13:59

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.