[Tex/LaTex] Removing spaces between “words” in math mode


I'd like to set $1024 \times 768$ without any space between the three items. Is this possible? If so, how?

E.g., what I get is:

1024 x 768

and what I want is:


Best Answer

Math binary operators and relations automatically add appropriate spaces between the symbol and their operands. If you want to remove this space, you can turn the operator into a regular symbol by enclosing it in braces. For example

$1024 {\times} 768$

If you will be using this often you can also define a new command and say something like

$1024 \stimes 768$

where \stimes is a symbol version of the \times operator.