Theses, Books, Title pagesPage numbers incorrect with two side page layout

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Page numbers incorrect with two side page layout

Post by templateuser »

Hi!
Is it possible to change the head in an easy way when using a two sided layout? Because I would like to have the page number on the right hand side on odd and on the left hand side on even pages…
Thank you for your help!

Regards,
Carina

Recommended reading 2024:

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

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

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Page numbers incorrect with two side page layout

Post by templateuser »

Hello, I changed the documentclass to twoside but the number of the page is always, both in odd and even pages, appearing in the up right side of the paper. What can I do to change it? Thanks for th great tamplate!

Antonis
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Page numbers incorrect with two side page layout

Post by templateuser »

Hi,

first thanks for the great template!

I have the same problem as Antonis (15. April)
“…Hello, I changed the documentclass to twoside but the number of the page is always, both in odd and even pages, appearing in the up right side of the paper. What can I do to change it? Thanks for th great tamplate!…”

Some idea?

jojo
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Page numbers incorrect with two side page layout

Post by templateuser »

Hello all,

besides changing the documentclass to twoside, there are two things you should change.

First of all, in the main.tex file, right before calling the chapters you should use this:

Code: Select all

\pagestyle{fancy} % Return the page headers back to the "fancy" style
\fancyhead{} % clear all fields
\fancyhead[LE,RO]{\thepage} %left header of even pages, number of the page. Right header of odd pages, number of the page

\input{Chapters/Chapter1}
\input{Chapters/Chapter2} 


Then, if you want to add a header with the chapter number (or anything), at the beginning of each chapter you should use

Code: Select all

\fancyhead[LO,RE]{Chapter~X} % Change X to a consecutive number;

this is for the header on each page - perhaps a shortened title. Left header of odd pages (and right header of even pages), the description of the chapter.

Hope it helps!

Cayetano
Post Reply