% Height of Headnote
% Settings      
{\markboth{{\thechapter.\ #1}}{}}
{\markright{{\thesection.\ #1}}}

These are my settings for the header to display chapter names in even pages and section names in odd pages and corresponding page numbers.

The problem is, both the headers and the page number are being displayed in the inside of the page. How to display them at the outer end ?


1 Answer 1


You should use scrlayer-scrpage instead of the obsolete scrpage2. In any case, there's a family of commands

\lehead[left even]{left even}
\cehead[center even]{center even}
\rehead[right even]{right even}
\lohead[left odd]{left odd}
\cohead[center odd]{center odd}
\rohead[right odd]{right odd}

(and similar with foot instead of head), in which l, c, r stand for left, center, right, respectively, to control the position of the information in the headers. There's also

\ihead[scrplain-inside ]{scrheadings-inside }
\chead[scrplain-centered ]{scrheadings-centered }
\ohead[scrplain-outside ]{scrheadings-outside }

where i stands for inner margin and o for outer margin.

In your case, you would simply say something like

\usepackage[a6paper]{geometry}%just for the example



\chapter{Test chapter}
\section{Test section}


The result:

enter image description here

  • @ajayhhh You're welcome. Is it something like that what you were trying to achieve? Aug 5, 2015 at 17:57
  • meanwhile, I just changed \ofoot and \ohead to \ifoot and \ihead and it did the trick! Yea and your explained method works too...
    – ajayhhh
    Aug 5, 2015 at 17:57
  • @ajayhhh I see, I used the "o" commands since your question mentioned the outer margin. Don't forget that you can accept the answer, if you consider it helped you to solve the problem, by clicking the checkmark to its left. In case of doubt, please see How do you accept an answer? Aug 5, 2015 at 17:59

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.