[XeTeX] Polyglossia issue with fancyhdr
François Charette
firmicus at ankabut.net
Fri Aug 1 18:09:26 CEST 2008
Meho R. wrote:
> 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?
>
This could well be a bug. But you can overcome it with the option
nolocalmarks, to turn off "localization" of \markboth and \markright:
\usepackage[nolocalmarks]{polyglossia}
Hope it helps,
FC
> 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}
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
More information about the XeTeX
mailing list