TransWikia.com

How to give the page number starting from 2 and how to align the table of contents

TeX - LaTeX Asked by Tamil on August 30, 2021

enter link description hereHow to give the page number starting form two and need to align the table of contents.. I had give the code as

documentclass[11pt,a4paper]{report}
usepackage[a4paper,bindingoffset=0.2in,%
            left=1in,right=1in,top=1in,bottom=1in,%
            footskip=.25in]{geometry}
usepackage{fancyhdr}
fancyfoot[R]{thepage}
pagestyle{fancy}
begin{document}
LARGE{contents}
summary.............................3
vspace{3mm}
Secound page.......................4
vspace{3mm}
Third page...........................5

newpage 

LARGE{summary}

This is my first document

newpage

LARGE{chapter}

end{document}

I got the document like this need to start the page number from 2 and align the toc
enter image description here

after trying the code that you had given I got the result like this
enter image description here

I need the document like this, only the heading should be in the top of the page and the contents page should have the respective heading page number
enter image description here

One Answer

Do not try to produce a manually created table of contents. With latex you can get an automatically generated table fo contents using the tableofcontents command. For automatically numbered chapter, section, subsection... titles you can use chapter , section, subsection...:

enter image description here

Compile the following document twice:

documentclass[11pt,a4paper]{report}
usepackage[a4paper,bindingoffset=0.2in,%
            left=1in,right=1in,top=1in,bottom=1in,%
            footskip=.25in]{geometry}
usepackage{fancyhdr}
fancyfoot[R]{thepage}
pagestyle{fancy}
begin{document}

tableofcontents

chapter{summary}

This is my first document

chapter{chapter heading}

section{a section heading}

subsection{a subsection}

your text

end{document}

If this alignment/layout does not suit your needs, it can be of course customized.

Answered by leandriis on August 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP