[XeTeX] Polyglossia issue with fancyhdr

Meho R. meho_r at yahoo.com
Fri Aug 1 16:05:57 CEST 2008


Hi,

Recently I noticed a strange issue with fancyhdr package when used with polyglossia declared in document. I noticed that I'm not able to manipulate with font's specs, no way to change font or make it italic or smallcaps. Anyone knows what's the catch? How to overcome this problem?

I'm posting minimal working example for testing purposes. You'll notice that headers should be smallcaps, but only "manual" header is in smallcaps, while the "leftmark" is not. You may try with italic or bold, but header remains the same.

If you comment out \setmainlanguage, everything's fine.

Here's code:
------------------------------------------------------
\documentclass[a5paper,10pt,pagesize]{scrbook}
\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\footnotesize\thepage}
\fancyhead[EC]{\nouppercase{\footnotesize\scshape Test}}
\fancyhead[OC]{\nouppercase{\footnotesize\scshape\leftmark}}
\renewcommand{\headrulewidth}{0.4pt}

\usepackage{fontspec}
\setmainfont{Minion Pro}% or any other .otf font

\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{arabic}

\begin{document}
\chapter{Test Chap.}
\section{Test Sec.}

\lipsum[1-20]
\end{document}



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20080801/88c2893b/attachment.html 


More information about the XeTeX mailing list