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 writing thesis with 10 chapters, each of them has multiple sections.

In Latex, I put each section in a separate file.

But, there are blank spaces between sections in each chapter in the pdf file.

how to remove the blank meanwhile still keeping each section in separate .tex file ?

Any help will be appreciated.

share|improve this question

closed as too localized by Torbjørn T., yo', Joseph Wright Oct 6 '12 at 21:59

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

if by "blank spaces" you mean that each section starts on a new page, you are probably using \include{...} to load the files. use \input{...} instead. using separate files is a good approach, allowing you to shuffle things around and otherwise concentrate your efforts just where you're currently working. – barbara beeton Aug 1 '12 at 22:28
@barbarabeeton Concur. Also beware of leaving blank lines between the \input{..} commands. This can also cause extra vertical space with the section commands. – R. Schumacher Aug 2 '12 at 1:33
@R.Schumacher assuming that file starts with \section, blank lines between the \input commands make no difference whatsoever. They are equiv to \par and multiple \par commands are the same as one (unless they are redefined) – Frank Mittelbach Aug 4 '12 at 6:58