1

I have been a writing a simple program using TeX programming like

Hello, World!
How are you.
\bye

I want the two sentences to in different lines but they come in same line. Using \\ it gives an error undefined control sequence. How can it be shifted to new line and also how to start a new paragraph?

Werner
  • 603,163
Mistha
  • 69

3 Answers3

7

The basic structural element of a typeset document is the paragraph. TeX separates paragraphs by \par command which is automatically inserted at each empty line in source document (when the common catcode settings are done). Thus, you can try two approaches:

wipet
  • 74,238
6

Use \par to start a new paragraph (or leave a blank line between text blocks):

Hello, World!

How are you.
\bye

or

Hello, World!\par
How are you.
\bye

Alternatively, but highly unlikely, use \obeylines:

\obeylines
Hello, World!
How are you.
\bye
Werner
  • 603,163
0

I advise you to consult the introduction on Latex, see this post or directly The (not so) short introduction to LaTeX2e.

The particular answer to your question is to use \\ or \newline.

luneart
  • 534