![如何使 itemize/enumerate/description 环境从右到左开始?](https://linux22.com/image/305974/%E5%A6%82%E4%BD%95%E4%BD%BF%20itemize%2Fenumerate%2Fdescription%20%E7%8E%AF%E5%A2%83%E4%BB%8E%E5%8F%B3%E5%88%B0%E5%B7%A6%E5%BC%80%E5%A7%8B%EF%BC%9F.png)
有人知道如何让 itemize/enumerate/description 环境从右到左开始吗?
我读过这个文档:枚举项但没有运气
\documentclass{book}
\usepackage{setspace}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{arabic}
\usepackage{xcolor}
\usepackage{pifont}
\usepackage{enumitem}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Scheherazade}
\begin{document}
Some latin text and inline arabic: \textarabic{السلام عليكم}
\begin{itemize}[label=$\heartsuit$]
\item pomme ;
\item radis ;
\item choucroute.
\end{itemize}
\begin{itemize}[font=\color{magenta} \Large, rightmargin=6cm, label=\ding{45}]
\item \textarabic{تفاحة} ;
\item \textarabic{فجل} ;
\item \textarabic{ملفوف مخلل}.
\end{itemize}
\end{document}
答案1
该bidi
软件包提供了RTLitems
以下环境:
\documentclass{book}
\usepackage{xcolor}
\usepackage{setspace}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{arabic}
\usepackage{pifont}
\usepackage{enumitem}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Scheherazade}
\begin{document}
Some latin text and inline arabic: \textarabic{السلام عليكم}
\begin{itemize}[label=$\heartsuit$]
\item pomme ;
\item radis ;
\item choucroute.
\end{itemize}
\begin{itemize}[font=\color{magenta} \Large,label=\ding{45}]
\begin{RTLitems}
\item \textarabic{تفاحة} ;
\item \textarabic{فجل} ;
\item \textarabic{ملفوف مخلل}.
\end{RTLitems}
\end{itemize}
\end{document}