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 am using \newline but I get some error message and I was suggested on this forum to use \leavevmode before \newline. It works fine for my code except at few place where I get this error message.

 ! Undefined control sequence.
 l.399 \leavevmode

How to avoid such warning/error?

share|improve this question
Perhaps you meant \leavevmode? Anyways, what are you using \newline for? – Gonzalo Medina Mar 18 '13 at 2:26
I need to add some vertical spacing using newline. – manish Mar 18 '13 at 2:58
up vote 4 down vote accepted

do not use \newline. Use instead

\smallskip% 1/4 line
\medskip%   1/2 line
\bigskip%    1 line

\vspace{<length>}% a length with any valid unit
share|improve this answer
I need a linebreak, i think bigskip is not equivalent to newline. – manish Mar 18 '13 at 7:43
do you have a tabular cell? Or where do you need \newline? – Herbert Mar 18 '13 at 7:48
No, I don't have tabular cell. I need add one vertical spacing within a paragraph. – manish Mar 18 '13 at 7:58
then use something like \\[1cm] if it must be in the same paragraph. However it makes more sense to use an empty line and then one of the skip commands. – Herbert Mar 18 '13 at 8:02

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.