I use indentation of the first line for paragraphs. When a new paragraph starts after a code listing (or some other figure), this looks a bit unpleasant to me. What is the typographical convention for this? Is it OK to use \noindent to supress the indentation?
|
|
||||
| show 1 more comment |
|
The typographical convention is to indent the paragraph following a figure (even a display figure). The reason is simple, suppose you have a figure on top of the page and text underneath it, there is nothing signalling that this is the beginning of a new paragraph or the start of a sentence from a paragraph that ended at the previous page. (La)TeX incorporates paragraph indentation in this fashion as a default. Even when images are placed in the middle, it is good typography to be consistent and they do not look "out of place", if you treat the figures properly. Here is such an example from a statistics book.
|
||||
|
|
|
|
|||
|
|
|
While I agree entirely with David Carlisle's answer, when it comes to reading my own
or I use |
|||||
|

TeXwill know it is not a new paragraph. If that doesnt do, I will move the figure. This clears up the look in the file and you will not do any local fixes. – zeroth Jan 24 '12 at 22:02\noindentwould be correct. – Peter Grill Jan 25 '12 at 2:09rds's suggestion, you could also indent the listing. – Marc van Dongen Jan 25 '12 at 8:29