TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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
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
up vote 9 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.