Page LayoutChanging section number

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
sgp
Posts: 30
Joined: Thu Jul 22, 2010 11:45 am

Changing section number

Post by sgp »

hi all,
i am writing my btp thesis. when i use \section{Introduction} for creating the section heading, the number starts from 0.1. i am using \documentclass{report}. when i use \documentclass{book}, even the titlepage goes towards the left. is there a way to change this. also is there a way to give separate numbering for the abstract,preface, and then to the main body.

thanks in advance,
regards,
sgp.
Last edited by sgp on Sat Jul 31, 2010 1:02 pm, edited 1 time in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing section number

Post by localghost »

sgp wrote:[...] when i use \section{Introduction} for creating the section heading, the number starts from 0.1. i am using \documentclass{report}. when i use \documentclass{book}, even the titlepage goes towards the left. is there a way to change this. [...]
The classes »book« and »report« are based on chapters. So you better use chapters before sections. The changing type area is caused by the fact that the default setting for the »book« class is two-sided in opposite to the »report« class.
sgp wrote:[...] also is there a way to give separate numbering for the abstract,preface, and then to the main body. [...]
Specify the kind of numbering (headings, page, ...).


Best regards
Thorsten
sgp
Posts: 30
Joined: Thu Jul 22, 2010 11:45 am

Re: Changing section number

Post by sgp »

hi Thorsten,

thanks for the reply. but is there a way to change the book style only for the first title. the numbering i asked is for page numbers. is it possible to give separate number for main body and for abstract, table of contents and others.

thanks in advance,
regards,
sgp.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Changing section number

Post by Stefan Kottwitz »

sgp wrote:but is there a way to change the book style only for the first title. the numbering i asked is for page numbers.
It's possible. It depends which packages you're using. With geometry you could change the margins inside the document as well as with typearea.
The standard title is an inner title, typeset on a righ hand page, that might explain it to you. What you would like to produce seems to be a cover page.
A very easy way could be to use a separate document for the cover page with a oneside layout.
sgp wrote: is it possible to give separate number for main body and for abstract, table of contents and others.
You could use \pagenumbering:

Code: Select all

\pagenumbering{roman}
\tableofcontents
... abstract ...
\cleardoublepage
\pagenumbering{arabic}
\chapter{One}
It switches the numbering for instance to roman or arabic numbers, restarting with i or 1.

Stefan
LaTeX.org admin
sgp
Posts: 30
Joined: Thu Jul 22, 2010 11:45 am

Re: Changing section number

Post by sgp »

@ above all

thanks for the reply guys it worked. learning latex would be tougher without you guys. thanks a lot guys.

regards,
sgp.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing section number

Post by localghost »

Just for notification. The »book« class offers \frontmatter, \mainmatter and \backmatter as commands which also affect the page numbering. Details can be read in every good basic documentation.
Post Reply