arabxetex
和之间有冲突吗titlesec
?在下面的 MWE 中,似乎titlesec
被忽略了(尽管它没有给出任何错误或警告)。
\documentclass[10pt]{book}
\usepackage{titlesec}
\renewcommand{\thechapter}{\Roman{chapter}}
\titleformat{\chapter}[display]
{\bfseries\Large}
{\filleft\MakeUppercase{\chaptertitlename} \Huge\thechapter}
{4ex}
{\titlerule
\vspace{2ex}%
\filright}
[\vspace{2ex}%
\titlerule]
\usepackage[fullvoc]{arabxetex}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}
\begin{document}
\chapter{My Chapter}
Test
\end{document}
答案1
这是我测试过的答案(但没有阿拉伯语文本):
\documentclass[10pt]{book}
\usepackage{titlesec}
\usepackage[fullvoc]{arabxetex}
\newfontfamily\arabicfont[Script=Arabic]{Linux Libertine O}
\renewcommand{\thechapter}{\Roman{chapter}}
\titleformat{\chapter}[display]
{\bfseries\Large}
{\filleft\MakeUppercase{\chaptertitlename} \Huge\thechapter}
{4ex}
{\titlerule
\vspace{2ex}%
\filright}
[\vspace{2ex}%
\titlerule]
\begin{document}
\chapter{My Chapter}
Test
\end{document}
输出: