Page Layoutpage number

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
fhrttn
Posts: 20
Joined: Thu Nov 16, 2017 2:43 pm

page number

Post by fhrttn »

I can not give page number on chapter page. Latex gives page number the page after the chapter page. Also there is a margin problem between chapter page and second page. I attached the pdf ,If you want I can upload the cls file to
Attachments
thesis.pdf
(105.62 KiB) Downloaded 202 times

Recommended reading 2024:

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

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

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

page number

Post by Johannes_B »

A minimal working example would be most helpful.
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

page number

Post by Stefan Kottwitz »

Welcome to the forum!

Indeed, for being able to help we need to see code. As minimum, the .cls file and the preamble of the .tex file with the settings.

Stefan
LaTeX.org admin
fhrttn
Posts: 20
Joined: Thu Nov 16, 2017 2:43 pm

page number

Post by fhrttn »

I attached cls
thanks in advance
Attachments
ni.cls
(36.37 KiB) Downloaded 268 times
fhrttn
Posts: 20
Joined: Thu Nov 16, 2017 2:43 pm

page number

Post by fhrttn »

and the .tex (I forgot it ;) )
Attachments
thesis.tex
(1.99 KiB) Downloaded 270 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

page number

Post by Stefan Kottwitz »

The class file ni.cls sets the page style to "empty" when a chapter starts. You can change it this way, adding this to your preamble in thesis.tex:

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@makechapterhead}{empty}{plain}{}{}
\makeatother


To reset the settings that the class makes at the beginning of the document, you can insert before \makeatletter above:

\let\@begindocumenthook\relax

You can see what the class makes when you search for \AtBeginDocument in ni.cls. You can choose some settings and make them yourself, after \begin{document}. The \setlength commands cause the margin behavior. Instead of this, I suggest \usepackage[...]{geometry} with some meaningful options, see geometry manual.

Stefan
LaTeX.org admin
fhrttn
Posts: 20
Joined: Thu Nov 16, 2017 2:43 pm

page number

Post by fhrttn »

Thanks
this helps me out. I will check the margins too
Post Reply