Theses, Books, Title pages ⇒ Page numbers incorrect with two side page layout
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Page numbers incorrect with two side page layout
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: Page numbers incorrect with two side page layout
Antonis
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: Page numbers incorrect with two side page layout
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
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Page numbers incorrect with two side page layout
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