Using article class and the twoside option still gives me the page numbers in the center of the page. Isn't the twoside option supposed to put the page numbers on the left in even pages and on the right in odd pages?

Here is my MWE:




\setmainfont[Mapping=tex-text]{GFS Didot}

\title{Fuzzy Control}
\author{My Name}


That's it!



Thanks for any help!


In the standard document classes there are four predefined page styles; the following is a quote taken directly from the fancyhdr package documentation:

enter image description here

The default behaviour for the standard article, report or book document classes is to use the plain page style, so simply using the twoside class option won't give you the desired position for the page number.

If you want to change the default page style, you can use \pagestyle{headings}, or \pagestyle{myheadings} (and perhaps supply information for the header). Both options will give you, with the twoside option, headers containing the page numbers to the right on odd-numbered pages, and to the left on even-numbered pages.

If further customization is required, use a package such as titleps or fancyhdr to define your own page style. In any case, you will have to "activate" the page style by using the \pagestyle command.

A little example using titleps to define a new page style:




test\clearpage test


A more realistic example: no footer, header for even-numbered pages: page number to the left, section number and title to the right; header for odd-numbered pages: subsection title to the left, page number to the right; all information with \small font size:

\usepackage{lipsum}% just to generate filler text



\section{Test Section}
\subsection{Test Subsection}


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.