6

I hope, this question is not too offtopic.

I have a bigger school project which involves some documentation. The documentation is a LaTeX file, and looks like this:

...
some explanation

\section {someCode}
\include{someCode.hs}
some explanation
...

The files someCode.hs.tex are auto-genereated from their corresponding .hs-Files using Pygments and a Makefile.

The Problem is: Each time, I include something, a pagebreak is inserted before. This is neither expected nor wanted. I googled, but found no answer. Any ideas?

strpeter
  • 2,562
  • 3
  • 27
  • 48
fuz
  • 88,405
  • 25
  • 200
  • 352

1 Answers1

24

Use \input instead of \include.

emrea
  • 1,335
  • 9
  • 18
  • Problem: I've read that if you use \input then tex will not handle references and labels correctly between different files. Is there a way to get references and labels to work right without the newpage? – bchurchill Jul 20 '11 at 22:42