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'm writing in the "master document" style, using the \include command, and between pages of the same file included and between pages of different files some blank pages appeared. What do I do to make these pages disappear?

My preamble, with the include commands, is:

\documentclass[12pt,a4paper]{book}

\usepackage[brazil]{babel}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\usepackage{latexsym}
\usepackage{amsmath,amssymb,amsfonts,wasysym}
\usepackage[dvips]{graphicx}
\usepackage[top=3cm,left=3cm,right=2cm,bottom=2cm]{geometry}

\begin{document}

\input{Dedicatoria}
\input{Agradecimentos}

\tableofcontents

\input{Cap1}
\input{Cap2}
\input{Cap3}

\end{document}
share|improve this question
    
Are you using \include or \input? Only the first should behave like that. Your question and your code don't match. Also, indenting lines by four spaces will format them as code. –  Carsten Thiel Jan 31 '11 at 12:23
2  
Welcome to tex.sx. You can format code samples by selecting the code and clicking on the 101010 icon. Your question isn't very clear, however. You should be using include{Cap1} instead of \input{Cap1}; although that may not solve your problem. –  Alan Munn Jan 31 '11 at 12:23
    
@Alan: using \include makes only sense when someone also uses \includeonly. Otherwise \input does the same job and there will be no difference. –  Herbert Jan 31 '11 at 12:29
    
@Rodrigo:, I edited your question a little to make it more clear (IMHO) and I escaped the \include command in bac-ticks as is common here. Please feel free to revert to your original version if you don't like the changes. –  Yossi Farjoun Jan 31 '11 at 14:08
    
@Carsten Thiel: well, sorry about the misunderstood! I used both (input and include) and both give the same result! –  Rodrigo Thomas Jan 31 '11 at 18:20

1 Answer 1

up vote 9 down vote accepted

This is a common problem beginners have (I guess). You are writing in the book class, so chapters will only start on right pages (odd page numbers).

So in case one paragraph in a chapter ends on a right page, the next left page (even page number) will be left blank and the new chapter starts on a new right side. If you don't like this behaviour, use \documentclass[openany]{book} or use \documentclass{report}. The letter creates one-sided documents that only consists of right pages.

enter image description here

share|improve this answer
    
Worked perfectly! But another trouble arise: I add another \input command, this time to the cover and sub-cover pages. Another blank page appear. What happen? –  Rodrigo Thomas Jan 31 '11 at 18:52
    
You have to demonstrate this in an example. Usually it does not matter if you \input something or if it is written directly in the main file. Probably you use a package or function that executes/defines and uses something like a \cleardoublepage. As long as you want give an example, however, it will be just guessing... –  Martin H Jan 31 '11 at 22:09

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.