\pagenumbering{style}
changes the appearance of \thepage
to match style
and
resets the page count to one (\@one
). This change in the page
number can be noticed with the shipout of the next page, which is
in fact the page currently typeset.
Now, where to put the \pagenumbering
command? A good idea is to
place this immediately after a chapter
command.
\documentclass{report}
\usepackage{blindtext}
\usepackage{showframe}
\begin{document}
\chapter{standard counting}
\blindtext[8]
\chapter{roman counting}
\pagenumbering{roman}
\blindtext[5]
\end{document}
All works perfectly fine. But now, what does happen if we take
the same example, but use twoside
? Package showframe
helps us
determine what left and right pages are. The marginparcolumn is
always on the outer side.
\documentclass[twoside]{report}
\usepackage{blindtext}
\usepackage{showframe}
\begin{document}
\chapter{standard counting}
\blindtext[8]
\chapter{roman counting}
\pagenumbering{roman}
\blindtext[5]
\end{document}
As you may notice, two odd (right) pages follow each other,
making it very hard to bind the final output. The chapter
command issues a clearpage by default (cleardoublepage
if
option openright
is used) which isn't enough in this case. But
now, we can't issue the needed cleardoublepage
after chapter
has been issued. That would make no sense. But we can use
cleardoublepage
before chapter
. If the pagenumbering
command is issued before or after chapter
doesn't make a
difference now.
\documentclass[twoside]{report}
\usepackage{blindtext}
\usepackage{showframe}
\begin{document}
\chapter{standard counting}
\blindtext[8]
\cleardoublepage
\chapter{roman counting}
\pagenumbering{roman}
\blindtext[5]
\end{document}
Is there anything to say about titlepages?
Yep, the standard classes and the KOMA-classes differ in their
behaviour.
\documentclass{report}
%\documentclass{scrreprt}
\usepackage{showframe}
\title{How does pagenumbering work?}
\author{\TeX.SX}
\begin{document}
\maketitle
\chapter*{What pagenumber do we get here?}
pagenumber: \thepage
\end{document}
As we can see by running this example with the standard report,
the titlepage is not counted, the next page has page number 1.
The KOMA-class differs, the titlepage is counted, the next page
gets number 2.
Changing the example to twoside
both classes number the pages
in the same way. There is a simple reason for that, odd pages are
always right-hand pages.
Why are all examples using report and its KOMA counterpart?
The behaviour described is defined in the titlepage
environment. article
doesn't use a titlepage per default, books
use titlepage, but are printed twoside
by default.
The same are working for memoir
as well. But it should be
mentioned, that the title of a standard memoir class uses the
pagestyle title
which is an alias for plain
. So the titlepage
gets (visibally) numbered by default.
What about pagenumbering in articles and books? If you want to change the pagenumbering in an article, you should consider switching to a class with chapters. book
provides the frontmatter
, mainmatter
and backmatter
mechanism, taking care of pagenumbering and some other stuff.
Thesis.cls
uses vmargin
to configure the page dimensions so you should use this interface if you wish to alter those dimensions. Otherwise, you are likely to get inconsistent and undesired results.
The command used by Thesis
is:
\setmarginsrb {1.5in} % left margin
{0.6in} % top margin
{1in} % right margin
{0.8in} % bottom margin
{20pt} % head height
{0.25in} % head sep
{9pt} % foot height
{0.3in} % foot sep
which obviously sets a wider left (inner) margin than right (outer) margin:
The idea here is that once an allowance has been made for binding, the amount of white space in the middle of a double-page spread should be equal to that at each outer edge.
That may be good typography but it has no place in the formatting guidelines of your institution. (Good typography is alien to most such guidelines.)
If you want inner and outer margins of 36mm, try this:
\documentclass[a4paper,11pt]{book}
\usepackage{vmargin}
\setmarginsrb {36mm} % left margin
{0.6in} % top margin
{36mm} % right margin
{0.8in} % bottom margin
{20pt} % head height
{0.25in} % head sep
{9pt} % foot height
{0.3in} % foot sep
\usepackage{kantlipsum}
\begin{document}
\kant[1-15]
\end{document}
Best Answer
Update: This doesn't work very well with floats:
Here a partial solution which adds empty even pages for a chapter. You also want to change the margins to look like for
onside
, do you? Also the empty pages are still numbered. Simply reducing the page number by one might cause issues.