7

I want to use the command \input{} to insert two textfiles, text1.tex and text2.tex, into my latex working file. I want these two textfiles to produce one single paragraph when I am compiling my working file. However, when I place

\input{text1.tex}\input{text2.tex} 

in a single line in the working file, the content of the two text files still ends up in two different paragraphs in the compiled text. I have tried to put the command \nolinebreak between the two \input{} commands without success.

So, how can I prevent a new paragraph to be produced between the two textfiles?

1
  • 1
    it produces one paragraph for me. Helps to add a trailing % as in \input{text1.tex}%. – Peter Grill Apr 16 '12 at 15:56
11

Remove the empty line in text1.tex or text2.tex which produces the new 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.