babel
为什么使用 编写的阿拉伯语文本的项目符号与右边距不对齐,而使用 的情况则不同arabluatex
?
如何使它们babel
与右边距对齐?
巴别塔
\documentclass[12pt,a4paper]{article}
\usepackage[showframe]{geometry}
\usepackage{enumitem, ulem}
\usepackage[english, bidi = basic]{babel}
\babelprovide[import, onchar = ids fonts]{arabic}
\babelfont[arabic]{rm}{Scheherazade}
\parindent=0pt
\begin{document}
\begin{otherlanguage}{arabic}
\textbf{\uline{%
قواعد هامة:%
}}
\begin{itemize}[
label = \textbullet, leftmargin=*, labelsep = 0.5ex, itemsep = 0\baselineskip, %nosep
topsep = 0.5\baselineskip, font=\bfseries, before=\bfseries,
]
\item الأول
\item الثاني
\end{itemize}%
\end{otherlanguage}%
\end{document}
阿拉布鲁泰克斯
\documentclass[12pt,a4paper]{article}
\usepackage[showframe]{geometry}
\usepackage{enumitem, ulem}
\usepackage{fontspec}
\newfontfamily\arabicfont{Scheherazade}[ Script = Arabic, RawFeature={+anum}]
\usepackage{arabluatex}
\parindent=0pt
\begin{document}
\begin{txarab}
\textbf{\uline{%
قواعد هامة:%
}}
\begin{itemize}[
label = \textbullet, leftmargin=*, labelsep = 0.5ex, itemsep = 0\baselineskip, %nosep
topsep = 0.5\baselineskip, font=\bfseries, before=\bfseries,
]
\item الأول
\item الثاني
\end{itemize}%
\end{txarab}%
\end{document}
答案1
babel
使用以下选项加载layout=lists
:
\usepackage[english, bidi = basic, layout=lists]{babel}
babel
假设单语文档。此选项会内部重新调整列表以处理多语文档。