2
\usepackage{footnote}
\usepackage{tablefootnote}
\usepackage{scrpage2}

% Height of Headnote
\setlength{\headheight}{1.5\baselineskip}
% Settings      
\renewcommand*{\headfont}{\normalfont}
\clearscrheadings
\clearscrplain
\ofoot[\pagemark]{\pagemark} 
\pagestyle{scrheadings}
\automark{chapter}
\renewcommand{\chaptermark}[1]%
{\markboth{{\thechapter.\ #1}}{}}
\renewcommand{\sectionmark}[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 ?

3

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

\documentclass{scrbook}
\usepackage[a6paper]{geometry}%just for the example
\usepackage{scrpage2}
\usepackage{lipsum}

\clearscrheadings 
\clearscrplain 
\ohead[\headmark]{\headmark}
\cfoot[\thepage]{\pagemark}
\pagestyle{scrheadings} 

\begin{document}

\chapter{Test chapter}
\section{Test section}
\lipsum[1-3]

\end{document}

The result:

enter image description here

  • @ajayhhh You're welcome. Is it something like that what you were trying to achieve? – Gonzalo Medina Aug 5 '15 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 '15 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? – Gonzalo Medina Aug 5 '15 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.