1

I read LaTex formula syntax document at wikipedia and KaTex, and found B of \Box is uppercase, not \box.

(1) Is there any reason that only \Box has uppercase in box family? It's very rare that only \Box has uppercase in whole TeX equation symbols.

(2) I'm developing LaTeX parser. Could it be any problem if I treat \Box as case-insensitive?

Youngjae
  • 135
  • Yes! That would be a problem! It would conflate the primitive \box with the macro \Box. – cfr Jun 22 '17 at 03:21
  • Are you aware that TeX is not LaTeX? I'm confused as to why you are reading a document about LaTeX syntax if you are developing a TeX parser. But I'm pretty confused as to why you're trying to develop the latter if you don't (excuse me) know more than this about TeX. – cfr Jun 22 '17 at 03:23
  • @cfr // well, I agree with that I confused TeX and LaTex. Thanks for the comment. – Youngjae Jun 22 '17 at 03:37

1 Answers1

5

\box is a TeX primitive, which is why the uppercase version is used as a symbol. And the language is case sensitive. Frankly, if you don't already know this, you are unlikely to be able to write a "TeX parser".

You may want to start by reading the TeXbook.

For some relevant questions on the site see:

Alan Munn
  • 218,180