I would like to display a = b .+ 1
But it is displayed as a = b. + 1 (moves . next to b).
|
I would like to display But it is displayed as |
||||
|
|
TeX (and so LaTeX) doesn't interpret spaces in the code for math formulas, but relies on its predefined rules. For TeX Consecutive ordinary symbols are set without any space between them; instead, the combination
will be set with spaces around the binary operation symbol. Any subformula can be changed into a binary operation symbol using Of course it's possible to say
each time, but it's best to have a command for this if it appears more than a couple of times. |
||||
|
If this is MATLAB code, and not regular math, then the
I only mention this because I'd never seen |
|||||||||||||
|