[XeTeX] titlesec and polyglossia problem
Ahmad Essam
suda.nix at hotmail.com
Fri May 14 15:44:42 CEST 2010
Hello,
I've a problem with titlesec package when i use it in arabic environment (polyglossia).
The chapter number doesn't appear !
This is the original code works good:
------------------------------------------
\documentclass[a4paper,twoside,headsepline,10pt]{scrbook}
\usepackage{fontspec,xltxtra,xunicode}
\usepackage[sf,medium]{titlesec}
\usepackage[helvetica]{quotchap}
\begin{document}
\chapter{no title}
texts here.
\end{document}------------------------------------------
But when i use polyglossia package :
------------------------------------------\documentclass[a4paper,twoside,headsepline,10pt]{scrbook}
\usepackage{fontspec,xltxtra,xunicode}
\usepackage[sf,medium]{titlesec}
\usepackage[helvetica]{quotchap}
\providecommand{\newXeTeXintercharclass}[1]{\edef #1\relax} % perevent errors in windows(MikeTex)
\usepackage{polyglossia}
\setmainlanguage{arabic}
\setotherlanguage{english}
\setmainfont[Script=Arabic,Scale=1.5,Mapping=arabicdigits]{Traditional Arabic}
\begin{document}
\chapter{بدون عنوان}
% arabic text here.
\end{document}------------------------------------------
The problem happen.
I attached photos for the two cases.
Thanks in advance.
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100514/063604e4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: titlesec_en.PNG
Type: image/png
Size: 5967 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20100514/063604e4/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: titlesec_ar.PNG
Type: image/png
Size: 6226 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20100514/063604e4/attachment-0001.png>
More information about the XeTeX
mailing list