Page LayoutNew page is created before my introduction page.

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
melvinmathewphilips
Posts: 3
Joined: Sun Aug 09, 2015 6:04 pm

New page is created before my introduction page.

Post by melvinmathewphilips »

A new page is created just before the introduction page, I will post by code below,

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage[a4paper,hmargin={3cm,2.5cm},vmargin={2.5cm,2.5cm}]{geometry}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{titlesec}
\pagestyle{fancy}
\lhead{\tiny THESIS PRELIMINARY REPORT}
\chead{}
\rhead{\tiny title}
\lfoot{\tiny DEPT}
\cfoot{\thepage}
\rfoot{}
\begin{document}
\doublespacing
\titleformat{\chapter}[display]
  {\normalfont\huge\bfseries\centering}
  {\chaptertitlename\ \thechapter}{20pt}{\Huge}
	\titlespacing*{\chapter}{0pt}{-40pt}{40pt}
\pagenumbering{global}
\pagenumbering{arabic}
\begin{abstract}

\end{abstract}
\begin{center}
\chapter{\textbf{Introduction}}
\end{center}
Please somebody help...thanks in advance
Melvin

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

New page is created before my introduction page.

Post by Johannes_B »

Hi and welcome,

the code you posted is not complete.

Your code is more than weird. Why is the chapter command enclosed in a center-environment? Why is there \textbf inside the argument of chapter?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

New page is created before my introduction page.

Post by Stefan Kottwitz »

Hi Melvin,

welcome to the forum!

Chapters always start at the top of a new page. If you don't like this, perhaps don't use the \chapter command.

This is strange:

Code: Select all

\begin{center}
\chapter{\textbf{Introduction}}
\end{center}
Do you want to center a whole chapter? Or do you mean just the heading? You got \bfseries and \centering via \titleformat already.

Stefan
LaTeX.org admin
melvinmathewphilips
Posts: 3
Joined: Sun Aug 09, 2015 6:04 pm

Re: New page is created before my introduction page.

Post by melvinmathewphilips »

thanks for reply Stefan_K, Johannes_B ..I am a beginner in latex. I prefer collecting info on latex through internet all the time. I take all your suggestions. Thanks again
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

New page is created before my introduction page.

Post by Johannes_B »

If you are interested in a good introduction, i can recommend LaTeX for complete novices.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: New page is created before my introduction page.

Post by Stefan Kottwitz »

On the Internet, there's sometimes information which is 10 or 20 years old. ;)
Feel free to ask here anything, what you would like to know. In forum answers you can get the most current information based on the newest packages.

Stefan
LaTeX.org admin
melvinmathewphilips
Posts: 3
Joined: Sun Aug 09, 2015 6:04 pm

Re: New page is created before my introduction page.

Post by melvinmathewphilips »

:)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

New page is created before my introduction page.

Post by Stefan Kottwitz »

By the way, writing completely caps is not so popular any more today. You could use \MakeUppercase or better: \scshape. Also, caps (emphasizing) are a contrast to \tiny.

You could try:

Code: Select all

\lhead{\small\scshape Thesis preliminary report}
\pagenumbering{global} can be removed. There's no global page number command, it would result in an error without the switch to arabic.

You are learning LaTeX because you started with it for writing a thesis? Let us know about the progress! :)

Stefan
LaTeX.org admin
Post Reply