有人知道如何让 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}