[Tex/LaTex] Does there exist any command / symbol to display i++


$i++$ doesn't look nice. Any better way?

Best Answer

The traditional way to typeset assignments in pseudocode, including a modification of a variable, is to write them in the full form:

$i \gets i + 1$


Alternatively, you can typeset a call to a function "Inc" or "Increment", or even use \textbf{increment} $i$, but it's disputable whether these variants will be more readable than the one the reader is accustomed to.