패키지를 사용하고 있는데 polyglossia
세 Xepersian
번째 수준 열거에 문제가 있습니다. \Alph
전체 문서에서 번호 매기기를 사용할 수 없습니다.
\documentclass[12pt,a4paper]{book}
\usepackage[nonamebreak, square, comma, sort&compress]{natbib}
\usepackage{polyglossia}
\setmainlanguage[calendar=gregorian, numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic, Scale=1.5]{Amiri}
\setotherlanguage{english}
\usepackage{xepersian}
\settextfont{Amiri}
\setlatintextfont[Scale=1.5]{Amiri}
\let\oldthebibliography=\thebibliography
\let\endoldthebibliography=\endthebibliography
\renewenvironment{thebibliography}[1]{%
\begin{oldthebibliography}{#1}%
\setlength{\parskip}{2ex}%vertical space between items
}%
{%
\end{oldthebibliography}%
}
\begin{document}
كز هنا في الحديث على نظام زيتك لأنه أحد أفضل الحلول المتاحة \citep{ماجدة2012تطوير}
نفترض هنا وجود معرفة مسبقة
\cite{kopka2004guide}
\begin{enumerate}
\item Test one
\item Test two
\begin{enumerate}%problem
\item Test one one
\item Test two two
\end{enumerate}%problem
\item Test three
\item Test four
\end{enumerate}
\bibliographystyle{asa-fa}
\bibliography{MyReferences}
\end{document}
답변1
MWE를 약간 수정하면 오류가 해결됩니다. 즉, 변경:
\setmainlanguage[calendar=gregorian, numerals=maghrib]{arabic}
에게
\selectlanguage[calendar=gregorian, numerals=maghrib]{arabic}
이렇게 하면 문제가 해결됩니다. 따라서 업데이트된 MWE는 다음과 같습니다.
\documentclass[12pt,a4paper]{book}
\usepackage[nonamebreak, square, comma, sort&compress]{natbib}
\usepackage{polyglossia}
\selectlanguage[calendar=gregorian, numerals=maghrib]{arabic}
%\setmainlanguage[calendar=gregorian, numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic, Scale=1.5]{Amiri}
\setotherlanguage{english}
\TOCLanguage{arabic}
\usepackage{xepersian}
\settextfont{Amiri}
\setlatintextfont[Scale=1.5]{Amiri}
\let\oldthebibliography=\thebibliography
\let\endoldthebibliography=\endthebibliography
\renewenvironment{thebibliography}[1]{%
\begin{oldthebibliography}{#1}%
\setlength{\parskip}{2ex}%vertical space between items
}%
{%
\end{oldthebibliography}%
}
\begin{document}
كز هنا في الحديث على نظام زيتك لأنه أحد أفضل الحلول المتاحة \citep{ماجدة2012تطوير}
نفترض هنا وجود معرفة مسبقة
\cite{kopka2004guide}
\begin{enumerate}
\item Test one
\item Test two
\begin{enumerate}%problem
\item Test one one
\item Test two two
\end{enumerate}%problem
\item Test three
\item Test four
\end{enumerate}
\bibliographystyle{asa-fa}
\bibliography{MyReferences}
\end{document}
도움이 되었기를 바랍니다.