[XeTeX] fancyhdr and plyglossia

Herbert Schulz herbs at wideopenwest.com
Thu Jan 28 22:23:26 CET 2010


On Jan 28, 2010, at 8:03 AM, Jens Bakker wrote:

> Dear Herbert Schulz and Dear Vafa Khaliqi,
> 
> Thank you very much for your answers, I have tried the proposal of Vafa Khaliqi but it seems to me that it does not work, possibly due to a mistake by myself. Anyway, here is a minimal example which does work well except of the headers:
> 
> 
> 
> \documentclass[twoside,a4paper,11pt]{article}
> 
> \usepackage{url}
> \usepackage{semtrans}
> \usepackage{tipa}
> \usepackage{fancyhdr}
> 
> \usepackage{polyglossia}
> 
> \pagestyle{fancy}
> 
> 
> \setdefaultlanguage[spelling=old]{german}
> \setotherlanguage{arabic}
> 
> \newfontfamily\arabicfont[Scale=1.3]{Al Bayan}
> 
> 
> \begin{document}
> 
> \fancyhead{}
> \fancyhead[CO,CE]{\footnotesize\textsc{Die \Alif Azhar\={\i}yah}}
> \fancyhead[RO,LE]{\thepage}
> \fancyfoot{}
> 
> \begin{german}
> 
> Der Text der \Alif Azhr\={\i}yah des \textit{\v{s}aykh} Kh\={a}lid al-\Alif Azhar\={\i}y \"uber Grammatik.
> 
> \end{german}
> 
> \begin{Arabic}
> \medskip
> \noindent
> متن الأزهرية للشيخ خالد الأزهري في النحو والصرف.
> 
> \end{Arabic}
> 
> \end{document}
> 
> 
> 
> With best regards,
> Jens Bakker
> 
> 
> 
> 
> 
> 
> 
> Am 28.01.2010 um 01:43 schrieb Herbert Schulz:
> 
>> 
>> On Jan 27, 2010, at 2:12 PM, Jens Bakker wrote:
>> 
>>> Dear Ladies and Gentlemen,
>>> 
>>> 
>>> Is it possible or impossible to use polyglossia with fancyhdr? I have created a document with contains  german  and Arabic invironments and the use of fancyhdr with \pagestyle{fancy} and the definition of the headers in the document does not change the pagestyle at all, it still displays the pagestyle plain.
>>> 
>>> Has anybody an idea if there is a solution to this problem?
>>> 
>>> 
>>> With best regards,
>>> Jens Bakker
>> 
>> Howdy,
>> 
>> Can we see a minimal but compilable example so we can take a look at what is happening?
>> 
>> Good Luck,
>> 
>> Herb Schulz
>> (herbs at wideopenwest dot com)
>> 

Howdy,

Set \pagestyle{fancy} AFTER setting up the contents of the fancy head:

\fancyhead{}
\fancyhead[CO,CE]{\footnotesize\textsc{Die \Alif Azhar\={\i}yah}}
\fancyhead[RO,LE]{\thepage}
\fancyfoot{}
\pagestyle{fancy}

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the XeTeX mailing list