erro quando escrevo o tex árabe

erro quando escrevo o tex árabe
\mtctitle undefined. \select@language {arabic}
\mtctitle undefined. \begin{document}

Quando compilo o tex acontece o erro:

\documentclass[10pt,a4paper]{report}
\usepackage{amsmath}
\usepackage{xcolor}% استخدام الالوان
\usepackage[version=4]{mhchem}% حزمة كتابة المعادلات الكيميائية
\usepackage{polyglossia}
%\setotherlanguage{english}
\setmainlanguage[numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Simplified Arabic}
\newfontfamily\arabicfont[Script=Arabic, AutoFakeSlant=-0.15]{Simplified Arabic}
\usepackage{graphicx}%ادراج الصور
\graphicspath{{image/}}
\usepackage{import}
% تعليمات تغير العنوان للفصول%
\addto\captionsarabic{%
  \renewcommand{\chaptername}{الفصل}%
 \renewcommand{\contentsname}{الفهرس}%
 \renewcommand{\mtctitle}{قائمة المحتويات}
  }
\newcommand\words[1]{\expandafter\xwords\csname c@#1\endcsname}
\def\xwords#1{\ifcase#1\or الأول
\or الثاني 
\or الثالث 
\or الرابع
\or الخامس
\or السادس
\or السابع
\or الثامن
\or التاسع
\or العاشر 
\else
I need more words\fi}
%\usepackage{etoolbox}%% uncomment if 'etoolbox' isn't already being loaded
\makeatletter
\patchcmd{\@makechapterhead}{\thechapter}{\words{chapter}}{}{}
\makeatother
\title {\LR{colud point}}
\begin{document}
\import{./titlepage/}{titlepage.tex}
\chapter*{الخلاصة}
\import{./Abstract/}{Abstract.tex}
\tableofcontents
\listoffigures
\listoftables
\chapter{المقدمة}
\begin{enumerate}
\item{التحليل الكيميائي\LR{Chemical Analysis}}
\\
\import{./Introduction/}{Introduction1.tex}
\item{الفصل في الكيمياء التحليلية\LR{Separation in analytical chemistry}}
\\
\import{./Introduction/}{Introduction2.tex}
\item{الاستخلاص بالمذيب\LR{Solvent Extraction method}}
\\
\import{./Introduction/}{Introduction3.tex}
\item{ الاستخلاص وحالة التوازن الكيميائي}
\\
\import{./Introduction/}{Introduction4.tex}
   \begin{itemize}
     \item{الاستخلاص عن طريق تكوين المعقدات المخلبية\LR{Chelate complex}}
        \import{./Introduction/}{Introduction5.tex}
          \item{الاستخلاص عن طريق تكوين المعقدات المخلبية\LR{Chelate complex}}

\end{itemize}

\end{enumerate}

\end{document} 

Responder1

A macro \mtctitleé definida no minitocpacote, que você não carrega. Você tem duas opções:

  • Se você não precisa do minitocpacote, basta remover a linha \renewcommand{\mtctitle{...}.

  • Se você precisar da funcionalidade do minitocpacote, carregue-o adicionando a linha

    \usepackage{minitoc}
    

    antesa linha \usepackage{polyglossia}.

Algumas notas adicionais:

  • Mova a linha \usepackage{graphicx}para um lugarantesa linha \usepackage{polyglossia}, por exemplo, depois de carregar o pacote xcolor.

  • Remova \\após os \item{...}comandos; eles são responsáveis ​​pelos Underfull \hbox (badness 10000)avisos. Você não nos informa o conteúdo dos arquivos importados. Acho que deixar uma linha vazia antes dos \importcomandos também faz o que você deseja.

informação relacionada