I found the page about page numbers in xepersian
, but the problem seems to be more general. I cannot get the page headings with scrpage2
in the KomaScript classes to work. I tried the following:
\documentclass{scrbook}
\usepackage{hyperref}
\usepackage{xepersian}\renewcommand{\thepage}{\texorpdfstring{\lr{\arabic{page}}}{\arabic{page}}}
\usepackage{scrpage2}
\pagestyle{scrheadings}
\begin{document}
\begin{latin}
\chapter{First Chapter}
\section{Test 1}
Text
\newpage
\section{Test 2}
Text 2
\newpage
\section{Test 3}
\end{latin}
\end{document}
But this gives me Persian characters in the header.