Sometimes I find it hard to keep track of where new paragraphs begin in my document. I have a lot of display equations and \noindent commands, as well as line breaks, blank lines, figures, etc. I can't tell precisely which of these elements are together in one paragraph.

Is there a way to see explicitly in my document (in the compiled pdf) where new paragraphs begin? I think this would be useful for debugging.

  • 2
    One way would be to remove the \noindent commands, which should be used extremely rarely in most documents, anyway. – Paul Gessler Jan 8 '15 at 21:25
  • 2
    If you can't tell where the paragraphs begin and end, how will your reader know? – musarithmia Jan 8 '15 at 21:39
  • 2
    Paragraphs should simply be separated, in the input file, by a blank line. If you're using lots of explicit line breaks by \\ and using lots of \noindent, you're on the wrong road. There should be no blank line after a displayed equation. – egreg Jan 8 '15 at 21:43
  • 4
    @becko if a new paragraph shouldn't be starting, then don't start one. (That is, don't leave a blank line in the source. If you want the whitespace for readability in your source, use comment characters to prevent a new paragraph.) – Paul Gessler Jan 8 '15 at 21:45
  • 3
    It's not clear why you have a problem. In the source paragraphs are clearly marked by a blank line, and in the typeset result by a paragraph indent. If the paragraphs are not easily visible something is wrong, but you don't give any example so it is hard to say what is wrong. – David Carlisle Jan 8 '15 at 22:35

In most document classes a paragraph start should be clearly visible in the output, marked by a section heading or a paragraph indent.

If this is not visually clear then essentially that is a failing in the typographic layout specified by the class. This is one of the objections to teh style of using no indentation and vertical separation for paragraphs as it typically makes it less clear where a paragraph starts.

Note that a blank line in the source file should never be used for cosmetic arrangement of the source file. It is parsed as a TeX instruction and creates the token \par exactly as if you typed \par explicitly. So a blank line should only be used in the source at the end of a paragraph.

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.