TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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'm using \hrule to draw a line that has the width of the text.

Is there a safe way to leave a gap before and after the line?

The plain code is:


And produces: enter image description here

Coming closer to what I need is:

blablabla \\

Which produces: enter image description here

And, of course, I get error messages when I try:

blablabla \\
\\ blabla
share|improve this question
\hrule, probably. Can you add an example of how you use it? – egreg May 17 '14 at 20:35
Before and after you mean inline? Or a gap before means above? – Sigur May 17 '14 at 20:44
up vote 12 down vote accepted

Try to avoid using \\ just end the paragraph and add space:




If you want a spaced out line.

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.