من با آخرین نسخه Xepersian تلاش کردم تا عنوان فصل با یک استایل زیباتری قرار گیرد. برای این کار از بسته titlesec استفاده کردم. ولی هر کاری می کنم هیچ تغییری در عنوان فصل ایجاد نمیشود. البته من نمی دانم این مشکل قبلا هم بوده است یا خیر. خروجی pdf و log نیز پیوست شده است.
\documentclass{report}
\usepackage{tcolorbox}
\usepackage[explicit]{titlesec}
\usepackage[]{xepersian}
\settextfont[Scale=1.25]{IRNazanin}
\newtcolorbox{titlecolorbox}[1]{ %the box around chapter
coltext=white,
colframe=black,
colback=black,
boxrule=0pt,
arc=0pt,
notitle,
width=4.8em,
height=2.4ex,
before=\hfill
}
\titleformat{\chapter}[display]
{\sffamily\Huge}
{}
{0pt}
{\begin{titlecolorbox}{}
{\large\sffamily\MakeUppercase{\chaptername}}
\end{titlecolorbox}
\vspace*{-4.19ex}\noindent\rule{\textwidth}{0.4pt}
\parbox[b]{\dimexpr\textwidth-4.8em\relax}{\raggedright\MakeUppercase{#1}}{\hfill\fontsize{70}{60}\selectfont\thechapter}
}
[]
\titleformat{name=\chapter,numberless}[display]
{\sffamily\Huge}
{}
{0pt}
{\begin{titlecolorbox}{}
{\large\sffamily\MakeUppercase{\chaptername}}
\end{titlecolorbox}
\vspace*{-4.19ex}\noindent\rule{\textwidth}{0.4pt}
\parbox[b]{\dimexpr\textwidth-4.8em\relax}{\raggedright\MakeUppercase{#1}}
}
[]
\begin{document}
\chapter{سلام}
\end{document}