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

  • 4
    Please provide a little context. Is this used for math, computer science or else? As software programming expression I would write it as \texttt{i++}. – Martin Scharrer May 17 '11 at 21:17
  • 3
    From your previous questions I can tell it's about pseudocode typesetting. But it will not be obvious to other people. You should expand your question and its title to have sufficient information about what you need. – Andrey Vihrov May 17 '11 at 21:22

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.

| improve this answer | |

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.