Latex : Extra page remove
Asked Answered
G

4

6

I am new to LaTeX. I have no idea about it at all and I am facing a problem. When writing a report the NEW CHAPTER always starts with odd page causing an empty page on my report. How can I remove it? I have read other answers on stackoverflow but could not make out what to be done.

\documentclass[12pt]{report} 
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{graphicx} 
\usepackage{times} 
\begin{document} 
%\pagestyle{empty} 
\input{first} 
\pagestyle{plain} 
\pagenumbering{arabic} 
\newpage 
\input{declaration} 
\newpage 
\input{acknowledgement} 
\newpage 
\input{abstract} 
\tableofcontents 
\listoffigures 
\input{chapter1} 
\include{chapter2} 
\include{chapter3} 
\include{conclusion} 
\include{references} 
\pagestyle{plain} 
\pagenumbering{arabic} 
\addcontentsline{toc}{chapter}{References} 
\end{document}

first.tex

\begin{titlepage}
\begin{center}
   Some title text
\end{center}
\end{titlepage}
Glyceric answered 25/3, 2015 at 22:41 Comment(4)
\documentclass[12pt]{report} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{graphicx} \usepackage{times} \begin{document} %\pagestyle{empty} \input{first} \pagestyle{plain} \pagenumbering{arabic} \newpage \input{declaration} \newpage \input{acknowledgement} \newpage \input{abstract} \tableofcontents \listoffigures \input{chapter1} \include{chapter2} \include{chapter3} \include{conclusion} \include{references} \pagestyle{plain} \pagenumbering{arabic} \addcontentsline{toc}{chapter}{References} \end{document} This is the main page. :)Glyceric
From what i can see,its all expanded only :/Glyceric
The problem was not before.I started using begin{flushleft} in each chapter.Can it be a problem?Glyceric
To open the chapter on any page (not strictly an odd page), add openany to your \documentclass options.Hardtack
G
1

So I solved my problem. What i did was i remove \begin{flushleft} from all the chapters and used RaggedRight at the main tex file.

Glyceric answered 26/3, 2015 at 7:39 Comment(0)
K
20

use this for deleting blankpage

\let\clearpage\relax
Kimberli answered 25/6, 2020 at 18:26 Comment(1)
Works! But some explanation would be helpful.Whiplash
P
1

I think I know where the issue is. Remove the

\newpage 

after

\pagenumbering{arabic} 
Pu answered 25/3, 2015 at 23:31 Comment(1)
One of the other \include files has a \section that creates the section header. Where is it and how does it look like? (I have to go to bed right now...)Pu
G
1

So I solved my problem. What i did was i remove \begin{flushleft} from all the chapters and used RaggedRight at the main tex file.

Glyceric answered 26/3, 2015 at 7:39 Comment(0)
S
-1

If you are writing book use \documentclass[10pta4paper,openany]{book}, in the start of document it will definitely solve your problem.

Sow answered 2/11, 2021 at 6:14 Comment(2)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Backspin
the report class is onesided by default - this "will definitely" not "solve your problem"Grownup

© 2022 - 2024 — McMap. All rights reserved.