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 ?

AboAmmar
  • 46,352
  • 4
  • 58
  • 127

1 Answers1

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

Gonzalo Medina
  • 505,128