Take the 2-minute tour ×
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.

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

share|improve this question
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
add comment

1 Answer

up vote 7 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$

Result

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
add comment

Your Answer

 
discard

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.