RTL 中的悬挂缩进

RTL 中的悬挂缩进

我有一份 RTL 阿拉伯语文档。因为我希望其中大部分内容都有悬挂缩进,所以我不想将每个段落包装在特殊环境中。相反,我希望能够在整个文档中打开和关闭悬挂缩进。

我想也许我可以使用\everypar,我是从@egreg的回答中得到这个想法的问题但是我无法让这个简单的 MWE 工作:缩进仍然发生在左边,而不是右边,正如你所看到的这里

\documentclass[11pt,oneside]{article}

\usepackage{polyglossia}

\setmainlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Times New Roman}

\setlength{\parindent}{0pt}

\begin{document}
\Huge
\everypar{\hangindent=5em \hangafter=1}

كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة 
كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة 
كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة كلمة 

\end{document}

相关内容