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 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. –  user15662 Mar 18 '13 at 2:58
add comment

1 Answer

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. –  user15662 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. –  user15662 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
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.